diff --git a/assets/commands.json b/assets/commands.json index 5c4b95700..06a16ac3f 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 terminal 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":"phdComics","description":"It allows you to see the latest PHD comic strip, or the specified one.","triggers":["phd"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["phdComics","phdComics 1337"]},{"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":"amongUsChannel","description":"It allows to set the channel for creating Among Us lobbies. Anybody who has access to this channel would be able to auto create Among Us lobbies using the `amongus` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["amongUsChannel","amongUsChannel --remove"]},{"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","farewells --random"]},{"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 --random","greetings --timeout TIMEOUT_IN_MINUTES","greetings -- MESSAGE","greetings --private -- 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":"verification","description":"It allows you to enable Captcha Verification in the server. When enabled, users joining the server need to solve a captcha, in your server's [dashboard](%bastion.dashboard%), to prove that they are human. When they successfully solve the captcha, Bastion will give them the specified Verified Role.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["verification","verification --role ROLE","verification --disable"]},{"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","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"]}],"fun":[{"name":"catify","description":"It allows you to generate a cat that's unique to you.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"joke","description":"Posts a random joke collected from the r/jokes subreddit.","triggers":["jokes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"lifeProTip","description":"Posts a random life pro tip collected from the r/LifeProTips subreddit.","triggers":["lifeProTips","LPT"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"meme","description":"Posts a random meme collected from the r/memes subreddit.","triggers":["memes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"pickupLine","description":"Posts a random pickup line collected from the r/pickuplines subreddit.","triggers":["pickup"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"pun","description":"Posts a random pun collected from the r/puns subreddit.","triggers":["puns"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"roast","description":"It allows you to get roasted. The thicker the skin, the better the roast.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"robotify","description":"It allows you to generate a robot avatar that's unique to you.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"ship","description":"It allows you to ship two people and see their compatiblity.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["ship USER USER"]},{"name":"showerThought","description":"Posts a random shower thought collected from the r/ShowerThoughts subreddit.","triggers":["showerThoughts"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"simpness","description":"It allows you to see how much of a simp someone is on any given day.","triggers":["simp"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["simpness","simpness USER"]},{"name":"todayILearned","description":"Posts a random fact collected from the r/TodayILearned subreddit.","triggers":["TIL"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"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":"amongus","description":"It allows you create Among Us lobbies with necessary channels for Discussion and Muted users, and gives the lobby host easy ways to manage them automatically.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["amongus CODE","amongus --allow USERS..."]},{"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":"numberNash","description":"Number Nash is a multiplayer game of numbers played with multiple members of the server. When started, everyone can post a natural number between 1 and 100 in the channel. The game ends in a minute and the member who posted the smallest number that wasn't also posted by anyone else wins.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"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"]},{"name":"ticTacToe","description":"It allows you to play a game of Tic Tac Toe with another member of the server.","triggers":["ttt"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["ticTacToe @USER"]},{"name":"trivia","description":"Play a game of trivia and see if you can answer the questions of various difficulty across multiple categories.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"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":"boost","description":"It allows you to boost the server in Bastion's server listings. You can boost the server once every 24 hours. Server's boost score gets reset every month.","triggers":["bump"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"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","giveaway --reroll ID --winners NUMBER"]},{"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":"inviteRoles","description":"It allows you to associate server invites with roles. Anyone who joins the server with an invite associated with a role will be assigned the specified role automatically. It also allows you to see the list of roles associated with an invite.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["inviteRoles","inviteRoles --role ROLE --invite CODE","inviteRoles --role ROLE --delete"]},{"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":"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. It also allows you to include the members from the specified roles.","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","prune --roles ROLE... -- 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":"referralRewards","description":"It allows you set roles as rewards for referrals (inviting other users to the server).","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["referralRewards","referralRewards --page NUMBER","referralRewards -n NUMBER --role ROLE","referralRewards -n NUMBER --remove"]},{"name":"referrals","description":"It allows you set the Referrals Channel so that members can invite others to the server and gain referral rewards. And it also allows you to track the members' invites.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["referrals","referrals --page NUMBER","referrals --enable","referrals --disable"]},{"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":"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":"safeList","description":"It allows you to add members or roles to a safe list that prevents their messages from being filtered by invite filter or link filter in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["safeList --invite","safeList --invite CHANNEL | ROLE","safeList --invite CHANNEL | ROLE --delete","safeList --link","safeList --link CHANNEL | ROLE","safeList --link CHANNEL | ROLE --delete"]},{"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, category, or the server. 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 --user USER_ID --server -- REASON","textMute --unset --user USER_ID -- REASON","textMute --unset --user USER_ID --channel -- REASON","textMute --unset --user USER_ID --server -- 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. It also allows you to see the list of servers where music is enabled.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["music","music --server SERVER_ID","music --servers"]},{"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":["MANAGE_GUILD"],"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":["MANAGE_GUILD"],"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 query 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 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 also add a personalized message along with 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","karma USER -- MESSAGE"]},{"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"]},{"name":"referral","description":"It allows you to see your referral invite that you can use to invite people to the server and increase your referral points. It can also be used to claim your referral rewards set by the server managers.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["referral","referral --claim"]}],"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":"covid19","description":"It allows you to see the latest global and regional stats on COVID-19.","triggers":["covid","coronavirus"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["covid19","covid19 REGION"]},{"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 send a message through Bastion to any channel or member in the server. 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","echo --channel ID -- MESSAGE","echo --user USER -- 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 terminal 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":"phdComics","description":"It allows you to see the latest PHD comic strip, or the specified one.","triggers":["phd"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["phdComics","phdComics 1337"]},{"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":"amongUsChannel","description":"It allows to set the channel for creating Among Us lobbies. Anybody who has access to this channel would be able to auto create Among Us lobbies using the `amongus` command.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["amongUsChannel","amongUsChannel --remove"]},{"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","farewells --random"]},{"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 --random","greetings --timeout TIMEOUT_IN_MINUTES","greetings -- MESSAGE","greetings --private -- 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":"verification","description":"It allows you to enable Captcha Verification in the server. When enabled, users joining the server need to solve a captcha, in your server's [dashboard](%bastion.dashboard%), to prove that they are human. When they successfully solve the captcha, Bastion will give them the specified Verified Role.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["verification","verification --role ROLE","verification --disable"]},{"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","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"]}],"fun":[{"name":"catify","description":"It allows you to generate a cat that's unique to you.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"dankmeme","description":"Posts a random dank meme collected from the r/dankmemes subreddit.","triggers":["dankmemes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"joke","description":"Posts a random joke collected from the r/jokes subreddit.","triggers":["jokes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"lifeProTip","description":"Posts a random life pro tip collected from the r/LifeProTips subreddit.","triggers":["lifeProTips","LPT"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"meme","description":"Posts a random meme collected from the r/memes subreddit.","triggers":["memes"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"pickupLine","description":"Posts a random pickup line collected from the r/pickuplines subreddit.","triggers":["pickup"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"pun","description":"Posts a random pun collected from the r/puns subreddit.","triggers":["puns"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"roast","description":"It allows you to get roasted. The thicker the skin, the better the roast.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"robotify","description":"It allows you to generate a robot avatar that's unique to you.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"ship","description":"It allows you to ship two people and see their compatiblity.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["ship USER USER"]},{"name":"showerThought","description":"Posts a random shower thought collected from the r/ShowerThoughts subreddit.","triggers":["showerThoughts"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"name":"simpness","description":"It allows you to see how much of a simp someone is on any given day.","triggers":["simp"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["simpness","simpness USER"]},{"name":"todayILearned","description":"Posts a random fact collected from the r/TodayILearned subreddit.","triggers":["TIL"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"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":"amongus","description":"It allows you create Among Us lobbies with necessary channels for Discussion and Muted users, and gives the lobby host easy ways to manage them automatically.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["amongus CODE","amongus --allow USERS..."]},{"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":"numberNash","description":"Number Nash is a multiplayer game of numbers played with multiple members of the server. When started, everyone can post a natural number between 1 and 100 in the channel. The game ends in a minute and the member who posted the smallest number that wasn't also posted by anyone else wins.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"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"]},{"name":"ticTacToe","description":"It allows you to play a game of Tic Tac Toe with another member of the server.","triggers":["ttt"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["ticTacToe @USER"]},{"name":"trivia","description":"Play a game of trivia and see if you can answer the questions of various difficulty across multiple categories.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]}],"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":"boost","description":"It allows you to boost the server in Bastion's server listings. You can boost the server once every 24 hours. Server's boost score gets reset every month.","triggers":["bump"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":[]},{"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","giveaway --reroll ID --winners NUMBER"]},{"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":"inviteRoles","description":"It allows you to associate server invites with roles. Anyone who joins the server with an invite associated with a role will be assigned the specified role automatically. It also allows you to see the list of roles associated with an invite.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["inviteRoles","inviteRoles --role ROLE --invite CODE","inviteRoles --role ROLE --delete"]},{"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":"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. It also allows you to include the members from the specified roles.","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","prune --roles ROLE... -- 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":"referralRewards","description":"It allows you set roles as rewards for referrals (inviting other users to the server).","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["referralRewards","referralRewards --page NUMBER","referralRewards -n NUMBER --role ROLE","referralRewards -n NUMBER --remove"]},{"name":"referrals","description":"It allows you set the Referrals Channel so that members can invite others to the server and gain referral rewards. And it also allows you to track the members' invites.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["referrals","referrals --page NUMBER","referrals --enable","referrals --disable"]},{"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":"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":"safeList","description":"It allows you to add members or roles to a safe list that prevents their messages from being filtered by invite filter or link filter in the server.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["safeList --invite","safeList --invite CHANNEL | ROLE","safeList --invite CHANNEL | ROLE --delete","safeList --link","safeList --link CHANNEL | ROLE","safeList --link CHANNEL | ROLE --delete"]},{"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, category, or the server. 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 --user USER_ID --server -- REASON","textMute --unset --user USER_ID -- REASON","textMute --unset --user USER_ID --channel -- REASON","textMute --unset --user USER_ID --server -- 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. It also allows you to see the list of servers where music is enabled.","triggers":[],"owner":true,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":["MANAGE_GUILD"],"syntax":["music","music --server SERVER_ID","music --servers"]},{"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":["MANAGE_GUILD"],"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":["MANAGE_GUILD"],"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 query 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 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 also add a personalized message along with 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","karma USER -- MESSAGE"]},{"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"]},{"name":"referral","description":"It allows you to see your referral invite that you can use to invite people to the server and increase your referral points. It can also be used to claim your referral rewards set by the server managers.","triggers":[],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["referral","referral --claim"]}],"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":"covid19","description":"It allows you to see the latest global and regional stats on COVID-19.","triggers":["covid","coronavirus"],"owner":false,"typing":false,"schedulable":true,"unsafe":false,"nsfw":false,"cooldown":0,"ratelimit":1,"userPermissions":[],"syntax":["covid19","covid19 REGION"]},{"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 send a message through Bastion to any channel or member in the server. 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","echo --channel ID -- MESSAGE","echo --user USER -- 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 f818fcbc5..c4ba5a085 100644 --- a/bastion.js +++ b/bastion.js @@ -1 +1 @@ -const a0_0x2bd4=['Client','REACTION','test','ids','__esModule','GUILD_INTEGRATIONS','discord.js','info','GUILD_MESSAGE_TYPING','catch','MESSAGE','@bastion/tesseract','Logger','remove','Intents','shard','login','join','StructureManager','error','defineProperty'];(function(_0x1124ae,_0x4fb8b3){const _0x2bd477=function(_0x48bab2){while(--_0x48bab2){_0x1124ae['push'](_0x1124ae['shift']());}},_0x1e5942=function(){const _0x43f5b7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x532694,_0x505d26,_0x12d886,_0x3bf0a9){_0x3bf0a9=_0x3bf0a9||{};let _0x11eb0c=_0x505d26+'='+_0x12d886,_0x389301=0x0;for(let _0x5cc2c3=0x0,_0x4f3d53=_0x532694['length'];_0x5cc2c3<_0x4f3d53;_0x5cc2c3++){const _0x585eab=_0x532694[_0x5cc2c3];_0x11eb0c+=';\x20'+_0x585eab;const _0x4cd01c=_0x532694[_0x585eab];_0x532694['push'](_0x4cd01c),_0x4f3d53=_0x532694['length'],_0x4cd01c!==!![]&&(_0x11eb0c+='='+_0x4cd01c);}_0x3bf0a9['cookie']=_0x11eb0c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x576f6f,_0x3c56ec){_0x576f6f=_0x576f6f||function(_0x3e62a0){return _0x3e62a0;};const _0x6f8c77=_0x576f6f(new RegExp('(?:^|;\x20)'+_0x3c56ec['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19578b=function(_0xd392f9,_0xc2d531){_0xd392f9(++_0xc2d531);};return _0x19578b(_0x2bd477,_0x4fb8b3),_0x6f8c77?decodeURIComponent(_0x6f8c77[0x1]):undefined;}},_0x4e09ea=function(){const _0x3b091d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b091d['test'](_0x43f5b7['removeCookie']['toString']());};_0x43f5b7['updateCookie']=_0x4e09ea;let _0x102762='';const _0x19ec0c=_0x43f5b7['updateCookie']();if(!_0x19ec0c)_0x43f5b7['setCookie'](['*'],'counter',0x1);else _0x19ec0c?_0x102762=_0x43f5b7['getCookie'](null,'counter'):_0x43f5b7['removeCookie']();};_0x1e5942();}(a0_0x2bd4,0x164));const a0_0x1e59=function(_0x1124ae,_0x4fb8b3){_0x1124ae=_0x1124ae-0x83;let _0x2bd477=a0_0x2bd4[_0x1124ae];return _0x2bd477;};const _0xc590ca=a0_0x1e59,a0_0x4e09ea=function(){let _0x19ec0c=!![];return function(_0x532694,_0x505d26){const _0x12d886=_0x19ec0c?function(){if(_0x505d26){const _0x3bf0a9=_0x505d26['apply'](_0x532694,arguments);return _0x505d26=null,_0x3bf0a9;}}:function(){};return _0x19ec0c=![],_0x12d886;};}(),a0_0x43f5b7=a0_0x4e09ea(this,function(){const _0x11eb0c=function(){const _0x6f29da=a0_0x1e59,_0x389301=_0x11eb0c['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x389301[_0x6f29da(0x86)](a0_0x43f5b7);};return _0x11eb0c();});a0_0x43f5b7();'use strict';Object[_0xc590ca(0x83)](exports,_0xc590ca(0x88),{'value':!![]});const tesseract=require(_0xc590ca(0x8f)),discord_js_1=require(_0xc590ca(0x8a));tesseract[_0xc590ca(0x96)]['initialize']();const Bastion=new tesseract[(_0xc590ca(0x84))]({'messageCacheMaxSize':0x5,'messageCacheLifetime':0x384,'messageSweepInterval':0xe10,'messageEditHistoryMaxSize':0x0,'partials':[_0xc590ca(0x8e),_0xc590ca(0x85)],'ws':{'intents':new discord_js_1[(_0xc590ca(0x92))](discord_js_1[_0xc590ca(0x92)]['ALL'])[_0xc590ca(0x91)]('DIRECT_MESSAGE_REACTIONS','DIRECT_MESSAGE_TYPING',_0xc590ca(0x89),_0xc590ca(0x8c),'GUILD_WEBHOOKS')}});Bastion[_0xc590ca(0x94)]()['then'](()=>{const _0x56b60f=_0xc590ca;tesseract[_0x56b60f(0x90)][_0x56b60f(0x8b)]('Shard\x20'+Bastion[_0x56b60f(0x93)][_0x56b60f(0x87)][_0x56b60f(0x95)](',\x20')+'\x20-\x20Launched');})[_0xc590ca(0x8d)](console[_0xc590ca(0x97)]); \ No newline at end of file +const a0_0x10a3=['ids','catch','GUILD_WEBHOOKS','DIRECT_MESSAGE_REACTIONS','constructor','ALL','GUILD_INTEGRATIONS','DIRECT_MESSAGE_TYPING','then','\x20-\x20Launched','return\x20/\x22\x20+\x20this\x20+\x20\x22/','info','defineProperty','StructureManager','Client','GUILD_MESSAGE_TYPING','remove','apply','Shard\x20','MESSAGE','REACTION','initialize','Intents'];(function(_0x39fa77,_0x48c35a){const _0x10a381=function(_0x422f57){while(--_0x422f57){_0x39fa77['push'](_0x39fa77['shift']());}},_0x12cfe2=function(){const _0x1436d0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x27d595,_0x278ede,_0x1ef7ba,_0x107c91){_0x107c91=_0x107c91||{};let _0x553231=_0x278ede+'='+_0x1ef7ba,_0xa7a7f3=0x0;for(let _0x1678cb=0x0,_0x35264e=_0x27d595['length'];_0x1678cb<_0x35264e;_0x1678cb++){const _0x507a93=_0x27d595[_0x1678cb];_0x553231+=';\x20'+_0x507a93;const _0x263ef4=_0x27d595[_0x507a93];_0x27d595['push'](_0x263ef4),_0x35264e=_0x27d595['length'],_0x263ef4!==!![]&&(_0x553231+='='+_0x263ef4);}_0x107c91['cookie']=_0x553231;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2e3253,_0x3af4b6){_0x2e3253=_0x2e3253||function(_0x4cd206){return _0x4cd206;};const _0x431e97=_0x2e3253(new RegExp('(?:^|;\x20)'+_0x3af4b6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4b2791=function(_0x1c5782,_0x38c12e){_0x1c5782(++_0x38c12e);};return _0x4b2791(_0x10a381,_0x48c35a),_0x431e97?decodeURIComponent(_0x431e97[0x1]):undefined;}},_0x47c10b=function(){const _0x5defb9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5defb9['test'](_0x1436d0['removeCookie']['toString']());};_0x1436d0['updateCookie']=_0x47c10b;let _0x32681c='';const _0x394ec5=_0x1436d0['updateCookie']();if(!_0x394ec5)_0x1436d0['setCookie'](['*'],'counter',0x1);else _0x394ec5?_0x32681c=_0x1436d0['getCookie'](null,'counter'):_0x1436d0['removeCookie']();};_0x12cfe2();}(a0_0x10a3,0x103));const a0_0x12cf=function(_0x39fa77,_0x48c35a){_0x39fa77=_0x39fa77-0x17c;let _0x10a381=a0_0x10a3[_0x39fa77];return _0x10a381;};const a0_0x19734e=a0_0x12cf,a0_0x47c10b=function(){let _0x394ec5=!![];return function(_0x27d595,_0x278ede){const _0x1ef7ba=_0x394ec5?function(){const _0x44ac00=a0_0x12cf;if(_0x278ede){const _0x107c91=_0x278ede[_0x44ac00(0x187)](_0x27d595,arguments);return _0x278ede=null,_0x107c91;}}:function(){};return _0x394ec5=![],_0x1ef7ba;};}(),a0_0x1436d0=a0_0x47c10b(this,function(){const _0x553231=function(){const _0x5e1324=a0_0x12cf,_0xa7a7f3=_0x553231['constructor'](_0x5e1324(0x180))()[_0x5e1324(0x191)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xa7a7f3['test'](a0_0x1436d0);};return _0x553231();});a0_0x1436d0();'use strict';Object[a0_0x19734e(0x182)](exports,'__esModule',{'value':!![]});const tesseract=require('@bastion/tesseract'),discord_js_1=require('discord.js');tesseract[a0_0x19734e(0x183)][a0_0x19734e(0x18b)]();const Bastion=new tesseract[(a0_0x19734e(0x184))]({'messageCacheMaxSize':0x5,'messageCacheLifetime':0x384,'messageSweepInterval':0xe10,'messageEditHistoryMaxSize':0x0,'partials':[a0_0x19734e(0x189),a0_0x19734e(0x18a)],'ws':{'intents':new discord_js_1[(a0_0x19734e(0x18c))](discord_js_1[a0_0x19734e(0x18c)][a0_0x19734e(0x192)])[a0_0x19734e(0x186)](a0_0x19734e(0x190),a0_0x19734e(0x17d),a0_0x19734e(0x17c),a0_0x19734e(0x185),a0_0x19734e(0x18f))}});Bastion['login']()[a0_0x19734e(0x17e)](()=>{const _0x36d15f=a0_0x19734e;tesseract['Logger'][_0x36d15f(0x181)](_0x36d15f(0x188)+Bastion['shard'][_0x36d15f(0x18d)]['join'](',\x20')+_0x36d15f(0x17f));})[a0_0x19734e(0x18e)](console['error']); \ No newline at end of file diff --git a/changelog.yaml b/changelog.yaml index ffa081bce..ae328ce7d 100644 --- a/changelog.yaml +++ b/changelog.yaml @@ -1,14 +1,10 @@ -date: November 21, 2020 +date: December 5, 2020 image: changes: NEW: - - title: New Game! - description: Added a new multiplayer game called Number Nash. Checkout `#!numberNash --help` for more info. - - description: Added the `ticTacToe` command to allow users to play a game of Tic Tac Toe with their friends. - - description: Added the `phdComics` command to get comic strips from PHD Comics. - - description: Added support for re-rolling giveaways. You can now reroll a giveaway after it has ended with the `--reroll` flag and specify how many winners you wanna reroll with the `--winner` flag. + - title: Dank Memes! + description: Added the `dankmeme` command for people who who didn't think `meme` wasn't nasty enough! CHANGES: - - description: You can now use the `--user` flag with the `echo` command to Direct Message a member through Bastion instead. But this would require the user to have at least the Manage Server permission in the server. - - description: Some under-the-hood improvements to make Bastion even better. - FIXES: - - description: Some under-the-hood fixes to make Bastion better than ever. + - description: Members can now completely hide and unhide their temporary voice channels from other members using the new 🔐 and 👁️ reactions, respectively. + - description: A few of you complained about the 🆙 reaction for auto-karmas given by Bastion when someone thanked someone. So, we've now updated it to 👍🏻. + - description: Some under-the-hood changes as usual to make Bastion even better! diff --git a/commands/bot_owner/announce.js b/commands/bot_owner/announce.js index 9f723054a..05a79172b 100644 --- a/commands/bot_owner/announce.js +++ b/commands/bot_owner/announce.js @@ -1 +1 @@ -const a1_0x26f8=['title','INVALID_COMMAND_SYNTAX','../../models/Guild','exports','has','announce\x20--message\x20MESSAGE','message','announcementsChannelId','tag','join','catch','COLORS','Constants','../../utils/errors','IRIS','apply','send','Announced','constructor','client','DiscordError','exec','BASTION_ERROR_TYPE','author','PUPIL','📣\x20','\x20/\x20','get','channel','channels','guild'];(function(_0x3dc155,_0x286eeb){const _0x26f8fa=function(_0x24d005){while(--_0x24d005){_0x3dc155['push'](_0x3dc155['shift']());}},_0x145e46=function(){const _0x4c2baa={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1588c7,_0xd80606,_0x216999,_0x4b2aea){_0x4b2aea=_0x4b2aea||{};let _0x3eda98=_0xd80606+'='+_0x216999,_0x4275dc=0x0;for(let _0x20145e=0x0,_0x1a7e94=_0x1588c7['length'];_0x20145e<_0x1a7e94;_0x20145e++){const _0x311915=_0x1588c7[_0x20145e];_0x3eda98+=';\x20'+_0x311915;const _0xdd4ed9=_0x1588c7[_0x311915];_0x1588c7['push'](_0xdd4ed9),_0x1a7e94=_0x1588c7['length'],_0xdd4ed9!==!![]&&(_0x3eda98+='='+_0xdd4ed9);}_0x4b2aea['cookie']=_0x3eda98;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4584ed,_0x81f066){_0x4584ed=_0x4584ed||function(_0x1870e8){return _0x1870e8;};const _0x325070=_0x4584ed(new RegExp('(?:^|;\x20)'+_0x81f066['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2643a3=function(_0xd154ce,_0x363fc0){_0xd154ce(++_0x363fc0);};return _0x2643a3(_0x26f8fa,_0x286eeb),_0x325070?decodeURIComponent(_0x325070[0x1]):undefined;}},_0x3cf129=function(){const _0x5e2dc8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e2dc8['test'](_0x4c2baa['removeCookie']['toString']());};_0x4c2baa['updateCookie']=_0x3cf129;let _0xbf1f92='';const _0x1a780c=_0x4c2baa['updateCookie']();if(!_0x1a780c)_0x4c2baa['setCookie'](['*'],'counter',0x1);else _0x1a780c?_0xbf1f92=_0x4c2baa['getCookie'](null,'counter'):_0x4c2baa['removeCookie']();};_0x145e46();}(a1_0x26f8,0xe8));const a1_0x145e=function(_0x3dc155,_0x286eeb){_0x3dc155=_0x3dc155-0x7c;let _0x26f8fa=a1_0x26f8[_0x3dc155];return _0x26f8fa;};const _0x26b38a=a1_0x145e,a1_0x3cf129=function(){let _0x1a780c=!![];return function(_0x1588c7,_0xd80606){const _0x216999=_0x1a780c?function(){const _0x419ae5=a1_0x145e;if(_0xd80606){const _0x4b2aea=_0xd80606[_0x419ae5(0x7c)](_0x1588c7,arguments);return _0xd80606=null,_0x4b2aea;}}:function(){};return _0x1a780c=![],_0x216999;};}(),a1_0x4c2baa=a1_0x3cf129(this,function(){const _0x3eda98=function(){const _0x1a0bf4=a1_0x145e,_0x4275dc=_0x3eda98[_0x1a0bf4(0x7f)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4275dc['test'](a1_0x4c2baa);};return _0x3eda98();});a1_0x4c2baa();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(_0x26b38a(0x8e)),errors=require(_0x26b38a(0x99));module[_0x26b38a(0x8f)]=class Announce extends tesseract_1['Command']{constructor(){const _0x2ab9b5=_0x26b38a;super('announce',{'description':'It\x20allows\x20you\x20to\x20send\x20announcements\x20to\x20the\x20announcement\x20channels\x20in\x20the\x20servers\x20where\x20it\x20has\x20been\x20set.','triggers':[],'arguments':{'array':['message','title'],'string':['message',_0x2ab9b5(0x8c)]},'scope':_0x2ab9b5(0x8b),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2ab9b5(0x91),'announce\x20--title\x20TITLE\x20--message\x20MESSAGE']}),this[_0x2ab9b5(0x82)]=async(_0x20145e,_0x1a7e94)=>{const _0x2d5b55=_0x2ab9b5,_0x311915=_0x1a7e94[_0x2d5b55(0x8c)]&&_0x1a7e94['title'][_0x2d5b55(0x95)]('\x20'),_0xdd4ed9=_0x1a7e94['message']&&_0x1a7e94[_0x2d5b55(0x92)]['join']('\x20');if(!_0xdd4ed9)throw new errors[(_0x2d5b55(0x81))](errors[_0x2d5b55(0x83)][_0x2d5b55(0x8d)],this['name']);const _0x4584ed=await Guild_1['default']['find']({'announcementsChannelId':{'$exists':!![]}});for(const _0x81f066 of _0x4584ed){if(this[_0x2d5b55(0x80)][_0x2d5b55(0x8a)]['cache'][_0x2d5b55(0x90)](_0x81f066[_0x2d5b55(0x93)])){const _0x325070=this[_0x2d5b55(0x80)][_0x2d5b55(0x8a)]['cache'][_0x2d5b55(0x88)](_0x81f066[_0x2d5b55(0x93)]);_0x325070['send']({'embed':{'color':tesseract_1[_0x2d5b55(0x98)][_0x2d5b55(0x97)][_0x2d5b55(0x9a)],'title':_0x311915,'description':_0xdd4ed9,'footer':{'text':_0x2d5b55(0x86)+_0x20145e[_0x2d5b55(0x84)][_0x2d5b55(0x94)]+'\x20/\x20'+_0x20145e[_0x2d5b55(0x84)]['id']}}})['catch'](()=>{});}}await _0x20145e[_0x2d5b55(0x89)][_0x2d5b55(0x7d)]({'embed':{'color':tesseract_1[_0x2d5b55(0x98)]['COLORS'][_0x2d5b55(0x85)],'author':{'name':_0x2d5b55(0x7e)},'title':_0x311915,'description':_0xdd4ed9,'footer':{'text':_0x2d5b55(0x86)+_0x20145e[_0x2d5b55(0x84)]['tag']+_0x2d5b55(0x87)+_0x20145e[_0x2d5b55(0x84)]['id']}}})[_0x2d5b55(0x96)](()=>{});};}}; \ No newline at end of file +const a1_0x19fb=['COLORS','name','send','author','📣\x20','Announced','\x20/\x20','join','Constants','../../utils/errors','announce\x20--message\x20MESSAGE','channels','../../models/Guild','announce\x20--title\x20TITLE\x20--message\x20MESSAGE','PUPIL','message','catch','Command','constructor','get','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','BASTION_ERROR_TYPE','title','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','cache','tag','client','guild','announce','announcementsChannelId'];(function(_0x4278be,_0x14c5c3){const _0x19fbf8=function(_0x3ededa){while(--_0x3ededa){_0x4278be['push'](_0x4278be['shift']());}},_0x17190c=function(){const _0xdc6b8d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2534de,_0x5be4d1,_0x1ea2e4,_0x59d960){_0x59d960=_0x59d960||{};let _0x350ae9=_0x5be4d1+'='+_0x1ea2e4,_0x45b7f0=0x0;for(let _0x261b16=0x0,_0x1686b6=_0x2534de['length'];_0x261b16<_0x1686b6;_0x261b16++){const _0x1bb82a=_0x2534de[_0x261b16];_0x350ae9+=';\x20'+_0x1bb82a;const _0x5bebb6=_0x2534de[_0x1bb82a];_0x2534de['push'](_0x5bebb6),_0x1686b6=_0x2534de['length'],_0x5bebb6!==!![]&&(_0x350ae9+='='+_0x5bebb6);}_0x59d960['cookie']=_0x350ae9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1cf379,_0x380a7b){_0x1cf379=_0x1cf379||function(_0x243ad3){return _0x243ad3;};const _0x4e38=_0x1cf379(new RegExp('(?:^|;\x20)'+_0x380a7b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x357d65=function(_0x569bb1,_0x1dc8df){_0x569bb1(++_0x1dc8df);};return _0x357d65(_0x19fbf8,_0x14c5c3),_0x4e38?decodeURIComponent(_0x4e38[0x1]):undefined;}},_0x31c9ef=function(){const _0x28489f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x28489f['test'](_0xdc6b8d['removeCookie']['toString']());};_0xdc6b8d['updateCookie']=_0x31c9ef;let _0x3ff332='';const _0x3f3437=_0xdc6b8d['updateCookie']();if(!_0x3f3437)_0xdc6b8d['setCookie'](['*'],'counter',0x1);else _0x3f3437?_0x3ff332=_0xdc6b8d['getCookie'](null,'counter'):_0xdc6b8d['removeCookie']();};_0x17190c();}(a1_0x19fb,0x179));const a1_0x1719=function(_0x4278be,_0x14c5c3){_0x4278be=_0x4278be-0x192;let _0x19fbf8=a1_0x19fb[_0x4278be];return _0x19fbf8;};const a1_0x1bdc17=a1_0x1719,a1_0x31c9ef=function(){let _0x3f3437=!![];return function(_0x2534de,_0x5be4d1){const _0x1ea2e4=_0x3f3437?function(){const _0x301343=a1_0x1719;if(_0x5be4d1){const _0x59d960=_0x5be4d1[_0x301343(0x192)](_0x2534de,arguments);return _0x5be4d1=null,_0x59d960;}}:function(){};return _0x3f3437=![],_0x1ea2e4;};}(),a1_0xdc6b8d=a1_0x31c9ef(this,function(){const _0x350ae9=function(){const _0x5210cc=a1_0x1719,_0x45b7f0=_0x350ae9['constructor'](_0x5210cc(0x1ad))()[_0x5210cc(0x1ab)](_0x5210cc(0x1b1));return!_0x45b7f0['test'](a1_0xdc6b8d);};return _0x350ae9();});a1_0xdc6b8d();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(a1_0x1bdc17(0x1a5)),errors=require(a1_0x1bdc17(0x1a2));module['exports']=class Announce extends tesseract_1[a1_0x1bdc17(0x1aa)]{constructor(){const _0x79594b=a1_0x1bdc17;super(_0x79594b(0x197),{'description':'It\x20allows\x20you\x20to\x20send\x20announcements\x20to\x20the\x20announcement\x20channels\x20in\x20the\x20servers\x20where\x20it\x20has\x20been\x20set.','triggers':[],'arguments':{'array':[_0x79594b(0x1a8),'title'],'string':[_0x79594b(0x1a8),'title']},'scope':_0x79594b(0x196),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x79594b(0x1a3),_0x79594b(0x1a6)]}),this[_0x79594b(0x1ae)]=async(_0x261b16,_0x1686b6)=>{const _0x5a0b98=_0x79594b,_0x1bb82a=_0x1686b6[_0x5a0b98(0x1b0)]&&_0x1686b6[_0x5a0b98(0x1b0)][_0x5a0b98(0x1a0)]('\x20'),_0x5bebb6=_0x1686b6[_0x5a0b98(0x1a8)]&&_0x1686b6[_0x5a0b98(0x1a8)][_0x5a0b98(0x1a0)]('\x20');if(!_0x5bebb6)throw new errors['DiscordError'](errors[_0x5a0b98(0x1af)]['INVALID_COMMAND_SYNTAX'],this[_0x5a0b98(0x19a)]);const _0x1cf379=await Guild_1['default']['find']({'announcementsChannelId':{'$exists':!![]}});for(const _0x380a7b of _0x1cf379){if(this[_0x5a0b98(0x195)]['channels'][_0x5a0b98(0x193)]['has'](_0x380a7b['announcementsChannelId'])){const _0x4e38=this[_0x5a0b98(0x195)][_0x5a0b98(0x1a4)][_0x5a0b98(0x193)][_0x5a0b98(0x1ac)](_0x380a7b[_0x5a0b98(0x198)]);_0x4e38[_0x5a0b98(0x19b)]({'embed':{'color':tesseract_1[_0x5a0b98(0x1a1)]['COLORS']['IRIS'],'title':_0x1bb82a,'description':_0x5bebb6,'footer':{'text':_0x5a0b98(0x19d)+_0x261b16[_0x5a0b98(0x19c)][_0x5a0b98(0x194)]+'\x20/\x20'+_0x261b16[_0x5a0b98(0x19c)]['id']}}})[_0x5a0b98(0x1a9)](()=>{});}}await _0x261b16['channel'][_0x5a0b98(0x19b)]({'embed':{'color':tesseract_1[_0x5a0b98(0x1a1)][_0x5a0b98(0x199)][_0x5a0b98(0x1a7)],'author':{'name':_0x5a0b98(0x19e)},'title':_0x1bb82a,'description':_0x5bebb6,'footer':{'text':_0x5a0b98(0x19d)+_0x261b16[_0x5a0b98(0x19c)][_0x5a0b98(0x194)]+_0x5a0b98(0x19f)+_0x261b16[_0x5a0b98(0x19c)]['id']}}})[_0x5a0b98(0x1a9)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/blacklist.js b/commands/bot_owner/blacklist.js index a16b283b4..e41666891 100644 --- a/commands/bot_owner/blacklist.js +++ b/commands/bot_owner/blacklist.js @@ -1 +1 @@ -const a2_0x5c96=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user','../../models/Config','Users','info','blacklist\x20--servers\x20SERVER_ID','send','blacklist','bastionBlacklistUnchanged','blacklist\x20--users\x20USER_ID\x20--remove','toBulletList','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','client','default','users','@bastion/tesseract','It\x20allows\x20you\x20to\x20blacklist\x20users\x20and\x20servers\x20that.\x20Blacklisted\x20servers\x20and\x20users\x20don\x27t\x20have\x20access\x20to\x20Bastion\x27s\x20commands.','includes','servers','remove','exec','blacklist\x20--servers\x20SERVER_ID\x20--remove','constructor','test','language','blacklistedUserIds','push','exports','findById','isValid','PUPIL','getString','bastionBlacklistUpdate','COLORS','guild','../../utils/arrays','blacklistedGuildIds','save','filter','../../utils/snowflake','length','Bastion\x27s\x20Blacklist','tag','blacklist\x20--users\x20USER_ID'];(function(_0x402d39,_0x56e2dd){const _0x5c9645=function(_0x559380){while(--_0x559380){_0x402d39['push'](_0x402d39['shift']());}},_0x3255f9=function(){const _0x401cca={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f8c42,_0x14b9ea,_0xdc9343,_0x712211){_0x712211=_0x712211||{};let _0x1f404b=_0x14b9ea+'='+_0xdc9343,_0x200dc1=0x0;for(let _0x447e77=0x0,_0x3e14ca=_0x2f8c42['length'];_0x447e77<_0x3e14ca;_0x447e77++){const _0x266967=_0x2f8c42[_0x447e77];_0x1f404b+=';\x20'+_0x266967;const _0x37f01c=_0x2f8c42[_0x266967];_0x2f8c42['push'](_0x37f01c),_0x3e14ca=_0x2f8c42['length'],_0x37f01c!==!![]&&(_0x1f404b+='='+_0x37f01c);}_0x712211['cookie']=_0x1f404b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20762b,_0x394bb2){_0x20762b=_0x20762b||function(_0x4a20af){return _0x4a20af;};const _0x53cd94=_0x20762b(new RegExp('(?:^|;\x20)'+_0x394bb2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39af1c=function(_0x5b0138,_0x50e5b5){_0x5b0138(++_0x50e5b5);};return _0x39af1c(_0x5c9645,_0x56e2dd),_0x53cd94?decodeURIComponent(_0x53cd94[0x1]):undefined;}},_0x21229c=function(){const _0x4c33fb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c33fb['test'](_0x401cca['removeCookie']['toString']());};_0x401cca['updateCookie']=_0x21229c;let _0x19e289='';const _0x4386af=_0x401cca['updateCookie']();if(!_0x4386af)_0x401cca['setCookie'](['*'],'counter',0x1);else _0x4386af?_0x19e289=_0x401cca['getCookie'](null,'counter'):_0x401cca['removeCookie']();};_0x3255f9();}(a2_0x5c96,0x19b));const a2_0x3255=function(_0x402d39,_0x56e2dd){_0x402d39=_0x402d39-0x1e4;let _0x5c9645=a2_0x5c96[_0x402d39];return _0x5c9645;};const _0x3c4c03=a2_0x3255,a2_0x21229c=function(){let _0x4386af=!![];return function(_0x2f8c42,_0x14b9ea){const _0xdc9343=_0x4386af?function(){const _0x572bc5=a2_0x3255;if(_0x14b9ea){const _0x712211=_0x14b9ea[_0x572bc5(0x1f4)](_0x2f8c42,arguments);return _0x14b9ea=null,_0x712211;}}:function(){};return _0x4386af=![],_0xdc9343;};}(),a2_0x401cca=a2_0x21229c(this,function(){const _0x1f404b=function(){const _0x416d89=a2_0x3255,_0x200dc1=_0x1f404b[_0x416d89(0x1ff)](_0x416d89(0x1f3))()[_0x416d89(0x1ff)](_0x416d89(0x1e7));return!_0x200dc1[_0x416d89(0x200)](a2_0x401cca);};return _0x1f404b();});a2_0x401cca();'use strict';const tesseract_1=require(_0x3c4c03(0x1f8)),Config_1=require(_0x3c4c03(0x1e9)),arrays=require(_0x3c4c03(0x20c)),snowflake=require(_0x3c4c03(0x210));module[_0x3c4c03(0x204)]=class Blacklist extends tesseract_1['Command']{constructor(){const _0x165c3d=_0x3c4c03;super(_0x165c3d(0x1ee),{'description':_0x165c3d(0x1f9),'triggers':[],'arguments':{'array':[_0x165c3d(0x1fb),_0x165c3d(0x1f7)],'boolean':['remove'],'string':[_0x165c3d(0x1fb),_0x165c3d(0x1f7)]},'scope':_0x165c3d(0x20b),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x165c3d(0x1e6),_0x165c3d(0x1ec),_0x165c3d(0x1f0),_0x165c3d(0x1fe)]}),this[_0x165c3d(0x1fd)]=async(_0x447e77,_0x3e14ca)=>{const _0x5513e4=_0x165c3d,_0x266967=await Config_1[_0x5513e4(0x1f6)][_0x5513e4(0x205)](this[_0x5513e4(0x1f5)][_0x5513e4(0x1e8)]['id']),_0x37f01c=_0x3e14ca[_0x5513e4(0x1fb)]?_0x3e14ca[_0x5513e4(0x1fb)][_0x5513e4(0x20f)](_0x4a20af=>snowflake[_0x5513e4(0x206)](_0x4a20af)):[],_0x20762b=_0x3e14ca[_0x5513e4(0x1f7)]?_0x3e14ca[_0x5513e4(0x1f7)]['filter'](_0x5b0138=>snowflake[_0x5513e4(0x206)](_0x5b0138)):[],_0x394bb2=[];if(_0x3e14ca['remove'])_0x266967['blacklistedGuildIds']=_0x266967[_0x5513e4(0x20d)][_0x5513e4(0x20f)](_0x50e5b5=>!_0x37f01c[_0x5513e4(0x1fa)](_0x50e5b5));else _0x266967[_0x5513e4(0x20d)]=[..._0x37f01c,..._0x266967['blacklistedGuildIds']];_0x266967[_0x5513e4(0x20d)]=[...new Set(_0x266967[_0x5513e4(0x20d)])];const _0x53cd94=arrays[_0x5513e4(0x1f1)](_0x266967[_0x5513e4(0x20d)]);_0x53cd94&&_0x394bb2[_0x5513e4(0x203)]({'name':'Servers','value':_0x53cd94,'inline':!![]});if(_0x3e14ca[_0x5513e4(0x1fc)])_0x266967[_0x5513e4(0x202)]=_0x266967[_0x5513e4(0x202)][_0x5513e4(0x20f)](_0x4c33fb=>!_0x20762b[_0x5513e4(0x1fa)](_0x4c33fb));else _0x266967[_0x5513e4(0x202)]=[..._0x20762b,..._0x266967[_0x5513e4(0x202)]];_0x266967['blacklistedUserIds']=[...new Set(_0x266967[_0x5513e4(0x202)])];const _0x39af1c=arrays['toBulletList'](_0x266967[_0x5513e4(0x202)]);_0x39af1c&&_0x394bb2[_0x5513e4(0x203)]({'name':_0x5513e4(0x1ea),'value':_0x39af1c,'inline':!![]}),await _0x266967[_0x5513e4(0x20e)](),await _0x447e77['channel'][_0x5513e4(0x1ed)]({'embed':{'color':tesseract_1['Constants'][_0x5513e4(0x20a)][_0x5513e4(0x207)],'title':_0x5513e4(0x1e4),'description':this['client'][_0x5513e4(0x1f2)][_0x5513e4(0x208)](_0x447e77['guild']['document'][_0x5513e4(0x201)],_0x5513e4(0x1eb),_0x37f01c[_0x5513e4(0x211)]||_0x20762b[_0x5513e4(0x211)]?_0x5513e4(0x209):_0x5513e4(0x1ef),_0x447e77['author'][_0x5513e4(0x1e5)]),'fields':_0x394bb2,'footer':{'text':_0x266967[_0x5513e4(0x20d)][_0x5513e4(0x211)]+'\x20Blacklisted\x20Servers\x20/\x20'+_0x266967[_0x5513e4(0x202)][_0x5513e4(0x211)]+'\x20Blacklisted\x20Users'}}});};}}; \ No newline at end of file +const a2_0x3007=['bastionBlacklistUnchanged','Command','remove','toBulletList','findById','blacklist\x20--servers\x20SERVER_ID\x20--remove','locale','push','includes','author','document','default','length','It\x20allows\x20you\x20to\x20blacklist\x20users\x20and\x20servers\x20that.\x20Blacklisted\x20servers\x20and\x20users\x20don\x27t\x20have\x20access\x20to\x20Bastion\x27s\x20commands.','../../utils/snowflake','servers','blacklist\x20--users\x20USER_ID','test','constructor','blacklistedGuildIds','filter','save','PUPIL','apply','send','info','client','Users','blacklist\x20--servers\x20SERVER_ID','Servers','users','exports','blacklist','isValid','blacklistedUserIds','../../models/Config','channel','guild','tag','\x20Blacklisted\x20Users','getString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x41a41c,_0x54a046){const _0x3007bb=function(_0x289ef0){while(--_0x289ef0){_0x41a41c['push'](_0x41a41c['shift']());}},_0x555d4d=function(){const _0x552e04={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x376781,_0x515296,_0xe21786,_0x5d2fe8){_0x5d2fe8=_0x5d2fe8||{};let _0x269bbd=_0x515296+'='+_0xe21786,_0x4ee408=0x0;for(let _0x1e4c30=0x0,_0x1df560=_0x376781['length'];_0x1e4c30<_0x1df560;_0x1e4c30++){const _0x48c878=_0x376781[_0x1e4c30];_0x269bbd+=';\x20'+_0x48c878;const _0x4ff121=_0x376781[_0x48c878];_0x376781['push'](_0x4ff121),_0x1df560=_0x376781['length'],_0x4ff121!==!![]&&(_0x269bbd+='='+_0x4ff121);}_0x5d2fe8['cookie']=_0x269bbd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x25c7a4,_0x1fb292){_0x25c7a4=_0x25c7a4||function(_0x548aa8){return _0x548aa8;};const _0x4d2909=_0x25c7a4(new RegExp('(?:^|;\x20)'+_0x1fb292['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x37c5e1=function(_0x15512b,_0x3fd6d4){_0x15512b(++_0x3fd6d4);};return _0x37c5e1(_0x3007bb,_0x54a046),_0x4d2909?decodeURIComponent(_0x4d2909[0x1]):undefined;}},_0x204767=function(){const _0x5da35b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5da35b['test'](_0x552e04['removeCookie']['toString']());};_0x552e04['updateCookie']=_0x204767;let _0x5b5071='';const _0x26d0cf=_0x552e04['updateCookie']();if(!_0x26d0cf)_0x552e04['setCookie'](['*'],'counter',0x1);else _0x26d0cf?_0x5b5071=_0x552e04['getCookie'](null,'counter'):_0x552e04['removeCookie']();};_0x555d4d();}(a2_0x3007,0xe4));const a2_0x555d=function(_0x41a41c,_0x54a046){_0x41a41c=_0x41a41c-0x6c;let _0x3007bb=a2_0x3007[_0x41a41c];return _0x3007bb;};const a2_0x4607bf=a2_0x555d,a2_0x204767=function(){let _0x26d0cf=!![];return function(_0x376781,_0x515296){const _0xe21786=_0x26d0cf?function(){const _0x3825a1=a2_0x555d;if(_0x515296){const _0x5d2fe8=_0x515296[_0x3825a1(0x71)](_0x376781,arguments);return _0x515296=null,_0x5d2fe8;}}:function(){};return _0x26d0cf=![],_0xe21786;};}(),a2_0x552e04=a2_0x204767(this,function(){const _0x269bbd=function(){const _0x1ccd2e=a2_0x555d,_0x4ee408=_0x269bbd[_0x1ccd2e(0x6c)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1ccd2e(0x6c)](_0x1ccd2e(0x83));return!_0x4ee408[_0x1ccd2e(0x95)](a2_0x552e04);};return _0x269bbd();});a2_0x552e04();'use strict';const tesseract_1=require('@bastion/tesseract'),Config_1=require(a2_0x4607bf(0x7d)),arrays=require('../../utils/arrays'),snowflake=require(a2_0x4607bf(0x92));module[a2_0x4607bf(0x79)]=class Blacklist extends tesseract_1[a2_0x4607bf(0x85)]{constructor(){const _0x29417c=a2_0x4607bf;super(_0x29417c(0x7a),{'description':_0x29417c(0x91),'triggers':[],'arguments':{'array':['servers',_0x29417c(0x78)],'boolean':[_0x29417c(0x86)],'string':['servers',_0x29417c(0x78)]},'scope':_0x29417c(0x7f),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x29417c(0x94),_0x29417c(0x76),'blacklist\x20--users\x20USER_ID\x20--remove',_0x29417c(0x89)]}),this['exec']=async(_0x1e4c30,_0x1df560)=>{const _0x433759=_0x29417c,_0x48c878=await Config_1[_0x433759(0x8f)][_0x433759(0x88)](this[_0x433759(0x74)]['user']['id']),_0x4ff121=_0x1df560[_0x433759(0x93)]?_0x1df560[_0x433759(0x93)][_0x433759(0x6e)](_0x548aa8=>snowflake[_0x433759(0x7b)](_0x548aa8)):[],_0x25c7a4=_0x1df560[_0x433759(0x78)]?_0x1df560[_0x433759(0x78)]['filter'](_0x15512b=>snowflake[_0x433759(0x7b)](_0x15512b)):[],_0x1fb292=[];if(_0x1df560['remove'])_0x48c878[_0x433759(0x6d)]=_0x48c878[_0x433759(0x6d)]['filter'](_0x3fd6d4=>!_0x4ff121[_0x433759(0x8c)](_0x3fd6d4));else _0x48c878[_0x433759(0x6d)]=[..._0x4ff121,..._0x48c878['blacklistedGuildIds']];_0x48c878[_0x433759(0x6d)]=[...new Set(_0x48c878[_0x433759(0x6d)])];const _0x4d2909=arrays['toBulletList'](_0x48c878[_0x433759(0x6d)]);_0x4d2909&&_0x1fb292[_0x433759(0x8b)]({'name':_0x433759(0x77),'value':_0x4d2909,'inline':!![]});if(_0x1df560[_0x433759(0x86)])_0x48c878['blacklistedUserIds']=_0x48c878[_0x433759(0x7c)][_0x433759(0x6e)](_0x5da35b=>!_0x25c7a4[_0x433759(0x8c)](_0x5da35b));else _0x48c878['blacklistedUserIds']=[..._0x25c7a4,..._0x48c878[_0x433759(0x7c)]];_0x48c878[_0x433759(0x7c)]=[...new Set(_0x48c878[_0x433759(0x7c)])];const _0x37c5e1=arrays[_0x433759(0x87)](_0x48c878[_0x433759(0x7c)]);_0x37c5e1&&_0x1fb292[_0x433759(0x8b)]({'name':_0x433759(0x75),'value':_0x37c5e1,'inline':!![]}),await _0x48c878[_0x433759(0x6f)](),await _0x1e4c30[_0x433759(0x7e)][_0x433759(0x72)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x433759(0x70)],'title':'Bastion\x27s\x20Blacklist','description':this[_0x433759(0x74)][_0x433759(0x8a)][_0x433759(0x82)](_0x1e4c30[_0x433759(0x7f)][_0x433759(0x8e)]['language'],_0x433759(0x73),_0x4ff121[_0x433759(0x90)]||_0x25c7a4[_0x433759(0x90)]?'bastionBlacklistUpdate':_0x433759(0x84),_0x1e4c30[_0x433759(0x8d)][_0x433759(0x80)]),'fields':_0x1fb292,'footer':{'text':_0x48c878[_0x433759(0x6d)][_0x433759(0x90)]+'\x20Blacklisted\x20Servers\x20/\x20'+_0x48c878[_0x433759(0x7c)][_0x433759(0x90)]+_0x433759(0x81)}}});};}}; \ No newline at end of file diff --git a/commands/bot_owner/commandModule.js b/commands/bot_owner/commandModule.js index 95adbf0e3..b56496ff7 100644 --- a/commands/bot_owner/commandModule.js +++ b/commands/bot_owner/commandModule.js @@ -1 +1 @@ -const a3_0x2043=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_ERROR_TYPE','disable','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','Command\x20Module','name','language','DiscordError','getString','length','commandModule\x20COMMAND','channel','exports','exec','send','ERROR','@bastion/tesseract','commandModule','INVALID_COMMAND_SYNTAX','enable','PUPIL','commandModule\x20COMMAND\x20--disable','document','manager','command','tag','test','info','GREEN','constructor','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.','author','commandNotFound','COLORS','toLowerCase','volatileCommandEnable','enabled','apply','locale','commandDisabled','Constants','modules'];(function(_0x3e6e45,_0x6ee83c){const _0x2043cd=function(_0x1dfe76){while(--_0x1dfe76){_0x3e6e45['push'](_0x3e6e45['shift']());}},_0x581e9e=function(){const _0x8ecebd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3cfe5f,_0x30493a,_0x175495,_0x56822e){_0x56822e=_0x56822e||{};let _0x55d98d=_0x30493a+'='+_0x175495,_0x3d96ad=0x0;for(let _0x56ec67=0x0,_0x3c0e73=_0x3cfe5f['length'];_0x56ec67<_0x3c0e73;_0x56ec67++){const _0x1d74d5=_0x3cfe5f[_0x56ec67];_0x55d98d+=';\x20'+_0x1d74d5;const _0x5954e5=_0x3cfe5f[_0x1d74d5];_0x3cfe5f['push'](_0x5954e5),_0x3c0e73=_0x3cfe5f['length'],_0x5954e5!==!![]&&(_0x55d98d+='='+_0x5954e5);}_0x56822e['cookie']=_0x55d98d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x17e1bf,_0x39a0d8){_0x17e1bf=_0x17e1bf||function(_0x268fcb){return _0x268fcb;};const _0x2c581d=_0x17e1bf(new RegExp('(?:^|;\x20)'+_0x39a0d8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4a35ec=function(_0x520276,_0x12965f){_0x520276(++_0x12965f);};return _0x4a35ec(_0x2043cd,_0x6ee83c),_0x2c581d?decodeURIComponent(_0x2c581d[0x1]):undefined;}},_0x1f75cd=function(){const _0x383b78=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x383b78['test'](_0x8ecebd['removeCookie']['toString']());};_0x8ecebd['updateCookie']=_0x1f75cd;let _0x15e40e='';const _0x259c26=_0x8ecebd['updateCookie']();if(!_0x259c26)_0x8ecebd['setCookie'](['*'],'counter',0x1);else _0x259c26?_0x15e40e=_0x8ecebd['getCookie'](null,'counter'):_0x8ecebd['removeCookie']();};_0x581e9e();}(a3_0x2043,0x142));const a3_0x581e=function(_0x3e6e45,_0x6ee83c){_0x3e6e45=_0x3e6e45-0x197;let _0x2043cd=a3_0x2043[_0x3e6e45];return _0x2043cd;};const _0x96d704=a3_0x581e,a3_0x1f75cd=function(){let _0x259c26=!![];return function(_0x3cfe5f,_0x30493a){const _0x175495=_0x259c26?function(){const _0x3df30c=a3_0x581e;if(_0x30493a){const _0x56822e=_0x30493a[_0x3df30c(0x1b0)](_0x3cfe5f,arguments);return _0x30493a=null,_0x56822e;}}:function(){};return _0x259c26=![],_0x175495;};}(),a3_0x8ecebd=a3_0x1f75cd(this,function(){const _0x55d98d=function(){const _0x4cbeed=a3_0x581e,_0x3d96ad=_0x55d98d[_0x4cbeed(0x1a8)](_0x4cbeed(0x1b9))()[_0x4cbeed(0x1a8)](_0x4cbeed(0x1b5));return!_0x3d96ad[_0x4cbeed(0x1a5)](a3_0x8ecebd);};return _0x55d98d();});a3_0x8ecebd();'use strict';const tesseract_1=require(_0x96d704(0x19b)),errors=require('../../utils/errors');module[_0x96d704(0x197)]=class CommandModuleCommand extends tesseract_1['Command']{constructor(){const _0x542856=_0x96d704;super(_0x542856(0x19c),{'description':_0x542856(0x1a9),'triggers':[_0x542856(0x1a3)],'arguments':{'alias':{'disable':['d'],'enable':['e']},'boolean':[_0x542856(0x1b7),_0x542856(0x19e)]},'scope':_0x542856(0x1ba),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x542856(0x1c1),_0x542856(0x1a0),'commandModule\x20COMMAND\x20--enable']}),this[_0x542856(0x198)]=async(_0x56ec67,_0x3c0e73)=>{const _0x3c4c2a=_0x542856;if(!_0x3c0e73['_'][_0x3c4c2a(0x1c0)])throw new errors[(_0x3c4c2a(0x1be))](errors[_0x3c4c2a(0x1b6)][_0x3c4c2a(0x19d)],this['name']);const _0x1d74d5=this[_0x3c4c2a(0x1a2)][_0x3c4c2a(0x1b4)]['find'](_0x5954e5=>_0x5954e5['name'][_0x3c4c2a(0x1ad)]()===_0x3c0e73['_']['join']('')[_0x3c4c2a(0x1ad)]());if(!_0x1d74d5)throw new errors['DiscordError'](errors[_0x3c4c2a(0x1b6)][_0x3c4c2a(0x19a)],this[_0x3c4c2a(0x1b8)][_0x3c4c2a(0x1b1)][_0x3c4c2a(0x1bf)](_0x56ec67['guild']['document'][_0x3c4c2a(0x1bd)],'errors',_0x3c4c2a(0x1ab)));_0x1d74d5[_0x3c4c2a(0x1af)]=_0x3c0e73[_0x3c4c2a(0x19e)]?!![]:_0x3c0e73[_0x3c4c2a(0x1b7)]?![]:_0x1d74d5[_0x3c4c2a(0x1af)],await _0x56ec67[_0x3c4c2a(0x1c2)][_0x3c4c2a(0x199)]({'embed':{'color':_0x3c0e73[_0x3c4c2a(0x19e)]?tesseract_1[_0x3c4c2a(0x1b3)][_0x3c4c2a(0x1ac)][_0x3c4c2a(0x1a7)]:_0x3c0e73['disable']?tesseract_1[_0x3c4c2a(0x1b3)][_0x3c4c2a(0x1ac)]['RED']:tesseract_1[_0x3c4c2a(0x1b3)][_0x3c4c2a(0x1ac)][_0x3c4c2a(0x19f)],'author':{'name':_0x1d74d5[_0x3c4c2a(0x1bc)]},'title':_0x3c4c2a(0x1bb),'description':this[_0x3c4c2a(0x1b8)]['locale'][_0x3c4c2a(0x1bf)](_0x56ec67[_0x3c4c2a(0x1ba)][_0x3c4c2a(0x1a1)]['language'],_0x3c4c2a(0x1a6),_0x3c0e73[_0x3c4c2a(0x19e)]?_0x3c4c2a(0x1ae):_0x3c0e73[_0x3c4c2a(0x1b7)]?'volatileCommandDisable':_0x1d74d5[_0x3c4c2a(0x1af)]?'commandEnabled':_0x3c4c2a(0x1b2),_0x56ec67[_0x3c4c2a(0x1aa)][_0x3c4c2a(0x1a4)],_0x1d74d5[_0x3c4c2a(0x1bc)])}})['catch'](()=>{});};}}; \ No newline at end of file +const a3_0x32ed=['BASTION_ERROR_TYPE','RED','commandModule','exec','commandModule\x20COMMAND','commandNotFound','COLORS','guild','toLowerCase','return\x20/\x22\x20+\x20this\x20+\x20\x22/','enable','errors','commandDisabled','Command\x20Module','Command','info','catch','GREEN','@bastion/tesseract','join','getString','client','find','test','channel','INVALID_COMMAND_SYNTAX','DiscordError','document','volatileCommandEnable','Constants','constructor','disable','ERROR','locale','language','name','tag','send','manager','PUPIL','enabled'];(function(_0x1f1eb0,_0x395e8d){const _0x32ed88=function(_0x45447c){while(--_0x45447c){_0x1f1eb0['push'](_0x1f1eb0['shift']());}},_0x1a2bfe=function(){const _0x1fc73c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e5593,_0x4096b9,_0x4a1094,_0x134a67){_0x134a67=_0x134a67||{};let _0x2bdd16=_0x4096b9+'='+_0x4a1094,_0x6eadef=0x0;for(let _0x16dded=0x0,_0x19893e=_0x4e5593['length'];_0x16dded<_0x19893e;_0x16dded++){const _0x2457c1=_0x4e5593[_0x16dded];_0x2bdd16+=';\x20'+_0x2457c1;const _0x43f705=_0x4e5593[_0x2457c1];_0x4e5593['push'](_0x43f705),_0x19893e=_0x4e5593['length'],_0x43f705!==!![]&&(_0x2bdd16+='='+_0x43f705);}_0x134a67['cookie']=_0x2bdd16;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a9f4e,_0x50b958){_0x5a9f4e=_0x5a9f4e||function(_0x308a79){return _0x308a79;};const _0x426f1e=_0x5a9f4e(new RegExp('(?:^|;\x20)'+_0x50b958['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb33d2c=function(_0x59e379,_0x525af1){_0x59e379(++_0x525af1);};return _0xb33d2c(_0x32ed88,_0x395e8d),_0x426f1e?decodeURIComponent(_0x426f1e[0x1]):undefined;}},_0x6ddddd=function(){const _0x46a602=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46a602['test'](_0x1fc73c['removeCookie']['toString']());};_0x1fc73c['updateCookie']=_0x6ddddd;let _0x226d71='';const _0x57e95c=_0x1fc73c['updateCookie']();if(!_0x57e95c)_0x1fc73c['setCookie'](['*'],'counter',0x1);else _0x57e95c?_0x226d71=_0x1fc73c['getCookie'](null,'counter'):_0x1fc73c['removeCookie']();};_0x1a2bfe();}(a3_0x32ed,0x6c));const a3_0x1a2b=function(_0x1f1eb0,_0x395e8d){_0x1f1eb0=_0x1f1eb0-0x1a7;let _0x32ed88=a3_0x32ed[_0x1f1eb0];return _0x32ed88;};const a3_0x41c8fc=a3_0x1a2b,a3_0x6ddddd=function(){let _0x57e95c=!![];return function(_0x4e5593,_0x4096b9){const _0x4a1094=_0x57e95c?function(){if(_0x4096b9){const _0x134a67=_0x4096b9['apply'](_0x4e5593,arguments);return _0x4096b9=null,_0x134a67;}}:function(){};return _0x57e95c=![],_0x4a1094;};}(),a3_0x1fc73c=a3_0x6ddddd(this,function(){const _0x2bdd16=function(){const _0x5e7c2b=a3_0x1a2b,_0x6eadef=_0x2bdd16['constructor'](_0x5e7c2b(0x1bf))()[_0x5e7c2b(0x1ab)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x6eadef[_0x5e7c2b(0x1cd)](a3_0x1fc73c);};return _0x2bdd16();});a3_0x1fc73c();'use strict';const tesseract_1=require(a3_0x41c8fc(0x1c8)),errors=require('../../utils/errors');module['exports']=class CommandModuleCommand extends tesseract_1[a3_0x41c8fc(0x1c4)]{constructor(){const _0x143ddc=a3_0x41c8fc;super(_0x143ddc(0x1b8),{'description':'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.','triggers':['command'],'arguments':{'alias':{'disable':['d'],'enable':['e']},'boolean':[_0x143ddc(0x1ac),'enable']},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x143ddc(0x1ba),'commandModule\x20COMMAND\x20--disable','commandModule\x20COMMAND\x20--enable']}),this[_0x143ddc(0x1b9)]=async(_0x16dded,_0x19893e)=>{const _0x55b02f=_0x143ddc;if(!_0x19893e['_']['length'])throw new errors[(_0x55b02f(0x1a7))](errors[_0x55b02f(0x1b6)][_0x55b02f(0x1cf)],this[_0x55b02f(0x1b0)]);const _0x2457c1=this[_0x55b02f(0x1b3)]['modules'][_0x55b02f(0x1cc)](_0x43f705=>_0x43f705['name']['toLowerCase']()===_0x19893e['_'][_0x55b02f(0x1c9)]('')[_0x55b02f(0x1be)]());if(!_0x2457c1)throw new errors[(_0x55b02f(0x1a7))](errors[_0x55b02f(0x1b6)][_0x55b02f(0x1ad)],this[_0x55b02f(0x1cb)][_0x55b02f(0x1ae)][_0x55b02f(0x1ca)](_0x16dded[_0x55b02f(0x1bd)]['document'][_0x55b02f(0x1af)],_0x55b02f(0x1c1),_0x55b02f(0x1bb)));_0x2457c1[_0x55b02f(0x1b5)]=_0x19893e[_0x55b02f(0x1c0)]?!![]:_0x19893e[_0x55b02f(0x1ac)]?![]:_0x2457c1['enabled'],await _0x16dded[_0x55b02f(0x1ce)][_0x55b02f(0x1b2)]({'embed':{'color':_0x19893e[_0x55b02f(0x1c0)]?tesseract_1[_0x55b02f(0x1aa)][_0x55b02f(0x1bc)][_0x55b02f(0x1c7)]:_0x19893e['disable']?tesseract_1['Constants'][_0x55b02f(0x1bc)][_0x55b02f(0x1b7)]:tesseract_1[_0x55b02f(0x1aa)]['COLORS'][_0x55b02f(0x1b4)],'author':{'name':_0x2457c1['name']},'title':_0x55b02f(0x1c3),'description':this[_0x55b02f(0x1cb)][_0x55b02f(0x1ae)][_0x55b02f(0x1ca)](_0x16dded[_0x55b02f(0x1bd)][_0x55b02f(0x1a8)][_0x55b02f(0x1af)],_0x55b02f(0x1c5),_0x19893e[_0x55b02f(0x1c0)]?_0x55b02f(0x1a9):_0x19893e['disable']?'volatileCommandDisable':_0x2457c1['enabled']?'commandEnabled':_0x55b02f(0x1c2),_0x16dded['author'][_0x55b02f(0x1b1)],_0x2457c1[_0x55b02f(0x1b0)])}})[_0x55b02f(0x1c6)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/eval.js b/commands/bot_owner/eval.js index 3778efee4..8b9cf1460 100644 --- a/commands/bot_owner/eval.js +++ b/commands/bot_owner/eval.js @@ -1 +1 @@ -const a4_0x2062=['```js\x0a','INPUT','../../utils/errors','ERROR','eval\x20--code\x20JAVASCRIPT_CODE\x20--broadcast','broadcastEval','It\x20allows\x20you\x20to\x20execute\x20JavaScript\x20code\x20inside\x20Bastion\x27s\x20context.','COLORS','@bastion/tesseract','client','Command','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','INVALID_COMMAND_SYNTAX','slice','join','```','inspect','return\x20/\x22\x20+\x20this\x20+\x20\x22/','eval\x20--code\x20JAVASCRIPT_CODE\x20--quiet','exports','catch','deletable','shard','delete','apply','length','Evaluator','PUPIL','broadcast','quiet','test','eval\x20--code\x20JAVASCRIPT_CODE\x20--delete','OUTPUT','name','then','\x0a...','sanitize','code','string','toString','util'];(function(_0x1d21fd,_0x484f1e){const _0x2062fc=function(_0x264e1e){while(--_0x264e1e){_0x1d21fd['push'](_0x1d21fd['shift']());}},_0x1225e4=function(){const _0x49aca8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2822d6,_0xecaae7,_0x281cb0,_0x390869){_0x390869=_0x390869||{};let _0x328d18=_0xecaae7+'='+_0x281cb0,_0x1e35a8=0x0;for(let _0x2bd434=0x0,_0x4051a9=_0x2822d6['length'];_0x2bd434<_0x4051a9;_0x2bd434++){const _0x4b0a23=_0x2822d6[_0x2bd434];_0x328d18+=';\x20'+_0x4b0a23;const _0x5dc197=_0x2822d6[_0x4b0a23];_0x2822d6['push'](_0x5dc197),_0x4051a9=_0x2822d6['length'],_0x5dc197!==!![]&&(_0x328d18+='='+_0x5dc197);}_0x390869['cookie']=_0x328d18;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c52e3,_0x336da9){_0x1c52e3=_0x1c52e3||function(_0x3ad7b6){return _0x3ad7b6;};const _0x21fc34=_0x1c52e3(new RegExp('(?:^|;\x20)'+_0x336da9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f10b7=function(_0x560810,_0x5d4f66){_0x560810(++_0x5d4f66);};return _0x4f10b7(_0x2062fc,_0x484f1e),_0x21fc34?decodeURIComponent(_0x21fc34[0x1]):undefined;}},_0x206b64=function(){const _0x91c88a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x91c88a['test'](_0x49aca8['removeCookie']['toString']());};_0x49aca8['updateCookie']=_0x206b64;let _0x57e5d3='';const _0x2a9f7b=_0x49aca8['updateCookie']();if(!_0x2a9f7b)_0x49aca8['setCookie'](['*'],'counter',0x1);else _0x2a9f7b?_0x57e5d3=_0x49aca8['getCookie'](null,'counter'):_0x49aca8['removeCookie']();};_0x1225e4();}(a4_0x2062,0x108));const a4_0x1225=function(_0x1d21fd,_0x484f1e){_0x1d21fd=_0x1d21fd-0x11f;let _0x2062fc=a4_0x2062[_0x1d21fd];return _0x2062fc;};const _0x4b9ea1=a4_0x1225,a4_0x206b64=function(){let _0x2a9f7b=!![];return function(_0x2822d6,_0xecaae7){const _0x281cb0=_0x2a9f7b?function(){const _0x14085d=a4_0x1225;if(_0xecaae7){const _0x390869=_0xecaae7[_0x14085d(0x125)](_0x2822d6,arguments);return _0xecaae7=null,_0x390869;}}:function(){};return _0x2a9f7b=![],_0x281cb0;};}(),a4_0x49aca8=a4_0x206b64(this,function(){const _0x328d18=function(){const _0x428f3f=a4_0x1225,_0x1e35a8=_0x328d18['constructor'](_0x428f3f(0x147))()['constructor'](_0x428f3f(0x141));return!_0x1e35a8[_0x428f3f(0x12b)](a4_0x49aca8);};return _0x328d18();});a4_0x49aca8();'use strict';const tesseract_1=require(_0x4b9ea1(0x13e)),util_1=require(_0x4b9ea1(0x135)),errors=require(_0x4b9ea1(0x138));module[_0x4b9ea1(0x120)]=class Eval extends tesseract_1[_0x4b9ea1(0x140)]{constructor(){const _0x5b18a8=_0x4b9ea1;super('eval',{'description':_0x5b18a8(0x13c),'triggers':[],'arguments':{'alias':{'broadcast':['b'],'code':['c'],'delete':['d'],'quiet':['q']},'array':['code'],'boolean':[_0x5b18a8(0x129),_0x5b18a8(0x124),_0x5b18a8(0x12a)],'string':['code']},'scope':'guild','owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['eval\x20--code\x20JAVASCRIPT_CODE',_0x5b18a8(0x13a),_0x5b18a8(0x12c),_0x5b18a8(0x11f)]}),this[_0x5b18a8(0x131)]=_0x2bd434=>{const _0x59e0e4=_0x5b18a8;return _0x2bd434[_0x59e0e4(0x126)]>0x3e8?_0x2bd434[_0x59e0e4(0x143)](0x0,0x3e8)+_0x59e0e4(0x130):_0x2bd434;},this['exec']=async(_0x4051a9,_0x4b0a23)=>{const _0x46e4e2=_0x5b18a8;if(!_0x4b0a23[_0x46e4e2(0x132)]||!_0x4b0a23[_0x46e4e2(0x132)]['length'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x46e4e2(0x142)],this[_0x46e4e2(0x12e)]);const _0x5dc197=_0x4b0a23[_0x46e4e2(0x132)][_0x46e4e2(0x144)]('\x20');let _0x1c52e3,_0x336da9;try{_0x1c52e3=_0x4b0a23[_0x46e4e2(0x129)]?await this[_0x46e4e2(0x13f)][_0x46e4e2(0x123)][_0x46e4e2(0x13b)](_0x5dc197):eval(_0x5dc197);if(typeof _0x1c52e3!==_0x46e4e2(0x133))_0x1c52e3=util_1[_0x46e4e2(0x146)](_0x1c52e3);}catch(_0x21fc34){_0x336da9=_0x21fc34[_0x46e4e2(0x134)]();}!_0x4b0a23[_0x46e4e2(0x12a)]&&await _0x4051a9['channel']['send']({'embed':{'color':tesseract_1['Constants'][_0x46e4e2(0x13d)][_0x46e4e2(0x128)],'title':_0x46e4e2(0x127),'fields':[{'name':_0x46e4e2(0x137),'value':'```js\x0a'+this[_0x46e4e2(0x131)](_0x5dc197)+_0x46e4e2(0x145)},{'name':_0x336da9?_0x46e4e2(0x139):_0x46e4e2(0x12d),'value':_0x46e4e2(0x136)+this[_0x46e4e2(0x131)](_0x336da9?_0x336da9:_0x1c52e3)+'```'}]}})[_0x46e4e2(0x12f)](_0x4f10b7=>{const _0x4636bb=_0x46e4e2;if(_0x4b0a23[_0x4636bb(0x124)]){if(_0x4051a9[_0x4636bb(0x122)])_0x4051a9['delete']({'timeout':0x2710})[_0x4636bb(0x121)](()=>{});_0x4f10b7[_0x4636bb(0x124)]({'timeout':0x2710})['catch'](()=>{});}});};}}; \ No newline at end of file +const a4_0x5477=['eval\x20--code\x20JAVASCRIPT_CODE\x20--quiet','string','guild','toString','util','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','send','code','quiet','shard','delete','length','join','Evaluator','broadcast','eval\x20--code\x20JAVASCRIPT_CODE','channel','\x0a...','ERROR','sanitize','test','It\x20allows\x20you\x20to\x20execute\x20JavaScript\x20code\x20inside\x20Bastion\x27s\x20context.','catch','eval\x20--code\x20JAVASCRIPT_CODE\x20--broadcast','slice','PUPIL','BASTION_ERROR_TYPE','DiscordError','```js\x0a','exports','then','```','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','broadcastEval','inspect','name','Constants','constructor','OUTPUT'];(function(_0x311e41,_0x43010e){const _0x547768=function(_0x4cb0d3){while(--_0x4cb0d3){_0x311e41['push'](_0x311e41['shift']());}},_0x28a7a4=function(){const _0x38b6c8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x151e22,_0x231c2a,_0x59f04f,_0x5ee5cc){_0x5ee5cc=_0x5ee5cc||{};let _0x40b5ca=_0x231c2a+'='+_0x59f04f,_0x353c4a=0x0;for(let _0x1a1ed6=0x0,_0x3e6a9e=_0x151e22['length'];_0x1a1ed6<_0x3e6a9e;_0x1a1ed6++){const _0x3fc697=_0x151e22[_0x1a1ed6];_0x40b5ca+=';\x20'+_0x3fc697;const _0x4c96bb=_0x151e22[_0x3fc697];_0x151e22['push'](_0x4c96bb),_0x3e6a9e=_0x151e22['length'],_0x4c96bb!==!![]&&(_0x40b5ca+='='+_0x4c96bb);}_0x5ee5cc['cookie']=_0x40b5ca;},'removeCookie':function(){return'dev';},'getCookie':function(_0x409200,_0x3f429b){_0x409200=_0x409200||function(_0x559ca7){return _0x559ca7;};const _0x188854=_0x409200(new RegExp('(?:^|;\x20)'+_0x3f429b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4b112e=function(_0x913d5f,_0x32b10d){_0x913d5f(++_0x32b10d);};return _0x4b112e(_0x547768,_0x43010e),_0x188854?decodeURIComponent(_0x188854[0x1]):undefined;}},_0x48cc47=function(){const _0x18dbec=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x18dbec['test'](_0x38b6c8['removeCookie']['toString']());};_0x38b6c8['updateCookie']=_0x48cc47;let _0x19ab7a='';const _0x3db883=_0x38b6c8['updateCookie']();if(!_0x3db883)_0x38b6c8['setCookie'](['*'],'counter',0x1);else _0x3db883?_0x19ab7a=_0x38b6c8['getCookie'](null,'counter'):_0x38b6c8['removeCookie']();};_0x28a7a4();}(a4_0x5477,0x1d1));const a4_0x28a7=function(_0x311e41,_0x43010e){_0x311e41=_0x311e41-0xff;let _0x547768=a4_0x5477[_0x311e41];return _0x547768;};const a4_0x2722d0=a4_0x28a7,a4_0x48cc47=function(){let _0x3db883=!![];return function(_0x151e22,_0x231c2a){const _0x59f04f=_0x3db883?function(){if(_0x231c2a){const _0x5ee5cc=_0x231c2a['apply'](_0x151e22,arguments);return _0x231c2a=null,_0x5ee5cc;}}:function(){};return _0x3db883=![],_0x59f04f;};}(),a4_0x38b6c8=a4_0x48cc47(this,function(){const _0x40b5ca=function(){const _0x164df4=a4_0x28a7,_0x353c4a=_0x40b5ca[_0x164df4(0x118)](_0x164df4(0x113))()[_0x164df4(0x118)](_0x164df4(0x11f));return!_0x353c4a[_0x164df4(0x106)](a4_0x38b6c8);};return _0x40b5ca();});a4_0x38b6c8();'use strict';const tesseract_1=require('@bastion/tesseract'),util_1=require(a4_0x2722d0(0x11e)),errors=require('../../utils/errors');module[a4_0x2722d0(0x10f)]=class Eval extends tesseract_1['Command']{constructor(){const _0x1e9351=a4_0x2722d0;super('eval',{'description':_0x1e9351(0x107),'triggers':[],'arguments':{'alias':{'broadcast':['b'],'code':['c'],'delete':['d'],'quiet':['q']},'array':[_0x1e9351(0x122)],'boolean':[_0x1e9351(0x100),_0x1e9351(0x125),'quiet'],'string':[_0x1e9351(0x122)]},'scope':_0x1e9351(0x11c),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1e9351(0x101),_0x1e9351(0x109),'eval\x20--code\x20JAVASCRIPT_CODE\x20--delete',_0x1e9351(0x11a)]}),this[_0x1e9351(0x105)]=_0x1a1ed6=>{const _0x17d34b=_0x1e9351;return _0x1a1ed6[_0x17d34b(0x126)]>0x3e8?_0x1a1ed6[_0x17d34b(0x10a)](0x0,0x3e8)+_0x17d34b(0x103):_0x1a1ed6;},this[_0x1e9351(0x120)]=async(_0x3e6a9e,_0x3fc697)=>{const _0x2eba4b=_0x1e9351;if(!_0x3fc697[_0x2eba4b(0x122)]||!_0x3fc697['code'][_0x2eba4b(0x126)])throw new errors[(_0x2eba4b(0x10d))](errors[_0x2eba4b(0x10c)][_0x2eba4b(0x112)],this[_0x2eba4b(0x116)]);const _0x4c96bb=_0x3fc697['code'][_0x2eba4b(0x127)]('\x20');let _0x409200,_0x3f429b;try{_0x409200=_0x3fc697[_0x2eba4b(0x100)]?await this['client'][_0x2eba4b(0x124)][_0x2eba4b(0x114)](_0x4c96bb):eval(_0x4c96bb);if(typeof _0x409200!==_0x2eba4b(0x11b))_0x409200=util_1[_0x2eba4b(0x115)](_0x409200);}catch(_0x188854){_0x3f429b=_0x188854[_0x2eba4b(0x11d)]();}!_0x3fc697[_0x2eba4b(0x123)]&&await _0x3e6a9e[_0x2eba4b(0x102)][_0x2eba4b(0x121)]({'embed':{'color':tesseract_1[_0x2eba4b(0x117)]['COLORS'][_0x2eba4b(0x10b)],'title':_0x2eba4b(0xff),'fields':[{'name':'INPUT','value':'```js\x0a'+this['sanitize'](_0x4c96bb)+'```'},{'name':_0x3f429b?_0x2eba4b(0x104):_0x2eba4b(0x119),'value':_0x2eba4b(0x10e)+this['sanitize'](_0x3f429b?_0x3f429b:_0x409200)+_0x2eba4b(0x111)}]}})[_0x2eba4b(0x110)](_0x4b112e=>{const _0x14e54a=_0x2eba4b;if(_0x3fc697[_0x14e54a(0x125)]){if(_0x3e6a9e['deletable'])_0x3e6a9e[_0x14e54a(0x125)]({'timeout':0x2710})[_0x14e54a(0x108)](()=>{});_0x4b112e[_0x14e54a(0x125)]({'timeout':0x2710})[_0x14e54a(0x108)](()=>{});}});};}}; \ No newline at end of file diff --git a/commands/bot_owner/exec.js b/commands/bot_owner/exec.js index f3c487d06..e9baef5ab 100644 --- a/commands/bot_owner/exec.js +++ b/commands/bot_owner/exec.js @@ -1 +1 @@ -const a5_0x16c1=['```bash\x0a','catch','constructor','BASTION_ERROR_TYPE','exec','DiscordError','length','deletable','COLORS','Evaluator','name','exports','#\x20TIMED\x20OUT','PUPIL','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','apply','```','stdout','INPUT','then','send','Command','promisify','quiet','push','INVALID_COMMAND_SYNTAX','exec\x20--command\x20COMMAND\x20--quiet','stderr','delete','\x0a...','It\x20allows\x20you\x20to\x20execute\x20commands\x20in\x20the\x20terminal\x20where\x20Bastion\x20is\x20running.','exec\x20--command\x20COMMAND','util','OUTPUT','sanitize','../../utils/errors','slice','command','@bastion/tesseract'];(function(_0x5db140,_0x1b3ec5){const _0x16c172=function(_0x431da1){while(--_0x431da1){_0x5db140['push'](_0x5db140['shift']());}},_0xea78cd=function(){const _0x155eec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54eee3,_0x424ba5,_0x3415aa,_0x3151f5){_0x3151f5=_0x3151f5||{};let _0xc4a598=_0x424ba5+'='+_0x3415aa,_0x1c538c=0x0;for(let _0x12d8bd=0x0,_0x410e00=_0x54eee3['length'];_0x12d8bd<_0x410e00;_0x12d8bd++){const _0x3cdc64=_0x54eee3[_0x12d8bd];_0xc4a598+=';\x20'+_0x3cdc64;const _0x17f514=_0x54eee3[_0x3cdc64];_0x54eee3['push'](_0x17f514),_0x410e00=_0x54eee3['length'],_0x17f514!==!![]&&(_0xc4a598+='='+_0x17f514);}_0x3151f5['cookie']=_0xc4a598;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3122df,_0xd673b){_0x3122df=_0x3122df||function(_0x539f63){return _0x539f63;};const _0x392784=_0x3122df(new RegExp('(?:^|;\x20)'+_0xd673b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d2334=function(_0x2c788f,_0x87d1de){_0x2c788f(++_0x87d1de);};return _0x4d2334(_0x16c172,_0x1b3ec5),_0x392784?decodeURIComponent(_0x392784[0x1]):undefined;}},_0x1b4f55=function(){const _0x54f170=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54f170['test'](_0x155eec['removeCookie']['toString']());};_0x155eec['updateCookie']=_0x1b4f55;let _0x5f4bfa='';const _0x103b9e=_0x155eec['updateCookie']();if(!_0x103b9e)_0x155eec['setCookie'](['*'],'counter',0x1);else _0x103b9e?_0x5f4bfa=_0x155eec['getCookie'](null,'counter'):_0x155eec['removeCookie']();};_0xea78cd();}(a5_0x16c1,0x1e4));const a5_0xea78=function(_0x5db140,_0x1b3ec5){_0x5db140=_0x5db140-0xe4;let _0x16c172=a5_0x16c1[_0x5db140];return _0x16c172;};const _0x35c982=a5_0xea78,a5_0x1b4f55=function(){let _0x103b9e=!![];return function(_0x54eee3,_0x424ba5){const _0x3415aa=_0x103b9e?function(){const _0x455972=a5_0xea78;if(_0x424ba5){const _0x3151f5=_0x424ba5[_0x455972(0xfd)](_0x54eee3,arguments);return _0x424ba5=null,_0x3151f5;}}:function(){};return _0x103b9e=![],_0x3415aa;};}(),a5_0x155eec=a5_0x1b4f55(this,function(){const _0xc4a598=function(){const _0x1cad71=a5_0xea78,_0x1c538c=_0xc4a598['constructor'](_0x1cad71(0xfb))()[_0x1cad71(0xee)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1c538c[_0x1cad71(0xfc)](a5_0x155eec);};return _0xc4a598();});a5_0x155eec();'use strict';const tesseract_1=require(_0x35c982(0xeb)),util_1=require(_0x35c982(0xe5)),child_process_1=require('child_process'),errors=require(_0x35c982(0xe8)),exec=util_1[_0x35c982(0x104)](child_process_1['exec']);module[_0x35c982(0xf7)]=class Exec extends tesseract_1[_0x35c982(0x103)]{constructor(){const _0x38b1c1=_0x35c982;super(_0x38b1c1(0xf0),{'description':_0x38b1c1(0x10c),'triggers':[],'arguments':{'alias':{'command':['c'],'delete':['d'],'quiet':['q']},'array':[_0x38b1c1(0xea)],'boolean':[_0x38b1c1(0x10a),_0x38b1c1(0x105)],'string':['command']},'scope':_0x38b1c1(0xfa),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x38b1c1(0xe4),'exec\x20--command\x20COMMAND\x20--delete',_0x38b1c1(0x108)]}),this['sanitize']=_0x12d8bd=>{const _0x298c8b=_0x38b1c1;return _0x12d8bd[_0x298c8b(0xf2)]>0x3e8?_0x12d8bd[_0x298c8b(0xe9)](0x0,0x3e8)+_0x298c8b(0x10b):_0x12d8bd;},this['exec']=async(_0x410e00,_0x3cdc64)=>{const _0xa6239c=_0x38b1c1;if(!_0x3cdc64[_0xa6239c(0xea)]||!_0x3cdc64[_0xa6239c(0xea)][_0xa6239c(0xf2)])throw new errors[(_0xa6239c(0xf1))](errors[_0xa6239c(0xef)][_0xa6239c(0x107)],this[_0xa6239c(0xf6)]);const _0x17f514=_0x3cdc64[_0xa6239c(0xea)]['join']('\x20');let _0x3122df,_0xd673b;await exec(_0x17f514,{'timeout':0xea60})['then'](_0x4d2334=>{const _0xcf758f=_0xa6239c;if(_0x4d2334[_0xcf758f(0xff)])_0x3122df=_0x4d2334['stdout'];if(_0x4d2334[_0xcf758f(0x109)])_0xd673b=_0x4d2334[_0xcf758f(0x109)];})[_0xa6239c(0xed)](_0x539f63=>{const _0xf33955=_0xa6239c;if(_0x539f63[_0xf33955(0xff)])_0x3122df=_0x539f63[_0xf33955(0xff)];if(_0x539f63[_0xf33955(0x109)])_0xd673b=_0x539f63[_0xf33955(0x109)];if(!_0x539f63['stdout']&&!_0x539f63[_0xf33955(0x109)])_0xd673b=_0xf33955(0xf8);});const _0x392784=[{'name':_0xa6239c(0x100),'value':_0xa6239c(0xec)+_0x17f514+_0xa6239c(0xfe)}];_0x3122df&&_0x392784['push']({'name':_0xa6239c(0xe6),'value':_0xa6239c(0xec)+this[_0xa6239c(0xe7)](_0x3122df)+_0xa6239c(0xfe)}),_0xd673b&&_0x392784[_0xa6239c(0x106)]({'name':'ERROR','value':_0xa6239c(0xec)+this[_0xa6239c(0xe7)](_0xd673b)+'```'}),!_0x3cdc64[_0xa6239c(0x105)]&&await _0x410e00['channel'][_0xa6239c(0x102)]({'embed':{'color':tesseract_1['Constants'][_0xa6239c(0xf4)][_0xa6239c(0xf9)],'title':_0xa6239c(0xf5),'fields':_0x392784}})[_0xa6239c(0x101)](_0x2c788f=>{const _0x113f99=_0xa6239c;if(_0x3cdc64[_0x113f99(0x10a)]){if(_0x410e00[_0x113f99(0xf3)])_0x410e00[_0x113f99(0x10a)]({'timeout':0x2710})[_0x113f99(0xed)](()=>{});_0x2c788f[_0x113f99(0x10a)]({'timeout':0x2710})[_0x113f99(0xed)](()=>{});}});};}}; \ No newline at end of file +const a5_0x43f4=['sanitize','```bash\x0a','slice','exec\x20--command\x20COMMAND','../../utils/errors','deletable','It\x20allows\x20you\x20to\x20execute\x20commands\x20in\x20the\x20terminal\x20where\x20Bastion\x20is\x20running.','```','stdout','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','stderr','exports','BASTION_ERROR_TYPE','delete','join','exec\x20--command\x20COMMAND\x20--quiet','Constants','COLORS','exec','Command','\x0a...','util','#\x20TIMED\x20OUT','exec\x20--command\x20COMMAND\x20--delete','push','name','quiet','ERROR','channel','DiscordError','child_process','command','promisify','then','catch','INPUT','PUPIL','Evaluator','test','INVALID_COMMAND_SYNTAX','OUTPUT','length'];(function(_0x53066b,_0x337351){const _0x43f482=function(_0x265d24){while(--_0x265d24){_0x53066b['push'](_0x53066b['shift']());}},_0x2d9eef=function(){const _0x10c2c8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44bf53,_0x563c6c,_0x1898b6,_0x4bfdc0){_0x4bfdc0=_0x4bfdc0||{};let _0x1ca79c=_0x563c6c+'='+_0x1898b6,_0x171369=0x0;for(let _0x1c2c39=0x0,_0x3f7d2d=_0x44bf53['length'];_0x1c2c39<_0x3f7d2d;_0x1c2c39++){const _0x83b84c=_0x44bf53[_0x1c2c39];_0x1ca79c+=';\x20'+_0x83b84c;const _0x535bd1=_0x44bf53[_0x83b84c];_0x44bf53['push'](_0x535bd1),_0x3f7d2d=_0x44bf53['length'],_0x535bd1!==!![]&&(_0x1ca79c+='='+_0x535bd1);}_0x4bfdc0['cookie']=_0x1ca79c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ea086,_0x197b3c){_0x5ea086=_0x5ea086||function(_0x2c15a9){return _0x2c15a9;};const _0x3e4a38=_0x5ea086(new RegExp('(?:^|;\x20)'+_0x197b3c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41d036=function(_0x12db31,_0x5bc015){_0x12db31(++_0x5bc015);};return _0x41d036(_0x43f482,_0x337351),_0x3e4a38?decodeURIComponent(_0x3e4a38[0x1]):undefined;}},_0x52f85a=function(){const _0x54e1a0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54e1a0['test'](_0x10c2c8['removeCookie']['toString']());};_0x10c2c8['updateCookie']=_0x52f85a;let _0x343094='';const _0x2ad11e=_0x10c2c8['updateCookie']();if(!_0x2ad11e)_0x10c2c8['setCookie'](['*'],'counter',0x1);else _0x2ad11e?_0x343094=_0x10c2c8['getCookie'](null,'counter'):_0x10c2c8['removeCookie']();};_0x2d9eef();}(a5_0x43f4,0x138));const a5_0x2d9e=function(_0x53066b,_0x337351){_0x53066b=_0x53066b-0x170;let _0x43f482=a5_0x43f4[_0x53066b];return _0x43f482;};const a5_0x582777=a5_0x2d9e,a5_0x52f85a=function(){let _0x2ad11e=!![];return function(_0x44bf53,_0x563c6c){const _0x1898b6=_0x2ad11e?function(){if(_0x563c6c){const _0x4bfdc0=_0x563c6c['apply'](_0x44bf53,arguments);return _0x563c6c=null,_0x4bfdc0;}}:function(){};return _0x2ad11e=![],_0x1898b6;};}(),a5_0x10c2c8=a5_0x52f85a(this,function(){const _0x1ca79c=function(){const _0x126b31=a5_0x2d9e,_0x171369=_0x1ca79c['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x126b31(0x176));return!_0x171369[_0x126b31(0x194)](a5_0x10c2c8);};return _0x1ca79c();});a5_0x10c2c8();'use strict';const tesseract_1=require(a5_0x582777(0x177)),util_1=require(a5_0x582777(0x183)),child_process_1=require(a5_0x582777(0x18c)),errors=require(a5_0x582777(0x170)),exec=util_1[a5_0x582777(0x18e)](child_process_1[a5_0x582777(0x180)]);module[a5_0x582777(0x179)]=class Exec extends tesseract_1[a5_0x582777(0x181)]{constructor(){const _0x54722a=a5_0x582777;super(_0x54722a(0x180),{'description':_0x54722a(0x172),'triggers':[],'arguments':{'alias':{'command':['c'],'delete':['d'],'quiet':['q']},'array':[_0x54722a(0x18d)],'boolean':[_0x54722a(0x17b),_0x54722a(0x188)],'string':[_0x54722a(0x18d)]},'scope':_0x54722a(0x175),'owner':!![],'unsafe':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x54722a(0x19b),_0x54722a(0x185),_0x54722a(0x17d)]}),this[_0x54722a(0x198)]=_0x1c2c39=>{const _0x4494ff=_0x54722a;return _0x1c2c39[_0x4494ff(0x197)]>0x3e8?_0x1c2c39[_0x4494ff(0x19a)](0x0,0x3e8)+_0x4494ff(0x182):_0x1c2c39;},this['exec']=async(_0x3f7d2d,_0x83b84c)=>{const _0x3580a1=_0x54722a;if(!_0x83b84c[_0x3580a1(0x18d)]||!_0x83b84c[_0x3580a1(0x18d)]['length'])throw new errors[(_0x3580a1(0x18b))](errors[_0x3580a1(0x17a)][_0x3580a1(0x195)],this[_0x3580a1(0x187)]);const _0x535bd1=_0x83b84c[_0x3580a1(0x18d)][_0x3580a1(0x17c)]('\x20');let _0x5ea086,_0x197b3c;await exec(_0x535bd1,{'timeout':0xea60})[_0x3580a1(0x18f)](_0x41d036=>{const _0x18f9c7=_0x3580a1;if(_0x41d036[_0x18f9c7(0x174)])_0x5ea086=_0x41d036[_0x18f9c7(0x174)];if(_0x41d036[_0x18f9c7(0x178)])_0x197b3c=_0x41d036[_0x18f9c7(0x178)];})[_0x3580a1(0x190)](_0x2c15a9=>{const _0x3a6fbd=_0x3580a1;if(_0x2c15a9[_0x3a6fbd(0x174)])_0x5ea086=_0x2c15a9[_0x3a6fbd(0x174)];if(_0x2c15a9[_0x3a6fbd(0x178)])_0x197b3c=_0x2c15a9[_0x3a6fbd(0x178)];if(!_0x2c15a9[_0x3a6fbd(0x174)]&&!_0x2c15a9[_0x3a6fbd(0x178)])_0x197b3c=_0x3a6fbd(0x184);});const _0x3e4a38=[{'name':_0x3580a1(0x191),'value':_0x3580a1(0x199)+_0x535bd1+'```'}];_0x5ea086&&_0x3e4a38[_0x3580a1(0x186)]({'name':_0x3580a1(0x196),'value':_0x3580a1(0x199)+this['sanitize'](_0x5ea086)+_0x3580a1(0x173)}),_0x197b3c&&_0x3e4a38[_0x3580a1(0x186)]({'name':_0x3580a1(0x189),'value':_0x3580a1(0x199)+this['sanitize'](_0x197b3c)+_0x3580a1(0x173)}),!_0x83b84c[_0x3580a1(0x188)]&&await _0x3f7d2d[_0x3580a1(0x18a)]['send']({'embed':{'color':tesseract_1[_0x3580a1(0x17e)][_0x3580a1(0x17f)][_0x3580a1(0x192)],'title':_0x3580a1(0x193),'fields':_0x3e4a38}})[_0x3580a1(0x18f)](_0x12db31=>{const _0x336445=_0x3580a1;if(_0x83b84c[_0x336445(0x17b)]){if(_0x3f7d2d[_0x336445(0x171)])_0x3f7d2d['delete']({'timeout':0x2710})[_0x336445(0x190)](()=>{});_0x12db31[_0x336445(0x17b)]({'timeout':0x2710})[_0x336445(0x190)](()=>{});}});};}}; \ No newline at end of file diff --git a/commands/bot_owner/relayDirectMessages.js b/commands/bot_owner/relayDirectMessages.js index 22ce2ae4b..730bd3871 100644 --- a/commands/bot_owner/relayDirectMessages.js +++ b/commands/bot_owner/relayDirectMessages.js @@ -1 +1 @@ -const a6_0x1bab=['channel','constructor','catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user','Command','directMessagesRelayDisable','getString','exports','Direct\x20Messages\x20Relay','locale','test','relayDMs','@bastion/tesseract','relayDirectMessages','send','tag','exec','document','guild','GREEN','client','info','directMessagesRelayEnable','save','Constants','default','author'];(function(_0x4c9796,_0x3e75e8){const _0x1bab6c=function(_0x1a96b9){while(--_0x1a96b9){_0x4c9796['push'](_0x4c9796['shift']());}},_0x1e6194=function(){const _0x5e4a65={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f9b6c,_0x13a918,_0x438b5a,_0x4cdbc0){_0x4cdbc0=_0x4cdbc0||{};let _0x3c43cc=_0x13a918+'='+_0x438b5a,_0x584cf4=0x0;for(let _0xda8150=0x0,_0x4c7f53=_0x2f9b6c['length'];_0xda8150<_0x4c7f53;_0xda8150++){const _0x574a64=_0x2f9b6c[_0xda8150];_0x3c43cc+=';\x20'+_0x574a64;const _0x5bbb36=_0x2f9b6c[_0x574a64];_0x2f9b6c['push'](_0x5bbb36),_0x4c7f53=_0x2f9b6c['length'],_0x5bbb36!==!![]&&(_0x3c43cc+='='+_0x5bbb36);}_0x4cdbc0['cookie']=_0x3c43cc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5da1e8,_0x61ed01){_0x5da1e8=_0x5da1e8||function(_0x28c960){return _0x28c960;};const _0x215de0=_0x5da1e8(new RegExp('(?:^|;\x20)'+_0x61ed01['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x408c9c=function(_0x12fd71,_0x19073b){_0x12fd71(++_0x19073b);};return _0x408c9c(_0x1bab6c,_0x3e75e8),_0x215de0?decodeURIComponent(_0x215de0[0x1]):undefined;}},_0x3bc8de=function(){const _0xcb6b8d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcb6b8d['test'](_0x5e4a65['removeCookie']['toString']());};_0x5e4a65['updateCookie']=_0x3bc8de;let _0x35c06f='';const _0x1ef953=_0x5e4a65['updateCookie']();if(!_0x1ef953)_0x5e4a65['setCookie'](['*'],'counter',0x1);else _0x1ef953?_0x35c06f=_0x5e4a65['getCookie'](null,'counter'):_0x5e4a65['removeCookie']();};_0x1e6194();}(a6_0x1bab,0x73));const a6_0x1e61=function(_0x4c9796,_0x3e75e8){_0x4c9796=_0x4c9796-0x84;let _0x1bab6c=a6_0x1bab[_0x4c9796];return _0x1bab6c;};const _0x1a6217=a6_0x1e61,a6_0x3bc8de=function(){let _0x1ef953=!![];return function(_0x2f9b6c,_0x13a918){const _0x438b5a=_0x1ef953?function(){if(_0x13a918){const _0x4cdbc0=_0x13a918['apply'](_0x2f9b6c,arguments);return _0x13a918=null,_0x4cdbc0;}}:function(){};return _0x1ef953=![],_0x438b5a;};}(),a6_0x5e4a65=a6_0x3bc8de(this,function(){const _0x3c43cc=function(){const _0x151f8d=a6_0x1e61,_0x584cf4=_0x3c43cc['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x151f8d(0x9e)](_0x151f8d(0x84));return!_0x584cf4[_0x151f8d(0x8c)](a6_0x5e4a65);};return _0x3c43cc();});a6_0x5e4a65();'use strict';const tesseract_1=require(_0x1a6217(0x8e)),Config_1=require('../../models/Config');module[_0x1a6217(0x89)]=class RelayDirectMessages extends tesseract_1[_0x1a6217(0x86)]{constructor(){const _0x3284b1=_0x1a6217;super(_0x3284b1(0x8f),{'description':'It\x20allows\x20you\x20to\x20toggle\x20Bastion\x27s\x20Direct\x20Message\x20Relay.\x20If\x20enabled,\x20Bastion\x20will\x20relay\x20all\x20direct\x20messages\x20to\x20the\x20bot\x20owners.','triggers':[_0x3284b1(0x8d)],'arguments':{},'scope':_0x3284b1(0x94),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x3284b1(0x92)]=async _0xda8150=>{const _0x59cc79=_0x3284b1,_0x4c7f53=await Config_1[_0x59cc79(0x9b)]['findById'](this[_0x59cc79(0x96)][_0x59cc79(0x85)]['id']);_0x4c7f53['relayDirectMessages']=_0x4c7f53['relayDirectMessages']?undefined:!![],await _0x4c7f53[_0x59cc79(0x99)](),await _0xda8150[_0x59cc79(0x9d)][_0x59cc79(0x90)]({'embed':{'color':_0x4c7f53[_0x59cc79(0x8f)]?tesseract_1[_0x59cc79(0x9a)]['COLORS'][_0x59cc79(0x95)]:tesseract_1[_0x59cc79(0x9a)]['COLORS']['RED'],'title':_0x59cc79(0x8a),'description':this[_0x59cc79(0x96)][_0x59cc79(0x8b)][_0x59cc79(0x88)](_0xda8150['guild'][_0x59cc79(0x93)]['language'],_0x59cc79(0x97),_0x4c7f53['relayDirectMessages']?_0x59cc79(0x98):_0x59cc79(0x87),_0xda8150[_0x59cc79(0x9c)][_0x59cc79(0x91)])}})[_0x59cc79(0x9f)](()=>{});};}}; \ No newline at end of file +const a6_0x10e8=['COLORS','author','send','exports','catch','info','language','constructor','exec','tag','document','default','test','channel','GREEN','return\x20/\x22\x20+\x20this\x20+\x20\x22/','RED','../../models/Config','It\x20allows\x20you\x20to\x20toggle\x20Bastion\x27s\x20Direct\x20Message\x20Relay.\x20If\x20enabled,\x20Bastion\x20will\x20relay\x20all\x20direct\x20messages\x20to\x20the\x20bot\x20owners.','Constants','getString','findById','locale','client','relayDirectMessages','guild','Command','directMessagesRelayDisable','directMessagesRelayEnable','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x284678,_0x1860ce){const _0x10e86a=function(_0x8332da){while(--_0x8332da){_0x284678['push'](_0x284678['shift']());}},_0x220115=function(){const _0x570a78={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2b94f7,_0x5be367,_0x3075fe,_0x5f55a7){_0x5f55a7=_0x5f55a7||{};let _0xa88f68=_0x5be367+'='+_0x3075fe,_0x310b24=0x0;for(let _0x1b21cd=0x0,_0x4b0b37=_0x2b94f7['length'];_0x1b21cd<_0x4b0b37;_0x1b21cd++){const _0x55c43d=_0x2b94f7[_0x1b21cd];_0xa88f68+=';\x20'+_0x55c43d;const _0x3f0bd3=_0x2b94f7[_0x55c43d];_0x2b94f7['push'](_0x3f0bd3),_0x4b0b37=_0x2b94f7['length'],_0x3f0bd3!==!![]&&(_0xa88f68+='='+_0x3f0bd3);}_0x5f55a7['cookie']=_0xa88f68;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4b854d,_0x2b8726){_0x4b854d=_0x4b854d||function(_0x3a13f5){return _0x3a13f5;};const _0x390f5b=_0x4b854d(new RegExp('(?:^|;\x20)'+_0x2b8726['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x6361b3=function(_0x3b946c,_0x1e469a){_0x3b946c(++_0x1e469a);};return _0x6361b3(_0x10e86a,_0x1860ce),_0x390f5b?decodeURIComponent(_0x390f5b[0x1]):undefined;}},_0x5cb24d=function(){const _0x9ccd27=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9ccd27['test'](_0x570a78['removeCookie']['toString']());};_0x570a78['updateCookie']=_0x5cb24d;let _0xdbb116='';const _0x1e5f76=_0x570a78['updateCookie']();if(!_0x1e5f76)_0x570a78['setCookie'](['*'],'counter',0x1);else _0x1e5f76?_0xdbb116=_0x570a78['getCookie'](null,'counter'):_0x570a78['removeCookie']();};_0x220115();}(a6_0x10e8,0xc6));const a6_0x2201=function(_0x284678,_0x1860ce){_0x284678=_0x284678-0x1d8;let _0x10e86a=a6_0x10e8[_0x284678];return _0x10e86a;};const a6_0x54c424=a6_0x2201,a6_0x5cb24d=function(){let _0x1e5f76=!![];return function(_0x2b94f7,_0x5be367){const _0x3075fe=_0x1e5f76?function(){if(_0x5be367){const _0x5f55a7=_0x5be367['apply'](_0x2b94f7,arguments);return _0x5be367=null,_0x5f55a7;}}:function(){};return _0x1e5f76=![],_0x3075fe;};}(),a6_0x570a78=a6_0x5cb24d(this,function(){const _0xa88f68=function(){const _0x492c4d=a6_0x2201,_0x310b24=_0xa88f68[_0x492c4d(0x1eb)](_0x492c4d(0x1f3))()[_0x492c4d(0x1eb)](_0x492c4d(0x1e3));return!_0x310b24[_0x492c4d(0x1f0)](a6_0x570a78);};return _0xa88f68();});a6_0x570a78();'use strict';const tesseract_1=require('@bastion/tesseract'),Config_1=require(a6_0x54c424(0x1f5));module[a6_0x54c424(0x1e7)]=class RelayDirectMessages extends tesseract_1[a6_0x54c424(0x1e0)]{constructor(){const _0x340e3c=a6_0x54c424;super('relayDirectMessages',{'description':_0x340e3c(0x1d8),'triggers':['relayDMs'],'arguments':{},'scope':_0x340e3c(0x1df),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x340e3c(0x1ec)]=async _0x1b21cd=>{const _0x194081=_0x340e3c,_0x4b0b37=await Config_1[_0x194081(0x1ef)][_0x194081(0x1db)](this[_0x194081(0x1dd)]['user']['id']);_0x4b0b37[_0x194081(0x1de)]=_0x4b0b37[_0x194081(0x1de)]?undefined:!![],await _0x4b0b37['save'](),await _0x1b21cd[_0x194081(0x1f1)][_0x194081(0x1e6)]({'embed':{'color':_0x4b0b37[_0x194081(0x1de)]?tesseract_1[_0x194081(0x1d9)][_0x194081(0x1e4)][_0x194081(0x1f2)]:tesseract_1[_0x194081(0x1d9)]['COLORS'][_0x194081(0x1f4)],'title':'Direct\x20Messages\x20Relay','description':this[_0x194081(0x1dd)][_0x194081(0x1dc)][_0x194081(0x1da)](_0x1b21cd[_0x194081(0x1df)][_0x194081(0x1ee)][_0x194081(0x1ea)],_0x194081(0x1e9),_0x4b0b37[_0x194081(0x1de)]?_0x194081(0x1e2):_0x194081(0x1e1),_0x1b21cd[_0x194081(0x1e5)][_0x194081(0x1ed)])}})[_0x194081(0x1e8)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/reloadSettings.js b/commands/bot_owner/reloadSettings.js index 05d20e08d..3a53592ad 100644 --- a/commands/bot_owner/reloadSettings.js +++ b/commands/bot_owner/reloadSettings.js @@ -1 +1 @@ -const a7_0x4511=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','settingsReload','guild','test','document','channel','tag','info','It\x20allows\x20you\x20to\x20reload\x20Bastion\x27s\x20settings\x20without\x20needing\x20to\x20restart\x20Bastion.','shard','reloadSettings','Constants','locale','client','constructor','exec','@bastion/tesseract','send','broadcastEval','author','COLORS','PUPIL','catch'];(function(_0x59236c,_0x2be7b2){const _0x451167=function(_0x4d1039){while(--_0x4d1039){_0x59236c['push'](_0x59236c['shift']());}},_0x128986=function(){const _0x543ba8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13bd61,_0x4a0e2f,_0x290d46,_0x5c68c7){_0x5c68c7=_0x5c68c7||{};let _0x1e04e2=_0x4a0e2f+'='+_0x290d46,_0x20528d=0x0;for(let _0x855218=0x0,_0x2690c1=_0x13bd61['length'];_0x855218<_0x2690c1;_0x855218++){const _0x3a9514=_0x13bd61[_0x855218];_0x1e04e2+=';\x20'+_0x3a9514;const _0x1fb8ac=_0x13bd61[_0x3a9514];_0x13bd61['push'](_0x1fb8ac),_0x2690c1=_0x13bd61['length'],_0x1fb8ac!==!![]&&(_0x1e04e2+='='+_0x1fb8ac);}_0x5c68c7['cookie']=_0x1e04e2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4cf3aa,_0x123df3){_0x4cf3aa=_0x4cf3aa||function(_0x28807d){return _0x28807d;};const _0x5b5048=_0x4cf3aa(new RegExp('(?:^|;\x20)'+_0x123df3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f8b85=function(_0x585796,_0x32da7f){_0x585796(++_0x32da7f);};return _0x1f8b85(_0x451167,_0x2be7b2),_0x5b5048?decodeURIComponent(_0x5b5048[0x1]):undefined;}},_0x52e6d3=function(){const _0x5bd1e9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5bd1e9['test'](_0x543ba8['removeCookie']['toString']());};_0x543ba8['updateCookie']=_0x52e6d3;let _0x547c78='';const _0x564cd6=_0x543ba8['updateCookie']();if(!_0x564cd6)_0x543ba8['setCookie'](['*'],'counter',0x1);else _0x564cd6?_0x547c78=_0x543ba8['getCookie'](null,'counter'):_0x543ba8['removeCookie']();};_0x128986();}(a7_0x4511,0xf9));const a7_0x1289=function(_0x59236c,_0x2be7b2){_0x59236c=_0x59236c-0xd7;let _0x451167=a7_0x4511[_0x59236c];return _0x451167;};const _0x223b8b=a7_0x1289,a7_0x52e6d3=function(){let _0x564cd6=!![];return function(_0x13bd61,_0x4a0e2f){const _0x290d46=_0x564cd6?function(){const _0x7f7356=a7_0x1289;if(_0x4a0e2f){const _0x5c68c7=_0x4a0e2f[_0x7f7356(0xe7)](_0x13bd61,arguments);return _0x4a0e2f=null,_0x5c68c7;}}:function(){};return _0x564cd6=![],_0x290d46;};}(),a7_0x543ba8=a7_0x52e6d3(this,function(){const _0x1e04e2=function(){const _0x865894=a7_0x1289,_0x20528d=_0x1e04e2[_0x865894(0xdd)](_0x865894(0xe6))()[_0x865894(0xdd)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x20528d[_0x865894(0xea)](a7_0x543ba8);};return _0x1e04e2();});a7_0x543ba8();'use strict';const tesseract_1=require(_0x223b8b(0xdf));module['exports']=class ReloadSettings extends tesseract_1['Command']{constructor(){const _0x4bf714=_0x223b8b;super(_0x4bf714(0xd9),{'description':_0x4bf714(0xd7),'triggers':[],'arguments':{},'scope':_0x4bf714(0xe9),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x4bf714(0xde)]=async _0x855218=>{const _0x5692cb=_0x4bf714;this[_0x5692cb(0xdc)][_0x5692cb(0xd8)][_0x5692cb(0xe1)]('this.loadSettings()'),await _0x855218[_0x5692cb(0xec)][_0x5692cb(0xe0)]({'embed':{'color':tesseract_1[_0x5692cb(0xda)][_0x5692cb(0xe3)][_0x5692cb(0xe4)],'description':this['client'][_0x5692cb(0xdb)]['getString'](_0x855218[_0x5692cb(0xe9)][_0x5692cb(0xeb)]['language'],_0x5692cb(0xee),_0x5692cb(0xe8),_0x855218[_0x5692cb(0xe2)][_0x5692cb(0xed)])}})[_0x5692cb(0xe5)](()=>{});};}}; \ No newline at end of file +const a7_0xae22=['exec','Command','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','this.loadSettings()','info','test','author','COLORS','locale','send','channel','settingsReload','catch','Constants','broadcastEval','reloadSettings','It\x20allows\x20you\x20to\x20reload\x20Bastion\x27s\x20settings\x20without\x20needing\x20to\x20restart\x20Bastion.','shard','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','apply','client','language','guild','constructor'];(function(_0x23f1f8,_0x2f67a3){const _0xae2293=function(_0x37193a){while(--_0x37193a){_0x23f1f8['push'](_0x23f1f8['shift']());}},_0x3627e2=function(){const _0x2fd881={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3bba4c,_0x45af00,_0x9d496e,_0x5834dc){_0x5834dc=_0x5834dc||{};let _0x22325d=_0x45af00+'='+_0x9d496e,_0x2c8c31=0x0;for(let _0x3d00a2=0x0,_0x16b57d=_0x3bba4c['length'];_0x3d00a2<_0x16b57d;_0x3d00a2++){const _0x48c8ef=_0x3bba4c[_0x3d00a2];_0x22325d+=';\x20'+_0x48c8ef;const _0x3b3755=_0x3bba4c[_0x48c8ef];_0x3bba4c['push'](_0x3b3755),_0x16b57d=_0x3bba4c['length'],_0x3b3755!==!![]&&(_0x22325d+='='+_0x3b3755);}_0x5834dc['cookie']=_0x22325d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a6058,_0x13e2a5){_0x3a6058=_0x3a6058||function(_0x411581){return _0x411581;};const _0xc78e68=_0x3a6058(new RegExp('(?:^|;\x20)'+_0x13e2a5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f4ae9=function(_0x40caa3,_0x3ee514){_0x40caa3(++_0x3ee514);};return _0x4f4ae9(_0xae2293,_0x2f67a3),_0xc78e68?decodeURIComponent(_0xc78e68[0x1]):undefined;}},_0x24cbd7=function(){const _0x305652=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x305652['test'](_0x2fd881['removeCookie']['toString']());};_0x2fd881['updateCookie']=_0x24cbd7;let _0x397252='';const _0x5f3470=_0x2fd881['updateCookie']();if(!_0x5f3470)_0x2fd881['setCookie'](['*'],'counter',0x1);else _0x5f3470?_0x397252=_0x2fd881['getCookie'](null,'counter'):_0x2fd881['removeCookie']();};_0x3627e2();}(a7_0xae22,0x7f));const a7_0x3627=function(_0x23f1f8,_0x2f67a3){_0x23f1f8=_0x23f1f8-0xb4;let _0xae2293=a7_0xae22[_0x23f1f8];return _0xae2293;};const a7_0x4f6112=a7_0x3627,a7_0x24cbd7=function(){let _0x5f3470=!![];return function(_0x3bba4c,_0x45af00){const _0x9d496e=_0x5f3470?function(){const _0x971366=a7_0x3627;if(_0x45af00){const _0x5834dc=_0x45af00[_0x971366(0xc6)](_0x3bba4c,arguments);return _0x45af00=null,_0x5834dc;}}:function(){};return _0x5f3470=![],_0x9d496e;};}(),a7_0x2fd881=a7_0x24cbd7(this,function(){const _0x22325d=function(){const _0x1a3482=a7_0x3627,_0x2c8c31=_0x22325d[_0x1a3482(0xca)](_0x1a3482(0xc4))()['constructor'](_0x1a3482(0xb4));return!_0x2c8c31[_0x1a3482(0xb7)](a7_0x2fd881);};return _0x22325d();});a7_0x2fd881();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class ReloadSettings extends tesseract_1[a7_0x4f6112(0xcc)]{constructor(){const _0x456be2=a7_0x4f6112;super(_0x456be2(0xc1),{'description':_0x456be2(0xc2),'triggers':[],'arguments':{},'scope':_0x456be2(0xc9),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x456be2(0xcb)]=async _0x3d00a2=>{const _0x599785=_0x456be2;this[_0x599785(0xc7)][_0x599785(0xc3)][_0x599785(0xc0)](_0x599785(0xb5)),await _0x3d00a2[_0x599785(0xbc)][_0x599785(0xbb)]({'embed':{'color':tesseract_1[_0x599785(0xbf)][_0x599785(0xb9)]['PUPIL'],'description':this[_0x599785(0xc7)][_0x599785(0xba)]['getString'](_0x3d00a2['guild'][_0x599785(0xc5)][_0x599785(0xc8)],_0x599785(0xb6),_0x599785(0xbd),_0x3d00a2[_0x599785(0xb8)]['tag'])}})[_0x599785(0xbe)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setAvatar.js b/commands/bot_owner/setAvatar.js index 9b2657f25..be93bfdc8 100644 --- a/commands/bot_owner/setAvatar.js +++ b/commands/bot_owner/setAvatar.js @@ -1 +1 @@ -const a8_0x31de=['URL','Constants','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','send','catch','getString','displayAvatarURL','INVALID_COMMAND_SYNTAX','attachments','author','name','COLORS','PUPIL','client','channel','height','BASTION_ERROR_TYPE','ArgumentTypes','locale','language','Command','first','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','setAvatar\x20--image\x20LINK','setAvatar','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20avatar\x20directly\x20from\x20Discord.','exports','updateAvatar','width','info','image','test'];(function(_0x1ebd42,_0x2d4a7a){const _0x31de6c=function(_0x2c6476){while(--_0x2c6476){_0x1ebd42['push'](_0x1ebd42['shift']());}},_0x31e4a5=function(){const _0x188b20={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xc7a848,_0x46fdc7,_0x129bed,_0x3cbb0b){_0x3cbb0b=_0x3cbb0b||{};let _0x5e8ee6=_0x46fdc7+'='+_0x129bed,_0x4846cd=0x0;for(let _0x37d6ec=0x0,_0x5d2afc=_0xc7a848['length'];_0x37d6ec<_0x5d2afc;_0x37d6ec++){const _0x31f1e9=_0xc7a848[_0x37d6ec];_0x5e8ee6+=';\x20'+_0x31f1e9;const _0x4cbaf5=_0xc7a848[_0x31f1e9];_0xc7a848['push'](_0x4cbaf5),_0x5d2afc=_0xc7a848['length'],_0x4cbaf5!==!![]&&(_0x5e8ee6+='='+_0x4cbaf5);}_0x3cbb0b['cookie']=_0x5e8ee6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x425cdc,_0x71c9cf){_0x425cdc=_0x425cdc||function(_0x5950ba){return _0x5950ba;};const _0x1ab0ea=_0x425cdc(new RegExp('(?:^|;\x20)'+_0x71c9cf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x58cc5c=function(_0x33dfe0,_0x5a25ca){_0x33dfe0(++_0x5a25ca);};return _0x58cc5c(_0x31de6c,_0x2d4a7a),_0x1ab0ea?decodeURIComponent(_0x1ab0ea[0x1]):undefined;}},_0x425553=function(){const _0x18694d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x18694d['test'](_0x188b20['removeCookie']['toString']());};_0x188b20['updateCookie']=_0x425553;let _0x3214d0='';const _0x245fcc=_0x188b20['updateCookie']();if(!_0x245fcc)_0x188b20['setCookie'](['*'],'counter',0x1);else _0x245fcc?_0x3214d0=_0x188b20['getCookie'](null,'counter'):_0x188b20['removeCookie']();};_0x31e4a5();}(a8_0x31de,0x1cf));const a8_0x31e4=function(_0x1ebd42,_0x2d4a7a){_0x1ebd42=_0x1ebd42-0x7a;let _0x31de6c=a8_0x31de[_0x1ebd42];return _0x31de6c;};const _0x3e6981=a8_0x31e4,a8_0x425553=function(){let _0x245fcc=!![];return function(_0xc7a848,_0x46fdc7){const _0x129bed=_0x245fcc?function(){if(_0x46fdc7){const _0x3cbb0b=_0x46fdc7['apply'](_0xc7a848,arguments);return _0x46fdc7=null,_0x3cbb0b;}}:function(){};return _0x245fcc=![],_0x129bed;};}(),a8_0x188b20=a8_0x425553(this,function(){const _0x5e8ee6=function(){const _0x2397d6=a8_0x31e4,_0x4846cd=_0x5e8ee6[_0x2397d6(0x7b)](_0x2397d6(0x7c))()['constructor'](_0x2397d6(0x90));return!_0x4846cd[_0x2397d6(0x99)](a8_0x188b20);};return _0x5e8ee6();});a8_0x188b20();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module[_0x3e6981(0x94)]=class SetAvatar extends tesseract_1[_0x3e6981(0x8e)]{constructor(){const _0x5ac33a=_0x3e6981;super(_0x5ac33a(0x92),{'description':_0x5ac33a(0x93),'triggers':[],'arguments':{'coerce':{'image':tesseract_1[_0x5ac33a(0x7a)][_0x5ac33a(0x8b)][_0x5ac33a(0x9a)]}},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5ac33a(0x91)]}),this['exec']=async(_0x37d6ec,_0x5d2afc)=>{const _0x3b3ea1=_0x5ac33a,_0x31f1e9=_0x37d6ec[_0x3b3ea1(0x82)][_0x3b3ea1(0x8f)]();if(!_0x5d2afc['image']||!(_0x31f1e9[_0x3b3ea1(0x89)]&&_0x31f1e9[_0x3b3ea1(0x96)]))throw new errors['DiscordError'](errors[_0x3b3ea1(0x8a)][_0x3b3ea1(0x81)],this[_0x3b3ea1(0x84)]);await this[_0x3b3ea1(0x87)]['user'][_0x3b3ea1(0x92)](_0x5d2afc[_0x3b3ea1(0x98)]),await _0x37d6ec[_0x3b3ea1(0x88)][_0x3b3ea1(0x7d)]({'embed':{'color':tesseract_1['Constants'][_0x3b3ea1(0x85)][_0x3b3ea1(0x86)],'description':this['client'][_0x3b3ea1(0x8c)][_0x3b3ea1(0x7f)](_0x37d6ec['guild']['document'][_0x3b3ea1(0x8d)],_0x3b3ea1(0x97),_0x3b3ea1(0x95),_0x37d6ec[_0x3b3ea1(0x83)]['tag']),'image':{'url':this['client']['user'][_0x3b3ea1(0x80)]({'dynamic':!![],'size':0x100})}}})[_0x3b3ea1(0x7e)](()=>{});};}}; \ No newline at end of file +const a8_0x4988=['language','constructor','../../utils/errors','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','width','height','getString','exec','locale','INVALID_COMMAND_SYNTAX','ArgumentTypes','URL','first','displayAvatarURL','image','Command','guild','apply','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','Constants','tag','BASTION_ERROR_TYPE','setAvatar','send','user','channel','DiscordError','info','attachments','setAvatar\x20--image\x20LINK'];(function(_0x42c04a,_0x4daea9){const _0x4988d2=function(_0x5eee1a){while(--_0x5eee1a){_0x42c04a['push'](_0x42c04a['shift']());}},_0x464692=function(){const _0x2c3f18={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ad933,_0x46c3f9,_0x2163d6,_0x5dc5f8){_0x5dc5f8=_0x5dc5f8||{};let _0x35c0a3=_0x46c3f9+'='+_0x2163d6,_0x22d685=0x0;for(let _0x5d9676=0x0,_0x373d1a=_0x5ad933['length'];_0x5d9676<_0x373d1a;_0x5d9676++){const _0x32f2ef=_0x5ad933[_0x5d9676];_0x35c0a3+=';\x20'+_0x32f2ef;const _0x1b51ee=_0x5ad933[_0x32f2ef];_0x5ad933['push'](_0x1b51ee),_0x373d1a=_0x5ad933['length'],_0x1b51ee!==!![]&&(_0x35c0a3+='='+_0x1b51ee);}_0x5dc5f8['cookie']=_0x35c0a3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x10a4b7,_0x5e7b0f){_0x10a4b7=_0x10a4b7||function(_0x124709){return _0x124709;};const _0x38cbbb=_0x10a4b7(new RegExp('(?:^|;\x20)'+_0x5e7b0f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xbbd805=function(_0x475fe8,_0x3e3378){_0x475fe8(++_0x3e3378);};return _0xbbd805(_0x4988d2,_0x4daea9),_0x38cbbb?decodeURIComponent(_0x38cbbb[0x1]):undefined;}},_0x4b4ee6=function(){const _0x540e52=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x540e52['test'](_0x2c3f18['removeCookie']['toString']());};_0x2c3f18['updateCookie']=_0x4b4ee6;let _0x4a8aba='';const _0x45b138=_0x2c3f18['updateCookie']();if(!_0x45b138)_0x2c3f18['setCookie'](['*'],'counter',0x1);else _0x45b138?_0x4a8aba=_0x2c3f18['getCookie'](null,'counter'):_0x2c3f18['removeCookie']();};_0x464692();}(a8_0x4988,0x1b1));const a8_0x4646=function(_0x42c04a,_0x4daea9){_0x42c04a=_0x42c04a-0x136;let _0x4988d2=a8_0x4988[_0x42c04a];return _0x4988d2;};const a8_0x2d033f=a8_0x4646,a8_0x4b4ee6=function(){let _0x45b138=!![];return function(_0x5ad933,_0x46c3f9){const _0x2163d6=_0x45b138?function(){const _0x5ee455=a8_0x4646;if(_0x46c3f9){const _0x5dc5f8=_0x46c3f9[_0x5ee455(0x152)](_0x5ad933,arguments);return _0x46c3f9=null,_0x5dc5f8;}}:function(){};return _0x45b138=![],_0x2163d6;};}(),a8_0x2c3f18=a8_0x4b4ee6(this,function(){const _0x35c0a3=function(){const _0xfcf337=a8_0x4646,_0x22d685=_0x35c0a3['constructor'](_0xfcf337(0x154))()[_0xfcf337(0x140)](_0xfcf337(0x143));return!_0x22d685['test'](a8_0x2c3f18);};return _0x35c0a3();});a8_0x2c3f18();'use strict';const tesseract_1=require(a8_0x2d033f(0x142)),errors=require(a8_0x2d033f(0x141));module[a8_0x2d033f(0x153)]=class SetAvatar extends tesseract_1[a8_0x2d033f(0x150)]{constructor(){const _0x1a79bc=a8_0x2d033f;super('setAvatar',{'description':'It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20avatar\x20directly\x20from\x20Discord.','triggers':[],'arguments':{'coerce':{'image':tesseract_1[_0x1a79bc(0x156)][_0x1a79bc(0x14b)][_0x1a79bc(0x14c)]}},'scope':_0x1a79bc(0x151),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1a79bc(0x13e)]}),this[_0x1a79bc(0x148)]=async(_0x5d9676,_0x373d1a)=>{const _0x4bb636=_0x1a79bc,_0x32f2ef=_0x5d9676[_0x4bb636(0x13d)][_0x4bb636(0x14d)]();if(!_0x373d1a['image']||!(_0x32f2ef[_0x4bb636(0x146)]&&_0x32f2ef[_0x4bb636(0x145)]))throw new errors[(_0x4bb636(0x13b))](errors[_0x4bb636(0x136)][_0x4bb636(0x14a)],this['name']);await this['client']['user'][_0x4bb636(0x137)](_0x373d1a[_0x4bb636(0x14f)]),await _0x5d9676[_0x4bb636(0x13a)][_0x4bb636(0x138)]({'embed':{'color':tesseract_1[_0x4bb636(0x156)]['COLORS']['PUPIL'],'description':this[_0x4bb636(0x155)][_0x4bb636(0x149)][_0x4bb636(0x147)](_0x5d9676[_0x4bb636(0x151)]['document'][_0x4bb636(0x13f)],_0x4bb636(0x13c),'updateAvatar',_0x5d9676['author'][_0x4bb636(0x157)]),'image':{'url':this[_0x4bb636(0x155)][_0x4bb636(0x139)][_0x4bb636(0x14e)]({'dynamic':!![],'size':0x100})}}})[_0x4bb636(0x144)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setNick.js b/commands/bot_owner/setNick.js index 108270bb3..6e4b7ae83 100644 --- a/commands/bot_owner/setNick.js +++ b/commands/bot_owner/setNick.js @@ -1 +1 @@ -const a9_0xbf9c=['setNick\x20NICKNAME','apply','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','PUPIL','COLORS','test','document','author','@bastion/tesseract','setNickname','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','info','tag','send','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20nickname\x20in\x20the\x20server.','join','guild','Command','language','Constants','exports','setNick'];(function(_0x13faf9,_0x1fd5c7){const _0xbf9c1c=function(_0x1d008b){while(--_0x1d008b){_0x13faf9['push'](_0x13faf9['shift']());}},_0x59a017=function(){const _0x161db3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f81c4,_0x533f54,_0x1d1cde,_0x558ede){_0x558ede=_0x558ede||{};let _0xa670d1=_0x533f54+'='+_0x1d1cde,_0x2b5bea=0x0;for(let _0x3bea26=0x0,_0x4c74d7=_0x2f81c4['length'];_0x3bea26<_0x4c74d7;_0x3bea26++){const _0xd11cbb=_0x2f81c4[_0x3bea26];_0xa670d1+=';\x20'+_0xd11cbb;const _0x135451=_0x2f81c4[_0xd11cbb];_0x2f81c4['push'](_0x135451),_0x4c74d7=_0x2f81c4['length'],_0x135451!==!![]&&(_0xa670d1+='='+_0x135451);}_0x558ede['cookie']=_0xa670d1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3839bc,_0x5c235c){_0x3839bc=_0x3839bc||function(_0x111f65){return _0x111f65;};const _0x2573c9=_0x3839bc(new RegExp('(?:^|;\x20)'+_0x5c235c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x81a483=function(_0x23b8ac,_0x2b735b){_0x23b8ac(++_0x2b735b);};return _0x81a483(_0xbf9c1c,_0x1fd5c7),_0x2573c9?decodeURIComponent(_0x2573c9[0x1]):undefined;}},_0x5d709f=function(){const _0x895ad1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x895ad1['test'](_0x161db3['removeCookie']['toString']());};_0x161db3['updateCookie']=_0x5d709f;let _0x1119f5='';const _0x54cf91=_0x161db3['updateCookie']();if(!_0x54cf91)_0x161db3['setCookie'](['*'],'counter',0x1);else _0x54cf91?_0x1119f5=_0x161db3['getCookie'](null,'counter'):_0x161db3['removeCookie']();};_0x59a017();}(a9_0xbf9c,0x11f));const a9_0x59a0=function(_0x13faf9,_0x1fd5c7){_0x13faf9=_0x13faf9-0x103;let _0xbf9c1c=a9_0xbf9c[_0x13faf9];return _0xbf9c1c;};const _0x21bc07=a9_0x59a0,a9_0x5d709f=function(){let _0x54cf91=!![];return function(_0x2f81c4,_0x533f54){const _0x1d1cde=_0x54cf91?function(){const _0x48b36b=a9_0x59a0;if(_0x533f54){const _0x558ede=_0x533f54[_0x48b36b(0x110)](_0x2f81c4,arguments);return _0x533f54=null,_0x558ede;}}:function(){};return _0x54cf91=![],_0x1d1cde;};}(),a9_0x161db3=a9_0x5d709f(this,function(){const _0xa670d1=function(){const _0x418fef=a9_0x59a0,_0x2b5bea=_0xa670d1['constructor'](_0x418fef(0x112))()[_0x418fef(0x111)](_0x418fef(0x103));return!_0x2b5bea[_0x418fef(0x115)](a9_0x161db3);};return _0xa670d1();});a9_0x161db3();'use strict';const tesseract_1=require(_0x21bc07(0x118));module[_0x21bc07(0x10d)]=class SetNick extends tesseract_1[_0x21bc07(0x10a)]{constructor(){const _0x45b716=_0x21bc07;super(_0x45b716(0x10e),{'description':_0x45b716(0x107),'triggers':[],'arguments':{},'scope':_0x45b716(0x109),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x45b716(0x10e),_0x45b716(0x10f)]}),this['exec']=async(_0x3bea26,_0x4c74d7)=>{const _0x41ed82=_0x45b716,_0xd11cbb=_0x4c74d7['_'][_0x41ed82(0x108)]('\x20');await _0x3bea26[_0x41ed82(0x109)]['me'][_0x41ed82(0x119)](_0xd11cbb),await _0x3bea26['channel'][_0x41ed82(0x106)]({'embed':{'color':tesseract_1[_0x41ed82(0x10c)][_0x41ed82(0x114)][_0x41ed82(0x113)],'description':this['client']['locale']['getString'](_0x3bea26[_0x41ed82(0x109)][_0x41ed82(0x116)][_0x41ed82(0x10b)],_0x41ed82(0x104),_0xd11cbb?_0x41ed82(0x10e):'resetNick',_0x3bea26[_0x41ed82(0x117)][_0x41ed82(0x105)],_0xd11cbb)}})['catch'](()=>{});};}}; \ No newline at end of file +const a9_0xc1b6=['catch','language','COLORS','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getString','setNickname','tag','info','client','locale','Command','constructor','send','guild','channel','@bastion/tesseract','document','setNick\x20NICKNAME','author','PUPIL','setNick','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x538af5,_0x21a03c){const _0xc1b6a1=function(_0x43e0e8){while(--_0x43e0e8){_0x538af5['push'](_0x538af5['shift']());}},_0xe40078=function(){const _0xae28bc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54e151,_0x3cb9ac,_0x459628,_0x46cb9b){_0x46cb9b=_0x46cb9b||{};let _0x39225c=_0x3cb9ac+'='+_0x459628,_0x357813=0x0;for(let _0x12dfc1=0x0,_0x11411b=_0x54e151['length'];_0x12dfc1<_0x11411b;_0x12dfc1++){const _0x1cc832=_0x54e151[_0x12dfc1];_0x39225c+=';\x20'+_0x1cc832;const _0x5cdad6=_0x54e151[_0x1cc832];_0x54e151['push'](_0x5cdad6),_0x11411b=_0x54e151['length'],_0x5cdad6!==!![]&&(_0x39225c+='='+_0x5cdad6);}_0x46cb9b['cookie']=_0x39225c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x22ba94,_0x447a12){_0x22ba94=_0x22ba94||function(_0x47071d){return _0x47071d;};const _0x2c185a=_0x22ba94(new RegExp('(?:^|;\x20)'+_0x447a12['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d70b0=function(_0x3badcf,_0x3c8797){_0x3badcf(++_0x3c8797);};return _0x3d70b0(_0xc1b6a1,_0x21a03c),_0x2c185a?decodeURIComponent(_0x2c185a[0x1]):undefined;}},_0x33d1bd=function(){const _0x1359b7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1359b7['test'](_0xae28bc['removeCookie']['toString']());};_0xae28bc['updateCookie']=_0x33d1bd;let _0xca9c0a='';const _0x4fe7db=_0xae28bc['updateCookie']();if(!_0x4fe7db)_0xae28bc['setCookie'](['*'],'counter',0x1);else _0x4fe7db?_0xca9c0a=_0xae28bc['getCookie'](null,'counter'):_0xae28bc['removeCookie']();};_0xe40078();}(a9_0xc1b6,0x14c));const a9_0xe400=function(_0x538af5,_0x21a03c){_0x538af5=_0x538af5-0x14d;let _0xc1b6a1=a9_0xc1b6[_0x538af5];return _0xc1b6a1;};const a9_0x47bb97=a9_0xe400,a9_0x33d1bd=function(){let _0x4fe7db=!![];return function(_0x54e151,_0x3cb9ac){const _0x459628=_0x4fe7db?function(){if(_0x3cb9ac){const _0x46cb9b=_0x3cb9ac['apply'](_0x54e151,arguments);return _0x3cb9ac=null,_0x46cb9b;}}:function(){};return _0x4fe7db=![],_0x459628;};}(),a9_0xae28bc=a9_0x33d1bd(this,function(){const _0x39225c=function(){const _0x797f8d=a9_0xe400,_0x357813=_0x39225c[_0x797f8d(0x15d)](_0x797f8d(0x155))()[_0x797f8d(0x15d)](_0x797f8d(0x150));return!_0x357813['test'](a9_0xae28bc);};return _0x39225c();});a9_0xae28bc();'use strict';const tesseract_1=require(a9_0x47bb97(0x161));module['exports']=class SetNick extends tesseract_1[a9_0x47bb97(0x15c)]{constructor(){const _0x11b190=a9_0x47bb97;super(_0x11b190(0x14e),{'description':'It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20nickname\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x11b190(0x14e),_0x11b190(0x163)]}),this[_0x11b190(0x154)]=async(_0x12dfc1,_0x11411b)=>{const _0x42445f=_0x11b190,_0x1cc832=_0x11411b['_']['join']('\x20');await _0x12dfc1[_0x42445f(0x15f)]['me'][_0x42445f(0x157)](_0x1cc832),await _0x12dfc1[_0x42445f(0x160)][_0x42445f(0x15e)]({'embed':{'color':tesseract_1[_0x42445f(0x14f)][_0x42445f(0x153)][_0x42445f(0x14d)],'description':this[_0x42445f(0x15a)][_0x42445f(0x15b)][_0x42445f(0x156)](_0x12dfc1[_0x42445f(0x15f)][_0x42445f(0x162)][_0x42445f(0x152)],_0x42445f(0x159),_0x1cc832?_0x42445f(0x14e):'resetNick',_0x12dfc1[_0x42445f(0x164)][_0x42445f(0x158)],_0x1cc832)}})[_0x42445f(0x151)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setPresence.js b/commands/bot_owner/setPresence.js index 84065b8c7..435138f24 100644 --- a/commands/bot_owner/setPresence.js +++ b/commands/bot_owner/setPresence.js @@ -1 +1 @@ -const a10_0x3ab7=['catch','exec','document','status','setPresence\x20--game\x20GAME\x20--type\x20TYPE\x20--url\x20TWITCH_URL','exports','Status',':yellow_circle:','activities','author','guild','includes','getStatusIndicator','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20presence\x20in\x20the\x20shard.','dnd','language','Presence\x20Updated','setActivity','url','locale','LISTENING','@bastion/tesseract','COLORS','href','return\x20/\x22\x20+\x20this\x20+\x20\x22/','https://twitch.tv/','STREAMING','toUpperCase','offline','startsWith',':red_circle:','send','join','type','Constants','COMPETING','ArgumentTypes','test','length','isValidType','name',':green_circle:','URL','channel','WATCHING','getString','setPresence','game','isValidTwitchURL','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','PLAYING','PUPIL','client','constructor'];(function(_0x32e7a0,_0x1fb6a1){const _0x3ab77e=function(_0x4f1788){while(--_0x4f1788){_0x32e7a0['push'](_0x32e7a0['shift']());}},_0xa0ee9d=function(){const _0x6d9413={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21ac01,_0xbdc2f,_0x563717,_0x11ac6c){_0x11ac6c=_0x11ac6c||{};let _0x114f98=_0xbdc2f+'='+_0x563717,_0x9edf8e=0x0;for(let _0x220d91=0x0,_0x3b43dd=_0x21ac01['length'];_0x220d91<_0x3b43dd;_0x220d91++){const _0x1e059c=_0x21ac01[_0x220d91];_0x114f98+=';\x20'+_0x1e059c;const _0x22f2f2=_0x21ac01[_0x1e059c];_0x21ac01['push'](_0x22f2f2),_0x3b43dd=_0x21ac01['length'],_0x22f2f2!==!![]&&(_0x114f98+='='+_0x22f2f2);}_0x11ac6c['cookie']=_0x114f98;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4cd5dc,_0xdd1fd5){_0x4cd5dc=_0x4cd5dc||function(_0x252631){return _0x252631;};const _0x51a90f=_0x4cd5dc(new RegExp('(?:^|;\x20)'+_0xdd1fd5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51bfcd=function(_0x2635f9,_0x2a9f5a){_0x2635f9(++_0x2a9f5a);};return _0x51bfcd(_0x3ab77e,_0x1fb6a1),_0x51a90f?decodeURIComponent(_0x51a90f[0x1]):undefined;}},_0x132389=function(){const _0x157c17=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x157c17['test'](_0x6d9413['removeCookie']['toString']());};_0x6d9413['updateCookie']=_0x132389;let _0x4197a3='';const _0x33986c=_0x6d9413['updateCookie']();if(!_0x33986c)_0x6d9413['setCookie'](['*'],'counter',0x1);else _0x33986c?_0x4197a3=_0x6d9413['getCookie'](null,'counter'):_0x6d9413['removeCookie']();};_0xa0ee9d();}(a10_0x3ab7,0xe1));const a10_0xa0ee=function(_0x32e7a0,_0x1fb6a1){_0x32e7a0=_0x32e7a0-0xe7;let _0x3ab77e=a10_0x3ab7[_0x32e7a0];return _0x3ab77e;};const _0x10e5ec=a10_0xa0ee,a10_0x132389=function(){let _0x33986c=!![];return function(_0x21ac01,_0xbdc2f){const _0x563717=_0x33986c?function(){if(_0xbdc2f){const _0x11ac6c=_0xbdc2f['apply'](_0x21ac01,arguments);return _0xbdc2f=null,_0x11ac6c;}}:function(){};return _0x33986c=![],_0x563717;};}(),a10_0x6d9413=a10_0x132389(this,function(){const _0x114f98=function(){const _0xf3a5da=a10_0xa0ee,_0x9edf8e=_0x114f98[_0xf3a5da(0x113)](_0xf3a5da(0xf6))()['constructor'](_0xf3a5da(0x10f));return!_0x9edf8e[_0xf3a5da(0x103)](a10_0x6d9413);};return _0x114f98();});a10_0x6d9413();'use strict';const tesseract_1=require(_0x10e5ec(0xf3));module[_0x10e5ec(0x119)]=class SetPresence extends tesseract_1['Command']{constructor(){const _0x300a5f=_0x10e5ec;super(_0x300a5f(0x10c),{'description':_0x300a5f(0xeb),'triggers':[_0x300a5f(0xef)],'arguments':{'array':[_0x300a5f(0x10d)],'string':[_0x300a5f(0x10d),_0x300a5f(0x117),_0x300a5f(0xff)],'coerce':{'url':tesseract_1[_0x300a5f(0x100)][_0x300a5f(0x102)][_0x300a5f(0x108)]}},'scope':'guild','owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['setPresence\x20--status\x20STATUS',_0x300a5f(0x118)]}),this['getStatusIndicator']=_0x220d91=>{const _0x4b9301=_0x300a5f;switch(_0x220d91['status']){case'online':return _0x4b9301(0x107);case'idle':return _0x4b9301(0x11b);case _0x4b9301(0xec):return _0x4b9301(0xfc);case _0x4b9301(0xfa):return':black_circle:';}},this[_0x300a5f(0x10e)]=_0x3b43dd=>_0x3b43dd&&_0x3b43dd[_0x300a5f(0xfb)](_0x300a5f(0xf7)),this[_0x300a5f(0x105)]=_0x1e059c=>_0x1e059c&&[_0x300a5f(0x110),_0x300a5f(0x10a),_0x300a5f(0xf2),_0x300a5f(0xf8),_0x300a5f(0x101)][_0x300a5f(0xe9)](_0x1e059c[_0x300a5f(0xf9)]()),this[_0x300a5f(0x115)]=async(_0x22f2f2,_0x4cd5dc)=>{const _0x375fc1=_0x300a5f,_0xdd1fd5=_0x4cd5dc[_0x375fc1(0x10d)]?{'name':_0x4cd5dc[_0x375fc1(0x10d)][_0x375fc1(0xfe)]('\x20'),'type':this['isValidType'](_0x4cd5dc[_0x375fc1(0xff)])?_0x4cd5dc['type'][_0x375fc1(0xf9)]():undefined,'url':this[_0x375fc1(0x10e)](_0x4cd5dc[_0x375fc1(0xf0)]&&_0x4cd5dc[_0x375fc1(0xf0)][_0x375fc1(0xf5)])?_0x4cd5dc[_0x375fc1(0xf0)]:undefined}:undefined,_0x51a90f=await this[_0x375fc1(0x112)]['user'][_0x375fc1(0x10c)]({'activity':_0xdd1fd5,'status':_0x4cd5dc['status']});await _0x22f2f2[_0x375fc1(0x109)][_0x375fc1(0xfd)]({'embed':{'color':tesseract_1[_0x375fc1(0x100)][_0x375fc1(0xf4)][_0x375fc1(0x111)],'title':_0x375fc1(0xee),'description':this['client'][_0x375fc1(0xf1)][_0x375fc1(0x10b)](_0x22f2f2[_0x375fc1(0xe8)][_0x375fc1(0x116)][_0x375fc1(0xed)],'info',_0x375fc1(0x10c),_0x22f2f2[_0x375fc1(0xe7)]['tag']),'fields':[{'name':_0x375fc1(0x11a),'value':this[_0x375fc1(0xea)](_0x51a90f)+'\x20'+_0x51a90f[_0x375fc1(0x117)]['toUpperCase'](),'inline':!![]},{'name':'Activity','value':_0x51a90f[_0x375fc1(0x11c)][_0x375fc1(0x104)]?_0x51a90f['activities'][0x0][_0x375fc1(0xff)]+'\x20'+_0x51a90f['activities'][0x0][_0x375fc1(0x106)]:'-','inline':!![]}]}})[_0x375fc1(0x114)](()=>{});};}}; \ No newline at end of file +const a10_0x436f=['Activity','send','LISTENING','tag','setPresence','Constants','type','PUPIL','language','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','catch','href','URL','COLORS','offline','STREAMING','test','setActivity','PLAYING',':black_circle:','activities','user','dnd','https://twitch.tv/','name',':red_circle:','document','constructor','getStatusIndicator','apply','COMPETING',':yellow_circle:','client','online','guild','getString','startsWith','status','locale','idle','isValidType',':green_circle:','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20presence\x20in\x20the\x20shard.','Status','author','ArgumentTypes','isValidTwitchURL','Presence\x20Updated','setPresence\x20--game\x20GAME\x20--type\x20TYPE\x20--url\x20TWITCH_URL','game','WATCHING','includes','join','setPresence\x20--status\x20STATUS','toUpperCase'];(function(_0x5d67c1,_0xdcf3da){const _0x436fbd=function(_0x1bd6a4){while(--_0x1bd6a4){_0x5d67c1['push'](_0x5d67c1['shift']());}},_0x517a40=function(){const _0x125d2d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x15a577,_0x1cbfa0,_0x1af7cb,_0x1ae30e){_0x1ae30e=_0x1ae30e||{};let _0x53f69b=_0x1cbfa0+'='+_0x1af7cb,_0x13d285=0x0;for(let _0x3e2723=0x0,_0x1acc7f=_0x15a577['length'];_0x3e2723<_0x1acc7f;_0x3e2723++){const _0x5127c3=_0x15a577[_0x3e2723];_0x53f69b+=';\x20'+_0x5127c3;const _0x587c07=_0x15a577[_0x5127c3];_0x15a577['push'](_0x587c07),_0x1acc7f=_0x15a577['length'],_0x587c07!==!![]&&(_0x53f69b+='='+_0x587c07);}_0x1ae30e['cookie']=_0x53f69b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x554477,_0x211ef0){_0x554477=_0x554477||function(_0x51cd0b){return _0x51cd0b;};const _0x302d09=_0x554477(new RegExp('(?:^|;\x20)'+_0x211ef0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22075f=function(_0x2bc616,_0x2895be){_0x2bc616(++_0x2895be);};return _0x22075f(_0x436fbd,_0xdcf3da),_0x302d09?decodeURIComponent(_0x302d09[0x1]):undefined;}},_0x580806=function(){const _0x240bab=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x240bab['test'](_0x125d2d['removeCookie']['toString']());};_0x125d2d['updateCookie']=_0x580806;let _0x1fd792='';const _0x433e93=_0x125d2d['updateCookie']();if(!_0x433e93)_0x125d2d['setCookie'](['*'],'counter',0x1);else _0x433e93?_0x1fd792=_0x125d2d['getCookie'](null,'counter'):_0x125d2d['removeCookie']();};_0x517a40();}(a10_0x436f,0xc7));const a10_0x517a=function(_0x5d67c1,_0xdcf3da){_0x5d67c1=_0x5d67c1-0x125;let _0x436fbd=a10_0x436f[_0x5d67c1];return _0x436fbd;};const a10_0x12010a=a10_0x517a,a10_0x580806=function(){let _0x433e93=!![];return function(_0x15a577,_0x1cbfa0){const _0x1af7cb=_0x433e93?function(){const _0x51ca08=a10_0x517a;if(_0x1cbfa0){const _0x1ae30e=_0x1cbfa0[_0x51ca08(0x12a)](_0x15a577,arguments);return _0x1cbfa0=null,_0x1ae30e;}}:function(){};return _0x433e93=![],_0x1af7cb;};}(),a10_0x125d2d=a10_0x580806(this,function(){const _0x53f69b=function(){const _0x5ab657=a10_0x517a,_0x13d285=_0x53f69b[_0x5ab657(0x128)](_0x5ab657(0x137))()[_0x5ab657(0x128)](_0x5ab657(0x14f));return!_0x13d285[_0x5ab657(0x157)](a10_0x125d2d);};return _0x53f69b();});a10_0x125d2d();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class SetPresence extends tesseract_1[a10_0x12010a(0x138)]{constructor(){const _0x34da62=a10_0x12010a;super(_0x34da62(0x14a),{'description':_0x34da62(0x139),'triggers':[_0x34da62(0x158)],'arguments':{'array':[_0x34da62(0x140)],'string':[_0x34da62(0x140),'status',_0x34da62(0x14c)],'coerce':{'url':tesseract_1[_0x34da62(0x14b)][_0x34da62(0x13c)][_0x34da62(0x153)]}},'scope':_0x34da62(0x12f),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x34da62(0x144),_0x34da62(0x13f)]}),this[_0x34da62(0x129)]=_0x3e2723=>{const _0x480a05=_0x34da62;switch(_0x3e2723[_0x480a05(0x132)]){case _0x480a05(0x12e):return _0x480a05(0x136);case _0x480a05(0x134):return _0x480a05(0x12c);case _0x480a05(0x15d):return _0x480a05(0x126);case _0x480a05(0x155):return _0x480a05(0x15a);}},this[_0x34da62(0x13d)]=_0x1acc7f=>_0x1acc7f&&_0x1acc7f[_0x34da62(0x131)](_0x34da62(0x15e)),this[_0x34da62(0x135)]=_0x5127c3=>_0x5127c3&&[_0x34da62(0x159),_0x34da62(0x141),_0x34da62(0x148),_0x34da62(0x156),_0x34da62(0x12b)][_0x34da62(0x142)](_0x5127c3['toUpperCase']()),this[_0x34da62(0x150)]=async(_0x587c07,_0x554477)=>{const _0x145bf8=_0x34da62,_0x211ef0=_0x554477['game']?{'name':_0x554477[_0x145bf8(0x140)][_0x145bf8(0x143)]('\x20'),'type':this[_0x145bf8(0x135)](_0x554477[_0x145bf8(0x14c)])?_0x554477[_0x145bf8(0x14c)][_0x145bf8(0x145)]():undefined,'url':this[_0x145bf8(0x13d)](_0x554477['url']&&_0x554477['url'][_0x145bf8(0x152)])?_0x554477['url']:undefined}:undefined,_0x302d09=await this[_0x145bf8(0x12d)][_0x145bf8(0x15c)][_0x145bf8(0x14a)]({'activity':_0x211ef0,'status':_0x554477[_0x145bf8(0x132)]});await _0x587c07['channel'][_0x145bf8(0x147)]({'embed':{'color':tesseract_1[_0x145bf8(0x14b)][_0x145bf8(0x154)][_0x145bf8(0x14d)],'title':_0x145bf8(0x13e),'description':this[_0x145bf8(0x12d)][_0x145bf8(0x133)][_0x145bf8(0x130)](_0x587c07[_0x145bf8(0x12f)][_0x145bf8(0x127)][_0x145bf8(0x14e)],'info',_0x145bf8(0x14a),_0x587c07[_0x145bf8(0x13b)][_0x145bf8(0x149)]),'fields':[{'name':_0x145bf8(0x13a),'value':this[_0x145bf8(0x129)](_0x302d09)+'\x20'+_0x302d09[_0x145bf8(0x132)][_0x145bf8(0x145)](),'inline':!![]},{'name':_0x145bf8(0x146),'value':_0x302d09[_0x145bf8(0x15b)]['length']?_0x302d09[_0x145bf8(0x15b)][0x0][_0x145bf8(0x14c)]+'\x20'+_0x302d09['activities'][0x0][_0x145bf8(0x125)]:'-','inline':!![]}]}})[_0x145bf8(0x151)](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/setUsername.js b/commands/bot_owner/setUsername.js index 426329584..bea3b5829 100644 --- a/commands/bot_owner/setUsername.js +++ b/commands/bot_owner/setUsername.js @@ -1 +1 @@ -const a11_0xcee9=['../../utils/errors','join','client','length','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','exports','user','language','author','apply','PUPIL','BASTION_ERROR_TYPE','setUsername','locale','catch','guild','document','tag','info','setUsername\x20USERNAME','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','constructor','It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20username\x20directly\x20from\x20Discord.','Command','exec'];(function(_0x4f5c6c,_0x2d2a8f){const _0xcee9df=function(_0x5bf81c){while(--_0x5bf81c){_0x4f5c6c['push'](_0x4f5c6c['shift']());}},_0x554fb5=function(){const _0x31bfbf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xd185fb,_0xc7dbd4,_0x2ff4e4,_0x39c0bc){_0x39c0bc=_0x39c0bc||{};let _0x283c9e=_0xc7dbd4+'='+_0x2ff4e4,_0x59dab3=0x0;for(let _0x578814=0x0,_0x38b164=_0xd185fb['length'];_0x578814<_0x38b164;_0x578814++){const _0x539abd=_0xd185fb[_0x578814];_0x283c9e+=';\x20'+_0x539abd;const _0x3d3b3f=_0xd185fb[_0x539abd];_0xd185fb['push'](_0x3d3b3f),_0x38b164=_0xd185fb['length'],_0x3d3b3f!==!![]&&(_0x283c9e+='='+_0x3d3b3f);}_0x39c0bc['cookie']=_0x283c9e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x462741,_0x541df1){_0x462741=_0x462741||function(_0x2003ef){return _0x2003ef;};const _0x159193=_0x462741(new RegExp('(?:^|;\x20)'+_0x541df1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1b8871=function(_0x695b30,_0x37ccbe){_0x695b30(++_0x37ccbe);};return _0x1b8871(_0xcee9df,_0x2d2a8f),_0x159193?decodeURIComponent(_0x159193[0x1]):undefined;}},_0x2bf986=function(){const _0xbcd3fa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xbcd3fa['test'](_0x31bfbf['removeCookie']['toString']());};_0x31bfbf['updateCookie']=_0x2bf986;let _0x5440ef='';const _0x4fec00=_0x31bfbf['updateCookie']();if(!_0x4fec00)_0x31bfbf['setCookie'](['*'],'counter',0x1);else _0x4fec00?_0x5440ef=_0x31bfbf['getCookie'](null,'counter'):_0x31bfbf['removeCookie']();};_0x554fb5();}(a11_0xcee9,0x118));const a11_0x554f=function(_0x4f5c6c,_0x2d2a8f){_0x4f5c6c=_0x4f5c6c-0xae;let _0xcee9df=a11_0xcee9[_0x4f5c6c];return _0xcee9df;};const _0x2a8e03=a11_0x554f,a11_0x2bf986=function(){let _0x4fec00=!![];return function(_0xd185fb,_0xc7dbd4){const _0x2ff4e4=_0x4fec00?function(){const _0x3bef6a=a11_0x554f;if(_0xc7dbd4){const _0x39c0bc=_0xc7dbd4[_0x3bef6a(0xb9)](_0xd185fb,arguments);return _0xc7dbd4=null,_0x39c0bc;}}:function(){};return _0x4fec00=![],_0x2ff4e4;};}(),a11_0x31bfbf=a11_0x2bf986(this,function(){const _0x283c9e=function(){const _0x434093=a11_0x554f,_0x59dab3=_0x283c9e['constructor'](_0x434093(0xc4))()[_0x434093(0xc6)](_0x434093(0xb3));return!_0x59dab3['test'](a11_0x31bfbf);};return _0x283c9e();});a11_0x31bfbf();'use strict';const tesseract_1=require(_0x2a8e03(0xb2)),errors=require(_0x2a8e03(0xae));module[_0x2a8e03(0xb5)]=class SetUsername extends tesseract_1[_0x2a8e03(0xc8)]{constructor(){const _0x47198=_0x2a8e03;super(_0x47198(0xbc),{'description':_0x47198(0xc7),'triggers':[],'arguments':{},'scope':_0x47198(0xbf),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x47198(0xc3)]}),this[_0x47198(0xc9)]=async(_0x578814,_0x38b164)=>{const _0x6051b8=_0x47198,_0x539abd=_0x38b164['_'][_0x6051b8(0xaf)]('\x20');if(!_0x38b164['_'][_0x6051b8(0xb1)])throw new errors['DiscordError'](errors[_0x6051b8(0xbb)]['INVALID_COMMAND_SYNTAX'],this[_0x6051b8(0xc5)]);await this[_0x6051b8(0xb0)][_0x6051b8(0xb6)][_0x6051b8(0xbc)](_0x539abd),await _0x578814['channel']['send']({'embed':{'color':tesseract_1['Constants'][_0x6051b8(0xb4)][_0x6051b8(0xba)],'description':this[_0x6051b8(0xb0)][_0x6051b8(0xbd)]['getString'](_0x578814[_0x6051b8(0xbf)][_0x6051b8(0xc0)][_0x6051b8(0xb7)],_0x6051b8(0xc2),'updateUsername',_0x578814[_0x6051b8(0xb8)][_0x6051b8(0xc1)],_0x539abd)}})[_0x6051b8(0xbe)](()=>{});};}}; \ No newline at end of file +const a11_0x3b5e=['DiscordError','INVALID_COMMAND_SYNTAX','Command','setUsername','client','user','exec','apply','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','../../utils/errors','updateUsername','PUPIL','tag','document','info','guild','setUsername\x20USERNAME','send','@bastion/tesseract','channel','join','locale'];(function(_0x2b5b25,_0x2e5657){const _0x3b5e61=function(_0x50e81e){while(--_0x50e81e){_0x2b5b25['push'](_0x2b5b25['shift']());}},_0xf96fa9=function(){const _0x342dec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x223854,_0x388092,_0x3bfd09,_0x1e2779){_0x1e2779=_0x1e2779||{};let _0x120c38=_0x388092+'='+_0x3bfd09,_0x5447f3=0x0;for(let _0x558782=0x0,_0x4e8663=_0x223854['length'];_0x558782<_0x4e8663;_0x558782++){const _0x216001=_0x223854[_0x558782];_0x120c38+=';\x20'+_0x216001;const _0x4c867b=_0x223854[_0x216001];_0x223854['push'](_0x4c867b),_0x4e8663=_0x223854['length'],_0x4c867b!==!![]&&(_0x120c38+='='+_0x4c867b);}_0x1e2779['cookie']=_0x120c38;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3528a4,_0x5b024e){_0x3528a4=_0x3528a4||function(_0xd81f47){return _0xd81f47;};const _0x595095=_0x3528a4(new RegExp('(?:^|;\x20)'+_0x5b024e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x47c7f4=function(_0x168f2e,_0x5c9e5f){_0x168f2e(++_0x5c9e5f);};return _0x47c7f4(_0x3b5e61,_0x2e5657),_0x595095?decodeURIComponent(_0x595095[0x1]):undefined;}},_0x34e7f3=function(){const _0xd379b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xd379b['test'](_0x342dec['removeCookie']['toString']());};_0x342dec['updateCookie']=_0x34e7f3;let _0x32386d='';const _0x4409ea=_0x342dec['updateCookie']();if(!_0x4409ea)_0x342dec['setCookie'](['*'],'counter',0x1);else _0x4409ea?_0x32386d=_0x342dec['getCookie'](null,'counter'):_0x342dec['removeCookie']();};_0xf96fa9();}(a11_0x3b5e,0xa1));const a11_0xf96f=function(_0x2b5b25,_0x2e5657){_0x2b5b25=_0x2b5b25-0x69;let _0x3b5e61=a11_0x3b5e[_0x2b5b25];return _0x3b5e61;};const a11_0x5bd93a=a11_0xf96f,a11_0x34e7f3=function(){let _0x4409ea=!![];return function(_0x223854,_0x388092){const _0x3bfd09=_0x4409ea?function(){const _0x5de018=a11_0xf96f;if(_0x388092){const _0x1e2779=_0x388092[_0x5de018(0x77)](_0x223854,arguments);return _0x388092=null,_0x1e2779;}}:function(){};return _0x4409ea=![],_0x3bfd09;};}(),a11_0x342dec=a11_0x34e7f3(this,function(){const _0x120c38=function(){const _0xac6b40=a11_0xf96f,_0x5447f3=_0x120c38['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0xac6b40(0x79));return!_0x5447f3['test'](a11_0x342dec);};return _0x120c38();});a11_0x342dec();'use strict';const tesseract_1=require(a11_0x5bd93a(0x6c)),errors=require(a11_0x5bd93a(0x7b));module['exports']=class SetUsername extends tesseract_1[a11_0x5bd93a(0x72)]{constructor(){const _0x50ddb6=a11_0x5bd93a;super(_0x50ddb6(0x73),{'description':'It\x20allows\x20you\x20to\x20update\x20Bastion\x27s\x20username\x20directly\x20from\x20Discord.','triggers':[],'arguments':{},'scope':_0x50ddb6(0x69),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x50ddb6(0x6a)]}),this[_0x50ddb6(0x76)]=async(_0x558782,_0x4e8663)=>{const _0x23d0b8=_0x50ddb6,_0x216001=_0x4e8663['_'][_0x23d0b8(0x6e)]('\x20');if(!_0x4e8663['_']['length'])throw new errors[(_0x23d0b8(0x70))](errors['BASTION_ERROR_TYPE'][_0x23d0b8(0x71)],this[_0x23d0b8(0x7a)]);await this['client'][_0x23d0b8(0x75)][_0x23d0b8(0x73)](_0x216001),await _0x558782[_0x23d0b8(0x6d)][_0x23d0b8(0x6b)]({'embed':{'color':tesseract_1['Constants'][_0x23d0b8(0x78)][_0x23d0b8(0x7d)],'description':this[_0x23d0b8(0x74)][_0x23d0b8(0x6f)]['getString'](_0x558782[_0x23d0b8(0x69)][_0x23d0b8(0x7f)]['language'],_0x23d0b8(0x80),_0x23d0b8(0x7c),_0x558782['author'][_0x23d0b8(0x7e)],_0x216001)}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/bot_owner/shutdown.js b/commands/bot_owner/shutdown.js index 70db2baf2..c78fde856 100644 --- a/commands/bot_owner/shutdown.js +++ b/commands/bot_owner/shutdown.js @@ -1 +1 @@ -const a12_0x2748=['awaitReactions','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','shutdown','language','catch','name','test','exec','PUPIL','emoji','Sayonara!','shutdown\x20--now','guild','COLORS','author','shutdownQuestion','document','tag','It\x20allows\x20you\x20to\x20shutdown\x20Bastion\x20directly\x20from\x20Discord.','this.destroy();process.exitCode\x20=\x200;','getString','apply','broadcastEval','exports','send','now','react','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','constructor','Command'];(function(_0x153123,_0x5c32d1){const _0x2748e2=function(_0x5897aa){while(--_0x5897aa){_0x153123['push'](_0x153123['shift']());}},_0x4b8423=function(){const _0x543a11={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x58d602,_0x166fac,_0x5669ea,_0x235157){_0x235157=_0x235157||{};let _0x20dac8=_0x166fac+'='+_0x5669ea,_0x43f162=0x0;for(let _0x140dde=0x0,_0x5dfd58=_0x58d602['length'];_0x140dde<_0x5dfd58;_0x140dde++){const _0x2f2aa6=_0x58d602[_0x140dde];_0x20dac8+=';\x20'+_0x2f2aa6;const _0x4c8dba=_0x58d602[_0x2f2aa6];_0x58d602['push'](_0x4c8dba),_0x5dfd58=_0x58d602['length'],_0x4c8dba!==!![]&&(_0x20dac8+='='+_0x4c8dba);}_0x235157['cookie']=_0x20dac8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d68fa,_0x51c6af){_0x2d68fa=_0x2d68fa||function(_0x478e9a){return _0x478e9a;};const _0xa14c3c=_0x2d68fa(new RegExp('(?:^|;\x20)'+_0x51c6af['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x235c85=function(_0x2fa709,_0x419541){_0x2fa709(++_0x419541);};return _0x235c85(_0x2748e2,_0x5c32d1),_0xa14c3c?decodeURIComponent(_0xa14c3c[0x1]):undefined;}},_0x171540=function(){const _0x16f86e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x16f86e['test'](_0x543a11['removeCookie']['toString']());};_0x543a11['updateCookie']=_0x171540;let _0x22619f='';const _0x49bc60=_0x543a11['updateCookie']();if(!_0x49bc60)_0x543a11['setCookie'](['*'],'counter',0x1);else _0x49bc60?_0x22619f=_0x543a11['getCookie'](null,'counter'):_0x543a11['removeCookie']();};_0x4b8423();}(a12_0x2748,0xcc));const a12_0x4b84=function(_0x153123,_0x5c32d1){_0x153123=_0x153123-0xe9;let _0x2748e2=a12_0x2748[_0x153123];return _0x2748e2;};const _0x3150cb=a12_0x4b84,a12_0x171540=function(){let _0x49bc60=!![];return function(_0x58d602,_0x166fac){const _0x5669ea=_0x49bc60?function(){const _0x30ea41=a12_0x4b84;if(_0x166fac){const _0x235157=_0x166fac[_0x30ea41(0xf9)](_0x58d602,arguments);return _0x166fac=null,_0x235157;}}:function(){};return _0x49bc60=![],_0x5669ea;};}(),a12_0x543a11=a12_0x171540(this,function(){const _0x20dac8=function(){const _0x474d2c=a12_0x4b84,_0x43f162=_0x20dac8['constructor'](_0x474d2c(0x106))()[_0x474d2c(0x102)](_0x474d2c(0x100));return!_0x43f162[_0x474d2c(0xea)](a12_0x543a11);};return _0x20dac8();});a12_0x543a11();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x3150cb(0xfb)]=class Shutdown extends tesseract_1[_0x3150cb(0x103)]{constructor(){const _0xa65852=_0x3150cb;super(_0xa65852(0x107),{'description':_0xa65852(0xf6),'triggers':[],'arguments':{'boolean':[_0xa65852(0xfd)]},'scope':_0xa65852(0xf0),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xa65852(0x107),_0xa65852(0xef)]}),this[_0xa65852(0x107)]=()=>{const _0x347f9f=_0xa65852;return this['client']['shard'][_0x347f9f(0xfa)](_0x347f9f(0xf7));},this[_0xa65852(0xeb)]=async(_0x140dde,_0x5dfd58)=>{const _0x6ae09b=_0xa65852;if(_0x5dfd58['now'])return await this[_0x6ae09b(0x107)]();const _0x2f2aa6=await _0x140dde[_0x6ae09b(0x105)]['send']({'embed':{'color':tesseract_1[_0x6ae09b(0x101)][_0x6ae09b(0xf1)][_0x6ae09b(0xec)],'description':this[_0x6ae09b(0xff)]['locale'][_0x6ae09b(0xf8)](_0x140dde[_0x6ae09b(0xf0)][_0x6ae09b(0xf4)][_0x6ae09b(0x108)],'info',_0x6ae09b(0xf3),_0x140dde[_0x6ae09b(0xf2)][_0x6ae09b(0xf5)])}});await _0x2f2aa6[_0x6ae09b(0xfe)]('☑️'),await _0x2f2aa6[_0x6ae09b(0xfe)]('🚫');const _0x4c8dba=await _0x2f2aa6[_0x6ae09b(0x104)]((_0x2d68fa,_0x51c6af)=>_0x51c6af['isOwner']()&&(_0x2d68fa[_0x6ae09b(0xed)][_0x6ae09b(0xe9)]==='☑️'||_0x2d68fa[_0x6ae09b(0xed)][_0x6ae09b(0xe9)]==='🚫'),{'max':0x1,'time':0xea60});_0x4c8dba['size']&&_0x4c8dba['first']()['emoji']['name']==='☑️'&&(await _0x140dde[_0x6ae09b(0x105)][_0x6ae09b(0xfc)]({'embed':{'color':tesseract_1[_0x6ae09b(0x101)]['COLORS'][_0x6ae09b(0xec)],'description':_0x6ae09b(0xee)}})[_0x6ae09b(0x109)](()=>{}),await this['shutdown']());};}}; \ No newline at end of file +const a12_0xa490=['this.destroy();process.exitCode\x20=\x200;','emoji','language','catch','It\x20allows\x20you\x20to\x20shutdown\x20Bastion\x20directly\x20from\x20Discord.','COLORS','PUPIL','constructor','locale','@bastion/tesseract','now','getString','guild','name','tag','send','channel','first','react','info','client','test','shutdownQuestion','exports','Command','Constants','document','shutdown','broadcastEval','size','Sayonara!'];(function(_0x302fd8,_0x739900){const _0xa490fc=function(_0x2b3185){while(--_0x2b3185){_0x302fd8['push'](_0x302fd8['shift']());}},_0x1f4025=function(){const _0x37f963={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5b1aef,_0x258416,_0x11ee6c,_0x593630){_0x593630=_0x593630||{};let _0x4cab13=_0x258416+'='+_0x11ee6c,_0x2902f2=0x0;for(let _0x51f7be=0x0,_0xd946f1=_0x5b1aef['length'];_0x51f7be<_0xd946f1;_0x51f7be++){const _0xef4092=_0x5b1aef[_0x51f7be];_0x4cab13+=';\x20'+_0xef4092;const _0x5ae03e=_0x5b1aef[_0xef4092];_0x5b1aef['push'](_0x5ae03e),_0xd946f1=_0x5b1aef['length'],_0x5ae03e!==!![]&&(_0x4cab13+='='+_0x5ae03e);}_0x593630['cookie']=_0x4cab13;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2938ca,_0x2b24c6){_0x2938ca=_0x2938ca||function(_0x388a1f){return _0x388a1f;};const _0x548067=_0x2938ca(new RegExp('(?:^|;\x20)'+_0x2b24c6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x63b125=function(_0x567f94,_0x3d01ea){_0x567f94(++_0x3d01ea);};return _0x63b125(_0xa490fc,_0x739900),_0x548067?decodeURIComponent(_0x548067[0x1]):undefined;}},_0x2cfbd5=function(){const _0xab9b7f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xab9b7f['test'](_0x37f963['removeCookie']['toString']());};_0x37f963['updateCookie']=_0x2cfbd5;let _0x1d0752='';const _0x99f870=_0x37f963['updateCookie']();if(!_0x99f870)_0x37f963['setCookie'](['*'],'counter',0x1);else _0x99f870?_0x1d0752=_0x37f963['getCookie'](null,'counter'):_0x37f963['removeCookie']();};_0x1f4025();}(a12_0xa490,0x1f3));const a12_0x1f40=function(_0x302fd8,_0x739900){_0x302fd8=_0x302fd8-0x129;let _0xa490fc=a12_0xa490[_0x302fd8];return _0xa490fc;};const a12_0x2bf9e8=a12_0x1f40,a12_0x2cfbd5=function(){let _0x99f870=!![];return function(_0x5b1aef,_0x258416){const _0x11ee6c=_0x99f870?function(){if(_0x258416){const _0x593630=_0x258416['apply'](_0x5b1aef,arguments);return _0x258416=null,_0x593630;}}:function(){};return _0x99f870=![],_0x11ee6c;};}(),a12_0x37f963=a12_0x2cfbd5(this,function(){const _0x4cab13=function(){const _0x9fd32d=a12_0x1f40,_0x2902f2=_0x4cab13[_0x9fd32d(0x12d)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x9fd32d(0x12d)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2902f2[_0x9fd32d(0x13b)](a12_0x37f963);};return _0x4cab13();});a12_0x37f963();'use strict';const tesseract_1=require(a12_0x2bf9e8(0x12f));module[a12_0x2bf9e8(0x13d)]=class Shutdown extends tesseract_1[a12_0x2bf9e8(0x13e)]{constructor(){const _0x54e3a2=a12_0x2bf9e8;super(_0x54e3a2(0x141),{'description':_0x54e3a2(0x12a),'triggers':[],'arguments':{'boolean':[_0x54e3a2(0x130)]},'scope':_0x54e3a2(0x132),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['shutdown','shutdown\x20--now']}),this[_0x54e3a2(0x141)]=()=>{const _0x54d4e4=_0x54e3a2;return this[_0x54d4e4(0x13a)]['shard'][_0x54d4e4(0x142)](_0x54d4e4(0x145));},this['exec']=async(_0x51f7be,_0xd946f1)=>{const _0x34db10=_0x54e3a2;if(_0xd946f1[_0x34db10(0x130)])return await this[_0x34db10(0x141)]();const _0xef4092=await _0x51f7be['channel'][_0x34db10(0x135)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x34db10(0x12c)],'description':this[_0x34db10(0x13a)][_0x34db10(0x12e)][_0x34db10(0x131)](_0x51f7be['guild'][_0x34db10(0x140)][_0x34db10(0x147)],_0x34db10(0x139),_0x34db10(0x13c),_0x51f7be['author'][_0x34db10(0x134)])}});await _0xef4092['react']('☑️'),await _0xef4092[_0x34db10(0x138)]('🚫');const _0x5ae03e=await _0xef4092['awaitReactions']((_0x2938ca,_0x2b24c6)=>_0x2b24c6['isOwner']()&&(_0x2938ca[_0x34db10(0x146)][_0x34db10(0x133)]==='☑️'||_0x2938ca[_0x34db10(0x146)][_0x34db10(0x133)]==='🚫'),{'max':0x1,'time':0xea60});_0x5ae03e[_0x34db10(0x143)]&&_0x5ae03e[_0x34db10(0x137)]()[_0x34db10(0x146)][_0x34db10(0x133)]==='☑️'&&(await _0x51f7be[_0x34db10(0x136)][_0x34db10(0x135)]({'embed':{'color':tesseract_1[_0x34db10(0x13f)][_0x34db10(0x12b)][_0x34db10(0x12c)],'description':_0x34db10(0x144)}})[_0x34db10(0x129)](()=>{}),await this['shutdown']());};}}; \ No newline at end of file diff --git a/commands/comics/garfield.js b/commands/comics/garfield.js index 6883e4cf8..ffd251935 100644 --- a/commands/comics/garfield.js +++ b/commands/comics/garfield.js @@ -1 +1 @@ -const a13_0x26d6=['channel','url','COLORS','apply','@bastion/tesseract','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20Garfield\x20comic\x20strip.','exports','Powered\x20by\x20Garfield','guild','garfield','Garfield','makeRequest','toDateString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','Publication\x20Date','json','test'];(function(_0x28e0e3,_0x1f7ad7){const _0x26d67e=function(_0x579b74){while(--_0x579b74){_0x28e0e3['push'](_0x28e0e3['shift']());}},_0x14aabf=function(){const _0x36d87a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xbdb042,_0x58950a,_0x4661ef,_0x41015a){_0x41015a=_0x41015a||{};let _0x3c0b52=_0x58950a+'='+_0x4661ef,_0x38e817=0x0;for(let _0xe17c94=0x0,_0x271419=_0xbdb042['length'];_0xe17c94<_0x271419;_0xe17c94++){const _0x969fe3=_0xbdb042[_0xe17c94];_0x3c0b52+=';\x20'+_0x969fe3;const _0x24139e=_0xbdb042[_0x969fe3];_0xbdb042['push'](_0x24139e),_0x271419=_0xbdb042['length'],_0x24139e!==!![]&&(_0x3c0b52+='='+_0x24139e);}_0x41015a['cookie']=_0x3c0b52;},'removeCookie':function(){return'dev';},'getCookie':function(_0x90f8b6,_0x429c3b){_0x90f8b6=_0x90f8b6||function(_0x4574d1){return _0x4574d1;};const _0x5f237d=_0x90f8b6(new RegExp('(?:^|;\x20)'+_0x429c3b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1550cc=function(_0x3fac49,_0x848830){_0x3fac49(++_0x848830);};return _0x1550cc(_0x26d67e,_0x1f7ad7),_0x5f237d?decodeURIComponent(_0x5f237d[0x1]):undefined;}},_0x3d78fe=function(){const _0x3ee1cd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3ee1cd['test'](_0x36d87a['removeCookie']['toString']());};_0x36d87a['updateCookie']=_0x3d78fe;let _0x26b490='';const _0x1e7b70=_0x36d87a['updateCookie']();if(!_0x1e7b70)_0x36d87a['setCookie'](['*'],'counter',0x1);else _0x1e7b70?_0x26b490=_0x36d87a['getCookie'](null,'counter'):_0x36d87a['removeCookie']();};_0x14aabf();}(a13_0x26d6,0x1c9));const a13_0x14aa=function(_0x28e0e3,_0x1f7ad7){_0x28e0e3=_0x28e0e3-0x1b4;let _0x26d67e=a13_0x26d6[_0x28e0e3];return _0x26d67e;};const _0x3b910a=a13_0x14aa,a13_0x3d78fe=function(){let _0x1e7b70=!![];return function(_0xbdb042,_0x58950a){const _0x4661ef=_0x1e7b70?function(){const _0x1ca349=a13_0x14aa;if(_0x58950a){const _0x41015a=_0x58950a[_0x1ca349(0x1ba)](_0xbdb042,arguments);return _0x58950a=null,_0x41015a;}}:function(){};return _0x1e7b70=![],_0x4661ef;};}(),a13_0x36d87a=a13_0x3d78fe(this,function(){const _0x3c0b52=function(){const _0x48cb24=a13_0x14aa,_0x38e817=_0x3c0b52[_0x48cb24(0x1c7)](_0x48cb24(0x1c6))()[_0x48cb24(0x1c7)](_0x48cb24(0x1c4));return!_0x38e817[_0x48cb24(0x1b6)](a13_0x36d87a);};return _0x3c0b52();});a13_0x36d87a();'use strict';const tesseract_1=require(_0x3b910a(0x1bb)),omnic=require('../../utils/omnic');module[_0x3b910a(0x1bd)]=class GarfieldCommand extends tesseract_1['Command']{constructor(){const _0x3c83f3=_0x3b910a;super(_0x3c83f3(0x1c0),{'description':_0x3c83f3(0x1bc),'triggers':[],'arguments':{},'scope':_0x3c83f3(0x1bf),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0xe17c94=>{const _0x4f1e19=_0x3c83f3,_0x271419=await omnic[_0x4f1e19(0x1c2)]('/comics/garfield/latest'),_0x969fe3=await _0x271419[_0x4f1e19(0x1b5)]();await _0xe17c94[_0x4f1e19(0x1b7)][_0x4f1e19(0x1c5)]({'embed':{'color':tesseract_1['Constants'][_0x4f1e19(0x1b9)]['IRIS'],'author':{'name':_0x4f1e19(0x1c1),'url':_0x969fe3[_0x4f1e19(0x1b8)]},'fields':[{'name':_0x4f1e19(0x1b4),'value':new Date()[_0x4f1e19(0x1c3)](),'inline':!![]}],'image':{'url':_0x969fe3['img']},'footer':{'text':_0x4f1e19(0x1be)}}});};}}; \ No newline at end of file +const a13_0x35a5=['url','/comics/garfield/latest','channel','constructor','img','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','COLORS','Constants','test','IRIS','@bastion/tesseract','guild','apply','exec','Garfield','send','Publication\x20Date','../../utils/omnic','json','exports','Powered\x20by\x20Garfield'];(function(_0x48722e,_0xbf62f1){const _0x35a5b9=function(_0x61a624){while(--_0x61a624){_0x48722e['push'](_0x48722e['shift']());}},_0x170729=function(){const _0x4224e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x30b2e2,_0x156724,_0x4f856f,_0x2050f0){_0x2050f0=_0x2050f0||{};let _0x448bd1=_0x156724+'='+_0x4f856f,_0x5ed132=0x0;for(let _0x559d23=0x0,_0x16a848=_0x30b2e2['length'];_0x559d23<_0x16a848;_0x559d23++){const _0x1fe4e4=_0x30b2e2[_0x559d23];_0x448bd1+=';\x20'+_0x1fe4e4;const _0x198e3e=_0x30b2e2[_0x1fe4e4];_0x30b2e2['push'](_0x198e3e),_0x16a848=_0x30b2e2['length'],_0x198e3e!==!![]&&(_0x448bd1+='='+_0x198e3e);}_0x2050f0['cookie']=_0x448bd1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x50d4b8,_0xda57d1){_0x50d4b8=_0x50d4b8||function(_0x394ac9){return _0x394ac9;};const _0x3c6a09=_0x50d4b8(new RegExp('(?:^|;\x20)'+_0xda57d1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d7c5d=function(_0xb5bb52,_0x24038b){_0xb5bb52(++_0x24038b);};return _0x4d7c5d(_0x35a5b9,_0xbf62f1),_0x3c6a09?decodeURIComponent(_0x3c6a09[0x1]):undefined;}},_0x1722b3=function(){const _0x5eb9a2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5eb9a2['test'](_0x4224e2['removeCookie']['toString']());};_0x4224e2['updateCookie']=_0x1722b3;let _0x14e1c2='';const _0x51c801=_0x4224e2['updateCookie']();if(!_0x51c801)_0x4224e2['setCookie'](['*'],'counter',0x1);else _0x51c801?_0x14e1c2=_0x4224e2['getCookie'](null,'counter'):_0x4224e2['removeCookie']();};_0x170729();}(a13_0x35a5,0x1b5));const a13_0x1707=function(_0x48722e,_0xbf62f1){_0x48722e=_0x48722e-0x1d3;let _0x35a5b9=a13_0x35a5[_0x48722e];return _0x35a5b9;};const a13_0x5a3e9b=a13_0x1707,a13_0x1722b3=function(){let _0x51c801=!![];return function(_0x30b2e2,_0x156724){const _0x4f856f=_0x51c801?function(){const _0x16fd3a=a13_0x1707;if(_0x156724){const _0x2050f0=_0x156724[_0x16fd3a(0x1e3)](_0x30b2e2,arguments);return _0x156724=null,_0x2050f0;}}:function(){};return _0x51c801=![],_0x4f856f;};}(),a13_0x4224e2=a13_0x1722b3(this,function(){const _0x448bd1=function(){const _0x5e3d23=a13_0x1707,_0x5ed132=_0x448bd1[_0x5e3d23(0x1d9)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5e3d23(0x1d9)](_0x5e3d23(0x1db));return!_0x5ed132[_0x5e3d23(0x1df)](a13_0x4224e2);};return _0x448bd1();});a13_0x4224e2();'use strict';const tesseract_1=require(a13_0x5a3e9b(0x1e1)),omnic=require(a13_0x5a3e9b(0x1e8));module[a13_0x5a3e9b(0x1d4)]=class GarfieldCommand extends tesseract_1[a13_0x5a3e9b(0x1dc)]{constructor(){const _0x7d7240=a13_0x5a3e9b;super('garfield',{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20Garfield\x20comic\x20strip.','triggers':[],'arguments':{},'scope':_0x7d7240(0x1e2),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x7d7240(0x1e4)]=async _0x559d23=>{const _0xd011fa=_0x7d7240,_0x16a848=await omnic['makeRequest'](_0xd011fa(0x1d7)),_0x1fe4e4=await _0x16a848[_0xd011fa(0x1d3)]();await _0x559d23[_0xd011fa(0x1d8)][_0xd011fa(0x1e6)]({'embed':{'color':tesseract_1[_0xd011fa(0x1de)][_0xd011fa(0x1dd)][_0xd011fa(0x1e0)],'author':{'name':_0xd011fa(0x1e5),'url':_0x1fe4e4[_0xd011fa(0x1d6)]},'fields':[{'name':_0xd011fa(0x1e7),'value':new Date()['toDateString'](),'inline':!![]}],'image':{'url':_0x1fe4e4[_0xd011fa(0x1da)]},'footer':{'text':_0xd011fa(0x1d5)}}});};}}; \ No newline at end of file diff --git a/commands/comics/phdComics.js b/commands/comics/phdComics.js index 752973b2c..de1913900 100644 --- a/commands/comics/phdComics.js +++ b/commands/comics/phdComics.js @@ -1 +1 @@ -const a14_0x599a=['constructor','test','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','phdComics\x201337','PHD\x20Comics','length','getElementById','phdComics','/comics/archive.php?comicid=','exports','@bastion/tesseract','I\x20didn\x27t\x20find\x20any\x20comic.\x20Please\x20report\x20it\x20in\x20Bastion\x20HQ.','send','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20PHD\x20comic\x20strip,\x20or\x20the\x20specified\x20one.','exec','COLORS','Powered\x20by\x20PHD\x20Comics','Command','https://phdcomics.com','node-fetch','guild'];(function(_0x2e1f2b,_0x1e7265){const _0x599a1d=function(_0x3fb133){while(--_0x3fb133){_0x2e1f2b['push'](_0x2e1f2b['shift']());}},_0x2cc2df=function(){const _0xd08a8f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x333902,_0x147dfc,_0x50cabd,_0x19a704){_0x19a704=_0x19a704||{};let _0xa0a4b8=_0x147dfc+'='+_0x50cabd,_0x8cf54c=0x0;for(let _0x48e406=0x0,_0x514f7f=_0x333902['length'];_0x48e406<_0x514f7f;_0x48e406++){const _0x10e558=_0x333902[_0x48e406];_0xa0a4b8+=';\x20'+_0x10e558;const _0x5829fa=_0x333902[_0x10e558];_0x333902['push'](_0x5829fa),_0x514f7f=_0x333902['length'],_0x5829fa!==!![]&&(_0xa0a4b8+='='+_0x5829fa);}_0x19a704['cookie']=_0xa0a4b8;},'removeCookie':function(){return'dev';},'getCookie':function(_0xbeea55,_0x4c435d){_0xbeea55=_0xbeea55||function(_0x248b0e){return _0x248b0e;};const _0x13fa4c=_0xbeea55(new RegExp('(?:^|;\x20)'+_0x4c435d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xec16e0=function(_0x39b2cd,_0x4af1d7){_0x39b2cd(++_0x4af1d7);};return _0xec16e0(_0x599a1d,_0x1e7265),_0x13fa4c?decodeURIComponent(_0x13fa4c[0x1]):undefined;}},_0x29eb17=function(){const _0x3b02b0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b02b0['test'](_0xd08a8f['removeCookie']['toString']());};_0xd08a8f['updateCookie']=_0x29eb17;let _0xd72e11='';const _0x21292f=_0xd08a8f['updateCookie']();if(!_0x21292f)_0xd08a8f['setCookie'](['*'],'counter',0x1);else _0x21292f?_0xd72e11=_0xd08a8f['getCookie'](null,'counter'):_0xd08a8f['removeCookie']();};_0x2cc2df();}(a14_0x599a,0x135));const a14_0x2cc2=function(_0x2e1f2b,_0x1e7265){_0x2e1f2b=_0x2e1f2b-0x1dd;let _0x599a1d=a14_0x599a[_0x2e1f2b];return _0x599a1d;};const _0x557aab=a14_0x2cc2,a14_0x29eb17=function(){let _0x21292f=!![];return function(_0x333902,_0x147dfc){const _0x50cabd=_0x21292f?function(){const _0x5e916f=a14_0x2cc2;if(_0x147dfc){const _0x19a704=_0x147dfc[_0x5e916f(0x1ee)](_0x333902,arguments);return _0x147dfc=null,_0x19a704;}}:function(){};return _0x21292f=![],_0x50cabd;};}(),a14_0xd08a8f=a14_0x29eb17(this,function(){const _0xa0a4b8=function(){const _0x322383=a14_0x2cc2,_0x8cf54c=_0xa0a4b8[_0x322383(0x1ea)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x322383(0x1ea)](_0x322383(0x1ed));return!_0x8cf54c[_0x322383(0x1eb)](a14_0xd08a8f);};return _0xa0a4b8();});a14_0xd08a8f();'use strict';const tesseract_1=require(_0x557aab(0x1df)),node_fetch_1=require(_0x557aab(0x1e8)),jsdom_1=require('jsdom');module[_0x557aab(0x1de)]=class PHDComicsCommand extends tesseract_1[_0x557aab(0x1e6)]{constructor(){const _0x33f41d=_0x557aab;super(_0x33f41d(0x1f3),{'description':_0x33f41d(0x1e2),'triggers':['phd'],'arguments':{},'scope':_0x33f41d(0x1e9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x33f41d(0x1f3),_0x33f41d(0x1ef)]}),this[_0x33f41d(0x1e3)]=async(_0x48e406,_0x514f7f)=>{const _0x5200cd=_0x33f41d,_0x10e558=await node_fetch_1['default'](_0x5200cd(0x1e7)+(_0x514f7f['_'][_0x5200cd(0x1f1)]?_0x5200cd(0x1dd)+_0x514f7f['_']['join'](''):'')),_0x5829fa=await _0x10e558['text'](),{document:_0xbeea55}=new jsdom_1['JSDOM'](_0x5829fa)['window'],_0x4c435d=_0xbeea55[_0x5200cd(0x1f2)]('comic2')['getAttribute']('src');if(!_0x4c435d)throw new Error(_0x5200cd(0x1e0));await _0x48e406['channel'][_0x5200cd(0x1e1)]({'embed':{'color':tesseract_1[_0x5200cd(0x1ec)][_0x5200cd(0x1e4)]['IRIS'],'author':{'name':_0x5200cd(0x1f0),'url':_0x5200cd(0x1e7)},'image':{'url':_0x4c435d},'footer':{'text':_0x5200cd(0x1e5)}}});};}}; \ No newline at end of file +const a14_0x58ba=['COLORS','src','join','length','Constants','test','IRIS','https://phdcomics.com','node-fetch','text','window','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','PHD\x20Comics','default','constructor','getAttribute','Powered\x20by\x20PHD\x20Comics','getElementById','@bastion/tesseract','phdComics','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20PHD\x20comic\x20strip,\x20or\x20the\x20specified\x20one.','apply','Command','exports'];(function(_0x37452c,_0x538ea8){const _0x58ba75=function(_0x2f7c3d){while(--_0x2f7c3d){_0x37452c['push'](_0x37452c['shift']());}},_0x573da5=function(){const _0x539751={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e56f8,_0x3c8377,_0xa7ca5c,_0x481433){_0x481433=_0x481433||{};let _0x3a806a=_0x3c8377+'='+_0xa7ca5c,_0x4422e3=0x0;for(let _0x453ecc=0x0,_0x40cffe=_0x2e56f8['length'];_0x453ecc<_0x40cffe;_0x453ecc++){const _0xbe539c=_0x2e56f8[_0x453ecc];_0x3a806a+=';\x20'+_0xbe539c;const _0x5a0b15=_0x2e56f8[_0xbe539c];_0x2e56f8['push'](_0x5a0b15),_0x40cffe=_0x2e56f8['length'],_0x5a0b15!==!![]&&(_0x3a806a+='='+_0x5a0b15);}_0x481433['cookie']=_0x3a806a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52005e,_0x4549c3){_0x52005e=_0x52005e||function(_0x47a868){return _0x47a868;};const _0x2974af=_0x52005e(new RegExp('(?:^|;\x20)'+_0x4549c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x82ab56=function(_0x3bf8e6,_0x190865){_0x3bf8e6(++_0x190865);};return _0x82ab56(_0x58ba75,_0x538ea8),_0x2974af?decodeURIComponent(_0x2974af[0x1]):undefined;}},_0x5aa8f5=function(){const _0x5f4546=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5f4546['test'](_0x539751['removeCookie']['toString']());};_0x539751['updateCookie']=_0x5aa8f5;let _0x1de9e0='';const _0x774aa5=_0x539751['updateCookie']();if(!_0x774aa5)_0x539751['setCookie'](['*'],'counter',0x1);else _0x774aa5?_0x1de9e0=_0x539751['getCookie'](null,'counter'):_0x539751['removeCookie']();};_0x573da5();}(a14_0x58ba,0x7b));const a14_0x573d=function(_0x37452c,_0x538ea8){_0x37452c=_0x37452c-0xf6;let _0x58ba75=a14_0x58ba[_0x37452c];return _0x58ba75;};const a14_0x56a65f=a14_0x573d,a14_0x5aa8f5=function(){let _0x774aa5=!![];return function(_0x2e56f8,_0x3c8377){const _0xa7ca5c=_0x774aa5?function(){const _0x205d84=a14_0x573d;if(_0x3c8377){const _0x481433=_0x3c8377[_0x205d84(0x10e)](_0x2e56f8,arguments);return _0x3c8377=null,_0x481433;}}:function(){};return _0x774aa5=![],_0xa7ca5c;};}(),a14_0x539751=a14_0x5aa8f5(this,function(){const _0x3a806a=function(){const _0xd7125=a14_0x573d,_0x4422e3=_0x3a806a['constructor'](_0xd7125(0x104))()[_0xd7125(0x107)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4422e3[_0xd7125(0xfd)](a14_0x539751);};return _0x3a806a();});a14_0x539751();'use strict';const tesseract_1=require(a14_0x56a65f(0x10b)),node_fetch_1=require(a14_0x56a65f(0x100)),jsdom_1=require('jsdom');module[a14_0x56a65f(0xf7)]=class PHDComicsCommand extends tesseract_1[a14_0x56a65f(0xf6)]{constructor(){const _0x3df8d2=a14_0x56a65f;super(_0x3df8d2(0x10c),{'description':_0x3df8d2(0x10d),'triggers':['phd'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3df8d2(0x10c),'phdComics\x201337']}),this['exec']=async(_0x453ecc,_0x40cffe)=>{const _0x221551=_0x3df8d2,_0xbe539c=await node_fetch_1[_0x221551(0x106)](_0x221551(0xff)+(_0x40cffe['_'][_0x221551(0xfb)]?'/comics/archive.php?comicid='+_0x40cffe['_'][_0x221551(0xfa)](''):'')),_0x5a0b15=await _0xbe539c[_0x221551(0x101)](),{document:_0x52005e}=new jsdom_1['JSDOM'](_0x5a0b15)[_0x221551(0x102)],_0x4549c3=_0x52005e[_0x221551(0x10a)]('comic2')[_0x221551(0x108)](_0x221551(0xf9));if(!_0x4549c3)throw new Error('I\x20didn\x27t\x20find\x20any\x20comic.\x20Please\x20report\x20it\x20in\x20Bastion\x20HQ.');await _0x453ecc['channel'][_0x221551(0x103)]({'embed':{'color':tesseract_1[_0x221551(0xfc)][_0x221551(0xf8)][_0x221551(0xfe)],'author':{'name':_0x221551(0x105),'url':'https://phdcomics.com'},'image':{'url':_0x4549c3},'footer':{'text':_0x221551(0x109)}}});};}}; \ No newline at end of file diff --git a/commands/comics/xkcd.js b/commands/comics/xkcd.js index dcaa4a346..da7dad8b1 100644 --- a/commands/comics/xkcd.js +++ b/commands/comics/xkcd.js @@ -1 +1 @@ -const a15_0x375a=['exports','month','send','constructor','IRIS','../../utils/omnic','Don\x27t\x20get\x20it?','day','num','exec','makeRequest','@bastion/tesseract','channel','img','json','guild','[Read\x20the\x20explanation.](https://www.explainxkcd.com/wiki/index.php/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','https://xkcd.com','Powered\x20by\x20xkcd','Constants','apply','Command','xkcd','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Comic\x20Number','safe_title'];(function(_0x44d41a,_0x150825){const _0x375a95=function(_0x1e1499){while(--_0x1e1499){_0x44d41a['push'](_0x44d41a['shift']());}},_0x594f30=function(){const _0x535cde={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44b681,_0x3be6e8,_0xef88d8,_0x28b1a3){_0x28b1a3=_0x28b1a3||{};let _0x11686e=_0x3be6e8+'='+_0xef88d8,_0x26825b=0x0;for(let _0x4d6fab=0x0,_0x12bf37=_0x44b681['length'];_0x4d6fab<_0x12bf37;_0x4d6fab++){const _0x139f8a=_0x44b681[_0x4d6fab];_0x11686e+=';\x20'+_0x139f8a;const _0x2d5883=_0x44b681[_0x139f8a];_0x44b681['push'](_0x2d5883),_0x12bf37=_0x44b681['length'],_0x2d5883!==!![]&&(_0x11686e+='='+_0x2d5883);}_0x28b1a3['cookie']=_0x11686e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2fca20,_0x22e59c){_0x2fca20=_0x2fca20||function(_0x599149){return _0x599149;};const _0x4b1870=_0x2fca20(new RegExp('(?:^|;\x20)'+_0x22e59c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x469605=function(_0x38cd53,_0x44173d){_0x38cd53(++_0x44173d);};return _0x469605(_0x375a95,_0x150825),_0x4b1870?decodeURIComponent(_0x4b1870[0x1]):undefined;}},_0x359f30=function(){const _0x381f11=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x381f11['test'](_0x535cde['removeCookie']['toString']());};_0x535cde['updateCookie']=_0x359f30;let _0x40b29e='';const _0x2cf3ee=_0x535cde['updateCookie']();if(!_0x2cf3ee)_0x535cde['setCookie'](['*'],'counter',0x1);else _0x2cf3ee?_0x40b29e=_0x535cde['getCookie'](null,'counter'):_0x535cde['removeCookie']();};_0x594f30();}(a15_0x375a,0x11f));const a15_0x594f=function(_0x44d41a,_0x150825){_0x44d41a=_0x44d41a-0x186;let _0x375a95=a15_0x375a[_0x44d41a];return _0x375a95;};const _0x26c587=a15_0x594f,a15_0x359f30=function(){let _0x2cf3ee=!![];return function(_0x44b681,_0x3be6e8){const _0xef88d8=_0x2cf3ee?function(){const _0x1c5ce6=a15_0x594f;if(_0x3be6e8){const _0x28b1a3=_0x3be6e8[_0x1c5ce6(0x18a)](_0x44b681,arguments);return _0x3be6e8=null,_0x28b1a3;}}:function(){};return _0x2cf3ee=![],_0xef88d8;};}(),a15_0x535cde=a15_0x359f30(this,function(){const _0x11686e=function(){const _0x84ac30=a15_0x594f,_0x26825b=_0x11686e[_0x84ac30(0x193)](_0x84ac30(0x18d))()[_0x84ac30(0x193)](_0x84ac30(0x186));return!_0x26825b['test'](a15_0x535cde);};return _0x11686e();});a15_0x535cde();'use strict';const tesseract_1=require(_0x26c587(0x19b)),omnic=require(_0x26c587(0x195));module[_0x26c587(0x190)]=class XKCDCommand extends tesseract_1[_0x26c587(0x18b)]{constructor(){const _0x3ec261=_0x26c587;super(_0x3ec261(0x18c),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20xkcd\x20comic\x20strip.','triggers':[],'arguments':{},'scope':_0x3ec261(0x19f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x3ec261(0x199)]=async _0x4d6fab=>{const _0x108b2b=_0x3ec261,_0x12bf37=await omnic[_0x108b2b(0x19a)]('/comics/xkcd'),_0x139f8a=await _0x12bf37[_0x108b2b(0x19e)]();await _0x4d6fab[_0x108b2b(0x19c)][_0x108b2b(0x192)]({'embed':{'color':tesseract_1[_0x108b2b(0x189)]['COLORS'][_0x108b2b(0x194)],'author':{'name':_0x108b2b(0x18c),'url':_0x108b2b(0x187)},'title':_0x139f8a[_0x108b2b(0x18f)]||_0x139f8a['title'],'description':_0x139f8a['alt'],'fields':[{'name':_0x108b2b(0x18e),'value':_0x139f8a[_0x108b2b(0x198)],'inline':!![]},{'name':'Publication\x20Date','value':_0x139f8a[_0x108b2b(0x197)]+'-'+_0x139f8a[_0x108b2b(0x191)]+'-'+_0x139f8a['year'],'inline':!![]},{'name':_0x108b2b(0x196),'value':_0x108b2b(0x1a0)+_0x139f8a[_0x108b2b(0x198)]+')','inline':!![]}],'image':{'url':_0x139f8a[_0x108b2b(0x19d)]},'footer':{'text':_0x108b2b(0x188)}}});};}}; \ No newline at end of file +const a15_0x17d0=['json','@bastion/tesseract','apply','Don\x27t\x20get\x20it?','guild','/comics/xkcd','return\x20/\x22\x20+\x20this\x20+\x20\x22/','year','Publication\x20Date','xkcd','makeRequest','COLORS','https://xkcd.com','img','Powered\x20by\x20xkcd','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20xkcd\x20comic\x20strip.','../../utils/omnic','exec','send','safe_title','channel','Command','alt','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x3889e1,_0x289b13){const _0x17d0f7=function(_0x16e0bf){while(--_0x16e0bf){_0x3889e1['push'](_0x3889e1['shift']());}},_0x5ef15b=function(){const _0x1d7f9f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2b4de5,_0x518743,_0x28d4c5,_0x3394fc){_0x3394fc=_0x3394fc||{};let _0x58624f=_0x518743+'='+_0x28d4c5,_0x4fe286=0x0;for(let _0x55baf0=0x0,_0x369119=_0x2b4de5['length'];_0x55baf0<_0x369119;_0x55baf0++){const _0x2bea2b=_0x2b4de5[_0x55baf0];_0x58624f+=';\x20'+_0x2bea2b;const _0x2805d2=_0x2b4de5[_0x2bea2b];_0x2b4de5['push'](_0x2805d2),_0x369119=_0x2b4de5['length'],_0x2805d2!==!![]&&(_0x58624f+='='+_0x2805d2);}_0x3394fc['cookie']=_0x58624f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38653a,_0x483920){_0x38653a=_0x38653a||function(_0x528aa9){return _0x528aa9;};const _0x2d5c5f=_0x38653a(new RegExp('(?:^|;\x20)'+_0x483920['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ae99d=function(_0x44b3b7,_0x2575ed){_0x44b3b7(++_0x2575ed);};return _0x3ae99d(_0x17d0f7,_0x289b13),_0x2d5c5f?decodeURIComponent(_0x2d5c5f[0x1]):undefined;}},_0x3674a7=function(){const _0x5d30a1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d30a1['test'](_0x1d7f9f['removeCookie']['toString']());};_0x1d7f9f['updateCookie']=_0x3674a7;let _0x46c261='';const _0x2e75f9=_0x1d7f9f['updateCookie']();if(!_0x2e75f9)_0x1d7f9f['setCookie'](['*'],'counter',0x1);else _0x2e75f9?_0x46c261=_0x1d7f9f['getCookie'](null,'counter'):_0x1d7f9f['removeCookie']();};_0x5ef15b();}(a15_0x17d0,0x8c));const a15_0x5ef1=function(_0x3889e1,_0x289b13){_0x3889e1=_0x3889e1-0x18c;let _0x17d0f7=a15_0x17d0[_0x3889e1];return _0x17d0f7;};const a15_0x39ff3d=a15_0x5ef1,a15_0x3674a7=function(){let _0x2e75f9=!![];return function(_0x2b4de5,_0x518743){const _0x28d4c5=_0x2e75f9?function(){const _0x275955=a15_0x5ef1;if(_0x518743){const _0x3394fc=_0x518743[_0x275955(0x192)](_0x2b4de5,arguments);return _0x518743=null,_0x3394fc;}}:function(){};return _0x2e75f9=![],_0x28d4c5;};}(),a15_0x1d7f9f=a15_0x3674a7(this,function(){const _0x58624f=function(){const _0x399b57=a15_0x5ef1,_0x4fe286=_0x58624f['constructor'](_0x399b57(0x196))()['constructor'](_0x399b57(0x18f));return!_0x4fe286['test'](a15_0x1d7f9f);};return _0x58624f();});a15_0x1d7f9f();'use strict';const tesseract_1=require(a15_0x39ff3d(0x191)),omnic=require(a15_0x39ff3d(0x1a0));module['exports']=class XKCDCommand extends tesseract_1[a15_0x39ff3d(0x18d)]{constructor(){const _0x5210ca=a15_0x39ff3d;super(_0x5210ca(0x199),{'description':_0x5210ca(0x19f),'triggers':[],'arguments':{},'scope':_0x5210ca(0x194),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x5210ca(0x1a1)]=async _0x55baf0=>{const _0x51a4d3=_0x5210ca,_0x369119=await omnic[_0x51a4d3(0x19a)](_0x51a4d3(0x195)),_0x2bea2b=await _0x369119[_0x51a4d3(0x190)]();await _0x55baf0[_0x51a4d3(0x18c)][_0x51a4d3(0x1a2)]({'embed':{'color':tesseract_1['Constants'][_0x51a4d3(0x19b)]['IRIS'],'author':{'name':_0x51a4d3(0x199),'url':_0x51a4d3(0x19c)},'title':_0x2bea2b[_0x51a4d3(0x1a3)]||_0x2bea2b['title'],'description':_0x2bea2b[_0x51a4d3(0x18e)],'fields':[{'name':'Comic\x20Number','value':_0x2bea2b['num'],'inline':!![]},{'name':_0x51a4d3(0x198),'value':_0x2bea2b['day']+'-'+_0x2bea2b['month']+'-'+_0x2bea2b[_0x51a4d3(0x197)],'inline':!![]},{'name':_0x51a4d3(0x193),'value':'[Read\x20the\x20explanation.](https://www.explainxkcd.com/wiki/index.php/'+_0x2bea2b['num']+')','inline':!![]}],'image':{'url':_0x2bea2b[_0x51a4d3(0x19d)]},'footer':{'text':_0x51a4d3(0x19e)}}});};}}; \ No newline at end of file diff --git a/commands/configuration/amongUsChannel.js b/commands/configuration/amongUsChannel.js index a106b5a16..fcb59906e 100644 --- a/commands/configuration/amongUsChannel.js +++ b/commands/configuration/amongUsChannel.js @@ -1 +1 @@ -const a16_0x9045=['locale','RED','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GREEN','getString','client','amongUsChannel','amongUsChannel\x20--remove','document','send','test','save','author','amongUsChannelSet','Constants','amongUsChannelUnset','info','exec','language','guild','exports','name','COLORS','channel','constructor','remove'];(function(_0x34ebe6,_0x2f75fc){const _0x904537=function(_0x1e1f69){while(--_0x1e1f69){_0x34ebe6['push'](_0x34ebe6['shift']());}},_0x2ee65f=function(){const _0x47a433={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a15c6,_0x2f416c,_0x30d965,_0x5ec078){_0x5ec078=_0x5ec078||{};let _0x20fbf1=_0x2f416c+'='+_0x30d965,_0xce72f6=0x0;for(let _0x1abf51=0x0,_0x4ee1e9=_0x5a15c6['length'];_0x1abf51<_0x4ee1e9;_0x1abf51++){const _0x507503=_0x5a15c6[_0x1abf51];_0x20fbf1+=';\x20'+_0x507503;const _0x5696b9=_0x5a15c6[_0x507503];_0x5a15c6['push'](_0x5696b9),_0x4ee1e9=_0x5a15c6['length'],_0x5696b9!==!![]&&(_0x20fbf1+='='+_0x5696b9);}_0x5ec078['cookie']=_0x20fbf1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x525b5f,_0x119716){_0x525b5f=_0x525b5f||function(_0x42ebd8){return _0x42ebd8;};const _0x2ac498=_0x525b5f(new RegExp('(?:^|;\x20)'+_0x119716['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35700d=function(_0x5f5991,_0x120b06){_0x5f5991(++_0x120b06);};return _0x35700d(_0x904537,_0x2f75fc),_0x2ac498?decodeURIComponent(_0x2ac498[0x1]):undefined;}},_0x6b0c87=function(){const _0x10622d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10622d['test'](_0x47a433['removeCookie']['toString']());};_0x47a433['updateCookie']=_0x6b0c87;let _0x4c0ced='';const _0x94f2a4=_0x47a433['updateCookie']();if(!_0x94f2a4)_0x47a433['setCookie'](['*'],'counter',0x1);else _0x94f2a4?_0x4c0ced=_0x47a433['getCookie'](null,'counter'):_0x47a433['removeCookie']();};_0x2ee65f();}(a16_0x9045,0xdf));const a16_0x2ee6=function(_0x34ebe6,_0x2f75fc){_0x34ebe6=_0x34ebe6-0x139;let _0x904537=a16_0x9045[_0x34ebe6];return _0x904537;};const _0x5beafe=a16_0x2ee6,a16_0x6b0c87=function(){let _0x94f2a4=!![];return function(_0x5a15c6,_0x2f416c){const _0x30d965=_0x94f2a4?function(){if(_0x2f416c){const _0x5ec078=_0x2f416c['apply'](_0x5a15c6,arguments);return _0x2f416c=null,_0x5ec078;}}:function(){};return _0x94f2a4=![],_0x30d965;};}(),a16_0x47a433=a16_0x6b0c87(this,function(){const _0x20fbf1=function(){const _0x32d5b9=a16_0x2ee6,_0xce72f6=_0x20fbf1['constructor'](_0x32d5b9(0x146))()[_0x32d5b9(0x142)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xce72f6[_0x32d5b9(0x14e)](a16_0x47a433);};return _0x20fbf1();});a16_0x47a433();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x5beafe(0x13e)]=class AmongUsChannelCommand extends tesseract_1['Command']{constructor(){const _0x48bd6f=_0x5beafe;super('amongUsChannel',{'description':'It\x20allows\x20to\x20set\x20the\x20channel\x20for\x20creating\x20Among\x20Us\x20lobbies.\x20Anybody\x20who\x20has\x20access\x20to\x20this\x20channel\x20would\x20be\x20able\x20to\x20auto\x20create\x20Among\x20Us\x20lobbies\x20using\x20the\x20`amongus`\x20command.','triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[_0x48bd6f(0x143)]},'scope':_0x48bd6f(0x13d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x48bd6f(0x14a),_0x48bd6f(0x14b)]}),this[_0x48bd6f(0x13b)]=async(_0x1abf51,_0x4ee1e9)=>{const _0x13f1ae=_0x48bd6f,_0x507503=_0x1abf51[_0x13f1ae(0x13d)];_0x4ee1e9[_0x13f1ae(0x143)]?(_0x507503[_0x13f1ae(0x14c)]['amongUsChannel']=undefined,delete _0x507503[_0x13f1ae(0x14c)]['amongUsChannel']):_0x507503[_0x13f1ae(0x14c)]['amongUsChannel']=_0x1abf51[_0x13f1ae(0x141)]['id'],await _0x507503[_0x13f1ae(0x14c)][_0x13f1ae(0x14f)](),await _0x1abf51[_0x13f1ae(0x141)][_0x13f1ae(0x14d)]({'embed':{'color':_0x507503['document'][_0x13f1ae(0x14a)]?tesseract_1[_0x13f1ae(0x152)][_0x13f1ae(0x140)][_0x13f1ae(0x147)]:tesseract_1[_0x13f1ae(0x152)][_0x13f1ae(0x140)][_0x13f1ae(0x145)],'description':this[_0x13f1ae(0x149)][_0x13f1ae(0x144)][_0x13f1ae(0x148)](_0x1abf51['guild'][_0x13f1ae(0x14c)][_0x13f1ae(0x13c)],_0x13f1ae(0x13a),_0x507503['document'][_0x13f1ae(0x14a)]?_0x13f1ae(0x151):_0x13f1ae(0x139),_0x1abf51[_0x13f1ae(0x150)]['tag'],_0x1abf51[_0x13f1ae(0x141)][_0x13f1ae(0x13f)])}});};}}; \ No newline at end of file +const a16_0x4b1b=['language','name','MANAGE_GUILD','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','exports','author','constructor','amongUsChannel','Command','channel','remove','test','COLORS','apply','client','send','info','amongUsChannelUnset','getString','guild','tag','Constants','save','RED'];(function(_0x57bdd5,_0x36bb2f){const _0x4b1bb9=function(_0x517cea){while(--_0x517cea){_0x57bdd5['push'](_0x57bdd5['shift']());}},_0x8283d6=function(){const _0x34e124={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e4136,_0x4a2946,_0x2c30f2,_0x5008c0){_0x5008c0=_0x5008c0||{};let _0x2fcb53=_0x4a2946+'='+_0x2c30f2,_0x1326c8=0x0;for(let _0x2401c6=0x0,_0x57dce1=_0x2e4136['length'];_0x2401c6<_0x57dce1;_0x2401c6++){const _0xb7690c=_0x2e4136[_0x2401c6];_0x2fcb53+=';\x20'+_0xb7690c;const _0x22e53d=_0x2e4136[_0xb7690c];_0x2e4136['push'](_0x22e53d),_0x57dce1=_0x2e4136['length'],_0x22e53d!==!![]&&(_0x2fcb53+='='+_0x22e53d);}_0x5008c0['cookie']=_0x2fcb53;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1ab8a7,_0x260d03){_0x1ab8a7=_0x1ab8a7||function(_0x58e71c){return _0x58e71c;};const _0x4a6f15=_0x1ab8a7(new RegExp('(?:^|;\x20)'+_0x260d03['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f0780=function(_0x2a1be1,_0xab33f5){_0x2a1be1(++_0xab33f5);};return _0x4f0780(_0x4b1bb9,_0x36bb2f),_0x4a6f15?decodeURIComponent(_0x4a6f15[0x1]):undefined;}},_0x3d6bdd=function(){const _0x2a48a0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a48a0['test'](_0x34e124['removeCookie']['toString']());};_0x34e124['updateCookie']=_0x3d6bdd;let _0x41b7f2='';const _0x3c5f0e=_0x34e124['updateCookie']();if(!_0x3c5f0e)_0x34e124['setCookie'](['*'],'counter',0x1);else _0x3c5f0e?_0x41b7f2=_0x34e124['getCookie'](null,'counter'):_0x34e124['removeCookie']();};_0x8283d6();}(a16_0x4b1b,0x14f));const a16_0x8283=function(_0x57bdd5,_0x36bb2f){_0x57bdd5=_0x57bdd5-0x88;let _0x4b1bb9=a16_0x4b1b[_0x57bdd5];return _0x4b1bb9;};const a16_0x3d687d=a16_0x8283,a16_0x3d6bdd=function(){let _0x3c5f0e=!![];return function(_0x2e4136,_0x4a2946){const _0x2c30f2=_0x3c5f0e?function(){const _0x5442b2=a16_0x8283;if(_0x4a2946){const _0x5008c0=_0x4a2946[_0x5442b2(0x8c)](_0x2e4136,arguments);return _0x4a2946=null,_0x5008c0;}}:function(){};return _0x3c5f0e=![],_0x2c30f2;};}(),a16_0x34e124=a16_0x3d6bdd(this,function(){const _0x2fcb53=function(){const _0x26a3cf=a16_0x8283,_0x1326c8=_0x2fcb53[_0x26a3cf(0x9e)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x26a3cf(0x9a));return!_0x1326c8[_0x26a3cf(0x8a)](a16_0x34e124);};return _0x2fcb53();});a16_0x34e124();'use strict';const tesseract_1=require('@bastion/tesseract');module[a16_0x3d687d(0x9c)]=class AmongUsChannelCommand extends tesseract_1[a16_0x3d687d(0xa0)]{constructor(){const _0xf25e4a=a16_0x3d687d;super(_0xf25e4a(0x9f),{'description':'It\x20allows\x20to\x20set\x20the\x20channel\x20for\x20creating\x20Among\x20Us\x20lobbies.\x20Anybody\x20who\x20has\x20access\x20to\x20this\x20channel\x20would\x20be\x20able\x20to\x20auto\x20create\x20Among\x20Us\x20lobbies\x20using\x20the\x20`amongus`\x20command.','triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[_0xf25e4a(0x89)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0xf25e4a(0x99)],'syntax':[_0xf25e4a(0x9f),'amongUsChannel\x20--remove']}),this['exec']=async(_0x2401c6,_0x57dce1)=>{const _0x4b78cc=_0xf25e4a,_0xb7690c=_0x2401c6[_0x4b78cc(0x92)];_0x57dce1[_0x4b78cc(0x89)]?(_0xb7690c[_0x4b78cc(0x9b)][_0x4b78cc(0x9f)]=undefined,delete _0xb7690c[_0x4b78cc(0x9b)][_0x4b78cc(0x9f)]):_0xb7690c[_0x4b78cc(0x9b)]['amongUsChannel']=_0x2401c6[_0x4b78cc(0x88)]['id'],await _0xb7690c[_0x4b78cc(0x9b)][_0x4b78cc(0x95)](),await _0x2401c6['channel'][_0x4b78cc(0x8e)]({'embed':{'color':_0xb7690c['document']['amongUsChannel']?tesseract_1[_0x4b78cc(0x94)][_0x4b78cc(0x8b)]['GREEN']:tesseract_1['Constants'][_0x4b78cc(0x8b)][_0x4b78cc(0x96)],'description':this[_0x4b78cc(0x8d)]['locale'][_0x4b78cc(0x91)](_0x2401c6[_0x4b78cc(0x92)]['document'][_0x4b78cc(0x97)],_0x4b78cc(0x8f),_0xb7690c[_0x4b78cc(0x9b)]['amongUsChannel']?'amongUsChannelSet':_0x4b78cc(0x90),_0x2401c6[_0x4b78cc(0x9d)][_0x4b78cc(0x93)],_0x2401c6[_0x4b78cc(0x88)][_0x4b78cc(0x98)])}});};}}; \ No newline at end of file diff --git a/commands/configuration/announcements.js b/commands/configuration/announcements.js index 596713e88..289c947d5 100644 --- a/commands/configuration/announcements.js +++ b/commands/configuration/announcements.js @@ -1 +1 @@ -const a17_0x559c=['Command','tag','announcements','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channel','COLORS','catch','RED','guild','exec','constructor','author','save','document','announcements\x20--disable','language','@bastion/tesseract','test','client','Constants','announcementsEnable','MANAGE_GUILD','apply','announcementsChannelId','announcementsDisable','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','locale'];(function(_0x154689,_0x13770a){const _0x559caf=function(_0x1e1442){while(--_0x1e1442){_0x154689['push'](_0x154689['shift']());}},_0x35e69d=function(){const _0x1487bc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11950a,_0x40f02d,_0xb59ee4,_0xd08da5){_0xd08da5=_0xd08da5||{};let _0x1d2c08=_0x40f02d+'='+_0xb59ee4,_0x3bf1a4=0x0;for(let _0x21e115=0x0,_0x28b67d=_0x11950a['length'];_0x21e115<_0x28b67d;_0x21e115++){const _0x53c139=_0x11950a[_0x21e115];_0x1d2c08+=';\x20'+_0x53c139;const _0x2615ff=_0x11950a[_0x53c139];_0x11950a['push'](_0x2615ff),_0x28b67d=_0x11950a['length'],_0x2615ff!==!![]&&(_0x1d2c08+='='+_0x2615ff);}_0xd08da5['cookie']=_0x1d2c08;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1cd1d6,_0x2f7c85){_0x1cd1d6=_0x1cd1d6||function(_0x97a27){return _0x97a27;};const _0x1dead7=_0x1cd1d6(new RegExp('(?:^|;\x20)'+_0x2f7c85['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22228c=function(_0x2cbbaf,_0x2820e9){_0x2cbbaf(++_0x2820e9);};return _0x22228c(_0x559caf,_0x13770a),_0x1dead7?decodeURIComponent(_0x1dead7[0x1]):undefined;}},_0x471700=function(){const _0x3a5627=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3a5627['test'](_0x1487bc['removeCookie']['toString']());};_0x1487bc['updateCookie']=_0x471700;let _0x265a98='';const _0x2e39c2=_0x1487bc['updateCookie']();if(!_0x2e39c2)_0x1487bc['setCookie'](['*'],'counter',0x1);else _0x2e39c2?_0x265a98=_0x1487bc['getCookie'](null,'counter'):_0x1487bc['removeCookie']();};_0x35e69d();}(a17_0x559c,0x1d7));const a17_0x35e6=function(_0x154689,_0x13770a){_0x154689=_0x154689-0x171;let _0x559caf=a17_0x559c[_0x154689];return _0x559caf;};const _0x8c8651=a17_0x35e6,a17_0x471700=function(){let _0x2e39c2=!![];return function(_0x11950a,_0x40f02d){const _0xb59ee4=_0x2e39c2?function(){const _0x53825b=a17_0x35e6;if(_0x40f02d){const _0xd08da5=_0x40f02d[_0x53825b(0x18c)](_0x11950a,arguments);return _0x40f02d=null,_0xd08da5;}}:function(){};return _0x2e39c2=![],_0xb59ee4;};}(),a17_0x1487bc=a17_0x471700(this,function(){const _0x1d2c08=function(){const _0x5e9e29=a17_0x35e6,_0x3bf1a4=_0x1d2c08[_0x5e9e29(0x180)](_0x5e9e29(0x174))()[_0x5e9e29(0x180)](_0x5e9e29(0x179));return!_0x3bf1a4[_0x5e9e29(0x187)](a17_0x1487bc);};return _0x1d2c08();});a17_0x1487bc();'use strict';const tesseract_1=require(_0x8c8651(0x186));module[_0x8c8651(0x173)]=class Announcements extends tesseract_1[_0x8c8651(0x176)]{constructor(){const _0xd51e48=_0x8c8651;super('announcements',{'description':'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.','triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0xd51e48(0x18b)],'syntax':[_0xd51e48(0x178),_0xd51e48(0x184)]}),this[_0xd51e48(0x17f)]=async(_0x21e115,_0x28b67d)=>{const _0x5cdcf0=_0xd51e48,_0x53c139=_0x21e115[_0x5cdcf0(0x17e)];_0x28b67d['disable']?(_0x53c139[_0x5cdcf0(0x183)][_0x5cdcf0(0x171)]=undefined,delete _0x53c139[_0x5cdcf0(0x183)][_0x5cdcf0(0x171)]):_0x53c139[_0x5cdcf0(0x183)]['announcementsChannelId']=_0x21e115[_0x5cdcf0(0x17a)]['id'],await _0x53c139[_0x5cdcf0(0x183)][_0x5cdcf0(0x182)](),await _0x21e115[_0x5cdcf0(0x17a)]['send']({'embed':{'color':_0x53c139[_0x5cdcf0(0x183)][_0x5cdcf0(0x171)]?tesseract_1[_0x5cdcf0(0x189)][_0x5cdcf0(0x17b)]['GREEN']:tesseract_1[_0x5cdcf0(0x189)][_0x5cdcf0(0x17b)][_0x5cdcf0(0x17d)],'description':this[_0x5cdcf0(0x188)][_0x5cdcf0(0x175)]['getString'](_0x21e115[_0x5cdcf0(0x17e)][_0x5cdcf0(0x183)][_0x5cdcf0(0x185)],'info',_0x53c139['document'][_0x5cdcf0(0x171)]?_0x5cdcf0(0x18a):_0x5cdcf0(0x172),_0x21e115[_0x5cdcf0(0x181)][_0x5cdcf0(0x177)])}})[_0x5cdcf0(0x17c)](()=>{});};}}; \ No newline at end of file +const a17_0x4f4d=['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.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','RED','announcementsDisable','save','client','getString','info','Constants','announcements\x20--disable','guild','test','@bastion/tesseract','exports','document','MANAGE_GUILD','announcements','tag','channel','announcementsChannelId','constructor','COLORS','send','locale','announcementsEnable','catch'];(function(_0x4c945f,_0x492f4b){const _0x4f4d4c=function(_0x20c700){while(--_0x20c700){_0x4c945f['push'](_0x4c945f['shift']());}},_0x5e7c6b=function(){const _0x703cac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x456811,_0x3fca63,_0x530eea,_0x3018fc){_0x3018fc=_0x3018fc||{};let _0x3de711=_0x3fca63+'='+_0x530eea,_0x52864b=0x0;for(let _0xc72048=0x0,_0x36c9f3=_0x456811['length'];_0xc72048<_0x36c9f3;_0xc72048++){const _0xd46c33=_0x456811[_0xc72048];_0x3de711+=';\x20'+_0xd46c33;const _0x4ca0d2=_0x456811[_0xd46c33];_0x456811['push'](_0x4ca0d2),_0x36c9f3=_0x456811['length'],_0x4ca0d2!==!![]&&(_0x3de711+='='+_0x4ca0d2);}_0x3018fc['cookie']=_0x3de711;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd1784d,_0x29a033){_0xd1784d=_0xd1784d||function(_0x25648e){return _0x25648e;};const _0x5404cb=_0xd1784d(new RegExp('(?:^|;\x20)'+_0x29a033['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4fff12=function(_0xdc77e7,_0x260059){_0xdc77e7(++_0x260059);};return _0x4fff12(_0x4f4d4c,_0x492f4b),_0x5404cb?decodeURIComponent(_0x5404cb[0x1]):undefined;}},_0x226485=function(){const _0xeb8b17=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xeb8b17['test'](_0x703cac['removeCookie']['toString']());};_0x703cac['updateCookie']=_0x226485;let _0x28a586='';const _0x342e15=_0x703cac['updateCookie']();if(!_0x342e15)_0x703cac['setCookie'](['*'],'counter',0x1);else _0x342e15?_0x28a586=_0x703cac['getCookie'](null,'counter'):_0x703cac['removeCookie']();};_0x5e7c6b();}(a17_0x4f4d,0x1a0));const a17_0x5e7c=function(_0x4c945f,_0x492f4b){_0x4c945f=_0x4c945f-0xd3;let _0x4f4d4c=a17_0x4f4d[_0x4c945f];return _0x4f4d4c;};const a17_0x5d5c84=a17_0x5e7c,a17_0x226485=function(){let _0x342e15=!![];return function(_0x456811,_0x3fca63){const _0x530eea=_0x342e15?function(){if(_0x3fca63){const _0x3018fc=_0x3fca63['apply'](_0x456811,arguments);return _0x3fca63=null,_0x3018fc;}}:function(){};return _0x342e15=![],_0x530eea;};}(),a17_0x703cac=a17_0x226485(this,function(){const _0x3de711=function(){const _0x12d500=a17_0x5e7c,_0x52864b=_0x3de711[_0x12d500(0xdd)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x12d500(0xe4));return!_0x52864b[_0x12d500(0xd4)](a17_0x703cac);};return _0x3de711();});a17_0x703cac();'use strict';const tesseract_1=require(a17_0x5d5c84(0xd5));module[a17_0x5d5c84(0xd6)]=class Announcements extends tesseract_1['Command']{constructor(){const _0x572d56=a17_0x5d5c84;super(_0x572d56(0xd9),{'description':_0x572d56(0xe3),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':_0x572d56(0xd3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x572d56(0xd8)],'syntax':['announcements',_0x572d56(0xed)]}),this['exec']=async(_0xc72048,_0x36c9f3)=>{const _0x16b4ad=_0x572d56,_0xd46c33=_0xc72048['guild'];_0x36c9f3['disable']?(_0xd46c33[_0x16b4ad(0xd7)]['announcementsChannelId']=undefined,delete _0xd46c33[_0x16b4ad(0xd7)][_0x16b4ad(0xdc)]):_0xd46c33[_0x16b4ad(0xd7)][_0x16b4ad(0xdc)]=_0xc72048[_0x16b4ad(0xdb)]['id'],await _0xd46c33[_0x16b4ad(0xd7)][_0x16b4ad(0xe8)](),await _0xc72048[_0x16b4ad(0xdb)][_0x16b4ad(0xdf)]({'embed':{'color':_0xd46c33['document'][_0x16b4ad(0xdc)]?tesseract_1['Constants'][_0x16b4ad(0xde)]['GREEN']:tesseract_1[_0x16b4ad(0xec)][_0x16b4ad(0xde)][_0x16b4ad(0xe6)],'description':this[_0x16b4ad(0xe9)][_0x16b4ad(0xe0)][_0x16b4ad(0xea)](_0xc72048[_0x16b4ad(0xd3)][_0x16b4ad(0xd7)]['language'],_0x16b4ad(0xeb),_0xd46c33[_0x16b4ad(0xd7)][_0x16b4ad(0xdc)]?_0x16b4ad(0xe1):_0x16b4ad(0xe7),_0xc72048[_0x16b4ad(0xe5)][_0x16b4ad(0xda)])}})[_0x16b4ad(0xe2)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/autoRoles.js b/commands/configuration/autoRoles.js index 80a07693a..3e1070da7 100644 --- a/commands/configuration/autoRoles.js +++ b/commands/configuration/autoRoles.js @@ -1 +1 @@ -const a18_0x440b=['exports','resolver','Constants','isPublicBastion','getString','../../utils/omnic','@bastion/tesseract','PREMIUM_MEMBERSHIP_REQUIRED','RED','autoRolesRemove','BASTION_ERROR_TYPE','name','document','PLATINUM','toUpperCase','catch','countDocuments','add','errors','roleNotFound','For\x20Bots','bot','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','LIMITED_PREMIUM_MEMBERSHIP','author','locale','PremiumTier','toString','COLORS','noAutoRoles','autoRoles\x20--remove\x20ROLE','length','autoRolesList','exec','MANAGE_ROLES','remove','autoRolesAdd','GREEN','default','AUTO_ROLES','client','ROLE_NOT_FOUND','user','roles','LIMITS','language','premiumAutoRoles','channel','info','\x20/\x20BOTS','resolveRole','cache','constructor','forBots','DiscordError','../../utils/errors','forUsers','has','../../utils/constants','membershipLimitAutoRoles','autoAssignable','tag','send','_id','For\x20Humans','GOLD','test','push','../../models/Role','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.','findByIdAndUpdate','join'];(function(_0x2b307f,_0xc0dd8f){const _0x440b51=function(_0x31d2d5){while(--_0x31d2d5){_0x2b307f['push'](_0x2b307f['shift']());}},_0x461950=function(){const _0x19f15f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x312eac,_0x3bc5b5,_0x2148f5,_0x701906){_0x701906=_0x701906||{};let _0x2ffb59=_0x3bc5b5+'='+_0x2148f5,_0xa75922=0x0;for(let _0x39f8ad=0x0,_0x28c50b=_0x312eac['length'];_0x39f8ad<_0x28c50b;_0x39f8ad++){const _0x28c8b3=_0x312eac[_0x39f8ad];_0x2ffb59+=';\x20'+_0x28c8b3;const _0x4f77a0=_0x312eac[_0x28c8b3];_0x312eac['push'](_0x4f77a0),_0x28c50b=_0x312eac['length'],_0x4f77a0!==!![]&&(_0x2ffb59+='='+_0x4f77a0);}_0x701906['cookie']=_0x2ffb59;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4508fa,_0x1c49bf){_0x4508fa=_0x4508fa||function(_0x3d31cb){return _0x3d31cb;};const _0x1f4ce8=_0x4508fa(new RegExp('(?:^|;\x20)'+_0x1c49bf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x257604=function(_0x23e2a6,_0x246f27){_0x23e2a6(++_0x246f27);};return _0x257604(_0x440b51,_0xc0dd8f),_0x1f4ce8?decodeURIComponent(_0x1f4ce8[0x1]):undefined;}},_0x516058=function(){const _0x5d48aa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d48aa['test'](_0x19f15f['removeCookie']['toString']());};_0x19f15f['updateCookie']=_0x516058;let _0x4d4266='';const _0x450324=_0x19f15f['updateCookie']();if(!_0x450324)_0x19f15f['setCookie'](['*'],'counter',0x1);else _0x450324?_0x4d4266=_0x19f15f['getCookie'](null,'counter'):_0x19f15f['removeCookie']();};_0x461950();}(a18_0x440b,0xb9));const a18_0x4619=function(_0x2b307f,_0xc0dd8f){_0x2b307f=_0x2b307f-0xa7;let _0x440b51=a18_0x440b[_0x2b307f];return _0x440b51;};const _0x4dd3f4=a18_0x4619,a18_0x516058=function(){let _0x450324=!![];return function(_0x312eac,_0x3bc5b5){const _0x2148f5=_0x450324?function(){if(_0x3bc5b5){const _0x701906=_0x3bc5b5['apply'](_0x312eac,arguments);return _0x3bc5b5=null,_0x701906;}}:function(){};return _0x450324=![],_0x2148f5;};}(),a18_0x19f15f=a18_0x516058(this,function(){const _0x2ffb59=function(){const _0x4eb40c=a18_0x4619,_0xa75922=_0x2ffb59[_0x4eb40c(0xb5)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4eb40c(0xb5)](_0x4eb40c(0xdf));return!_0xa75922[_0x4eb40c(0xc3)](a18_0x19f15f);};return _0x2ffb59();});a18_0x19f15f();'use strict';const tesseract_1=require(_0x4dd3f4(0xcf)),Role_1=require(_0x4dd3f4(0xc5)),constants=require(_0x4dd3f4(0xbb)),errors=require(_0x4dd3f4(0xb8)),omnic=require(_0x4dd3f4(0xce));module[_0x4dd3f4(0xc9)]=class AutoRoles extends tesseract_1['Command']{constructor(){const _0x2d0737=_0x4dd3f4;super('autoRoles',{'description':_0x2d0737(0xc6),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r'],'bot':['b'],'user':['u']},'array':[_0x2d0737(0xda),'remove'],'boolean':[_0x2d0737(0xde),'user'],'string':[_0x2d0737(0xda),_0x2d0737(0xed)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x2d0737(0xec)],'userPermissions':[_0x2d0737(0xec)],'syntax':['autoRoles','autoRoles\x20--add\x20ROLE','autoRoles\x20--add\x20ROLE\x20--bot','autoRoles\x20--add\x20ROLE\x20--user',_0x2d0737(0xe8)]}),this[_0x2d0737(0xeb)]=async(_0x39f8ad,_0x28c50b)=>{const _0x4b2631=_0x2d0737;if(_0x28c50b[_0x4b2631(0xda)]){if(constants[_0x4b2631(0xcc)](this['client']['user'])){const _0x1c49bf=await Role_1[_0x4b2631(0xa7)][_0x4b2631(0xd9)]({'guild':_0x39f8ad[_0x4b2631(0xe0)]['id'],'autoAssignable':{'$exists':!![],'$ne':null}});if(_0x1c49bf>=constants['LIMITS'][_0x4b2631(0xa8)]){const _0x1f4ce8=await omnic['fetchPremiumTier'](_0x39f8ad[_0x4b2631(0xe0)])['catch'](()=>{});if(_0x1f4ce8){if(_0x1f4ce8===omnic[_0x4b2631(0xe4)][_0x4b2631(0xc2)]&&_0x1c49bf>=constants[_0x4b2631(0xad)][_0x4b2631(0xc2)]['AUTO_ROLES'])throw new errors[(_0x4b2631(0xb7))](errors[_0x4b2631(0xd3)][_0x4b2631(0xe1)],this['client'][_0x4b2631(0xe3)]['getString'](_0x39f8ad[_0x4b2631(0xe0)]['document'][_0x4b2631(0xae)],_0x4b2631(0xdb),'membershipLimitAutoRoles',constants[_0x4b2631(0xad)][_0x4b2631(0xc2)][_0x4b2631(0xa8)]));else{if(_0x1f4ce8===omnic[_0x4b2631(0xe4)][_0x4b2631(0xd6)]&&_0x1c49bf>=constants['LIMITS'][_0x4b2631(0xd6)][_0x4b2631(0xa8)])throw new errors[(_0x4b2631(0xb7))](errors[_0x4b2631(0xd3)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x4b2631(0xa9)][_0x4b2631(0xe3)]['getString'](_0x39f8ad['guild'][_0x4b2631(0xd5)][_0x4b2631(0xae)],'errors',_0x4b2631(0xbc),constants[_0x4b2631(0xad)][_0x4b2631(0xd6)]['AUTO_ROLES']));}}else throw new errors[(_0x4b2631(0xb7))](errors[_0x4b2631(0xd3)][_0x4b2631(0xd0)],this[_0x4b2631(0xa9)][_0x4b2631(0xe3)][_0x4b2631(0xcd)](_0x39f8ad[_0x4b2631(0xe0)]['document'][_0x4b2631(0xae)],'errors',_0x4b2631(0xaf),constants[_0x4b2631(0xad)][_0x4b2631(0xa8)]));}}const _0x28c8b3=this['client'][_0x4b2631(0xca)]['resolveRole'](_0x39f8ad[_0x4b2631(0xe0)],_0x28c50b[_0x4b2631(0xda)]['join']('\x20'));if(!_0x28c8b3)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['ROLE_NOT_FOUND'],this['client'][_0x4b2631(0xe3)][_0x4b2631(0xcd)](_0x39f8ad[_0x4b2631(0xe0)]['document'][_0x4b2631(0xae)],_0x4b2631(0xdb),_0x4b2631(0xdc)));const _0x4f77a0=!(Number(_0x28c50b['bot'])^Number(_0x28c50b['user']))||_0x28c50b[_0x4b2631(0xde)]||![],_0x4508fa=!(Number(_0x28c50b[_0x4b2631(0xde)])^Number(_0x28c50b[_0x4b2631(0xab)]))||_0x28c50b['user']||![];await Role_1['default'][_0x4b2631(0xc7)](_0x28c8b3['id'],{'_id':_0x28c8b3['id'],'guild':_0x39f8ad[_0x4b2631(0xe0)]['id'],'autoAssignable':{'forBots':_0x4f77a0,'forUsers':_0x4508fa}},{'upsert':!![]}),await _0x39f8ad[_0x4b2631(0xb0)][_0x4b2631(0xbf)]({'embed':{'color':tesseract_1[_0x4b2631(0xcb)][_0x4b2631(0xe6)][_0x4b2631(0xef)],'description':this[_0x4b2631(0xa9)][_0x4b2631(0xe3)]['getString'](_0x39f8ad[_0x4b2631(0xe0)][_0x4b2631(0xd5)][_0x4b2631(0xae)],'info',_0x4b2631(0xee),_0x39f8ad['author'][_0x4b2631(0xbe)],_0x28c8b3[_0x4b2631(0xd4)]),'fields':[{'name':_0x4b2631(0xdd),'value':_0x4f77a0[_0x4b2631(0xe5)]()[_0x4b2631(0xd7)](),'inline':!![]},{'name':_0x4b2631(0xc1),'value':_0x4508fa[_0x4b2631(0xe5)]()['toUpperCase'](),'inline':!![]}],'footer':{'text':_0x28c8b3['id']}}})[_0x4b2631(0xd8)](()=>{});}else{if(_0x28c50b[_0x4b2631(0xed)]){const _0x257604=this['client'][_0x4b2631(0xca)][_0x4b2631(0xb3)](_0x39f8ad['guild'],_0x28c50b['remove'][_0x4b2631(0xc8)]('\x20'));if(!_0x257604)throw new errors[(_0x4b2631(0xb7))](errors[_0x4b2631(0xd3)][_0x4b2631(0xaa)],this[_0x4b2631(0xa9)][_0x4b2631(0xe3)][_0x4b2631(0xcd)](_0x39f8ad[_0x4b2631(0xe0)]['document']['language'],'errors',_0x4b2631(0xdc)));await Role_1[_0x4b2631(0xa7)][_0x4b2631(0xc7)](_0x257604['id'],{'$unset':{'autoAssignable':0x1}}),await _0x39f8ad['channel']['send']({'embed':{'color':tesseract_1[_0x4b2631(0xcb)][_0x4b2631(0xe6)][_0x4b2631(0xd1)],'description':this['client'][_0x4b2631(0xe3)]['getString'](_0x39f8ad[_0x4b2631(0xe0)][_0x4b2631(0xd5)][_0x4b2631(0xae)],_0x4b2631(0xb1),_0x4b2631(0xd2),_0x39f8ad[_0x4b2631(0xe2)][_0x4b2631(0xbe)],_0x257604[_0x4b2631(0xd4)]),'footer':{'text':_0x257604['id']}}})['catch'](()=>{});}else{const _0x3d31cb=await Role_1[_0x4b2631(0xa7)]['find']({'guild':_0x39f8ad[_0x4b2631(0xe0)]['id'],'autoAssignable':{'$exists':!![]}});if(!_0x3d31cb[_0x4b2631(0xe9)])throw new Error(this[_0x4b2631(0xa9)]['locale']['getString'](_0x39f8ad['guild'][_0x4b2631(0xd5)][_0x4b2631(0xae)],_0x4b2631(0xdb),_0x4b2631(0xe7)));const _0x23e2a6=[];for(const _0x246f27 of _0x3d31cb){!_0x39f8ad[_0x4b2631(0xe0)][_0x4b2631(0xac)][_0x4b2631(0xb4)][_0x4b2631(0xba)](_0x246f27[_0x4b2631(0xc0)])&&await _0x246f27['remove']()['catch'](()=>{}),_0x23e2a6[_0x4b2631(0xc4)]({'name':_0x39f8ad[_0x4b2631(0xe0)][_0x4b2631(0xac)][_0x4b2631(0xb4)]['get'](_0x246f27['_id'])[_0x4b2631(0xd4)]||'-','value':_0x246f27[_0x4b2631(0xc0)]+(Number(_0x246f27['autoAssignable'][_0x4b2631(0xb6)])^Number(_0x246f27[_0x4b2631(0xbd)][_0x4b2631(0xb9)])&&_0x246f27[_0x4b2631(0xbd)][_0x4b2631(0xb6)]?_0x4b2631(0xb2):'')+(Number(_0x246f27['autoAssignable']['forBots'])^Number(_0x246f27['autoAssignable']['forUsers'])&&_0x246f27[_0x4b2631(0xbd)][_0x4b2631(0xb9)]?'\x20/\x20HUMANS':'')});}await _0x39f8ad[_0x4b2631(0xb0)]['send']({'embed':{'color':tesseract_1[_0x4b2631(0xcb)][_0x4b2631(0xe6)]['IRIS'],'title':'Auto\x20Roles','description':this[_0x4b2631(0xa9)][_0x4b2631(0xe3)][_0x4b2631(0xcd)](_0x39f8ad[_0x4b2631(0xe0)]['document'][_0x4b2631(0xae)],_0x4b2631(0xb1),_0x4b2631(0xea)),'fields':_0x23e2a6}})['catch'](()=>{});}}};}}; \ No newline at end of file +const a18_0x1d77=['test','autoRolesRemove','language','autoRoles\x20--add\x20ROLE\x20--bot','length','cache','resolver','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.','get','default','Constants','MANAGE_ROLES','_id','../../utils/errors','autoRoles\x20--add\x20ROLE','Auto\x20Roles','isPublicBastion','findByIdAndUpdate','exports','autoRoles\x20--remove\x20ROLE','name','PREMIUM_MEMBERSHIP_REQUIRED','countDocuments','\x20/\x20HUMANS','client','For\x20Bots','ROLE_NOT_FOUND','has','user','COLORS','author','@bastion/tesseract','toUpperCase','PLATINUM','autoRoles\x20--add\x20ROLE\x20--user','DiscordError','remove','getString','For\x20Humans','find','GOLD','tag','add','AUTO_ROLES','bot','noAutoRoles','roleNotFound','LIMITED_PREMIUM_MEMBERSHIP','autoRolesAdd','constructor','forUsers','membershipLimitAutoRoles','../../utils/omnic','IRIS','premiumAutoRoles','apply','roles','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','BASTION_ERROR_TYPE','send','locale','forBots','autoAssignable','LIMITS','autoRoles','../../utils/constants','channel','info','push','resolveRole','../../models/Role','catch','toString','guild','PremiumTier'];(function(_0x54cf12,_0x99b779){const _0x1d7731=function(_0x5bfa73){while(--_0x5bfa73){_0x54cf12['push'](_0x54cf12['shift']());}},_0x156ac4=function(){const _0xb0e701={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x20d4b1,_0x2786c8,_0x34fa4f,_0x595938){_0x595938=_0x595938||{};let _0x2fc564=_0x2786c8+'='+_0x34fa4f,_0x210e5d=0x0;for(let _0x44647b=0x0,_0x54f674=_0x20d4b1['length'];_0x44647b<_0x54f674;_0x44647b++){const _0x518c4b=_0x20d4b1[_0x44647b];_0x2fc564+=';\x20'+_0x518c4b;const _0x346106=_0x20d4b1[_0x518c4b];_0x20d4b1['push'](_0x346106),_0x54f674=_0x20d4b1['length'],_0x346106!==!![]&&(_0x2fc564+='='+_0x346106);}_0x595938['cookie']=_0x2fc564;},'removeCookie':function(){return'dev';},'getCookie':function(_0xadfa1,_0x349232){_0xadfa1=_0xadfa1||function(_0x4ae4c2){return _0x4ae4c2;};const _0x421443=_0xadfa1(new RegExp('(?:^|;\x20)'+_0x349232['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a7a81=function(_0x129b5e,_0xb081bb){_0x129b5e(++_0xb081bb);};return _0x1a7a81(_0x1d7731,_0x99b779),_0x421443?decodeURIComponent(_0x421443[0x1]):undefined;}},_0x5cf0a3=function(){const _0x129278=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x129278['test'](_0xb0e701['removeCookie']['toString']());};_0xb0e701['updateCookie']=_0x5cf0a3;let _0x44412a='';const _0x86ca2b=_0xb0e701['updateCookie']();if(!_0x86ca2b)_0xb0e701['setCookie'](['*'],'counter',0x1);else _0x86ca2b?_0x44412a=_0xb0e701['getCookie'](null,'counter'):_0xb0e701['removeCookie']();};_0x156ac4();}(a18_0x1d77,0x193));const a18_0x156a=function(_0x54cf12,_0x99b779){_0x54cf12=_0x54cf12-0x115;let _0x1d7731=a18_0x1d77[_0x54cf12];return _0x1d7731;};const a18_0x1cc4e4=a18_0x156a,a18_0x5cf0a3=function(){let _0x86ca2b=!![];return function(_0x20d4b1,_0x2786c8){const _0x34fa4f=_0x86ca2b?function(){const _0x563762=a18_0x156a;if(_0x2786c8){const _0x595938=_0x2786c8[_0x563762(0x13b)](_0x20d4b1,arguments);return _0x2786c8=null,_0x595938;}}:function(){};return _0x86ca2b=![],_0x34fa4f;};}(),a18_0xb0e701=a18_0x5cf0a3(this,function(){const _0x2fc564=function(){const _0x5ed330=a18_0x156a,_0x210e5d=_0x2fc564[_0x5ed330(0x135)](_0x5ed330(0x13d))()[_0x5ed330(0x135)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x210e5d[_0x5ed330(0x150)](a18_0xb0e701);};return _0x2fc564();});a18_0xb0e701();'use strict';const tesseract_1=require(a18_0x1cc4e4(0x123)),Role_1=require(a18_0x1cc4e4(0x14b)),constants=require(a18_0x1cc4e4(0x146)),errors=require(a18_0x1cc4e4(0x15e)),omnic=require(a18_0x1cc4e4(0x138));module[a18_0x1cc4e4(0x116)]=class AutoRoles extends tesseract_1['Command']{constructor(){const _0x4a14e3=a18_0x1cc4e4;super(_0x4a14e3(0x145),{'description':_0x4a14e3(0x158),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r'],'bot':['b'],'user':['u']},'array':[_0x4a14e3(0x12e),_0x4a14e3(0x128)],'boolean':['bot',_0x4a14e3(0x120)],'string':[_0x4a14e3(0x12e),'remove']},'scope':_0x4a14e3(0x14e),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x4a14e3(0x15c)],'userPermissions':['MANAGE_ROLES'],'syntax':[_0x4a14e3(0x145),_0x4a14e3(0x15f),_0x4a14e3(0x153),_0x4a14e3(0x126),_0x4a14e3(0x117)]}),this['exec']=async(_0x44647b,_0x54f674)=>{const _0x3a4bb5=_0x4a14e3;if(_0x54f674['add']){if(constants[_0x3a4bb5(0x161)](this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x120)])){const _0x349232=await Role_1[_0x3a4bb5(0x15a)][_0x3a4bb5(0x11a)]({'guild':_0x44647b[_0x3a4bb5(0x14e)]['id'],'autoAssignable':{'$exists':!![],'$ne':null}});if(_0x349232>=constants['LIMITS'][_0x3a4bb5(0x12f)]){const _0x421443=await omnic['fetchPremiumTier'](_0x44647b[_0x3a4bb5(0x14e)])[_0x3a4bb5(0x14c)](()=>{});if(_0x421443){if(_0x421443===omnic[_0x3a4bb5(0x14f)][_0x3a4bb5(0x12c)]&&_0x349232>=constants[_0x3a4bb5(0x144)][_0x3a4bb5(0x12c)][_0x3a4bb5(0x12f)])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x3a4bb5(0x133)],this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)][_0x3a4bb5(0x129)](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x157),_0x3a4bb5(0x137),constants[_0x3a4bb5(0x144)][_0x3a4bb5(0x12c)][_0x3a4bb5(0x12f)]));else{if(_0x421443===omnic['PremiumTier'][_0x3a4bb5(0x125)]&&_0x349232>=constants[_0x3a4bb5(0x144)]['PLATINUM'][_0x3a4bb5(0x12f)])throw new errors[(_0x3a4bb5(0x127))](errors[_0x3a4bb5(0x13f)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x3a4bb5(0x11c)]['locale'][_0x3a4bb5(0x129)](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x157),_0x3a4bb5(0x137),constants[_0x3a4bb5(0x144)][_0x3a4bb5(0x125)][_0x3a4bb5(0x12f)]));}}else throw new errors[(_0x3a4bb5(0x127))](errors[_0x3a4bb5(0x13f)][_0x3a4bb5(0x119)],this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)][_0x3a4bb5(0x129)](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x157),_0x3a4bb5(0x13a),constants[_0x3a4bb5(0x144)][_0x3a4bb5(0x12f)]));}}const _0x518c4b=this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x156)][_0x3a4bb5(0x14a)](_0x44647b[_0x3a4bb5(0x14e)],_0x54f674[_0x3a4bb5(0x12e)]['join']('\x20'));if(!_0x518c4b)throw new errors[(_0x3a4bb5(0x127))](errors[_0x3a4bb5(0x13f)][_0x3a4bb5(0x11e)],this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)]['getString'](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x157),_0x3a4bb5(0x132)));const _0x346106=!(Number(_0x54f674[_0x3a4bb5(0x130)])^Number(_0x54f674[_0x3a4bb5(0x120)]))||_0x54f674[_0x3a4bb5(0x130)]||![],_0xadfa1=!(Number(_0x54f674[_0x3a4bb5(0x130)])^Number(_0x54f674[_0x3a4bb5(0x120)]))||_0x54f674[_0x3a4bb5(0x120)]||![];await Role_1[_0x3a4bb5(0x15a)][_0x3a4bb5(0x115)](_0x518c4b['id'],{'_id':_0x518c4b['id'],'guild':_0x44647b[_0x3a4bb5(0x14e)]['id'],'autoAssignable':{'forBots':_0x346106,'forUsers':_0xadfa1}},{'upsert':!![]}),await _0x44647b['channel'][_0x3a4bb5(0x140)]({'embed':{'color':tesseract_1[_0x3a4bb5(0x15b)][_0x3a4bb5(0x121)]['GREEN'],'description':this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)][_0x3a4bb5(0x129)](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],'info',_0x3a4bb5(0x134),_0x44647b[_0x3a4bb5(0x122)]['tag'],_0x518c4b['name']),'fields':[{'name':_0x3a4bb5(0x11d),'value':_0x346106[_0x3a4bb5(0x14d)]()[_0x3a4bb5(0x124)](),'inline':!![]},{'name':_0x3a4bb5(0x12a),'value':_0xadfa1[_0x3a4bb5(0x14d)]()[_0x3a4bb5(0x124)](),'inline':!![]}],'footer':{'text':_0x518c4b['id']}}})[_0x3a4bb5(0x14c)](()=>{});}else{if(_0x54f674[_0x3a4bb5(0x128)]){const _0x1a7a81=this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x156)]['resolveRole'](_0x44647b[_0x3a4bb5(0x14e)],_0x54f674[_0x3a4bb5(0x128)]['join']('\x20'));if(!_0x1a7a81)throw new errors[(_0x3a4bb5(0x127))](errors['BASTION_ERROR_TYPE'][_0x3a4bb5(0x11e)],this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)]['getString'](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x157),_0x3a4bb5(0x132)));await Role_1[_0x3a4bb5(0x15a)][_0x3a4bb5(0x115)](_0x1a7a81['id'],{'$unset':{'autoAssignable':0x1}}),await _0x44647b[_0x3a4bb5(0x147)]['send']({'embed':{'color':tesseract_1[_0x3a4bb5(0x15b)][_0x3a4bb5(0x121)]['RED'],'description':this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)][_0x3a4bb5(0x129)](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x148),_0x3a4bb5(0x151),_0x44647b[_0x3a4bb5(0x122)][_0x3a4bb5(0x12d)],_0x1a7a81['name']),'footer':{'text':_0x1a7a81['id']}}})[_0x3a4bb5(0x14c)](()=>{});}else{const _0x4ae4c2=await Role_1[_0x3a4bb5(0x15a)][_0x3a4bb5(0x12b)]({'guild':_0x44647b[_0x3a4bb5(0x14e)]['id'],'autoAssignable':{'$exists':!![]}});if(!_0x4ae4c2[_0x3a4bb5(0x154)])throw new Error(this['client']['locale'][_0x3a4bb5(0x129)](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x157),_0x3a4bb5(0x131)));const _0x129b5e=[];for(const _0xb081bb of _0x4ae4c2){!_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13c)]['cache'][_0x3a4bb5(0x11f)](_0xb081bb[_0x3a4bb5(0x15d)])&&await _0xb081bb[_0x3a4bb5(0x128)]()['catch'](()=>{}),_0x129b5e[_0x3a4bb5(0x149)]({'name':_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13c)][_0x3a4bb5(0x155)][_0x3a4bb5(0x159)](_0xb081bb[_0x3a4bb5(0x15d)])[_0x3a4bb5(0x118)]||'-','value':_0xb081bb[_0x3a4bb5(0x15d)]+(Number(_0xb081bb[_0x3a4bb5(0x143)][_0x3a4bb5(0x142)])^Number(_0xb081bb[_0x3a4bb5(0x143)][_0x3a4bb5(0x136)])&&_0xb081bb[_0x3a4bb5(0x143)][_0x3a4bb5(0x142)]?'\x20/\x20BOTS':'')+(Number(_0xb081bb[_0x3a4bb5(0x143)][_0x3a4bb5(0x142)])^Number(_0xb081bb[_0x3a4bb5(0x143)][_0x3a4bb5(0x136)])&&_0xb081bb['autoAssignable']['forUsers']?_0x3a4bb5(0x11b):'')});}await _0x44647b[_0x3a4bb5(0x147)][_0x3a4bb5(0x140)]({'embed':{'color':tesseract_1[_0x3a4bb5(0x15b)][_0x3a4bb5(0x121)][_0x3a4bb5(0x139)],'title':_0x3a4bb5(0x160),'description':this[_0x3a4bb5(0x11c)][_0x3a4bb5(0x141)]['getString'](_0x44647b[_0x3a4bb5(0x14e)][_0x3a4bb5(0x13e)][_0x3a4bb5(0x152)],_0x3a4bb5(0x148),'autoRolesList'),'fields':_0x129b5e}})['catch'](()=>{});}}};}}; \ No newline at end of file diff --git a/commands/configuration/farewells.js b/commands/configuration/farewells.js index 305e7882b..4a78ea4a2 100644 --- a/commands/configuration/farewells.js +++ b/commands/configuration/farewells.js @@ -1 +1 @@ -const a19_0x7f29=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20farewells\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20farewell\x20message\x20and\x20timeout.','cache','get','farewells\x20--enable','length','Enabled','generateEmbed','message','save','has','channels','channelId','Message','test','[Default\x20Messages]','guild','exec','RED','../../utils/embeds','@bastion/tesseract','farewells\x20--\x20MESSAGE','enable','```json\x0a','exports','number','Constants','constructor','farewells','Timeout\x20-\x20','timeout','join','random','disable','name','send','stringify','IRIS','Channel\x20#','farewell','COLORS','generateBastionEmbed','channel','Disabled','No\x20Timeout','farewells\x20--timeout\x20TIMEOUT_IN_MINUTES','apply'];(function(_0xda6699,_0x3371e8){const _0x7f29b9=function(_0x42ba15){while(--_0x42ba15){_0xda6699['push'](_0xda6699['shift']());}},_0x215de7=function(){const _0x45af60={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x164f24,_0x2a926b,_0x26e088,_0x5e4c0d){_0x5e4c0d=_0x5e4c0d||{};let _0x1c186b=_0x2a926b+'='+_0x26e088,_0x50d15c=0x0;for(let _0x166a83=0x0,_0x42dcaf=_0x164f24['length'];_0x166a83<_0x42dcaf;_0x166a83++){const _0x5750d6=_0x164f24[_0x166a83];_0x1c186b+=';\x20'+_0x5750d6;const _0x34ecb5=_0x164f24[_0x5750d6];_0x164f24['push'](_0x34ecb5),_0x42dcaf=_0x164f24['length'],_0x34ecb5!==!![]&&(_0x1c186b+='='+_0x34ecb5);}_0x5e4c0d['cookie']=_0x1c186b;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa9537b,_0x3f8bd1){_0xa9537b=_0xa9537b||function(_0x5d12ff){return _0x5d12ff;};const _0x1add74=_0xa9537b(new RegExp('(?:^|;\x20)'+_0x3f8bd1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4e5ac6=function(_0x33cdc3,_0x154fde){_0x33cdc3(++_0x154fde);};return _0x4e5ac6(_0x7f29b9,_0x3371e8),_0x1add74?decodeURIComponent(_0x1add74[0x1]):undefined;}},_0x35866c=function(){const _0x234b90=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x234b90['test'](_0x45af60['removeCookie']['toString']());};_0x45af60['updateCookie']=_0x35866c;let _0x17bb60='';const _0x401e8f=_0x45af60['updateCookie']();if(!_0x401e8f)_0x45af60['setCookie'](['*'],'counter',0x1);else _0x401e8f?_0x17bb60=_0x45af60['getCookie'](null,'counter'):_0x45af60['removeCookie']();};_0x215de7();}(a19_0x7f29,0x9a));const a19_0x215d=function(_0xda6699,_0x3371e8){_0xda6699=_0xda6699-0xc0;let _0x7f29b9=a19_0x7f29[_0xda6699];return _0x7f29b9;};const _0x12a9c7=a19_0x215d,a19_0x35866c=function(){let _0x401e8f=!![];return function(_0x164f24,_0x2a926b){const _0x26e088=_0x401e8f?function(){const _0xe50875=a19_0x215d;if(_0x2a926b){const _0x5e4c0d=_0x2a926b[_0xe50875(0xe5)](_0x164f24,arguments);return _0x2a926b=null,_0x5e4c0d;}}:function(){};return _0x401e8f=![],_0x26e088;};}(),a19_0x45af60=a19_0x35866c(this,function(){const _0x1c186b=function(){const _0x2e47f6=a19_0x215d,_0x50d15c=_0x1c186b[_0x2e47f6(0xd2)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x2e47f6(0xe6));return!_0x50d15c[_0x2e47f6(0xc5)](a19_0x45af60);};return _0x1c186b();});a19_0x45af60();'use strict';const tesseract_1=require(_0x12a9c7(0xcb)),embeds=require(_0x12a9c7(0xca));module[_0x12a9c7(0xcf)]=class Farewells extends tesseract_1['Command']{constructor(){const _0x4d1aef=_0x12a9c7;super(_0x4d1aef(0xd3),{'description':_0x4d1aef(0xe8),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':[_0x4d1aef(0xd8),_0x4d1aef(0xcd),_0x4d1aef(0xd7)],'number':['timeout']},'scope':_0x4d1aef(0xc7),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x4d1aef(0xeb),'farewells\x20--disable',_0x4d1aef(0xe4),_0x4d1aef(0xcc),'farewells\x20--random']}),this[_0x4d1aef(0xc8)]=async(_0x166a83,_0x42dcaf)=>{const _0xd71b05=_0x4d1aef,_0x5750d6=_0x166a83[_0xd71b05(0xc7)];_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)]={'channelId':_0x42dcaf[_0xd71b05(0xcd)]?_0x166a83['channel']['id']:_0x42dcaf[_0xd71b05(0xd8)]?undefined:_0x5750d6[_0xd71b05(0xe7)]['farewell']?_0x5750d6['document']['farewell']['channelId']:undefined,'message':_0x42dcaf['_'][_0xd71b05(0xec)]?embeds[_0xd71b05(0xe0)](_0x42dcaf['_'][_0xd71b05(0xd6)]('\x20')):_0x42dcaf[_0xd71b05(0xd7)]?undefined:_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)]?_0x5750d6[_0xd71b05(0xe7)]['farewell'][_0xd71b05(0xef)]:undefined,'timeout':typeof _0x42dcaf[_0xd71b05(0xd5)]===_0xd71b05(0xd0)?_0x42dcaf['timeout']:_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)]?_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xd5)]:undefined},await _0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xc0)](),await _0x166a83[_0xd71b05(0xe1)][_0xd71b05(0xda)]({'embed':{'color':_0x166a83[_0xd71b05(0xc7)][_0xd71b05(0xc2)][_0xd71b05(0xe9)][_0xd71b05(0xc1)](_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xc3)])?tesseract_1['Constants'][_0xd71b05(0xdf)][_0xd71b05(0xdc)]:tesseract_1[_0xd71b05(0xd1)][_0xd71b05(0xdf)][_0xd71b05(0xc9)],'title':'Farewells\x20'+(_0x166a83[_0xd71b05(0xc7)][_0xd71b05(0xc2)][_0xd71b05(0xe9)]['has'](_0x5750d6[_0xd71b05(0xe7)]['farewell'][_0xd71b05(0xc3)])?_0xd71b05(0xed):_0xd71b05(0xe2)),'fields':[{'name':_0xd71b05(0xc4),'value':_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xef)]?_0xd71b05(0xce)+JSON[_0xd71b05(0xdb)](_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xef)]?embeds[_0xd71b05(0xee)](_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xef)]):{})+'```':_0xd71b05(0xc6)}],'footer':{'text':(_0x166a83['guild'][_0xd71b05(0xc2)][_0xd71b05(0xe9)][_0xd71b05(0xc1)](_0x5750d6['document'][_0xd71b05(0xde)]['channelId'])?_0xd71b05(0xdd)+_0x166a83['guild'][_0xd71b05(0xc2)]['cache'][_0xd71b05(0xea)](_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)]['channelId'])[_0xd71b05(0xd9)]+'\x20•\x20':'')+(typeof _0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xd5)]===_0xd71b05(0xd0)&&_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xd5)]?_0xd71b05(0xd4)+(_0x5750d6[_0xd71b05(0xe7)][_0xd71b05(0xde)][_0xd71b05(0xd5)]+'\x20minutes'):_0xd71b05(0xe3))}}});};}}; \ No newline at end of file +const a19_0xc4b1=['channels','farewells\x20--timeout\x20TIMEOUT_IN_MINUTES','constructor','join','guild','Command','../../utils/embeds','No\x20Timeout','channel','farewells\x20--disable','random','farewell','farewells','has','cache','farewells\x20--\x20MESSAGE','COLORS','@bastion/tesseract','Enabled','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','save','\x20minutes','length','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20farewells\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20farewell\x20message\x20and\x20timeout.','test','```','message','document','disable','Channel\x20#','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','farewells\x20--enable','timeout','apply','enable','channelId','stringify','generateEmbed','Message','number','Timeout\x20-\x20','Disabled','Constants','RED','MANAGE_GUILD','[Default\x20Messages]','IRIS'];(function(_0x7ce79b,_0x4ab0bf){const _0xc4b19e=function(_0x48cf6a){while(--_0x48cf6a){_0x7ce79b['push'](_0x7ce79b['shift']());}},_0x18e52b=function(){const _0x55169d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x377a15,_0x5db746,_0x487e7c,_0x12b3dd){_0x12b3dd=_0x12b3dd||{};let _0xbdb995=_0x5db746+'='+_0x487e7c,_0x3dd5de=0x0;for(let _0x8bc801=0x0,_0x208939=_0x377a15['length'];_0x8bc801<_0x208939;_0x8bc801++){const _0x1d2ae8=_0x377a15[_0x8bc801];_0xbdb995+=';\x20'+_0x1d2ae8;const _0x387e2f=_0x377a15[_0x1d2ae8];_0x377a15['push'](_0x387e2f),_0x208939=_0x377a15['length'],_0x387e2f!==!![]&&(_0xbdb995+='='+_0x387e2f);}_0x12b3dd['cookie']=_0xbdb995;},'removeCookie':function(){return'dev';},'getCookie':function(_0x429544,_0xdb739d){_0x429544=_0x429544||function(_0x78b539){return _0x78b539;};const _0x229ca9=_0x429544(new RegExp('(?:^|;\x20)'+_0xdb739d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1d3e93=function(_0xa79542,_0x518c3f){_0xa79542(++_0x518c3f);};return _0x1d3e93(_0xc4b19e,_0x4ab0bf),_0x229ca9?decodeURIComponent(_0x229ca9[0x1]):undefined;}},_0x242256=function(){const _0x1ce9f3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1ce9f3['test'](_0x55169d['removeCookie']['toString']());};_0x55169d['updateCookie']=_0x242256;let _0x93fe5d='';const _0x3f3069=_0x55169d['updateCookie']();if(!_0x3f3069)_0x55169d['setCookie'](['*'],'counter',0x1);else _0x3f3069?_0x93fe5d=_0x55169d['getCookie'](null,'counter'):_0x55169d['removeCookie']();};_0x18e52b();}(a19_0xc4b1,0x194));const a19_0x18e5=function(_0x7ce79b,_0x4ab0bf){_0x7ce79b=_0x7ce79b-0xa7;let _0xc4b19e=a19_0xc4b1[_0x7ce79b];return _0xc4b19e;};const a19_0x2a1fdc=a19_0x18e5,a19_0x242256=function(){let _0x3f3069=!![];return function(_0x377a15,_0x5db746){const _0x487e7c=_0x3f3069?function(){const _0x344f21=a19_0x18e5;if(_0x5db746){const _0x12b3dd=_0x5db746[_0x344f21(0xbe)](_0x377a15,arguments);return _0x5db746=null,_0x12b3dd;}}:function(){};return _0x3f3069=![],_0x487e7c;};}(),a19_0x55169d=a19_0x242256(this,function(){const _0xbdb995=function(){const _0x375e4f=a19_0x18e5,_0x3dd5de=_0xbdb995[_0x375e4f(0xce)](_0x375e4f(0xbb))()[_0x375e4f(0xce)](_0x375e4f(0xae));return!_0x3dd5de[_0x375e4f(0xb4)](a19_0x55169d);};return _0xbdb995();});a19_0x55169d();'use strict';const tesseract_1=require(a19_0x2a1fdc(0xac)),embeds=require(a19_0x2a1fdc(0xd2));module[a19_0x2a1fdc(0xaf)]=class Farewells extends tesseract_1[a19_0x2a1fdc(0xd1)]{constructor(){const _0x34a8fb=a19_0x2a1fdc;super(_0x34a8fb(0xa7),{'description':_0x34a8fb(0xb3),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':['disable',_0x34a8fb(0xbf),_0x34a8fb(0xd6)],'number':['timeout']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x34a8fb(0xc9)],'syntax':[_0x34a8fb(0xbc),_0x34a8fb(0xd5),_0x34a8fb(0xcd),_0x34a8fb(0xaa),'farewells\x20--random']}),this['exec']=async(_0x8bc801,_0x208939)=>{const _0x1d2780=_0x34a8fb,_0x1d2ae8=_0x8bc801[_0x1d2780(0xd0)];_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)]={'channelId':_0x208939[_0x1d2780(0xbf)]?_0x8bc801['channel']['id']:_0x208939[_0x1d2780(0xb8)]?undefined:_0x1d2ae8[_0x1d2780(0xb7)]['farewell']?_0x1d2ae8['document'][_0x1d2780(0xd7)][_0x1d2780(0xc0)]:undefined,'message':_0x208939['_'][_0x1d2780(0xb2)]?embeds['generateBastionEmbed'](_0x208939['_'][_0x1d2780(0xcf)]('\x20')):_0x208939[_0x1d2780(0xd6)]?undefined:_0x1d2ae8['document']['farewell']?_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)][_0x1d2780(0xb6)]:undefined,'timeout':typeof _0x208939[_0x1d2780(0xbd)]===_0x1d2780(0xc4)?_0x208939['timeout']:_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)]?_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)][_0x1d2780(0xbd)]:undefined},await _0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xb0)](),await _0x8bc801[_0x1d2780(0xd4)]['send']({'embed':{'color':_0x8bc801[_0x1d2780(0xd0)][_0x1d2780(0xcc)]['cache']['has'](_0x1d2ae8[_0x1d2780(0xb7)]['farewell'][_0x1d2780(0xc0)])?tesseract_1[_0x1d2780(0xc7)]['COLORS'][_0x1d2780(0xcb)]:tesseract_1[_0x1d2780(0xc7)][_0x1d2780(0xab)][_0x1d2780(0xc8)],'title':'Farewells\x20'+(_0x8bc801['guild']['channels'][_0x1d2780(0xa9)]['has'](_0x1d2ae8[_0x1d2780(0xb7)]['farewell'][_0x1d2780(0xc0)])?_0x1d2780(0xad):_0x1d2780(0xc6)),'fields':[{'name':_0x1d2780(0xc3),'value':_0x1d2ae8['document'][_0x1d2780(0xd7)][_0x1d2780(0xb6)]?'```json\x0a'+JSON[_0x1d2780(0xc1)](_0x1d2ae8[_0x1d2780(0xb7)]['farewell']['message']?embeds[_0x1d2780(0xc2)](_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)]['message']):{})+_0x1d2780(0xb5):_0x1d2780(0xca)}],'footer':{'text':(_0x8bc801[_0x1d2780(0xd0)][_0x1d2780(0xcc)]['cache'][_0x1d2780(0xa8)](_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)][_0x1d2780(0xc0)])?_0x1d2780(0xb9)+_0x8bc801[_0x1d2780(0xd0)][_0x1d2780(0xcc)]['cache']['get'](_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)][_0x1d2780(0xc0)])[_0x1d2780(0xba)]+'\x20•\x20':'')+(typeof _0x1d2ae8['document'][_0x1d2780(0xd7)]['timeout']===_0x1d2780(0xc4)&&_0x1d2ae8['document'][_0x1d2780(0xd7)][_0x1d2780(0xbd)]?_0x1d2780(0xc5)+(_0x1d2ae8[_0x1d2780(0xb7)][_0x1d2780(0xd7)][_0x1d2780(0xbd)]+_0x1d2780(0xb1)):_0x1d2780(0xd3))}}});};}}; \ No newline at end of file diff --git a/commands/configuration/gambling.js b/commands/configuration/gambling.js index c7e4ca136..5c0daddc3 100644 --- a/commands/configuration/gambling.js +++ b/commands/configuration/gambling.js @@ -1 +1 @@ -const a20_0x5898=['locale','gambling','number','gamblingDisable','exports','Gambling\x20Reward\x20Multiplier','client','language','send','catch','channel','GREEN','premiumGamblingMultiplier','PREMIUM_MEMBERSHIP_REQUIRED','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','isPublicBastion','enabled','guild','save','@bastion/tesseract','Command','It\x20allows\x20you\x20to\x20enable\x20(or\x20disable)\x20gambling\x20in\x20the\x20server.\x20When\x20enabled,\x20members\x20can\x20use\x20their\x20Bastion\x20Coins\x20to\x20gamble\x20in\x20games.','toString','document','RED','Constants','gamblingEnable','test','../../utils/omnic','getString','DiscordError','multiplier','COLORS','MANAGE_GUILD','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../../utils/constants','user'];(function(_0x4d0fef,_0x466fe5){const _0x589873=function(_0x52ca6b){while(--_0x52ca6b){_0x4d0fef['push'](_0x4d0fef['shift']());}},_0x404bb2=function(){const _0x56b82e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x177f0c,_0x148e7f,_0x42735b,_0x5d3483){_0x5d3483=_0x5d3483||{};let _0x292978=_0x148e7f+'='+_0x42735b,_0x720c63=0x0;for(let _0x2c4b9f=0x0,_0x249817=_0x177f0c['length'];_0x2c4b9f<_0x249817;_0x2c4b9f++){const _0x3c0c0a=_0x177f0c[_0x2c4b9f];_0x292978+=';\x20'+_0x3c0c0a;const _0x4e65be=_0x177f0c[_0x3c0c0a];_0x177f0c['push'](_0x4e65be),_0x249817=_0x177f0c['length'],_0x4e65be!==!![]&&(_0x292978+='='+_0x4e65be);}_0x5d3483['cookie']=_0x292978;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3427af,_0x59d574){_0x3427af=_0x3427af||function(_0x25bc38){return _0x25bc38;};const _0xf8320b=_0x3427af(new RegExp('(?:^|;\x20)'+_0x59d574['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4bd2f7=function(_0x2db626,_0x302793){_0x2db626(++_0x302793);};return _0x4bd2f7(_0x589873,_0x466fe5),_0xf8320b?decodeURIComponent(_0xf8320b[0x1]):undefined;}},_0x1f4c29=function(){const _0x1c8896=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1c8896['test'](_0x56b82e['removeCookie']['toString']());};_0x56b82e['updateCookie']=_0x1f4c29;let _0x5889b6='';const _0x598639=_0x56b82e['updateCookie']();if(!_0x598639)_0x56b82e['setCookie'](['*'],'counter',0x1);else _0x598639?_0x5889b6=_0x56b82e['getCookie'](null,'counter'):_0x56b82e['removeCookie']();};_0x404bb2();}(a20_0x5898,0xc4));const a20_0x404b=function(_0x4d0fef,_0x466fe5){_0x4d0fef=_0x4d0fef-0x102;let _0x589873=a20_0x5898[_0x4d0fef];return _0x589873;};const _0x582d5c=a20_0x404b,a20_0x1f4c29=function(){let _0x598639=!![];return function(_0x177f0c,_0x148e7f){const _0x42735b=_0x598639?function(){if(_0x148e7f){const _0x5d3483=_0x148e7f['apply'](_0x177f0c,arguments);return _0x148e7f=null,_0x5d3483;}}:function(){};return _0x598639=![],_0x42735b;};}(),a20_0x56b82e=a20_0x1f4c29(this,function(){const _0x292978=function(){const _0x7482d5=a20_0x404b,_0x720c63=_0x292978[_0x7482d5(0x10b)](_0x7482d5(0x10a))()[_0x7482d5(0x10b)](_0x7482d5(0x11f));return!_0x720c63[_0x7482d5(0x118)](a20_0x56b82e);};return _0x292978();});a20_0x56b82e();'use strict';const tesseract_1=require(_0x582d5c(0x110)),constants=require(_0x582d5c(0x120)),errors=require('../../utils/errors'),omnic=require(_0x582d5c(0x119));module[_0x582d5c(0x126)]=class GamblingCommand extends tesseract_1[_0x582d5c(0x111)]{constructor(){const _0x3b7455=_0x582d5c;super('gambling',{'description':_0x3b7455(0x112),'triggers':[],'arguments':{'number':[_0x3b7455(0x11c)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3b7455(0x11e)],'syntax':[_0x3b7455(0x123),'gambling\x20--multiplier\x201..13']}),this['exec']=async(_0x2c4b9f,_0x249817)=>{const _0x19d820=_0x3b7455;if(_0x249817[_0x19d820(0x11c)]&&constants[_0x19d820(0x10c)](this[_0x19d820(0x102)][_0x19d820(0x121)])){const _0x3427af=await omnic['fetchPremiumTier'](_0x2c4b9f[_0x19d820(0x10e)])[_0x19d820(0x105)](()=>{});if(!_0x3427af)throw new errors[(_0x19d820(0x11b))](errors['BASTION_ERROR_TYPE'][_0x19d820(0x109)],this['client'][_0x19d820(0x122)]['getString'](_0x2c4b9f['guild'][_0x19d820(0x114)][_0x19d820(0x103)],'errors',_0x19d820(0x108)));}const _0x3c0c0a=_0x2c4b9f[_0x19d820(0x10e)],_0x4e65be=_0x249817[_0x19d820(0x11c)]?!![]:!(_0x3c0c0a[_0x19d820(0x114)]['gambling']&&_0x3c0c0a[_0x19d820(0x114)]['gambling']['enabled']);_0x3c0c0a[_0x19d820(0x114)][_0x19d820(0x123)]={'enabled':_0x4e65be,'multiplier':typeof _0x249817[_0x19d820(0x11c)]===_0x19d820(0x124)?_0x249817['multiplier']:_0x4e65be?_0x3c0c0a['document'][_0x19d820(0x123)]&&_0x3c0c0a['document'][_0x19d820(0x123)][_0x19d820(0x11c)]:undefined},await _0x3c0c0a['document'][_0x19d820(0x10f)](),await _0x2c4b9f[_0x19d820(0x106)][_0x19d820(0x104)]({'embed':{'color':_0x3c0c0a[_0x19d820(0x114)]['gambling']['enabled']?tesseract_1[_0x19d820(0x116)][_0x19d820(0x11d)][_0x19d820(0x107)]:tesseract_1['Constants']['COLORS'][_0x19d820(0x115)],'description':this[_0x19d820(0x102)][_0x19d820(0x122)][_0x19d820(0x11a)](_0x2c4b9f[_0x19d820(0x10e)][_0x19d820(0x114)]['language'],'info',_0x3c0c0a[_0x19d820(0x114)][_0x19d820(0x123)][_0x19d820(0x10d)]?_0x19d820(0x117):_0x19d820(0x125),_0x2c4b9f['author']['tag']),'fields':_0x3c0c0a[_0x19d820(0x114)][_0x19d820(0x123)][_0x19d820(0x10d)]?[{'name':_0x19d820(0x127),'value':_0x3c0c0a[_0x19d820(0x114)]['gambling'][_0x19d820(0x11c)]?_0x3c0c0a[_0x19d820(0x114)][_0x19d820(0x123)][_0x19d820(0x11c)]['toString']():0x1[_0x19d820(0x113)](),'inline':!![]}]:[]}})[_0x19d820(0x105)](()=>{});};}}; \ No newline at end of file +const a20_0x3e6c=['constructor','apply','catch','@bastion/tesseract','tag','gambling\x20--multiplier\x201..13','getString','errors','MANAGE_GUILD','send','locale','test','exec','guild','fetchPremiumTier','COLORS','gambling','info','language','multiplier','PREMIUM_MEMBERSHIP_REQUIRED','../../utils/constants','document','client','exports','../../utils/omnic','GREEN','user','number','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','premiumGamblingMultiplier','Constants','enabled','toString','BASTION_ERROR_TYPE','gamblingDisable'];(function(_0x58bb56,_0x5573fd){const _0x3e6cf9=function(_0x317f34){while(--_0x317f34){_0x58bb56['push'](_0x58bb56['shift']());}},_0x222951=function(){const _0x3b1f4b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x49f148,_0x209ade,_0x527199,_0x3b4a29){_0x3b4a29=_0x3b4a29||{};let _0x4bc04a=_0x209ade+'='+_0x527199,_0x395faa=0x0;for(let _0xf489b1=0x0,_0x322f10=_0x49f148['length'];_0xf489b1<_0x322f10;_0xf489b1++){const _0x2828c4=_0x49f148[_0xf489b1];_0x4bc04a+=';\x20'+_0x2828c4;const _0x4c8e51=_0x49f148[_0x2828c4];_0x49f148['push'](_0x4c8e51),_0x322f10=_0x49f148['length'],_0x4c8e51!==!![]&&(_0x4bc04a+='='+_0x4c8e51);}_0x3b4a29['cookie']=_0x4bc04a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x17adcd,_0x122b4c){_0x17adcd=_0x17adcd||function(_0x45c262){return _0x45c262;};const _0x196480=_0x17adcd(new RegExp('(?:^|;\x20)'+_0x122b4c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xfba896=function(_0x4d8e1f,_0x275d51){_0x4d8e1f(++_0x275d51);};return _0xfba896(_0x3e6cf9,_0x5573fd),_0x196480?decodeURIComponent(_0x196480[0x1]):undefined;}},_0x9d3cc5=function(){const _0x1753f3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1753f3['test'](_0x3b1f4b['removeCookie']['toString']());};_0x3b1f4b['updateCookie']=_0x9d3cc5;let _0x50ba2b='';const _0x1139ce=_0x3b1f4b['updateCookie']();if(!_0x1139ce)_0x3b1f4b['setCookie'](['*'],'counter',0x1);else _0x1139ce?_0x50ba2b=_0x3b1f4b['getCookie'](null,'counter'):_0x3b1f4b['removeCookie']();};_0x222951();}(a20_0x3e6c,0xa5));const a20_0x2229=function(_0x58bb56,_0x5573fd){_0x58bb56=_0x58bb56-0x75;let _0x3e6cf9=a20_0x3e6c[_0x58bb56];return _0x3e6cf9;};const a20_0x8ef5e2=a20_0x2229,a20_0x9d3cc5=function(){let _0x1139ce=!![];return function(_0x49f148,_0x209ade){const _0x527199=_0x1139ce?function(){const _0x3738bc=a20_0x2229;if(_0x209ade){const _0x3b4a29=_0x209ade[_0x3738bc(0x8a)](_0x49f148,arguments);return _0x209ade=null,_0x3b4a29;}}:function(){};return _0x1139ce=![],_0x527199;};}(),a20_0x3b1f4b=a20_0x9d3cc5(this,function(){const _0x4bc04a=function(){const _0x30b7b0=a20_0x2229,_0x395faa=_0x4bc04a[_0x30b7b0(0x89)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x30b7b0(0x89)](_0x30b7b0(0x82));return!_0x395faa[_0x30b7b0(0x94)](a20_0x3b1f4b);};return _0x4bc04a();});a20_0x3b1f4b();'use strict';const tesseract_1=require(a20_0x8ef5e2(0x8c)),constants=require(a20_0x8ef5e2(0x79)),errors=require('../../utils/errors'),omnic=require(a20_0x8ef5e2(0x7d));module[a20_0x8ef5e2(0x7c)]=class GamblingCommand extends tesseract_1['Command']{constructor(){const _0x3e0206=a20_0x8ef5e2;super(_0x3e0206(0x99),{'description':'It\x20allows\x20you\x20to\x20enable\x20(or\x20disable)\x20gambling\x20in\x20the\x20server.\x20When\x20enabled,\x20members\x20can\x20use\x20their\x20Bastion\x20Coins\x20to\x20gamble\x20in\x20games.','triggers':[],'arguments':{'number':['multiplier']},'scope':_0x3e0206(0x96),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3e0206(0x91)],'syntax':[_0x3e0206(0x99),_0x3e0206(0x8e)]}),this[_0x3e0206(0x95)]=async(_0xf489b1,_0x322f10)=>{const _0x1411b3=_0x3e0206;if(_0x322f10[_0x1411b3(0x77)]&&constants['isPublicBastion'](this[_0x1411b3(0x7b)][_0x1411b3(0x7f)])){const _0x17adcd=await omnic[_0x1411b3(0x97)](_0xf489b1['guild'])['catch'](()=>{});if(!_0x17adcd)throw new errors[(_0x1411b3(0x81))](errors[_0x1411b3(0x87)][_0x1411b3(0x78)],this[_0x1411b3(0x7b)][_0x1411b3(0x93)]['getString'](_0xf489b1['guild']['document']['language'],_0x1411b3(0x90),_0x1411b3(0x83)));}const _0x2828c4=_0xf489b1[_0x1411b3(0x96)],_0x4c8e51=_0x322f10[_0x1411b3(0x77)]?!![]:!(_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)]&&_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)][_0x1411b3(0x85)]);_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)]={'enabled':_0x4c8e51,'multiplier':typeof _0x322f10[_0x1411b3(0x77)]===_0x1411b3(0x80)?_0x322f10[_0x1411b3(0x77)]:_0x4c8e51?_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)]&&_0x2828c4['document'][_0x1411b3(0x99)][_0x1411b3(0x77)]:undefined},await _0x2828c4[_0x1411b3(0x7a)]['save'](),await _0xf489b1['channel'][_0x1411b3(0x92)]({'embed':{'color':_0x2828c4[_0x1411b3(0x7a)]['gambling'][_0x1411b3(0x85)]?tesseract_1[_0x1411b3(0x84)][_0x1411b3(0x98)][_0x1411b3(0x7e)]:tesseract_1['Constants'][_0x1411b3(0x98)]['RED'],'description':this['client'][_0x1411b3(0x93)][_0x1411b3(0x8f)](_0xf489b1[_0x1411b3(0x96)][_0x1411b3(0x7a)][_0x1411b3(0x76)],_0x1411b3(0x75),_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)][_0x1411b3(0x85)]?'gamblingEnable':_0x1411b3(0x88),_0xf489b1['author'][_0x1411b3(0x8d)]),'fields':_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)][_0x1411b3(0x85)]?[{'name':'Gambling\x20Reward\x20Multiplier','value':_0x2828c4[_0x1411b3(0x7a)][_0x1411b3(0x99)][_0x1411b3(0x77)]?_0x2828c4['document'][_0x1411b3(0x99)][_0x1411b3(0x77)][_0x1411b3(0x86)]():0x1[_0x1411b3(0x86)](),'inline':!![]}]:[]}})[_0x1411b3(0x8b)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/gamification.js b/commands/configuration/gamification.js index d3c7a991e..8973689b2 100644 --- a/commands/configuration/gamification.js +++ b/commands/configuration/gamification.js @@ -1 +1 @@ -const a21_0x6179=['isPublicBastion','save','../../utils/errors','RED','MANAGE_GUILD','gamificationDisable','document','messages','enabled','send','Disabled','apply','getString','toString','catch','language','Level-Up\x20Multiplier','DEFAUL_LEVELUP_MULTIPLIER','constructor','exports','GREEN','tag','gamification\x20--messages','PREMIUM_MEMBERSHIP_REQUIRED','gamification','locale','client','test','multiplier','number','gamificationEnable','channel','DiscordError','gamification\x20--multiplier\x20NUMBER','COLORS','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.','guild','../../utils/constants','user','Constants','info','boolean','exec'];(function(_0x4ea827,_0x3135cf){const _0x617993=function(_0x469ddb){while(--_0x469ddb){_0x4ea827['push'](_0x4ea827['shift']());}},_0x41bfa9=function(){const _0x5b9c49={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e8a42,_0x531eba,_0x1f04ed,_0x8e2cb3){_0x8e2cb3=_0x8e2cb3||{};let _0xd19752=_0x531eba+'='+_0x1f04ed,_0x31ff28=0x0;for(let _0x1865e8=0x0,_0x49649c=_0x2e8a42['length'];_0x1865e8<_0x49649c;_0x1865e8++){const _0x111b5f=_0x2e8a42[_0x1865e8];_0xd19752+=';\x20'+_0x111b5f;const _0x28551b=_0x2e8a42[_0x111b5f];_0x2e8a42['push'](_0x28551b),_0x49649c=_0x2e8a42['length'],_0x28551b!==!![]&&(_0xd19752+='='+_0x28551b);}_0x8e2cb3['cookie']=_0xd19752;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c61f3,_0x28259a){_0x1c61f3=_0x1c61f3||function(_0x5668ee){return _0x5668ee;};const _0x581b64=_0x1c61f3(new RegExp('(?:^|;\x20)'+_0x28259a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5288c8=function(_0x44564e,_0x20fb54){_0x44564e(++_0x20fb54);};return _0x5288c8(_0x617993,_0x3135cf),_0x581b64?decodeURIComponent(_0x581b64[0x1]):undefined;}},_0x1f5d11=function(){const _0x4accc5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4accc5['test'](_0x5b9c49['removeCookie']['toString']());};_0x5b9c49['updateCookie']=_0x1f5d11;let _0x4d37df='';const _0x11cd53=_0x5b9c49['updateCookie']();if(!_0x11cd53)_0x5b9c49['setCookie'](['*'],'counter',0x1);else _0x11cd53?_0x4d37df=_0x5b9c49['getCookie'](null,'counter'):_0x5b9c49['removeCookie']();};_0x41bfa9();}(a21_0x6179,0x119));const a21_0x41bf=function(_0x4ea827,_0x3135cf){_0x4ea827=_0x4ea827-0xba;let _0x617993=a21_0x6179[_0x4ea827];return _0x617993;};const _0x4a56ed=a21_0x41bf,a21_0x1f5d11=function(){let _0x11cd53=!![];return function(_0x2e8a42,_0x531eba){const _0x1f04ed=_0x11cd53?function(){const _0x32b438=a21_0x41bf;if(_0x531eba){const _0x8e2cb3=_0x531eba[_0x32b438(0xd9)](_0x2e8a42,arguments);return _0x531eba=null,_0x8e2cb3;}}:function(){};return _0x11cd53=![],_0x1f04ed;};}(),a21_0x5b9c49=a21_0x1f5d11(this,function(){const _0xd19752=function(){const _0x46a870=a21_0x41bf,_0x31ff28=_0xd19752['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x46a870(0xe0)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x31ff28[_0x46a870(0xbe)](a21_0x5b9c49);};return _0xd19752();});a21_0x5b9c49();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(_0x4a56ed(0xc8)),errors=require(_0x4a56ed(0xd0)),gamification=require('../../utils/gamification'),omnic=require('../../utils/omnic');module[_0x4a56ed(0xe1)]=class Gamification extends tesseract_1['Command']{constructor(){const _0x14b0d4=_0x4a56ed;super(_0x14b0d4(0xbb),{'description':_0x14b0d4(0xc6),'triggers':[],'arguments':{'boolean':[_0x14b0d4(0xd5)],'number':[_0x14b0d4(0xbf)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x14b0d4(0xd2)],'syntax':['gamification',_0x14b0d4(0xe4),_0x14b0d4(0xc4)]}),this[_0x14b0d4(0xcd)]=async(_0x1865e8,_0x49649c)=>{const _0x18d43d=_0x14b0d4;if(_0x49649c[_0x18d43d(0xbf)]&&constants[_0x18d43d(0xce)](this[_0x18d43d(0xbd)][_0x18d43d(0xc9)])){const _0x1c61f3=await omnic['fetchPremiumTier'](_0x1865e8[_0x18d43d(0xc7)])[_0x18d43d(0xdc)](()=>{});if(!_0x1c61f3)throw new errors[(_0x18d43d(0xc3))](errors['BASTION_ERROR_TYPE'][_0x18d43d(0xba)],this[_0x18d43d(0xbd)][_0x18d43d(0xbc)][_0x18d43d(0xda)](_0x1865e8[_0x18d43d(0xc7)]['document'][_0x18d43d(0xdd)],'errors','premiumGamificationMultiplier'));}const _0x111b5f=_0x1865e8[_0x18d43d(0xc7)],_0x28551b=typeof _0x49649c[_0x18d43d(0xd5)]===_0x18d43d(0xcc)||_0x49649c[_0x18d43d(0xbf)]?!![]:!(_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)]&&_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)][_0x18d43d(0xd6)]);_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)]={'enabled':_0x28551b,'messages':typeof _0x49649c[_0x18d43d(0xd5)]===_0x18d43d(0xcc)?_0x49649c[_0x18d43d(0xd5)]:_0x28551b?_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)]&&_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)]['messages']:undefined,'multiplier':typeof _0x49649c[_0x18d43d(0xbf)]===_0x18d43d(0xc0)?_0x49649c[_0x18d43d(0xbf)]:_0x28551b?_0x111b5f['document']['gamification']&&_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)][_0x18d43d(0xbf)]:undefined},await _0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xcf)](),await _0x1865e8[_0x18d43d(0xc2)][_0x18d43d(0xd7)]({'embed':{'color':_0x111b5f[_0x18d43d(0xd4)][_0x18d43d(0xbb)]['enabled']?tesseract_1[_0x18d43d(0xca)][_0x18d43d(0xc5)][_0x18d43d(0xe2)]:tesseract_1[_0x18d43d(0xca)]['COLORS'][_0x18d43d(0xd1)],'description':this[_0x18d43d(0xbd)][_0x18d43d(0xbc)][_0x18d43d(0xda)](_0x1865e8['guild'][_0x18d43d(0xd4)]['language'],_0x18d43d(0xcb),_0x111b5f['document'][_0x18d43d(0xbb)][_0x18d43d(0xd6)]?_0x18d43d(0xc1):_0x18d43d(0xd3),_0x1865e8['author'][_0x18d43d(0xe3)]),'fields':_0x111b5f['document'][_0x18d43d(0xbb)][_0x18d43d(0xd6)]?[{'name':'Level-Up\x20Messages','value':_0x111b5f[_0x18d43d(0xd4)]['gamification'][_0x18d43d(0xd5)]?'Enabled':_0x18d43d(0xd8),'inline':!![]},{'name':_0x18d43d(0xde),'value':_0x111b5f[_0x18d43d(0xd4)]['gamification'][_0x18d43d(0xbf)]?_0x111b5f[_0x18d43d(0xd4)]['gamification'][_0x18d43d(0xbf)][_0x18d43d(0xdb)]():gamification[_0x18d43d(0xdf)][_0x18d43d(0xdb)](),'inline':!![]}]:[]}})[_0x18d43d(0xdc)](()=>{});};}}; \ No newline at end of file +const a21_0x2a40=['Level-Up\x20Multiplier','Command','../../utils/constants','locale','../../utils/errors','number','boolean','send','document','premiumGamificationMultiplier','client','isPublicBastion','Enabled','gamificationDisable','COLORS','user','../../utils/gamification','DiscordError','exports','enabled','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.','BASTION_ERROR_TYPE','fetchPremiumTier','author','gamification','toString','Level-Up\x20Messages','constructor','catch','test','@bastion/tesseract','guild','save','language','../../utils/omnic','messages','channel','errors','RED','gamification\x20--multiplier\x20NUMBER','exec','PREMIUM_MEMBERSHIP_REQUIRED','DEFAUL_LEVELUP_MULTIPLIER','multiplier','getString','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0xb55f93,_0x41eac9){const _0x2a4068=function(_0x5e0fc5){while(--_0x5e0fc5){_0xb55f93['push'](_0xb55f93['shift']());}},_0x1e9795=function(){const _0x1b7019={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b65c4,_0x129e6d,_0x4c93a4,_0x437eb7){_0x437eb7=_0x437eb7||{};let _0x1c74ee=_0x129e6d+'='+_0x4c93a4,_0x3d0d38=0x0;for(let _0x5af68a=0x0,_0x31626f=_0x1b65c4['length'];_0x5af68a<_0x31626f;_0x5af68a++){const _0x52c8f2=_0x1b65c4[_0x5af68a];_0x1c74ee+=';\x20'+_0x52c8f2;const _0x557f89=_0x1b65c4[_0x52c8f2];_0x1b65c4['push'](_0x557f89),_0x31626f=_0x1b65c4['length'],_0x557f89!==!![]&&(_0x1c74ee+='='+_0x557f89);}_0x437eb7['cookie']=_0x1c74ee;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f1451,_0x4a402f){_0x2f1451=_0x2f1451||function(_0x16dc26){return _0x16dc26;};const _0x15890e=_0x2f1451(new RegExp('(?:^|;\x20)'+_0x4a402f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39540e=function(_0x4b5470,_0x49bdc8){_0x4b5470(++_0x49bdc8);};return _0x39540e(_0x2a4068,_0x41eac9),_0x15890e?decodeURIComponent(_0x15890e[0x1]):undefined;}},_0x21e0c1=function(){const _0x4f7754=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4f7754['test'](_0x1b7019['removeCookie']['toString']());};_0x1b7019['updateCookie']=_0x21e0c1;let _0x1ae9fa='';const _0x113f9d=_0x1b7019['updateCookie']();if(!_0x113f9d)_0x1b7019['setCookie'](['*'],'counter',0x1);else _0x113f9d?_0x1ae9fa=_0x1b7019['getCookie'](null,'counter'):_0x1b7019['removeCookie']();};_0x1e9795();}(a21_0x2a40,0x1bc));const a21_0x1e97=function(_0xb55f93,_0x41eac9){_0xb55f93=_0xb55f93-0xc8;let _0x2a4068=a21_0x2a40[_0xb55f93];return _0x2a4068;};const a21_0x744f02=a21_0x1e97,a21_0x21e0c1=function(){let _0x113f9d=!![];return function(_0x1b65c4,_0x129e6d){const _0x4c93a4=_0x113f9d?function(){if(_0x129e6d){const _0x437eb7=_0x129e6d['apply'](_0x1b65c4,arguments);return _0x129e6d=null,_0x437eb7;}}:function(){};return _0x113f9d=![],_0x4c93a4;};}(),a21_0x1b7019=a21_0x21e0c1(this,function(){const _0x1c74ee=function(){const _0x31021b=a21_0x1e97,_0x3d0d38=_0x1c74ee[_0x31021b(0xf3)](_0x31021b(0xd7))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3d0d38[_0x31021b(0xf5)](a21_0x1b7019);};return _0x1c74ee();});a21_0x1b7019();'use strict';const tesseract_1=require(a21_0x744f02(0xc8)),constants=require(a21_0x744f02(0xda)),errors=require(a21_0x744f02(0xdc)),gamification=require(a21_0x744f02(0xe8)),omnic=require(a21_0x744f02(0xcc));module[a21_0x744f02(0xea)]=class Gamification extends tesseract_1[a21_0x744f02(0xd9)]{constructor(){const _0x3ba228=a21_0x744f02;super(_0x3ba228(0xf0),{'description':_0x3ba228(0xec),'triggers':[],'arguments':{'boolean':[_0x3ba228(0xcd)],'number':['multiplier']},'scope':_0x3ba228(0xc9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x3ba228(0xf0),'gamification\x20--messages',_0x3ba228(0xd1)]}),this[_0x3ba228(0xd2)]=async(_0x5af68a,_0x31626f)=>{const _0x1bee03=_0x3ba228;if(_0x31626f[_0x1bee03(0xd5)]&&constants[_0x1bee03(0xe3)](this[_0x1bee03(0xe2)][_0x1bee03(0xe7)])){const _0x2f1451=await omnic[_0x1bee03(0xee)](_0x5af68a[_0x1bee03(0xc9)])[_0x1bee03(0xf4)](()=>{});if(!_0x2f1451)throw new errors[(_0x1bee03(0xe9))](errors[_0x1bee03(0xed)][_0x1bee03(0xd3)],this['client'][_0x1bee03(0xdb)][_0x1bee03(0xd6)](_0x5af68a[_0x1bee03(0xc9)][_0x1bee03(0xe0)][_0x1bee03(0xcb)],_0x1bee03(0xcf),_0x1bee03(0xe1)));}const _0x52c8f2=_0x5af68a[_0x1bee03(0xc9)],_0x557f89=typeof _0x31626f[_0x1bee03(0xcd)]==='boolean'||_0x31626f[_0x1bee03(0xd5)]?!![]:!(_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)]&&_0x52c8f2['document'][_0x1bee03(0xf0)][_0x1bee03(0xeb)]);_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)]={'enabled':_0x557f89,'messages':typeof _0x31626f[_0x1bee03(0xcd)]===_0x1bee03(0xde)?_0x31626f[_0x1bee03(0xcd)]:_0x557f89?_0x52c8f2[_0x1bee03(0xe0)]['gamification']&&_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)][_0x1bee03(0xcd)]:undefined,'multiplier':typeof _0x31626f[_0x1bee03(0xd5)]===_0x1bee03(0xdd)?_0x31626f[_0x1bee03(0xd5)]:_0x557f89?_0x52c8f2['document'][_0x1bee03(0xf0)]&&_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)]['multiplier']:undefined},await _0x52c8f2['document'][_0x1bee03(0xca)](),await _0x5af68a[_0x1bee03(0xce)][_0x1bee03(0xdf)]({'embed':{'color':_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)][_0x1bee03(0xeb)]?tesseract_1['Constants'][_0x1bee03(0xe6)]['GREEN']:tesseract_1['Constants'][_0x1bee03(0xe6)][_0x1bee03(0xd0)],'description':this[_0x1bee03(0xe2)][_0x1bee03(0xdb)][_0x1bee03(0xd6)](_0x5af68a[_0x1bee03(0xc9)][_0x1bee03(0xe0)][_0x1bee03(0xcb)],'info',_0x52c8f2['document']['gamification']['enabled']?'gamificationEnable':_0x1bee03(0xe5),_0x5af68a[_0x1bee03(0xef)]['tag']),'fields':_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)][_0x1bee03(0xeb)]?[{'name':_0x1bee03(0xf2),'value':_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)][_0x1bee03(0xcd)]?_0x1bee03(0xe4):'Disabled','inline':!![]},{'name':_0x1bee03(0xd8),'value':_0x52c8f2['document']['gamification'][_0x1bee03(0xd5)]?_0x52c8f2[_0x1bee03(0xe0)][_0x1bee03(0xf0)][_0x1bee03(0xd5)][_0x1bee03(0xf1)]():gamification[_0x1bee03(0xd4)][_0x1bee03(0xf1)](),'inline':!![]}]:[]}})[_0x1bee03(0xf4)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/greetings.js b/commands/configuration/greetings.js index 697e86b0b..733644047 100644 --- a/commands/configuration/greetings.js +++ b/commands/configuration/greetings.js @@ -1 +1 @@ -const a22_0x6882=['number','disable','cache','random','[Default\x20Messages]','\x20minutes','greeting','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','join','Constants','greetings\x20--random','message','COLORS','private','Timeout\x20-\x20','greetings\x20--private\x20--\x20MESSAGE','save','has','../../utils/embeds','Message','get','timeout','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','Disabled','guild','```json\x0a','send','channel','Greetings\x20','enable','RED','Command','generateEmbed','IRIS','greetings','name','exec','length','document','No\x20Timeout','channelId','MANAGE_GUILD','greetings\x20--timeout\x20TIMEOUT_IN_MINUTES','stringify','greetings\x20--disable','```','Private\x20Message','generateBastionEmbed','Channel\x20#','greetings\x20--\x20MESSAGE','channels','privateMessage'];(function(_0x62c7fb,_0x32dc1a){const _0x6882e9=function(_0x3958f5){while(--_0x3958f5){_0x62c7fb['push'](_0x62c7fb['shift']());}},_0x364b65=function(){const _0x249f14={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3d776e,_0x463afd,_0x2af456,_0x1671b8){_0x1671b8=_0x1671b8||{};let _0x14fdee=_0x463afd+'='+_0x2af456,_0x2d004e=0x0;for(let _0x34425d=0x0,_0xd1755f=_0x3d776e['length'];_0x34425d<_0xd1755f;_0x34425d++){const _0x1a073b=_0x3d776e[_0x34425d];_0x14fdee+=';\x20'+_0x1a073b;const _0x14fec2=_0x3d776e[_0x1a073b];_0x3d776e['push'](_0x14fec2),_0xd1755f=_0x3d776e['length'],_0x14fec2!==!![]&&(_0x14fdee+='='+_0x14fec2);}_0x1671b8['cookie']=_0x14fdee;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1ae8f3,_0x22f69a){_0x1ae8f3=_0x1ae8f3||function(_0x1a47d3){return _0x1a47d3;};const _0x270f07=_0x1ae8f3(new RegExp('(?:^|;\x20)'+_0x22f69a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2f8359=function(_0x4643b0,_0x7a57f8){_0x4643b0(++_0x7a57f8);};return _0x2f8359(_0x6882e9,_0x32dc1a),_0x270f07?decodeURIComponent(_0x270f07[0x1]):undefined;}},_0x12c68b=function(){const _0x1167e9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1167e9['test'](_0x249f14['removeCookie']['toString']());};_0x249f14['updateCookie']=_0x12c68b;let _0x16b131='';const _0x2ac23=_0x249f14['updateCookie']();if(!_0x2ac23)_0x249f14['setCookie'](['*'],'counter',0x1);else _0x2ac23?_0x16b131=_0x249f14['getCookie'](null,'counter'):_0x249f14['removeCookie']();};_0x364b65();}(a22_0x6882,0x1bb));const a22_0x364b=function(_0x62c7fb,_0x32dc1a){_0x62c7fb=_0x62c7fb-0xca;let _0x6882e9=a22_0x6882[_0x62c7fb];return _0x6882e9;};const _0x5a8f05=a22_0x364b,a22_0x12c68b=function(){let _0x2ac23=!![];return function(_0x3d776e,_0x463afd){const _0x2af456=_0x2ac23?function(){const _0x58f298=a22_0x364b;if(_0x463afd){const _0x1671b8=_0x463afd[_0x58f298(0xd5)](_0x3d776e,arguments);return _0x463afd=null,_0x1671b8;}}:function(){};return _0x2ac23=![],_0x2af456;};}(),a22_0x249f14=a22_0x12c68b(this,function(){const _0x14fdee=function(){const _0x50600e=a22_0x364b,_0x2d004e=_0x14fdee[_0x50600e(0xd7)](_0x50600e(0xd6))()[_0x50600e(0xd7)](_0x50600e(0xfc));return!_0x2d004e['test'](a22_0x249f14);};return _0x14fdee();});a22_0x249f14();'use strict';const tesseract_1=require('@bastion/tesseract'),embeds=require(_0x5a8f05(0xd1));module['exports']=class Greetings extends tesseract_1[_0x5a8f05(0xe0)]{constructor(){const _0x5133f9=_0x5a8f05;super(_0x5133f9(0xe3),{'description':'It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20greetings\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20greeting\x20message\x20and\x20timeout.','triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':[_0x5133f9(0xf6),_0x5133f9(0xde),_0x5133f9(0xcc),'random'],'number':['timeout']},'scope':_0x5133f9(0xd9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x5133f9(0xea)],'syntax':['greetings\x20--enable',_0x5133f9(0xed),_0x5133f9(0xff),_0x5133f9(0xeb),_0x5133f9(0xf2),_0x5133f9(0xce)]}),this[_0x5133f9(0xe5)]=async(_0x34425d,_0xd1755f)=>{const _0x3dfbbf=_0x5133f9,_0x1a073b=_0x34425d[_0x3dfbbf(0xd9)];_0x1a073b['document']['greeting']={'channelId':_0xd1755f[_0x3dfbbf(0xde)]?_0x34425d[_0x3dfbbf(0xdc)]['id']:_0xd1755f['disable']?undefined:_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)]?_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xe9)]:undefined,'message':_0xd1755f['_'][_0x3dfbbf(0xe6)]&&!_0xd1755f['private']?embeds['generateBastionEmbed'](_0xd1755f['_'][_0x3dfbbf(0xfd)]('\x20')):_0xd1755f[_0x3dfbbf(0xf8)]?undefined:_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)]?_0x1a073b[_0x3dfbbf(0xe7)]['greeting'][_0x3dfbbf(0xca)]:undefined,'privateMessage':_0xd1755f[_0x3dfbbf(0xcc)]?_0xd1755f['_']['length']?embeds[_0x3dfbbf(0xf0)](_0xd1755f['_'][_0x3dfbbf(0xfd)]('\x20')):undefined:_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)]?_0x1a073b[_0x3dfbbf(0xe7)]['greeting'][_0x3dfbbf(0xf4)]:undefined,'timeout':typeof _0xd1755f[_0x3dfbbf(0xd4)]===_0x3dfbbf(0xf5)?_0xd1755f['timeout']:_0x1a073b['document'][_0x3dfbbf(0xfb)]?_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xd4)]:undefined},await _0x1a073b['document'][_0x3dfbbf(0xcf)](),await _0x34425d['channel'][_0x3dfbbf(0xdb)]({'embed':{'color':_0x34425d[_0x3dfbbf(0xd9)]['channels']['cache'][_0x3dfbbf(0xd0)](_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xe9)])?tesseract_1[_0x3dfbbf(0xfe)][_0x3dfbbf(0xcb)][_0x3dfbbf(0xe2)]:tesseract_1['Constants'][_0x3dfbbf(0xcb)][_0x3dfbbf(0xdf)],'title':_0x3dfbbf(0xdd)+(_0x34425d[_0x3dfbbf(0xd9)][_0x3dfbbf(0xf3)][_0x3dfbbf(0xf7)][_0x3dfbbf(0xd0)](_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)]['channelId'])?'Enabled':_0x3dfbbf(0xd8)),'fields':[{'name':_0x3dfbbf(0xd2),'value':_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xca)]?'```json\x0a'+JSON[_0x3dfbbf(0xec)](_0x1a073b[_0x3dfbbf(0xe7)]['greeting'][_0x3dfbbf(0xca)]?embeds[_0x3dfbbf(0xe1)](_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)]['message']):{})+_0x3dfbbf(0xee):_0x3dfbbf(0xf9)},{'name':_0x3dfbbf(0xef),'value':_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xf4)]?_0x3dfbbf(0xda)+JSON[_0x3dfbbf(0xec)](_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xf4)]?embeds[_0x3dfbbf(0xe1)](_0x1a073b[_0x3dfbbf(0xe7)]['greeting']['privateMessage']):{})+'```':'[Not\x20Set]'}],'footer':{'text':(_0x34425d[_0x3dfbbf(0xd9)][_0x3dfbbf(0xf3)][_0x3dfbbf(0xf7)][_0x3dfbbf(0xd0)](_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xe9)])?_0x3dfbbf(0xf1)+_0x34425d[_0x3dfbbf(0xd9)][_0x3dfbbf(0xf3)][_0x3dfbbf(0xf7)][_0x3dfbbf(0xd3)](_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xe9)])[_0x3dfbbf(0xe4)]+'\x20•\x20':'')+(typeof _0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xd4)]===_0x3dfbbf(0xf5)&&_0x1a073b[_0x3dfbbf(0xe7)][_0x3dfbbf(0xfb)][_0x3dfbbf(0xd4)]?_0x3dfbbf(0xcd)+(_0x1a073b[_0x3dfbbf(0xe7)]['greeting'][_0x3dfbbf(0xd4)]+_0x3dfbbf(0xfa)):_0x3dfbbf(0xe8))}}});};}}; \ No newline at end of file +const a22_0x5c68=['guild','has','Message','apply','greetings\x20--disable','get','name','disable','exec','greetings\x20--enable','channel','[Not\x20Set]','timeout','private','save','send','test','Greetings\x20','random','../../utils/embeds','generateBastionEmbed','privateMessage','join','Channel\x20#','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channelId','\x20minutes','generateEmbed','[Default\x20Messages]','cache','It\x20allows\x20you\x20to\x20enable\x20(and\x20disable)\x20greetings\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20set\x20greeting\x20message\x20and\x20timeout.','enable','Enabled','greeting','greetings\x20--private\x20--\x20MESSAGE','constructor','COLORS','```json\x0a','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','```','greetings','length','greetings\x20--timeout\x20TIMEOUT_IN_MINUTES','document','channels','\x20•\x20','exports','number','message','greetings\x20--random','Constants','Command'];(function(_0x1728f,_0x5c6f06){const _0x5c68b4=function(_0x5bfafb){while(--_0x5bfafb){_0x1728f['push'](_0x1728f['shift']());}},_0x3d97aa=function(){const _0x5e7468={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ab6de,_0x5dfd8a,_0x886595,_0x192b94){_0x192b94=_0x192b94||{};let _0x1de73a=_0x5dfd8a+'='+_0x886595,_0x2f2e69=0x0;for(let _0x514541=0x0,_0x5b9d31=_0x5ab6de['length'];_0x514541<_0x5b9d31;_0x514541++){const _0x1214d2=_0x5ab6de[_0x514541];_0x1de73a+=';\x20'+_0x1214d2;const _0x75a81c=_0x5ab6de[_0x1214d2];_0x5ab6de['push'](_0x75a81c),_0x5b9d31=_0x5ab6de['length'],_0x75a81c!==!![]&&(_0x1de73a+='='+_0x75a81c);}_0x192b94['cookie']=_0x1de73a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f1a8b,_0x28fd1a){_0x2f1a8b=_0x2f1a8b||function(_0x47d76c){return _0x47d76c;};const _0x13b274=_0x2f1a8b(new RegExp('(?:^|;\x20)'+_0x28fd1a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17322d=function(_0x3e12c2,_0x19e969){_0x3e12c2(++_0x19e969);};return _0x17322d(_0x5c68b4,_0x5c6f06),_0x13b274?decodeURIComponent(_0x13b274[0x1]):undefined;}},_0x523166=function(){const _0x13b689=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13b689['test'](_0x5e7468['removeCookie']['toString']());};_0x5e7468['updateCookie']=_0x523166;let _0x74f5cd='';const _0x165eb6=_0x5e7468['updateCookie']();if(!_0x165eb6)_0x5e7468['setCookie'](['*'],'counter',0x1);else _0x165eb6?_0x74f5cd=_0x5e7468['getCookie'](null,'counter'):_0x5e7468['removeCookie']();};_0x3d97aa();}(a22_0x5c68,0x1eb));const a22_0x3d97=function(_0x1728f,_0x5c6f06){_0x1728f=_0x1728f-0xa3;let _0x5c68b4=a22_0x5c68[_0x1728f];return _0x5c68b4;};const a22_0x449b32=a22_0x3d97,a22_0x523166=function(){let _0x165eb6=!![];return function(_0x5ab6de,_0x5dfd8a){const _0x886595=_0x165eb6?function(){const _0x17a6b2=a22_0x3d97;if(_0x5dfd8a){const _0x192b94=_0x5dfd8a[_0x17a6b2(0xc3)](_0x5ab6de,arguments);return _0x5dfd8a=null,_0x192b94;}}:function(){};return _0x165eb6=![],_0x886595;};}(),a22_0x5e7468=a22_0x523166(this,function(){const _0x1de73a=function(){const _0x27b24c=a22_0x3d97,_0x2f2e69=_0x1de73a[_0x27b24c(0xaf)](_0x27b24c(0xa4))()[_0x27b24c(0xaf)](_0x27b24c(0xb2));return!_0x2f2e69[_0x27b24c(0xd0)](a22_0x5e7468);};return _0x1de73a();});a22_0x5e7468();'use strict';const tesseract_1=require('@bastion/tesseract'),embeds=require(a22_0x449b32(0xd3));module[a22_0x449b32(0xba)]=class Greetings extends tesseract_1[a22_0x449b32(0xbf)]{constructor(){const _0x3bb70d=a22_0x449b32;super(_0x3bb70d(0xb4),{'description':_0x3bb70d(0xaa),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'timeout':['t']},'boolean':[_0x3bb70d(0xc7),_0x3bb70d(0xab),_0x3bb70d(0xcd),'random'],'number':[_0x3bb70d(0xcc)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x3bb70d(0xc9),_0x3bb70d(0xc4),_0x3bb70d(0xbd),_0x3bb70d(0xb6),'greetings\x20--\x20MESSAGE',_0x3bb70d(0xae)]}),this[_0x3bb70d(0xc8)]=async(_0x514541,_0x5b9d31)=>{const _0x4c647f=_0x3bb70d,_0x1214d2=_0x514541[_0x4c647f(0xc0)];_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)]={'channelId':_0x5b9d31[_0x4c647f(0xab)]?_0x514541['channel']['id']:_0x5b9d31[_0x4c647f(0xc7)]?undefined:_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)]?_0x1214d2[_0x4c647f(0xb7)]['greeting'][_0x4c647f(0xa5)]:undefined,'message':_0x5b9d31['_'][_0x4c647f(0xb5)]&&!_0x5b9d31[_0x4c647f(0xcd)]?embeds[_0x4c647f(0xd4)](_0x5b9d31['_'][_0x4c647f(0xd6)]('\x20')):_0x5b9d31[_0x4c647f(0xd2)]?undefined:_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)]?_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xbc)]:undefined,'privateMessage':_0x5b9d31[_0x4c647f(0xcd)]?_0x5b9d31['_'][_0x4c647f(0xb5)]?embeds[_0x4c647f(0xd4)](_0x5b9d31['_'][_0x4c647f(0xd6)]('\x20')):undefined:_0x1214d2[_0x4c647f(0xb7)]['greeting']?_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xd5)]:undefined,'timeout':typeof _0x5b9d31[_0x4c647f(0xcc)]==='number'?_0x5b9d31[_0x4c647f(0xcc)]:_0x1214d2[_0x4c647f(0xb7)]['greeting']?_0x1214d2['document'][_0x4c647f(0xad)]['timeout']:undefined},await _0x1214d2['document'][_0x4c647f(0xce)](),await _0x514541[_0x4c647f(0xca)][_0x4c647f(0xcf)]({'embed':{'color':_0x514541[_0x4c647f(0xc0)][_0x4c647f(0xb8)][_0x4c647f(0xa9)][_0x4c647f(0xc1)](_0x1214d2['document'][_0x4c647f(0xad)]['channelId'])?tesseract_1[_0x4c647f(0xbe)][_0x4c647f(0xb0)]['IRIS']:tesseract_1[_0x4c647f(0xbe)][_0x4c647f(0xb0)]['RED'],'title':_0x4c647f(0xd1)+(_0x514541[_0x4c647f(0xc0)]['channels'][_0x4c647f(0xa9)][_0x4c647f(0xc1)](_0x1214d2[_0x4c647f(0xb7)]['greeting'][_0x4c647f(0xa5)])?_0x4c647f(0xac):'Disabled'),'fields':[{'name':_0x4c647f(0xc2),'value':_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xbc)]?_0x4c647f(0xb1)+JSON['stringify'](_0x1214d2['document'][_0x4c647f(0xad)][_0x4c647f(0xbc)]?embeds[_0x4c647f(0xa7)](_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xbc)]):{})+'```':_0x4c647f(0xa8)},{'name':'Private\x20Message','value':_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xd5)]?'```json\x0a'+JSON['stringify'](_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)]['privateMessage']?embeds['generateEmbed'](_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xd5)]):{})+_0x4c647f(0xb3):_0x4c647f(0xcb)}],'footer':{'text':(_0x514541[_0x4c647f(0xc0)][_0x4c647f(0xb8)]['cache']['has'](_0x1214d2[_0x4c647f(0xb7)]['greeting'][_0x4c647f(0xa5)])?_0x4c647f(0xa3)+_0x514541['guild'][_0x4c647f(0xb8)][_0x4c647f(0xa9)][_0x4c647f(0xc5)](_0x1214d2['document']['greeting'][_0x4c647f(0xa5)])[_0x4c647f(0xc6)]+_0x4c647f(0xb9):'')+(typeof _0x1214d2['document'][_0x4c647f(0xad)][_0x4c647f(0xcc)]===_0x4c647f(0xbb)&&_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xcc)]?'Timeout\x20-\x20'+(_0x1214d2[_0x4c647f(0xb7)][_0x4c647f(0xad)][_0x4c647f(0xcc)]+_0x4c647f(0xa6)):'No\x20Timeout')}}});};}}; \ No newline at end of file diff --git a/commands/configuration/inviteFilter.js b/commands/configuration/inviteFilter.js index 5deaabf9d..16cd891b2 100644 --- a/commands/configuration/inviteFilter.js +++ b/commands/configuration/inviteFilter.js @@ -1 +1 @@ -const a23_0x53d8=['filterInfractionEnabled','inviteFilterEnable','client','enabled','apply','constructor','inviteFilterDisabled','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.','info','document','tag','infraction','locale','whitelist','author','inviteFilter\x20--no-infraction','send','getString','GREEN','inviteFilter\x20--infraction','exec','COLORS','channel','exports','catch','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','inviteFilter\x20--enable','MANAGE_GUILD','RED','Constants','Command','enable','filterInfractionDisabled','disable','test','guild','filters','language','inviteFilter'];(function(_0x3ad744,_0xf196a){const _0x53d825=function(_0x1b8eb){while(--_0x1b8eb){_0x3ad744['push'](_0x3ad744['shift']());}},_0x5abe49=function(){const _0x203b91={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5b34ed,_0x51376a,_0x36d2db,_0x5a473e){_0x5a473e=_0x5a473e||{};let _0xd04b1a=_0x51376a+'='+_0x36d2db,_0x33fdd0=0x0;for(let _0x38994c=0x0,_0x3a9f72=_0x5b34ed['length'];_0x38994c<_0x3a9f72;_0x38994c++){const _0x8fda47=_0x5b34ed[_0x38994c];_0xd04b1a+=';\x20'+_0x8fda47;const _0x1382a3=_0x5b34ed[_0x8fda47];_0x5b34ed['push'](_0x1382a3),_0x3a9f72=_0x5b34ed['length'],_0x1382a3!==!![]&&(_0xd04b1a+='='+_0x1382a3);}_0x5a473e['cookie']=_0xd04b1a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3ffea4,_0x429138){_0x3ffea4=_0x3ffea4||function(_0xb17e49){return _0xb17e49;};const _0x16c190=_0x3ffea4(new RegExp('(?:^|;\x20)'+_0x429138['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1cbdd1=function(_0x11656b,_0x362df5){_0x11656b(++_0x362df5);};return _0x1cbdd1(_0x53d825,_0xf196a),_0x16c190?decodeURIComponent(_0x16c190[0x1]):undefined;}},_0x508ff9=function(){const _0x15debd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x15debd['test'](_0x203b91['removeCookie']['toString']());};_0x203b91['updateCookie']=_0x508ff9;let _0xd5382f='';const _0x58f5c0=_0x203b91['updateCookie']();if(!_0x58f5c0)_0x203b91['setCookie'](['*'],'counter',0x1);else _0x58f5c0?_0xd5382f=_0x203b91['getCookie'](null,'counter'):_0x203b91['removeCookie']();};_0x5abe49();}(a23_0x53d8,0x1a1));const a23_0x5abe=function(_0x3ad744,_0xf196a){_0x3ad744=_0x3ad744-0x101;let _0x53d825=a23_0x53d8[_0x3ad744];return _0x53d825;};const _0x50e32f=a23_0x5abe,a23_0x508ff9=function(){let _0x58f5c0=!![];return function(_0x5b34ed,_0x51376a){const _0x36d2db=_0x58f5c0?function(){const _0x21a06e=a23_0x5abe;if(_0x51376a){const _0x5a473e=_0x51376a[_0x21a06e(0x11c)](_0x5b34ed,arguments);return _0x51376a=null,_0x5a473e;}}:function(){};return _0x58f5c0=![],_0x36d2db;};}(),a23_0x203b91=a23_0x508ff9(this,function(){const _0xd04b1a=function(){const _0x17c6f0=a23_0x5abe,_0x33fdd0=_0xd04b1a[_0x17c6f0(0x11d)](_0x17c6f0(0x109))()[_0x17c6f0(0x11d)](_0x17c6f0(0x10a));return!_0x33fdd0[_0x17c6f0(0x113)](a23_0x203b91);};return _0xd04b1a();});a23_0x203b91();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x50e32f(0x107)]=class InviteFilterCommand extends tesseract_1[_0x50e32f(0x10f)]{constructor(){const _0x1d720d=_0x50e32f;super(_0x1d720d(0x117),{'description':_0x1d720d(0x11f),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':['disable',_0x1d720d(0x110),'infraction']},'scope':_0x1d720d(0x114),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x1d720d(0x10c)],'syntax':[_0x1d720d(0x117),_0x1d720d(0x10b),'inviteFilter\x20--disable',_0x1d720d(0x103),_0x1d720d(0x127)]}),this[_0x1d720d(0x104)]=async(_0x38994c,_0x3a9f72)=>{const _0x55e551=_0x1d720d,_0x8fda47=_0x38994c[_0x55e551(0x114)];_0x8fda47[_0x55e551(0x121)]['filters']={..._0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)],'inviteFilter':{'enabled':_0x3a9f72[_0x55e551(0x112)]?undefined:_0x3a9f72['enable']||_0x8fda47['document'][_0x55e551(0x115)]&&_0x8fda47['document']['filters'][_0x55e551(0x117)]&&_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)]['inviteFilter']['enabled']?!![]:undefined,'infraction':_0x3a9f72[_0x55e551(0x123)]===![]?undefined:_0x3a9f72['infraction']||_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)]&&_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)]['inviteFilter']&&_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)][_0x55e551(0x117)]['infraction']?!![]:undefined,'whitelist':_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)]&&_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)][_0x55e551(0x117)]&&_0x8fda47['document'][_0x55e551(0x115)][_0x55e551(0x117)][_0x55e551(0x125)]?_0x8fda47['document'][_0x55e551(0x115)][_0x55e551(0x117)][_0x55e551(0x125)]:undefined}},await _0x8fda47[_0x55e551(0x121)]['save'](),await _0x38994c[_0x55e551(0x106)][_0x55e551(0x128)]({'embed':{'color':_0x3a9f72[_0x55e551(0x110)]?tesseract_1[_0x55e551(0x10e)][_0x55e551(0x105)][_0x55e551(0x102)]:_0x3a9f72[_0x55e551(0x112)]?tesseract_1[_0x55e551(0x10e)][_0x55e551(0x105)][_0x55e551(0x10d)]:tesseract_1['Constants']['COLORS']['IRIS'],'description':this[_0x55e551(0x11a)][_0x55e551(0x124)][_0x55e551(0x101)](_0x38994c['guild'][_0x55e551(0x121)][_0x55e551(0x116)],_0x55e551(0x120),_0x3a9f72[_0x55e551(0x110)]?_0x55e551(0x119):_0x3a9f72[_0x55e551(0x112)]?'inviteFilterDisable':_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)][_0x55e551(0x117)][_0x55e551(0x11b)]?'inviteFilterEnabled':_0x55e551(0x11e),_0x38994c[_0x55e551(0x126)][_0x55e551(0x122)]),'footer':{'text':_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)][_0x55e551(0x117)]['enabled']?this[_0x55e551(0x11a)][_0x55e551(0x124)]['getString'](_0x38994c[_0x55e551(0x114)][_0x55e551(0x121)][_0x55e551(0x116)],_0x55e551(0x120),_0x8fda47[_0x55e551(0x121)][_0x55e551(0x115)][_0x55e551(0x117)][_0x55e551(0x123)]?_0x55e551(0x118):_0x55e551(0x111)):''}}})[_0x55e551(0x108)](()=>{});};}}; \ No newline at end of file +const a23_0x5e3a=['constructor','exports','save','Constants','client','catch','info','send','test','Command','COLORS','channel','enable','guild','MANAGE_GUILD','author','filters','locale','IRIS','getString','inviteFilter\x20--disable','whitelist','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','enabled','inviteFilterEnable','inviteFilter','disable','inviteFilterEnabled','infraction','GREEN','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','filterInfractionDisabled','filterInfractionEnabled','inviteFilterDisable','document','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.'];(function(_0x41147b,_0x53d8d0){const _0x5e3a90=function(_0x52abac){while(--_0x52abac){_0x41147b['push'](_0x41147b['shift']());}},_0x2cd768=function(){const _0x396476={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x19903b,_0x261f81,_0x5a6a19,_0x1c5b87){_0x1c5b87=_0x1c5b87||{};let _0x516f4e=_0x261f81+'='+_0x5a6a19,_0x54ff4a=0x0;for(let _0x5a2d23=0x0,_0x2c6f8e=_0x19903b['length'];_0x5a2d23<_0x2c6f8e;_0x5a2d23++){const _0x51bc3a=_0x19903b[_0x5a2d23];_0x516f4e+=';\x20'+_0x51bc3a;const _0x2e1b6c=_0x19903b[_0x51bc3a];_0x19903b['push'](_0x2e1b6c),_0x2c6f8e=_0x19903b['length'],_0x2e1b6c!==!![]&&(_0x516f4e+='='+_0x2e1b6c);}_0x1c5b87['cookie']=_0x516f4e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5bda8c,_0x2a63df){_0x5bda8c=_0x5bda8c||function(_0x3d8071){return _0x3d8071;};const _0x400040=_0x5bda8c(new RegExp('(?:^|;\x20)'+_0x2a63df['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x37b613=function(_0x174558,_0x3b0047){_0x174558(++_0x3b0047);};return _0x37b613(_0x5e3a90,_0x53d8d0),_0x400040?decodeURIComponent(_0x400040[0x1]):undefined;}},_0x35e6ea=function(){const _0x3e4153=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e4153['test'](_0x396476['removeCookie']['toString']());};_0x396476['updateCookie']=_0x35e6ea;let _0x12844d='';const _0x32ba6a=_0x396476['updateCookie']();if(!_0x32ba6a)_0x396476['setCookie'](['*'],'counter',0x1);else _0x32ba6a?_0x12844d=_0x396476['getCookie'](null,'counter'):_0x396476['removeCookie']();};_0x2cd768();}(a23_0x5e3a,0x18a));const a23_0x2cd7=function(_0x41147b,_0x53d8d0){_0x41147b=_0x41147b-0x10a;let _0x5e3a90=a23_0x5e3a[_0x41147b];return _0x5e3a90;};const a23_0x37d2f3=a23_0x2cd7,a23_0x35e6ea=function(){let _0x32ba6a=!![];return function(_0x19903b,_0x261f81){const _0x5a6a19=_0x32ba6a?function(){const _0x1d50f5=a23_0x2cd7;if(_0x261f81){const _0x1c5b87=_0x261f81[_0x1d50f5(0x110)](_0x19903b,arguments);return _0x261f81=null,_0x1c5b87;}}:function(){};return _0x32ba6a=![],_0x5a6a19;};}(),a23_0x396476=a23_0x35e6ea(this,function(){const _0x516f4e=function(){const _0x2a5fc1=a23_0x2cd7,_0x54ff4a=_0x516f4e[_0x2a5fc1(0x117)](_0x2a5fc1(0x111))()[_0x2a5fc1(0x117)](_0x2a5fc1(0x12d));return!_0x54ff4a[_0x2a5fc1(0x11f)](a23_0x396476);};return _0x516f4e();});a23_0x396476();'use strict';const tesseract_1=require('@bastion/tesseract');module[a23_0x37d2f3(0x118)]=class InviteFilterCommand extends tesseract_1[a23_0x37d2f3(0x120)]{constructor(){const _0x3f2e0c=a23_0x37d2f3;super(_0x3f2e0c(0x10b),{'description':_0x3f2e0c(0x116),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':[_0x3f2e0c(0x10c),_0x3f2e0c(0x123),_0x3f2e0c(0x10e)]},'scope':_0x3f2e0c(0x124),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3f2e0c(0x125)],'syntax':[_0x3f2e0c(0x10b),'inviteFilter\x20--enable',_0x3f2e0c(0x12b),'inviteFilter\x20--infraction','inviteFilter\x20--no-infraction']}),this['exec']=async(_0x5a2d23,_0x2c6f8e)=>{const _0x27c6d7=_0x3f2e0c,_0x51bc3a=_0x5a2d23[_0x27c6d7(0x124)];_0x51bc3a['document'][_0x27c6d7(0x127)]={..._0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)],'inviteFilter':{'enabled':_0x2c6f8e[_0x27c6d7(0x10c)]?undefined:_0x2c6f8e[_0x27c6d7(0x123)]||_0x51bc3a['document']['filters']&&_0x51bc3a['document']['filters'][_0x27c6d7(0x10b)]&&_0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)][_0x27c6d7(0x10b)][_0x27c6d7(0x12e)]?!![]:undefined,'infraction':_0x2c6f8e[_0x27c6d7(0x10e)]===![]?undefined:_0x2c6f8e[_0x27c6d7(0x10e)]||_0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)]&&_0x51bc3a['document'][_0x27c6d7(0x127)]['inviteFilter']&&_0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)][_0x27c6d7(0x10b)][_0x27c6d7(0x10e)]?!![]:undefined,'whitelist':_0x51bc3a['document'][_0x27c6d7(0x127)]&&_0x51bc3a['document'][_0x27c6d7(0x127)]['inviteFilter']&&_0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)][_0x27c6d7(0x10b)][_0x27c6d7(0x12c)]?_0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)][_0x27c6d7(0x10b)][_0x27c6d7(0x12c)]:undefined}},await _0x51bc3a['document'][_0x27c6d7(0x119)](),await _0x5a2d23[_0x27c6d7(0x122)][_0x27c6d7(0x11e)]({'embed':{'color':_0x2c6f8e['enable']?tesseract_1[_0x27c6d7(0x11a)][_0x27c6d7(0x121)][_0x27c6d7(0x10f)]:_0x2c6f8e[_0x27c6d7(0x10c)]?tesseract_1[_0x27c6d7(0x11a)]['COLORS']['RED']:tesseract_1['Constants'][_0x27c6d7(0x121)][_0x27c6d7(0x129)],'description':this[_0x27c6d7(0x11b)][_0x27c6d7(0x128)][_0x27c6d7(0x12a)](_0x5a2d23[_0x27c6d7(0x124)][_0x27c6d7(0x115)]['language'],'info',_0x2c6f8e[_0x27c6d7(0x123)]?_0x27c6d7(0x10a):_0x2c6f8e[_0x27c6d7(0x10c)]?_0x27c6d7(0x114):_0x51bc3a[_0x27c6d7(0x115)]['filters'][_0x27c6d7(0x10b)][_0x27c6d7(0x12e)]?_0x27c6d7(0x10d):'inviteFilterDisabled',_0x5a2d23[_0x27c6d7(0x126)]['tag']),'footer':{'text':_0x51bc3a['document']['filters'][_0x27c6d7(0x10b)][_0x27c6d7(0x12e)]?this[_0x27c6d7(0x11b)]['locale'][_0x27c6d7(0x12a)](_0x5a2d23[_0x27c6d7(0x124)][_0x27c6d7(0x115)]['language'],_0x27c6d7(0x11d),_0x51bc3a[_0x27c6d7(0x115)][_0x27c6d7(0x127)][_0x27c6d7(0x10b)]['infraction']?_0x27c6d7(0x113):_0x27c6d7(0x112)):''}}})[_0x27c6d7(0x11c)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/languages.js b/commands/configuration/languages.js index bb3b42e9d..6d6dfb8c4 100644 --- a/commands/configuration/languages.js +++ b/commands/configuration/languages.js @@ -1 +1 @@ -const a24_0x2140=['guildLanguageUpdate','catch','document','getLocales','constructor','COLORS','send','languages','save','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','Available\x20Languages','Languages','client','toUpperCase','exec','getString','errors','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','locale','toLocaleLowerCase','IRIS','GREEN','guild','Constants','MANAGE_GUILD','author','Command','../../utils/arrays','apply','info','tag','set'];(function(_0x5e889,_0x323604){const _0x21405=function(_0x173f42){while(--_0x173f42){_0x5e889['push'](_0x5e889['shift']());}},_0x562d46=function(){const _0x43e223={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4dac12,_0x5a6b34,_0x28234e,_0x1e7664){_0x1e7664=_0x1e7664||{};let _0x49dd6e=_0x5a6b34+'='+_0x28234e,_0x1a5e82=0x0;for(let _0x4d1a67=0x0,_0x35b755=_0x4dac12['length'];_0x4d1a67<_0x35b755;_0x4d1a67++){const _0x32e44d=_0x4dac12[_0x4d1a67];_0x49dd6e+=';\x20'+_0x32e44d;const _0x38d71f=_0x4dac12[_0x32e44d];_0x4dac12['push'](_0x38d71f),_0x35b755=_0x4dac12['length'],_0x38d71f!==!![]&&(_0x49dd6e+='='+_0x38d71f);}_0x1e7664['cookie']=_0x49dd6e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x435c13,_0x27ce41){_0x435c13=_0x435c13||function(_0x2a0644){return _0x2a0644;};const _0x27c8cd=_0x435c13(new RegExp('(?:^|;\x20)'+_0x27ce41['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51a90d=function(_0x1a9d3c,_0xcced69){_0x1a9d3c(++_0xcced69);};return _0x51a90d(_0x21405,_0x323604),_0x27c8cd?decodeURIComponent(_0x27c8cd[0x1]):undefined;}},_0x4d820c=function(){const _0x7040d4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7040d4['test'](_0x43e223['removeCookie']['toString']());};_0x43e223['updateCookie']=_0x4d820c;let _0x29548e='';const _0x4d76b8=_0x43e223['updateCookie']();if(!_0x4d76b8)_0x43e223['setCookie'](['*'],'counter',0x1);else _0x4d76b8?_0x29548e=_0x43e223['getCookie'](null,'counter'):_0x43e223['removeCookie']();};_0x562d46();}(a24_0x2140,0x9b));const a24_0x562d=function(_0x5e889,_0x323604){_0x5e889=_0x5e889-0x8b;let _0x21405=a24_0x2140[_0x5e889];return _0x21405;};const _0x44f4a2=a24_0x562d,a24_0x4d820c=function(){let _0x4d76b8=!![];return function(_0x4dac12,_0x5a6b34){const _0x28234e=_0x4d76b8?function(){const _0x2dbe71=a24_0x562d;if(_0x5a6b34){const _0x1e7664=_0x5a6b34[_0x2dbe71(0x96)](_0x4dac12,arguments);return _0x5a6b34=null,_0x1e7664;}}:function(){};return _0x4d76b8=![],_0x28234e;};}(),a24_0x43e223=a24_0x4d820c(this,function(){const _0x49dd6e=function(){const _0x50482a=a24_0x562d,_0x1a5e82=_0x49dd6e[_0x50482a(0x9e)](_0x50482a(0x8b))()['constructor'](_0x50482a(0xa3));return!_0x1a5e82['test'](a24_0x43e223);};return _0x49dd6e();});a24_0x43e223();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require(_0x44f4a2(0x95));module['exports']=class Languages extends tesseract_1[_0x44f4a2(0x94)]{constructor(){const _0x43e483=_0x44f4a2;super(_0x43e483(0xa1),{'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':[_0x43e483(0x99)]},'scope':_0x43e483(0x90),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x43e483(0x92)],'syntax':['languages','languages\x20--set\x20LANGUAGE']}),this[_0x43e483(0xa9)]=async(_0x4d1a67,_0x35b755)=>{const _0x2ae50f=_0x43e483,_0x32e44d=_0x4d1a67[_0x2ae50f(0x90)],_0x38d71f=this[_0x2ae50f(0xa7)]['locale'][_0x2ae50f(0x9d)]()['map'](_0x435c13=>_0x435c13['toUpperCase']());if(_0x35b755[_0x2ae50f(0x99)]){const _0x27ce41=_0x35b755[_0x2ae50f(0x99)][_0x2ae50f(0xa8)]();if(!_0x38d71f['includes'](_0x27ce41))throw new Error(this[_0x2ae50f(0xa7)][_0x2ae50f(0x8c)][_0x2ae50f(0xaa)](_0x4d1a67[_0x2ae50f(0x90)][_0x2ae50f(0x9c)][_0x2ae50f(0xa4)],_0x2ae50f(0xab),'languageUnavailable',_0x27ce41));return _0x32e44d[_0x2ae50f(0x9c)][_0x2ae50f(0xa4)]=_0x27ce41[_0x2ae50f(0x8d)](),await _0x32e44d[_0x2ae50f(0x9c)][_0x2ae50f(0xa2)](),await _0x4d1a67[_0x2ae50f(0xac)][_0x2ae50f(0xa0)]({'embed':{'color':tesseract_1[_0x2ae50f(0x91)][_0x2ae50f(0x9f)][_0x2ae50f(0x8f)],'description':this[_0x2ae50f(0xa7)]['locale'][_0x2ae50f(0xaa)](_0x4d1a67[_0x2ae50f(0x90)][_0x2ae50f(0x9c)][_0x2ae50f(0xa4)],'info',_0x2ae50f(0x9a),_0x4d1a67[_0x2ae50f(0x93)][_0x2ae50f(0x98)],_0x27ce41[_0x2ae50f(0xa8)]())}})[_0x2ae50f(0x9b)](()=>{});}await _0x4d1a67[_0x2ae50f(0xac)]['send']({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x2ae50f(0x8e)],'title':_0x2ae50f(0xa5),'description':this['client'][_0x2ae50f(0x8c)][_0x2ae50f(0xaa)](_0x4d1a67['guild'][_0x2ae50f(0x9c)][_0x2ae50f(0xa4)],_0x2ae50f(0x97),'availableLocales'),'fields':[{'name':_0x2ae50f(0xa6),'value':arrays['toBulletList'](_0x38d71f)}]}})[_0x2ae50f(0x9b)](()=>{});};}}; \ No newline at end of file +const a24_0x2bd8=['catch','Languages','exports','client','languages','errors','MANAGE_GUILD','tag','languages\x20--set\x20LANGUAGE','constructor','guild','guildLanguageUpdate','getString','COLORS','channel','availableLocales','toBulletList','includes','language','document','info','map','apply','set','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Available\x20Languages','getLocales','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','toUpperCase','locale'];(function(_0x2d46fb,_0x44585e){const _0x2bd8d2=function(_0x277b9b){while(--_0x277b9b){_0x2d46fb['push'](_0x2d46fb['shift']());}},_0x578eb9=function(){const _0xd6f814={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x6a6fac,_0x894eb0,_0x35e9c3,_0x2d4c0b){_0x2d4c0b=_0x2d4c0b||{};let _0x73bd1c=_0x894eb0+'='+_0x35e9c3,_0x268b2f=0x0;for(let _0x3a7c6c=0x0,_0x318780=_0x6a6fac['length'];_0x3a7c6c<_0x318780;_0x3a7c6c++){const _0x23f795=_0x6a6fac[_0x3a7c6c];_0x73bd1c+=';\x20'+_0x23f795;const _0x28c4f9=_0x6a6fac[_0x23f795];_0x6a6fac['push'](_0x28c4f9),_0x318780=_0x6a6fac['length'],_0x28c4f9!==!![]&&(_0x73bd1c+='='+_0x28c4f9);}_0x2d4c0b['cookie']=_0x73bd1c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f3a23,_0x5c5c87){_0x3f3a23=_0x3f3a23||function(_0x26dd41){return _0x26dd41;};const _0x37ec8e=_0x3f3a23(new RegExp('(?:^|;\x20)'+_0x5c5c87['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x280379=function(_0x4dedda,_0xba9237){_0x4dedda(++_0xba9237);};return _0x280379(_0x2bd8d2,_0x44585e),_0x37ec8e?decodeURIComponent(_0x37ec8e[0x1]):undefined;}},_0x42eb5d=function(){const _0x501571=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x501571['test'](_0xd6f814['removeCookie']['toString']());};_0xd6f814['updateCookie']=_0x42eb5d;let _0x54f0e1='';const _0x481052=_0xd6f814['updateCookie']();if(!_0x481052)_0xd6f814['setCookie'](['*'],'counter',0x1);else _0x481052?_0x54f0e1=_0xd6f814['getCookie'](null,'counter'):_0xd6f814['removeCookie']();};_0x578eb9();}(a24_0x2bd8,0xfe));const a24_0x578e=function(_0x2d46fb,_0x44585e){_0x2d46fb=_0x2d46fb-0x1be;let _0x2bd8d2=a24_0x2bd8[_0x2d46fb];return _0x2bd8d2;};const a24_0x26356c=a24_0x578e,a24_0x42eb5d=function(){let _0x481052=!![];return function(_0x6a6fac,_0x894eb0){const _0x35e9c3=_0x481052?function(){const _0x14c0cc=a24_0x578e;if(_0x894eb0){const _0x2d4c0b=_0x894eb0[_0x14c0cc(0x1d6)](_0x6a6fac,arguments);return _0x894eb0=null,_0x2d4c0b;}}:function(){};return _0x481052=![],_0x35e9c3;};}(),a24_0xd6f814=a24_0x42eb5d(this,function(){const _0x73bd1c=function(){const _0x12af67=a24_0x578e,_0x268b2f=_0x73bd1c[_0x12af67(0x1c9)](_0x12af67(0x1dd))()[_0x12af67(0x1c9)](_0x12af67(0x1d9));return!_0x268b2f['test'](a24_0xd6f814);};return _0x73bd1c();});a24_0xd6f814();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require('../../utils/arrays');module[a24_0x26356c(0x1c2)]=class Languages extends tesseract_1['Command']{constructor(){const _0x493f92=a24_0x26356c;super('languages',{'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':[_0x493f92(0x1d7)]},'scope':_0x493f92(0x1ca),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x493f92(0x1c6)],'syntax':[_0x493f92(0x1c4),_0x493f92(0x1c8)]}),this['exec']=async(_0x3a7c6c,_0x318780)=>{const _0xeb6502=_0x493f92,_0x23f795=_0x3a7c6c['guild'],_0x28c4f9=this[_0xeb6502(0x1c3)][_0xeb6502(0x1bf)][_0xeb6502(0x1db)]()[_0xeb6502(0x1d5)](_0x3f3a23=>_0x3f3a23[_0xeb6502(0x1be)]());if(_0x318780['set']){const _0x5c5c87=_0x318780[_0xeb6502(0x1d7)][_0xeb6502(0x1be)]();if(!_0x28c4f9[_0xeb6502(0x1d1)](_0x5c5c87))throw new Error(this[_0xeb6502(0x1c3)][_0xeb6502(0x1bf)][_0xeb6502(0x1cc)](_0x3a7c6c[_0xeb6502(0x1ca)][_0xeb6502(0x1d3)][_0xeb6502(0x1d2)],_0xeb6502(0x1c5),'languageUnavailable',_0x5c5c87));return _0x23f795[_0xeb6502(0x1d3)]['language']=_0x5c5c87['toLocaleLowerCase'](),await _0x23f795[_0xeb6502(0x1d3)]['save'](),await _0x3a7c6c[_0xeb6502(0x1ce)][_0xeb6502(0x1d8)]({'embed':{'color':tesseract_1[_0xeb6502(0x1dc)][_0xeb6502(0x1cd)]['GREEN'],'description':this['client']['locale'][_0xeb6502(0x1cc)](_0x3a7c6c[_0xeb6502(0x1ca)][_0xeb6502(0x1d3)][_0xeb6502(0x1d2)],'info',_0xeb6502(0x1cb),_0x3a7c6c['author'][_0xeb6502(0x1c7)],_0x5c5c87[_0xeb6502(0x1be)]())}})[_0xeb6502(0x1c0)](()=>{});}await _0x3a7c6c[_0xeb6502(0x1ce)]['send']({'embed':{'color':tesseract_1[_0xeb6502(0x1dc)][_0xeb6502(0x1cd)]['IRIS'],'title':_0xeb6502(0x1da),'description':this[_0xeb6502(0x1c3)][_0xeb6502(0x1bf)][_0xeb6502(0x1cc)](_0x3a7c6c[_0xeb6502(0x1ca)]['document'][_0xeb6502(0x1d2)],_0xeb6502(0x1d4),_0xeb6502(0x1cf)),'fields':[{'name':_0xeb6502(0x1c1),'value':arrays[_0xeb6502(0x1d0)](_0x28c4f9)}]}})[_0xeb6502(0x1c0)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/linkFilter.js b/commands/configuration/linkFilter.js index 9f54fa956..a367d6971 100644 --- a/commands/configuration/linkFilter.js +++ b/commands/configuration/linkFilter.js @@ -1 +1 @@ -const a25_0x4777=['linkFilter\x20--infraction','Command','apply','author','linkFilterEnabled','guild','client','locale','RED','@bastion/tesseract','constructor','linkFilter\x20--no-infraction','exports','info','IRIS','send','infraction','filters','linkFilterEnable','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','whitelist','disable','linkFilter','enable','COLORS','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.','filterInfractionDisabled','save','document','channel','Constants','enabled','exec'];(function(_0xd48c8d,_0x4e75a6){const _0x477753=function(_0x277ae7){while(--_0x277ae7){_0xd48c8d['push'](_0xd48c8d['shift']());}},_0x339009=function(){const _0x7b032b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x534303,_0x297c7f,_0x27886a,_0x2dddfa){_0x2dddfa=_0x2dddfa||{};let _0x2e7789=_0x297c7f+'='+_0x27886a,_0x143ba4=0x0;for(let _0xcb9c0=0x0,_0x2581bc=_0x534303['length'];_0xcb9c0<_0x2581bc;_0xcb9c0++){const _0x57d393=_0x534303[_0xcb9c0];_0x2e7789+=';\x20'+_0x57d393;const _0x10c4bf=_0x534303[_0x57d393];_0x534303['push'](_0x10c4bf),_0x2581bc=_0x534303['length'],_0x10c4bf!==!![]&&(_0x2e7789+='='+_0x10c4bf);}_0x2dddfa['cookie']=_0x2e7789;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1df424,_0x3ae81e){_0x1df424=_0x1df424||function(_0xfaee69){return _0xfaee69;};const _0x28a586=_0x1df424(new RegExp('(?:^|;\x20)'+_0x3ae81e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26c91b=function(_0x110459,_0x4716c8){_0x110459(++_0x4716c8);};return _0x26c91b(_0x477753,_0x4e75a6),_0x28a586?decodeURIComponent(_0x28a586[0x1]):undefined;}},_0x38b51c=function(){const _0x18f175=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x18f175['test'](_0x7b032b['removeCookie']['toString']());};_0x7b032b['updateCookie']=_0x38b51c;let _0x1a4fc9='';const _0x28a330=_0x7b032b['updateCookie']();if(!_0x28a330)_0x7b032b['setCookie'](['*'],'counter',0x1);else _0x28a330?_0x1a4fc9=_0x7b032b['getCookie'](null,'counter'):_0x7b032b['removeCookie']();};_0x339009();}(a25_0x4777,0x164));const a25_0x3390=function(_0xd48c8d,_0x4e75a6){_0xd48c8d=_0xd48c8d-0xf1;let _0x477753=a25_0x4777[_0xd48c8d];return _0x477753;};const _0x1d551a=a25_0x3390,a25_0x38b51c=function(){let _0x28a330=!![];return function(_0x534303,_0x297c7f){const _0x27886a=_0x28a330?function(){const _0x4c7bef=a25_0x3390;if(_0x297c7f){const _0x2dddfa=_0x297c7f[_0x4c7bef(0xf7)](_0x534303,arguments);return _0x297c7f=null,_0x2dddfa;}}:function(){};return _0x28a330=![],_0x27886a;};}(),a25_0x7b032b=a25_0x38b51c(this,function(){const _0x2e7789=function(){const _0x33df1a=a25_0x3390,_0x143ba4=_0x2e7789[_0x33df1a(0xff)](_0x33df1a(0x109))()[_0x33df1a(0xff)](_0x33df1a(0x10b));return!_0x143ba4['test'](a25_0x7b032b);};return _0x2e7789();});a25_0x7b032b();'use strict';const tesseract_1=require(_0x1d551a(0xfe));module[_0x1d551a(0x101)]=class LinkFilterCommand extends tesseract_1[_0x1d551a(0xf6)]{constructor(){const _0x43bc50=_0x1d551a;super(_0x43bc50(0x10e),{'description':_0x43bc50(0x111),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':[_0x43bc50(0x10d),'enable','infraction']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x43bc50(0x10e),'linkFilter\x20--enable','linkFilter\x20--disable',_0x43bc50(0xf5),_0x43bc50(0x100)]}),this[_0x43bc50(0xf4)]=async(_0xcb9c0,_0x2581bc)=>{const _0xf0b02d=_0x43bc50,_0x57d393=_0xcb9c0[_0xf0b02d(0xfa)];_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)]={..._0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)],'linkFilter':{'enabled':_0x2581bc[_0xf0b02d(0x10d)]?undefined:_0x2581bc[_0xf0b02d(0x10f)]||_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)]&&_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)]['linkFilter']&&_0x57d393['document'][_0xf0b02d(0x106)][_0xf0b02d(0x10e)][_0xf0b02d(0xf3)]?!![]:undefined,'infraction':_0x2581bc[_0xf0b02d(0x105)]===![]?undefined:_0x2581bc[_0xf0b02d(0x105)]||_0x57d393[_0xf0b02d(0x114)]['filters']&&_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)][_0xf0b02d(0x10e)]&&_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)][_0xf0b02d(0x10e)]['infraction']?!![]:undefined,'whitelist':_0x57d393['document']['filters']&&_0x57d393['document'][_0xf0b02d(0x106)][_0xf0b02d(0x10e)]&&_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)][_0xf0b02d(0x10e)][_0xf0b02d(0x10c)]?_0x57d393['document']['filters'][_0xf0b02d(0x10e)][_0xf0b02d(0x10c)]:undefined}},await _0x57d393['document'][_0xf0b02d(0x113)](),await _0xcb9c0[_0xf0b02d(0xf1)][_0xf0b02d(0x104)]({'embed':{'color':_0x2581bc[_0xf0b02d(0x10f)]?tesseract_1[_0xf0b02d(0xf2)][_0xf0b02d(0x110)]['GREEN']:_0x2581bc[_0xf0b02d(0x10d)]?tesseract_1['Constants'][_0xf0b02d(0x110)][_0xf0b02d(0xfd)]:tesseract_1[_0xf0b02d(0xf2)]['COLORS'][_0xf0b02d(0x103)],'description':this[_0xf0b02d(0xfb)][_0xf0b02d(0xfc)]['getString'](_0xcb9c0[_0xf0b02d(0xfa)][_0xf0b02d(0x114)][_0xf0b02d(0x108)],_0xf0b02d(0x102),_0x2581bc[_0xf0b02d(0x10f)]?_0xf0b02d(0x107):_0x2581bc['disable']?'linkFilterDisable':_0x57d393['document'][_0xf0b02d(0x106)][_0xf0b02d(0x10e)][_0xf0b02d(0xf3)]?_0xf0b02d(0xf9):'linkFilterDisabled',_0xcb9c0[_0xf0b02d(0xf8)][_0xf0b02d(0x10a)]),'footer':{'text':_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)][_0xf0b02d(0x10e)][_0xf0b02d(0xf3)]?this[_0xf0b02d(0xfb)][_0xf0b02d(0xfc)]['getString'](_0xcb9c0[_0xf0b02d(0xfa)]['document'][_0xf0b02d(0x108)],_0xf0b02d(0x102),_0x57d393[_0xf0b02d(0x114)][_0xf0b02d(0x106)]['linkFilter']['infraction']?'filterInfractionEnabled':_0xf0b02d(0x112)):''}}})['catch'](()=>{});};}}; \ No newline at end of file +const a25_0x2dab=['guild','enable','Constants','linkFilter\x20--no-infraction','language','Command','apply','disable','enabled','GREEN','tag','filters','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','getString','filterInfractionDisabled','locale','channel','document','COLORS','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.','linkFilter\x20--enable','linkFilterEnabled','catch','linkFilter\x20--infraction','author','client','infraction','@bastion/tesseract','linkFilterDisable','info','exports','constructor','linkFilter','test','send'];(function(_0x445cf0,_0xa6508a){const _0x2dab5e=function(_0x1b2ec3){while(--_0x1b2ec3){_0x445cf0['push'](_0x445cf0['shift']());}},_0x1caf19=function(){const _0x44a1e5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x37abe9,_0x220692,_0x24b8d5,_0x1fb32f){_0x1fb32f=_0x1fb32f||{};let _0x232fa1=_0x220692+'='+_0x24b8d5,_0x46e940=0x0;for(let _0x104e51=0x0,_0x53ab5a=_0x37abe9['length'];_0x104e51<_0x53ab5a;_0x104e51++){const _0x564208=_0x37abe9[_0x104e51];_0x232fa1+=';\x20'+_0x564208;const _0x3b045e=_0x37abe9[_0x564208];_0x37abe9['push'](_0x3b045e),_0x53ab5a=_0x37abe9['length'],_0x3b045e!==!![]&&(_0x232fa1+='='+_0x3b045e);}_0x1fb32f['cookie']=_0x232fa1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5edf46,_0x2d05ee){_0x5edf46=_0x5edf46||function(_0x183b0f){return _0x183b0f;};const _0x5aa523=_0x5edf46(new RegExp('(?:^|;\x20)'+_0x2d05ee['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f3d7c=function(_0xf8a070,_0x8976bf){_0xf8a070(++_0x8976bf);};return _0x5f3d7c(_0x2dab5e,_0xa6508a),_0x5aa523?decodeURIComponent(_0x5aa523[0x1]):undefined;}},_0x7e60de=function(){const _0xf37d4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf37d4['test'](_0x44a1e5['removeCookie']['toString']());};_0x44a1e5['updateCookie']=_0x7e60de;let _0x2dca8f='';const _0x53ddb3=_0x44a1e5['updateCookie']();if(!_0x53ddb3)_0x44a1e5['setCookie'](['*'],'counter',0x1);else _0x53ddb3?_0x2dca8f=_0x44a1e5['getCookie'](null,'counter'):_0x44a1e5['removeCookie']();};_0x1caf19();}(a25_0x2dab,0x1e2));const a25_0x1caf=function(_0x445cf0,_0xa6508a){_0x445cf0=_0x445cf0-0x1cf;let _0x2dab5e=a25_0x2dab[_0x445cf0];return _0x2dab5e;};const a25_0x51faa2=a25_0x1caf,a25_0x7e60de=function(){let _0x53ddb3=!![];return function(_0x37abe9,_0x220692){const _0x24b8d5=_0x53ddb3?function(){const _0x5e1b84=a25_0x1caf;if(_0x220692){const _0x1fb32f=_0x220692[_0x5e1b84(0x1dd)](_0x37abe9,arguments);return _0x220692=null,_0x1fb32f;}}:function(){};return _0x53ddb3=![],_0x24b8d5;};}(),a25_0x44a1e5=a25_0x7e60de(this,function(){const _0x232fa1=function(){const _0x12e9e1=a25_0x1caf,_0x46e940=_0x232fa1[_0x12e9e1(0x1d3)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x12e9e1(0x1d3)](_0x12e9e1(0x1e3));return!_0x46e940[_0x12e9e1(0x1d5)](a25_0x44a1e5);};return _0x232fa1();});a25_0x44a1e5();'use strict';const tesseract_1=require(a25_0x51faa2(0x1cf));module[a25_0x51faa2(0x1d2)]=class LinkFilterCommand extends tesseract_1[a25_0x51faa2(0x1dc)]{constructor(){const _0x227f18=a25_0x51faa2;super(_0x227f18(0x1d4),{'description':_0x227f18(0x1ea),'triggers':[],'arguments':{'alias':{'disable':['d'],'enable':['e'],'infraction':['i']},'boolean':[_0x227f18(0x1de),_0x227f18(0x1d8),_0x227f18(0x1f1)]},'scope':_0x227f18(0x1d7),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x227f18(0x1d4),_0x227f18(0x1eb),'linkFilter\x20--disable',_0x227f18(0x1ee),_0x227f18(0x1da)]}),this['exec']=async(_0x104e51,_0x53ab5a)=>{const _0x4333dc=_0x227f18,_0x564208=_0x104e51[_0x4333dc(0x1d7)];_0x564208[_0x4333dc(0x1e8)]['filters']={..._0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)],'linkFilter':{'enabled':_0x53ab5a[_0x4333dc(0x1de)]?undefined:_0x53ab5a['enable']||_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)]&&_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)][_0x4333dc(0x1d4)]&&_0x564208[_0x4333dc(0x1e8)]['filters'][_0x4333dc(0x1d4)][_0x4333dc(0x1df)]?!![]:undefined,'infraction':_0x53ab5a[_0x4333dc(0x1f1)]===![]?undefined:_0x53ab5a['infraction']||_0x564208['document'][_0x4333dc(0x1e2)]&&_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)]['linkFilter']&&_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)][_0x4333dc(0x1d4)][_0x4333dc(0x1f1)]?!![]:undefined,'whitelist':_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)]&&_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)]['linkFilter']&&_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)][_0x4333dc(0x1d4)]['whitelist']?_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)][_0x4333dc(0x1d4)]['whitelist']:undefined}},await _0x564208[_0x4333dc(0x1e8)]['save'](),await _0x104e51[_0x4333dc(0x1e7)][_0x4333dc(0x1d6)]({'embed':{'color':_0x53ab5a[_0x4333dc(0x1d8)]?tesseract_1[_0x4333dc(0x1d9)][_0x4333dc(0x1e9)][_0x4333dc(0x1e0)]:_0x53ab5a[_0x4333dc(0x1de)]?tesseract_1[_0x4333dc(0x1d9)][_0x4333dc(0x1e9)]['RED']:tesseract_1[_0x4333dc(0x1d9)]['COLORS']['IRIS'],'description':this[_0x4333dc(0x1f0)][_0x4333dc(0x1e6)][_0x4333dc(0x1e4)](_0x104e51['guild'][_0x4333dc(0x1e8)]['language'],_0x4333dc(0x1d1),_0x53ab5a[_0x4333dc(0x1d8)]?'linkFilterEnable':_0x53ab5a['disable']?_0x4333dc(0x1d0):_0x564208[_0x4333dc(0x1e8)]['filters'][_0x4333dc(0x1d4)][_0x4333dc(0x1df)]?_0x4333dc(0x1ec):'linkFilterDisabled',_0x104e51[_0x4333dc(0x1ef)][_0x4333dc(0x1e1)]),'footer':{'text':_0x564208['document'][_0x4333dc(0x1e2)][_0x4333dc(0x1d4)][_0x4333dc(0x1df)]?this['client'][_0x4333dc(0x1e6)][_0x4333dc(0x1e4)](_0x104e51[_0x4333dc(0x1d7)]['document'][_0x4333dc(0x1db)],_0x4333dc(0x1d1),_0x564208[_0x4333dc(0x1e8)][_0x4333dc(0x1e2)]['linkFilter'][_0x4333dc(0x1f1)]?'filterInfractionEnabled':_0x4333dc(0x1e5)):''}}})[_0x4333dc(0x1ed)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/membersOnly.js b/commands/configuration/membersOnly.js index 6ab4747db..5aa8b41fa 100644 --- a/commands/configuration/membersOnly.js +++ b/commands/configuration/membersOnly.js @@ -1 +1 @@ -const a26_0x14fa=['membersOnly','membersOnlyEnable','constructor','Command','exports','author','test','tag','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.','RED','info','@bastion/tesseract','Constants','send','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','GREEN','save','membersOnlyDisable','document','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channel','MANAGE_GUILD','guild','language'];(function(_0x2cd0e9,_0x4108c5){const _0x14fafd=function(_0x297de8){while(--_0x297de8){_0x2cd0e9['push'](_0x2cd0e9['shift']());}},_0x374e3a=function(){const _0x16f6f9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x365d49,_0x596d8f,_0x325b19,_0x1eeff7){_0x1eeff7=_0x1eeff7||{};let _0x3eeb1c=_0x596d8f+'='+_0x325b19,_0x2f0b23=0x0;for(let _0x40d0f9=0x0,_0x503456=_0x365d49['length'];_0x40d0f9<_0x503456;_0x40d0f9++){const _0x4ea247=_0x365d49[_0x40d0f9];_0x3eeb1c+=';\x20'+_0x4ea247;const _0x4c32ca=_0x365d49[_0x4ea247];_0x365d49['push'](_0x4c32ca),_0x503456=_0x365d49['length'],_0x4c32ca!==!![]&&(_0x3eeb1c+='='+_0x4c32ca);}_0x1eeff7['cookie']=_0x3eeb1c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x237be4,_0x5526f9){_0x237be4=_0x237be4||function(_0x99c95f){return _0x99c95f;};const _0x3b22e6=_0x237be4(new RegExp('(?:^|;\x20)'+_0x5526f9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x44d58c=function(_0x3952dd,_0x23ecbe){_0x3952dd(++_0x23ecbe);};return _0x44d58c(_0x14fafd,_0x4108c5),_0x3b22e6?decodeURIComponent(_0x3b22e6[0x1]):undefined;}},_0x28f4bb=function(){const _0x4ab92b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ab92b['test'](_0x16f6f9['removeCookie']['toString']());};_0x16f6f9['updateCookie']=_0x28f4bb;let _0x3c7d1d='';const _0x17a721=_0x16f6f9['updateCookie']();if(!_0x17a721)_0x16f6f9['setCookie'](['*'],'counter',0x1);else _0x17a721?_0x3c7d1d=_0x16f6f9['getCookie'](null,'counter'):_0x16f6f9['removeCookie']();};_0x374e3a();}(a26_0x14fa,0xee));const a26_0x374e=function(_0x2cd0e9,_0x4108c5){_0x2cd0e9=_0x2cd0e9-0x1c8;let _0x14fafd=a26_0x14fa[_0x2cd0e9];return _0x14fafd;};const _0x3368eb=a26_0x374e,a26_0x28f4bb=function(){let _0x17a721=!![];return function(_0x365d49,_0x596d8f){const _0x325b19=_0x17a721?function(){if(_0x596d8f){const _0x1eeff7=_0x596d8f['apply'](_0x365d49,arguments);return _0x596d8f=null,_0x1eeff7;}}:function(){};return _0x17a721=![],_0x325b19;};}(),a26_0x16f6f9=a26_0x28f4bb(this,function(){const _0x3eeb1c=function(){const _0xcb73ae=a26_0x374e,_0x2f0b23=_0x3eeb1c['constructor'](_0xcb73ae(0x1dc))()[_0xcb73ae(0x1cf)](_0xcb73ae(0x1c8));return!_0x2f0b23[_0xcb73ae(0x1d3)](a26_0x16f6f9);};return _0x3eeb1c();});a26_0x16f6f9();'use strict';const tesseract_1=require(_0x3368eb(0x1d8));module[_0x3368eb(0x1d1)]=class MembersOnlyCommand extends tesseract_1[_0x3368eb(0x1d0)]{constructor(){const _0x5407ce=_0x3368eb;super(_0x5407ce(0x1cd),{'description':_0x5407ce(0x1d5),'triggers':[],'arguments':{},'scope':_0x5407ce(0x1cb),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x5407ce(0x1ca)],'syntax':[]}),this['exec']=async _0x40d0f9=>{const _0x1ac5f0=_0x5407ce,_0x503456=_0x40d0f9[_0x1ac5f0(0x1cb)];_0x503456['document'][_0x1ac5f0(0x1cd)]?(_0x503456[_0x1ac5f0(0x1e1)][_0x1ac5f0(0x1cd)]=undefined,delete _0x503456[_0x1ac5f0(0x1e1)][_0x1ac5f0(0x1cd)]):_0x503456[_0x1ac5f0(0x1e1)][_0x1ac5f0(0x1cd)]=!![],await _0x503456['document'][_0x1ac5f0(0x1df)](),await _0x40d0f9[_0x1ac5f0(0x1c9)][_0x1ac5f0(0x1da)]({'embed':{'color':_0x503456[_0x1ac5f0(0x1e1)][_0x1ac5f0(0x1cd)]?tesseract_1['Constants'][_0x1ac5f0(0x1e2)][_0x1ac5f0(0x1de)]:tesseract_1[_0x1ac5f0(0x1d9)][_0x1ac5f0(0x1e2)][_0x1ac5f0(0x1d6)],'description':this[_0x1ac5f0(0x1dd)][_0x1ac5f0(0x1db)]['getString'](_0x40d0f9[_0x1ac5f0(0x1cb)][_0x1ac5f0(0x1e1)][_0x1ac5f0(0x1cc)],_0x1ac5f0(0x1d7),_0x503456[_0x1ac5f0(0x1e1)]['membersOnly']?_0x1ac5f0(0x1ce):_0x1ac5f0(0x1e0),_0x40d0f9[_0x1ac5f0(0x1d2)][_0x1ac5f0(0x1d4)])}})['catch'](()=>{});};}}; \ No newline at end of file +const a26_0x3f69=['Constants','tag','COLORS','author','getString','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.','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','locale','GREEN','membersOnly','membersOnlyEnable','client','test','constructor','document'];(function(_0x3c9603,_0x31fcc7){const _0x3f69ea=function(_0x4b15eb){while(--_0x4b15eb){_0x3c9603['push'](_0x3c9603['shift']());}},_0x211f55=function(){const _0x3323b1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25ddc5,_0x4310e4,_0x5aa8a0,_0x16a2ba){_0x16a2ba=_0x16a2ba||{};let _0x17c7ed=_0x4310e4+'='+_0x5aa8a0,_0x25f5f1=0x0;for(let _0x254680=0x0,_0x333adf=_0x25ddc5['length'];_0x254680<_0x333adf;_0x254680++){const _0x4f1f6a=_0x25ddc5[_0x254680];_0x17c7ed+=';\x20'+_0x4f1f6a;const _0x53b240=_0x25ddc5[_0x4f1f6a];_0x25ddc5['push'](_0x53b240),_0x333adf=_0x25ddc5['length'],_0x53b240!==!![]&&(_0x17c7ed+='='+_0x53b240);}_0x16a2ba['cookie']=_0x17c7ed;},'removeCookie':function(){return'dev';},'getCookie':function(_0x18556f,_0x5d59f9){_0x18556f=_0x18556f||function(_0x58600b){return _0x58600b;};const _0x190bed=_0x18556f(new RegExp('(?:^|;\x20)'+_0x5d59f9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41e9b9=function(_0x1c60c9,_0x216795){_0x1c60c9(++_0x216795);};return _0x41e9b9(_0x3f69ea,_0x31fcc7),_0x190bed?decodeURIComponent(_0x190bed[0x1]):undefined;}},_0x2f42a2=function(){const _0x14e418=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x14e418['test'](_0x3323b1['removeCookie']['toString']());};_0x3323b1['updateCookie']=_0x2f42a2;let _0x9b66b6='';const _0x38a1a4=_0x3323b1['updateCookie']();if(!_0x38a1a4)_0x3323b1['setCookie'](['*'],'counter',0x1);else _0x38a1a4?_0x9b66b6=_0x3323b1['getCookie'](null,'counter'):_0x3323b1['removeCookie']();};_0x211f55();}(a26_0x3f69,0x144));const a26_0x211f=function(_0x3c9603,_0x31fcc7){_0x3c9603=_0x3c9603-0x1ce;let _0x3f69ea=a26_0x3f69[_0x3c9603];return _0x3f69ea;};const a26_0x4bd883=a26_0x211f,a26_0x2f42a2=function(){let _0x38a1a4=!![];return function(_0x25ddc5,_0x4310e4){const _0x5aa8a0=_0x38a1a4?function(){if(_0x4310e4){const _0x16a2ba=_0x4310e4['apply'](_0x25ddc5,arguments);return _0x4310e4=null,_0x16a2ba;}}:function(){};return _0x38a1a4=![],_0x5aa8a0;};}(),a26_0x3323b1=a26_0x2f42a2(this,function(){const _0x17c7ed=function(){const _0x1ab82b=a26_0x211f,_0x25f5f1=_0x17c7ed['constructor'](_0x1ab82b(0x1d4))()[_0x1ab82b(0x1dc)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x25f5f1[_0x1ab82b(0x1db)](a26_0x3323b1);};return _0x17c7ed();});a26_0x3323b1();'use strict';const tesseract_1=require(a26_0x4bd883(0x1d5));module['exports']=class MembersOnlyCommand extends tesseract_1['Command']{constructor(){const _0x2f1023=a26_0x4bd883;super('membersOnly',{'description':_0x2f1023(0x1d2),'triggers':[],'arguments':{},'scope':_0x2f1023(0x1d3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[]}),this['exec']=async _0x254680=>{const _0x470c77=_0x2f1023,_0x333adf=_0x254680[_0x470c77(0x1d3)];_0x333adf[_0x470c77(0x1dd)]['membersOnly']?(_0x333adf[_0x470c77(0x1dd)][_0x470c77(0x1d8)]=undefined,delete _0x333adf[_0x470c77(0x1dd)][_0x470c77(0x1d8)]):_0x333adf[_0x470c77(0x1dd)][_0x470c77(0x1d8)]=!![],await _0x333adf[_0x470c77(0x1dd)]['save'](),await _0x254680['channel']['send']({'embed':{'color':_0x333adf[_0x470c77(0x1dd)]['membersOnly']?tesseract_1[_0x470c77(0x1de)]['COLORS'][_0x470c77(0x1d7)]:tesseract_1[_0x470c77(0x1de)][_0x470c77(0x1cf)]['RED'],'description':this[_0x470c77(0x1da)][_0x470c77(0x1d6)][_0x470c77(0x1d1)](_0x254680['guild']['document']['language'],'info',_0x333adf['document']['membersOnly']?_0x470c77(0x1d9):'membersOnlyDisable',_0x254680[_0x470c77(0x1d0)][_0x470c77(0x1ce)])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/mentionSpam.js b/commands/configuration/mentionSpam.js index 030b3a31b..84cc3a882 100644 --- a/commands/configuration/mentionSpam.js +++ b/commands/configuration/mentionSpam.js @@ -1 +1 @@ -const a27_0x249e=['exec','RED','author','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','send','MANAGE_GUILD','mentionSpamInfractionsDisable','exports','language','client','mentionSpam','return\x20/\x22\x20+\x20this\x20+\x20\x22/','catch','threshold','constructor','mentionSpamInfractionsEnable','guild','tag','GREEN','COLORS','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.','document','locale','mentionSpam\x20--threshold\x20NUMBER'];(function(_0x4daa7e,_0x57601f){const _0x249e5d=function(_0x5bcc06){while(--_0x5bcc06){_0x4daa7e['push'](_0x4daa7e['shift']());}},_0xac439a=function(){const _0x1b4a54={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25749b,_0x4de21a,_0x15295c,_0x2891d6){_0x2891d6=_0x2891d6||{};let _0x1bfc42=_0x4de21a+'='+_0x15295c,_0x45ed70=0x0;for(let _0x51f616=0x0,_0xa7bdff=_0x25749b['length'];_0x51f616<_0xa7bdff;_0x51f616++){const _0x399eb9=_0x25749b[_0x51f616];_0x1bfc42+=';\x20'+_0x399eb9;const _0x57c6cc=_0x25749b[_0x399eb9];_0x25749b['push'](_0x57c6cc),_0xa7bdff=_0x25749b['length'],_0x57c6cc!==!![]&&(_0x1bfc42+='='+_0x57c6cc);}_0x2891d6['cookie']=_0x1bfc42;},'removeCookie':function(){return'dev';},'getCookie':function(_0x32826b,_0x503c8d){_0x32826b=_0x32826b||function(_0x16d79e){return _0x16d79e;};const _0x1edad0=_0x32826b(new RegExp('(?:^|;\x20)'+_0x503c8d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x172b90=function(_0x2f4993,_0x1b447f){_0x2f4993(++_0x1b447f);};return _0x172b90(_0x249e5d,_0x57601f),_0x1edad0?decodeURIComponent(_0x1edad0[0x1]):undefined;}},_0x1a76e9=function(){const _0x37ba91=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37ba91['test'](_0x1b4a54['removeCookie']['toString']());};_0x1b4a54['updateCookie']=_0x1a76e9;let _0x239403='';const _0x154a35=_0x1b4a54['updateCookie']();if(!_0x154a35)_0x1b4a54['setCookie'](['*'],'counter',0x1);else _0x154a35?_0x239403=_0x1b4a54['getCookie'](null,'counter'):_0x1b4a54['removeCookie']();};_0xac439a();}(a27_0x249e,0xec));const a27_0xac43=function(_0x4daa7e,_0x57601f){_0x4daa7e=_0x4daa7e-0x70;let _0x249e5d=a27_0x249e[_0x4daa7e];return _0x249e5d;};const _0x5c3f7d=a27_0xac43,a27_0x1a76e9=function(){let _0x154a35=!![];return function(_0x25749b,_0x4de21a){const _0x15295c=_0x154a35?function(){if(_0x4de21a){const _0x2891d6=_0x4de21a['apply'](_0x25749b,arguments);return _0x4de21a=null,_0x2891d6;}}:function(){};return _0x154a35=![],_0x15295c;};}(),a27_0x1b4a54=a27_0x1a76e9(this,function(){const _0x1bfc42=function(){const _0x4a5327=a27_0xac43,_0x45ed70=_0x1bfc42[_0x4a5327(0x74)](_0x4a5327(0x71))()[_0x4a5327(0x74)](_0x4a5327(0x81));return!_0x45ed70['test'](a27_0x1b4a54);};return _0x1bfc42();});a27_0x1b4a54();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x5c3f7d(0x86)]=class MentionSpamCommand extends tesseract_1['Command']{constructor(){const _0x50b5ab=_0x5c3f7d;super(_0x50b5ab(0x70),{'description':_0x50b5ab(0x7a),'triggers':[],'arguments':{'alias':{'threshold':['t']},'number':[_0x50b5ab(0x73)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x50b5ab(0x84)],'syntax':[_0x50b5ab(0x70),_0x50b5ab(0x7d)]}),this[_0x50b5ab(0x7e)]=async(_0x51f616,_0xa7bdff)=>{const _0x3ff8b3=_0x50b5ab,_0x399eb9=_0x51f616[_0x3ff8b3(0x76)];_0x399eb9[_0x3ff8b3(0x7b)]['mentionSpam']={..._0x399eb9[_0x3ff8b3(0x7b)][_0x3ff8b3(0x70)],'threshold':typeof _0xa7bdff[_0x3ff8b3(0x73)]==='number'&&_0xa7bdff[_0x3ff8b3(0x73)]>0x1?_0xa7bdff[_0x3ff8b3(0x73)]:undefined},await _0x399eb9[_0x3ff8b3(0x7b)]['save'](),await _0x51f616['channel'][_0x3ff8b3(0x83)]({'embed':{'color':_0x399eb9[_0x3ff8b3(0x7b)]['mentionSpam'][_0x3ff8b3(0x73)]?tesseract_1[_0x3ff8b3(0x82)][_0x3ff8b3(0x79)][_0x3ff8b3(0x78)]:tesseract_1[_0x3ff8b3(0x82)][_0x3ff8b3(0x79)][_0x3ff8b3(0x7f)],'description':this[_0x3ff8b3(0x88)][_0x3ff8b3(0x7c)]['getString'](_0x51f616[_0x3ff8b3(0x76)][_0x3ff8b3(0x7b)][_0x3ff8b3(0x87)],'info',_0x399eb9[_0x3ff8b3(0x7b)][_0x3ff8b3(0x70)]['threshold']?_0x3ff8b3(0x75):_0x3ff8b3(0x85),_0x51f616[_0x3ff8b3(0x80)][_0x3ff8b3(0x77)],_0x399eb9[_0x3ff8b3(0x7b)][_0x3ff8b3(0x70)][_0x3ff8b3(0x73)])}})[_0x3ff8b3(0x72)](()=>{});};}}; \ No newline at end of file +const a27_0x324a=['RED','exec','save','send','language','locale','guild','apply','mentionSpam','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','tag','GREEN','mentionSpam\x20--threshold\x20NUMBER','COLORS','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.','info','test','@bastion/tesseract','document','mentionSpamInfractionsEnable','mentionSpamInfractionsDisable','return\x20/\x22\x20+\x20this\x20+\x20\x22/','threshold','author','constructor','catch','Constants','channel'];(function(_0x23433d,_0x95505d){const _0x324a19=function(_0x510e84){while(--_0x510e84){_0x23433d['push'](_0x23433d['shift']());}},_0x58ad29=function(){const _0x27a94c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4385b7,_0xe199be,_0x2aed9a,_0x1e4d50){_0x1e4d50=_0x1e4d50||{};let _0x205080=_0xe199be+'='+_0x2aed9a,_0x46eb05=0x0;for(let _0x50e463=0x0,_0x140157=_0x4385b7['length'];_0x50e463<_0x140157;_0x50e463++){const _0x148ad5=_0x4385b7[_0x50e463];_0x205080+=';\x20'+_0x148ad5;const _0x2ca8d4=_0x4385b7[_0x148ad5];_0x4385b7['push'](_0x2ca8d4),_0x140157=_0x4385b7['length'],_0x2ca8d4!==!![]&&(_0x205080+='='+_0x2ca8d4);}_0x1e4d50['cookie']=_0x205080;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2c5d5d,_0x552fca){_0x2c5d5d=_0x2c5d5d||function(_0x56839b){return _0x56839b;};const _0x488aee=_0x2c5d5d(new RegExp('(?:^|;\x20)'+_0x552fca['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2890fb=function(_0x36c408,_0x21f55a){_0x36c408(++_0x21f55a);};return _0x2890fb(_0x324a19,_0x95505d),_0x488aee?decodeURIComponent(_0x488aee[0x1]):undefined;}},_0x6544dd=function(){const _0xfb1833=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xfb1833['test'](_0x27a94c['removeCookie']['toString']());};_0x27a94c['updateCookie']=_0x6544dd;let _0x512b12='';const _0xae474d=_0x27a94c['updateCookie']();if(!_0xae474d)_0x27a94c['setCookie'](['*'],'counter',0x1);else _0xae474d?_0x512b12=_0x27a94c['getCookie'](null,'counter'):_0x27a94c['removeCookie']();};_0x58ad29();}(a27_0x324a,0x14e));const a27_0x58ad=function(_0x23433d,_0x95505d){_0x23433d=_0x23433d-0x144;let _0x324a19=a27_0x324a[_0x23433d];return _0x324a19;};const a27_0x3966c0=a27_0x58ad,a27_0x6544dd=function(){let _0xae474d=!![];return function(_0x4385b7,_0xe199be){const _0x2aed9a=_0xae474d?function(){const _0xaf162a=a27_0x58ad;if(_0xe199be){const _0x1e4d50=_0xe199be[_0xaf162a(0x159)](_0x4385b7,arguments);return _0xe199be=null,_0x1e4d50;}}:function(){};return _0xae474d=![],_0x2aed9a;};}(),a27_0x27a94c=a27_0x6544dd(this,function(){const _0x205080=function(){const _0x360e8e=a27_0x58ad,_0x46eb05=_0x205080[_0x360e8e(0x14e)](_0x360e8e(0x14b))()[_0x360e8e(0x14e)](_0x360e8e(0x15b));return!_0x46eb05[_0x360e8e(0x146)](a27_0x27a94c);};return _0x205080();});a27_0x27a94c();'use strict';const tesseract_1=require(a27_0x3966c0(0x147));module[a27_0x3966c0(0x15c)]=class MentionSpamCommand extends tesseract_1['Command']{constructor(){const _0x949bd5=a27_0x3966c0;super(_0x949bd5(0x15a),{'description':_0x949bd5(0x144),'triggers':[],'arguments':{'alias':{'threshold':['t']},'number':[_0x949bd5(0x14c)]},'scope':_0x949bd5(0x158),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x949bd5(0x15a),_0x949bd5(0x15f)]}),this[_0x949bd5(0x153)]=async(_0x50e463,_0x140157)=>{const _0xb98f83=_0x949bd5,_0x148ad5=_0x50e463['guild'];_0x148ad5[_0xb98f83(0x148)]['mentionSpam']={..._0x148ad5['document']['mentionSpam'],'threshold':typeof _0x140157[_0xb98f83(0x14c)]==='number'&&_0x140157[_0xb98f83(0x14c)]>0x1?_0x140157[_0xb98f83(0x14c)]:undefined},await _0x148ad5[_0xb98f83(0x148)][_0xb98f83(0x154)](),await _0x50e463[_0xb98f83(0x151)][_0xb98f83(0x155)]({'embed':{'color':_0x148ad5[_0xb98f83(0x148)][_0xb98f83(0x15a)]['threshold']?tesseract_1[_0xb98f83(0x150)][_0xb98f83(0x160)][_0xb98f83(0x15e)]:tesseract_1[_0xb98f83(0x150)][_0xb98f83(0x160)][_0xb98f83(0x152)],'description':this['client'][_0xb98f83(0x157)]['getString'](_0x50e463[_0xb98f83(0x158)]['document'][_0xb98f83(0x156)],_0xb98f83(0x145),_0x148ad5[_0xb98f83(0x148)][_0xb98f83(0x15a)]['threshold']?_0xb98f83(0x149):_0xb98f83(0x14a),_0x50e463[_0xb98f83(0x14d)][_0xb98f83(0x15d)],_0x148ad5[_0xb98f83(0x148)][_0xb98f83(0x15a)]['threshold'])}})[_0xb98f83(0x14f)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/messageFilter.js b/commands/configuration/messageFilter.js index 95438551b..69b19da3e 100644 --- a/commands/configuration/messageFilter.js +++ b/commands/configuration/messageFilter.js @@ -1 +1 @@ -const a28_0x4ce3=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale','Filter\x20Pattern\x20Added','Command','messageFilterEnabled','IRIS','COLORS','../../utils/arrays','infraction','messageFilter\x20--enable','filterInfractionDisabled','test','guild','constructor','GREEN','disable','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','list','patterns','info','messageFilter','document','clear','Filter\x20Patterns','send','Constants','channel','concat','messageFilter\x20--no-infraction','language','join','@bastion/tesseract','messageFilterEnable','MANAGE_GUILD','enable','messageFilterDisable','messageFilter\x20--clear','filters','filterInfractionEnabled','messageFilter\x20--infraction','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.','getString','length','save','client','enabled','wrap'];(function(_0x18b9cf,_0xdceef1){const _0x4ce399=function(_0x3ee54d){while(--_0x3ee54d){_0x18b9cf['push'](_0x18b9cf['shift']());}},_0x132f85=function(){const _0x557b7a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4044fa,_0x449dd3,_0x39a959,_0x229e84){_0x229e84=_0x229e84||{};let _0x1d48c1=_0x449dd3+'='+_0x39a959,_0x4b049f=0x0;for(let _0x5f04f5=0x0,_0x10bd42=_0x4044fa['length'];_0x5f04f5<_0x10bd42;_0x5f04f5++){const _0x478aa5=_0x4044fa[_0x5f04f5];_0x1d48c1+=';\x20'+_0x478aa5;const _0x5222e9=_0x4044fa[_0x478aa5];_0x4044fa['push'](_0x5222e9),_0x10bd42=_0x4044fa['length'],_0x5222e9!==!![]&&(_0x1d48c1+='='+_0x5222e9);}_0x229e84['cookie']=_0x1d48c1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5f1b37,_0x1c4367){_0x5f1b37=_0x5f1b37||function(_0x571c60){return _0x571c60;};const _0xd4f953=_0x5f1b37(new RegExp('(?:^|;\x20)'+_0x1c4367['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x411ad7=function(_0x11c676,_0x288ef5){_0x11c676(++_0x288ef5);};return _0x411ad7(_0x4ce399,_0xdceef1),_0xd4f953?decodeURIComponent(_0xd4f953[0x1]):undefined;}},_0x1fb700=function(){const _0x29d5a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x29d5a7['test'](_0x557b7a['removeCookie']['toString']());};_0x557b7a['updateCookie']=_0x1fb700;let _0x32a53e='';const _0x350973=_0x557b7a['updateCookie']();if(!_0x350973)_0x557b7a['setCookie'](['*'],'counter',0x1);else _0x350973?_0x32a53e=_0x557b7a['getCookie'](null,'counter'):_0x557b7a['removeCookie']();};_0x132f85();}(a28_0x4ce3,0x89));const a28_0x132f=function(_0x18b9cf,_0xdceef1){_0x18b9cf=_0x18b9cf-0x8c;let _0x4ce399=a28_0x4ce3[_0x18b9cf];return _0x4ce399;};const _0x40255c=a28_0x132f,a28_0x1fb700=function(){let _0x350973=!![];return function(_0x4044fa,_0x449dd3){const _0x39a959=_0x350973?function(){if(_0x449dd3){const _0x229e84=_0x449dd3['apply'](_0x4044fa,arguments);return _0x449dd3=null,_0x229e84;}}:function(){};return _0x350973=![],_0x39a959;};}(),a28_0x557b7a=a28_0x1fb700(this,function(){const _0x1d48c1=function(){const _0x3bfa37=a28_0x132f,_0x4b049f=_0x1d48c1[_0x3bfa37(0xa0)](_0x3bfa37(0xa4))()[_0x3bfa37(0xa0)](_0x3bfa37(0x93));return!_0x4b049f[_0x3bfa37(0x9e)](a28_0x557b7a);};return _0x1d48c1();});a28_0x557b7a();'use strict';const tesseract_1=require(_0x40255c(0xb3)),arrays=require(_0x40255c(0x9a));module['exports']=class MessageFilterCommand extends tesseract_1[_0x40255c(0x96)]{constructor(){const _0xed4c22=_0x40255c;super(_0xed4c22(0xa8),{'description':_0xed4c22(0x8c),'triggers':[],'arguments':{'alias':{'clear':['c'],'disable':['d'],'enable':['e'],'infraction':['i'],'list':['l']},'boolean':[_0xed4c22(0xaa),_0xed4c22(0xa2),_0xed4c22(0xb6),_0xed4c22(0x9b),_0xed4c22(0xa5)]},'scope':_0xed4c22(0x9f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0xed4c22(0xb5)],'syntax':['messageFilter','messageFilter\x20PATTERN',_0xed4c22(0xb8),_0xed4c22(0x9c),'messageFilter\x20--disable',_0xed4c22(0xbb),_0xed4c22(0xb0)]}),this['exec']=async(_0x5f04f5,_0x10bd42)=>{const _0x5956aa=_0xed4c22,_0x478aa5=_0x5f04f5['guild'],_0x5222e9=_0x10bd42['_']['length']?[_0x10bd42['_']['join']('\x20')]:[];_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)]={..._0x478aa5[_0x5956aa(0xa9)]['filters'],'messageFilter':{'enabled':_0x10bd42[_0x5956aa(0xa2)]?undefined:_0x10bd42['enable']||_0x478aa5['document'][_0x5956aa(0xb9)]&&_0x478aa5['document']['filters'][_0x5956aa(0xa8)]&&_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)][_0x5956aa(0xa8)][_0x5956aa(0x91)]?!![]:undefined,'patterns':_0x10bd42['clear']?undefined:_0x478aa5[_0x5956aa(0xa9)]['filters']&&_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)][_0x5956aa(0xa8)]&&_0x478aa5['document'][_0x5956aa(0xb9)]['messageFilter'][_0x5956aa(0xa6)]?_0x5222e9[_0x5956aa(0x8e)]?_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)][_0x5956aa(0xa8)][_0x5956aa(0xa6)][_0x5956aa(0xaf)](_0x5222e9):_0x478aa5[_0x5956aa(0xa9)]['filters'][_0x5956aa(0xa8)][_0x5956aa(0xa6)]:_0x5222e9[_0x5956aa(0x8e)]?_0x5222e9:undefined,'infraction':_0x10bd42[_0x5956aa(0x9b)]===![]?undefined:_0x10bd42['infraction']||_0x478aa5['document'][_0x5956aa(0xb9)]&&_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)]['messageFilter']&&_0x478aa5[_0x5956aa(0xa9)]['filters'][_0x5956aa(0xa8)][_0x5956aa(0x9b)]?!![]:undefined}},await _0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0x8f)](),await _0x5f04f5[_0x5956aa(0xae)][_0x5956aa(0xac)]({'embed':{'color':_0x10bd42[_0x5956aa(0xb6)]?tesseract_1[_0x5956aa(0xad)][_0x5956aa(0x99)][_0x5956aa(0xa1)]:_0x10bd42[_0x5956aa(0xa2)]?tesseract_1[_0x5956aa(0xad)][_0x5956aa(0x99)]['RED']:tesseract_1[_0x5956aa(0xad)]['COLORS'][_0x5956aa(0x98)],'description':this[_0x5956aa(0x90)][_0x5956aa(0x94)][_0x5956aa(0x8d)](_0x5f04f5[_0x5956aa(0x9f)][_0x5956aa(0xa9)][_0x5956aa(0xb1)],_0x5956aa(0xa7),_0x10bd42[_0x5956aa(0xb6)]?_0x5956aa(0xb4):_0x10bd42[_0x5956aa(0xa2)]?_0x5956aa(0xb7):_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)][_0x5956aa(0xa8)][_0x5956aa(0x91)]?_0x5956aa(0x97):'messageFilterDisabled',_0x5f04f5[_0x5956aa(0xa3)]['tag']),'fields':_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)]['messageFilter']['enabled']||_0x5222e9[_0x5956aa(0x8e)]?[{'name':_0x5222e9['length']?_0x5956aa(0x95):_0x5956aa(0xab),'value':_0x5222e9[_0x5956aa(0x8e)]?_0x5222e9[0x0]:_0x478aa5[_0x5956aa(0xa9)]['filters'][_0x5956aa(0xa8)][_0x5956aa(0xa6)]?arrays[_0x5956aa(0x92)](_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)]['messageFilter'][_0x5956aa(0xa6)],'`')[_0x5956aa(0xb2)](',\x20'):'-'}]:[],'footer':{'text':_0x478aa5['document']['filters'][_0x5956aa(0xa8)]['enabled']?this[_0x5956aa(0x90)][_0x5956aa(0x94)]['getString'](_0x5f04f5['guild'][_0x5956aa(0xa9)][_0x5956aa(0xb1)],_0x5956aa(0xa7),_0x478aa5[_0x5956aa(0xa9)][_0x5956aa(0xb9)][_0x5956aa(0xa8)][_0x5956aa(0x9b)]?_0x5956aa(0xba):_0x5956aa(0x9d)):''}}})['catch'](()=>{});};}}; \ No newline at end of file +const a28_0x138b=['language','patterns','../../utils/arrays','join','Constants','messageFilter\x20--infraction','tag','wrap','enabled','constructor','disable','exec','IRIS','messageFilter\x20--enable','messageFilterEnabled','filterInfractionDisabled','RED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','MANAGE_GUILD','COLORS','filters','exports','clear','enable','list','messageFilter\x20--disable','messageFilterDisabled','Filter\x20Pattern\x20Added','getString','save','infraction','Command','concat','filterInfractionEnabled','messageFilter\x20--no-infraction','messageFilter\x20--clear','guild','author','messageFilter\x20PATTERN','messageFilterEnable','document','locale','messageFilter','client','info','length'];(function(_0x302817,_0x270d07){const _0x138bb1=function(_0x124188){while(--_0x124188){_0x302817['push'](_0x302817['shift']());}},_0xfb5d43=function(){const _0x5299d5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xba95e,_0x261284,_0x560991,_0x469b20){_0x469b20=_0x469b20||{};let _0x5514ed=_0x261284+'='+_0x560991,_0x2d216f=0x0;for(let _0x5cf9cc=0x0,_0x49926c=_0xba95e['length'];_0x5cf9cc<_0x49926c;_0x5cf9cc++){const _0x3c7b66=_0xba95e[_0x5cf9cc];_0x5514ed+=';\x20'+_0x3c7b66;const _0x2ad465=_0xba95e[_0x3c7b66];_0xba95e['push'](_0x2ad465),_0x49926c=_0xba95e['length'],_0x2ad465!==!![]&&(_0x5514ed+='='+_0x2ad465);}_0x469b20['cookie']=_0x5514ed;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5959d9,_0x18b9df){_0x5959d9=_0x5959d9||function(_0x31c522){return _0x31c522;};const _0xfb0bde=_0x5959d9(new RegExp('(?:^|;\x20)'+_0x18b9df['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f4dd3=function(_0x4d7ce4,_0x3731a6){_0x4d7ce4(++_0x3731a6);};return _0x4f4dd3(_0x138bb1,_0x270d07),_0xfb0bde?decodeURIComponent(_0xfb0bde[0x1]):undefined;}},_0x4a200e=function(){const _0x21fff9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x21fff9['test'](_0x5299d5['removeCookie']['toString']());};_0x5299d5['updateCookie']=_0x4a200e;let _0x2131e2='';const _0x28c0cc=_0x5299d5['updateCookie']();if(!_0x28c0cc)_0x5299d5['setCookie'](['*'],'counter',0x1);else _0x28c0cc?_0x2131e2=_0x5299d5['getCookie'](null,'counter'):_0x5299d5['removeCookie']();};_0xfb5d43();}(a28_0x138b,0x177));const a28_0xfb5d=function(_0x302817,_0x270d07){_0x302817=_0x302817-0x19e;let _0x138bb1=a28_0x138b[_0x302817];return _0x138bb1;};const a28_0x14d9b9=a28_0xfb5d,a28_0x4a200e=function(){let _0x28c0cc=!![];return function(_0xba95e,_0x261284){const _0x560991=_0x28c0cc?function(){if(_0x261284){const _0x469b20=_0x261284['apply'](_0xba95e,arguments);return _0x261284=null,_0x469b20;}}:function(){};return _0x28c0cc=![],_0x560991;};}(),a28_0x5299d5=a28_0x4a200e(this,function(){const _0x5514ed=function(){const _0x18b385=a28_0xfb5d,_0x2d216f=_0x5514ed[_0x18b385(0x1a0)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x18b385(0x1a0)](_0x18b385(0x1a8));return!_0x2d216f['test'](a28_0x5299d5);};return _0x5514ed();});a28_0x5299d5();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require(a28_0x14d9b9(0x1c7));module[a28_0x14d9b9(0x1ac)]=class MessageFilterCommand extends tesseract_1[a28_0x14d9b9(0x1b6)]{constructor(){const _0xe8e481=a28_0x14d9b9;super(_0xe8e481(0x1c1),{'description':'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.','triggers':[],'arguments':{'alias':{'clear':['c'],'disable':['d'],'enable':['e'],'infraction':['i'],'list':['l']},'boolean':['clear','disable','enable',_0xe8e481(0x1b5),_0xe8e481(0x1af)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0xe8e481(0x1a9)],'syntax':[_0xe8e481(0x1c1),_0xe8e481(0x1bd),_0xe8e481(0x1ba),_0xe8e481(0x1a4),_0xe8e481(0x1b0),_0xe8e481(0x1ca),_0xe8e481(0x1b9)]}),this[_0xe8e481(0x1a2)]=async(_0x5cf9cc,_0x49926c)=>{const _0x53dc76=_0xe8e481,_0x3c7b66=_0x5cf9cc[_0x53dc76(0x1bb)],_0x2ad465=_0x49926c['_'][_0x53dc76(0x1c4)]?[_0x49926c['_'][_0x53dc76(0x1c8)]('\x20')]:[];_0x3c7b66['document'][_0x53dc76(0x1ab)]={..._0x3c7b66[_0x53dc76(0x1bf)]['filters'],'messageFilter':{'enabled':_0x49926c[_0x53dc76(0x1a1)]?undefined:_0x49926c[_0x53dc76(0x1ae)]||_0x3c7b66[_0x53dc76(0x1bf)]['filters']&&_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)]&&_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)]['messageFilter'][_0x53dc76(0x19f)]?!![]:undefined,'patterns':_0x49926c[_0x53dc76(0x1ad)]?undefined:_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)]&&_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)]&&_0x3c7b66['document'][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)][_0x53dc76(0x1c6)]?_0x2ad465['length']?_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)][_0x53dc76(0x1c6)][_0x53dc76(0x1b7)](_0x2ad465):_0x3c7b66[_0x53dc76(0x1bf)]['filters']['messageFilter'][_0x53dc76(0x1c6)]:_0x2ad465[_0x53dc76(0x1c4)]?_0x2ad465:undefined,'infraction':_0x49926c[_0x53dc76(0x1b5)]===![]?undefined:_0x49926c['infraction']||_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)]&&_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)]&&_0x3c7b66['document'][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)][_0x53dc76(0x1b5)]?!![]:undefined}},await _0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1b4)](),await _0x5cf9cc['channel']['send']({'embed':{'color':_0x49926c[_0x53dc76(0x1ae)]?tesseract_1[_0x53dc76(0x1c9)][_0x53dc76(0x1aa)]['GREEN']:_0x49926c['disable']?tesseract_1['Constants']['COLORS'][_0x53dc76(0x1a7)]:tesseract_1[_0x53dc76(0x1c9)][_0x53dc76(0x1aa)][_0x53dc76(0x1a3)],'description':this[_0x53dc76(0x1c2)]['locale']['getString'](_0x5cf9cc[_0x53dc76(0x1bb)]['document'][_0x53dc76(0x1c5)],_0x53dc76(0x1c3),_0x49926c[_0x53dc76(0x1ae)]?_0x53dc76(0x1be):_0x49926c[_0x53dc76(0x1a1)]?'messageFilterDisable':_0x3c7b66['document'][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)]['enabled']?_0x53dc76(0x1a5):_0x53dc76(0x1b1),_0x5cf9cc[_0x53dc76(0x1bc)][_0x53dc76(0x1cb)]),'fields':_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)][_0x53dc76(0x19f)]||_0x2ad465[_0x53dc76(0x1c4)]?[{'name':_0x2ad465[_0x53dc76(0x1c4)]?_0x53dc76(0x1b2):'Filter\x20Patterns','value':_0x2ad465[_0x53dc76(0x1c4)]?_0x2ad465[0x0]:_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)]['messageFilter'][_0x53dc76(0x1c6)]?arrays[_0x53dc76(0x19e)](_0x3c7b66['document'][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)][_0x53dc76(0x1c6)],'`')['join'](',\x20'):'-'}]:[],'footer':{'text':_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)]['messageFilter'][_0x53dc76(0x19f)]?this[_0x53dc76(0x1c2)][_0x53dc76(0x1c0)][_0x53dc76(0x1b3)](_0x5cf9cc[_0x53dc76(0x1bb)]['document']['language'],'info',_0x3c7b66[_0x53dc76(0x1bf)][_0x53dc76(0x1ab)][_0x53dc76(0x1c1)][_0x53dc76(0x1b5)]?_0x53dc76(0x1b8):_0x53dc76(0x1a6)):''}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/moderationLogs.js b/commands/configuration/moderationLogs.js index ad25b6c98..c30153bb5 100644 --- a/commands/configuration/moderationLogs.js +++ b/commands/configuration/moderationLogs.js @@ -1 +1 @@ -const a29_0x32b7=['moderationLogsDisable','info','exports','Constants','save','catch','guild','moderationLogsEnable','Command','constructor','moderationLogs','language','channel','moderationLogChannelId','MANAGE_GUILD','document','GREEN','modLogs','getString','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','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.','disable','apply','@bastion/tesseract','COLORS','moderationLogs\x20--disable'];(function(_0x21a8d8,_0x5f9c10){const _0x32b71a=function(_0x38a6e5){while(--_0x38a6e5){_0x21a8d8['push'](_0x21a8d8['shift']());}},_0x38ae66=function(){const _0x3c1e6e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e9946,_0x522554,_0x1caee3,_0x42af78){_0x42af78=_0x42af78||{};let _0x3cc53a=_0x522554+'='+_0x1caee3,_0x36e891=0x0;for(let _0x1c0052=0x0,_0x251035=_0x5e9946['length'];_0x1c0052<_0x251035;_0x1c0052++){const _0x2c2581=_0x5e9946[_0x1c0052];_0x3cc53a+=';\x20'+_0x2c2581;const _0x1b63f4=_0x5e9946[_0x2c2581];_0x5e9946['push'](_0x1b63f4),_0x251035=_0x5e9946['length'],_0x1b63f4!==!![]&&(_0x3cc53a+='='+_0x1b63f4);}_0x42af78['cookie']=_0x3cc53a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2337ba,_0x4ce1b8){_0x2337ba=_0x2337ba||function(_0xa7bca5){return _0xa7bca5;};const _0x5bdbc6=_0x2337ba(new RegExp('(?:^|;\x20)'+_0x4ce1b8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29e257=function(_0x1a4732,_0x40bba4){_0x1a4732(++_0x40bba4);};return _0x29e257(_0x32b71a,_0x5f9c10),_0x5bdbc6?decodeURIComponent(_0x5bdbc6[0x1]):undefined;}},_0xcc7610=function(){const _0x5b8f82=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b8f82['test'](_0x3c1e6e['removeCookie']['toString']());};_0x3c1e6e['updateCookie']=_0xcc7610;let _0x45316c='';const _0x2c1f83=_0x3c1e6e['updateCookie']();if(!_0x2c1f83)_0x3c1e6e['setCookie'](['*'],'counter',0x1);else _0x2c1f83?_0x45316c=_0x3c1e6e['getCookie'](null,'counter'):_0x3c1e6e['removeCookie']();};_0x38ae66();}(a29_0x32b7,0x127));const a29_0x38ae=function(_0x21a8d8,_0x5f9c10){_0x21a8d8=_0x21a8d8-0x1c6;let _0x32b71a=a29_0x32b7[_0x21a8d8];return _0x32b71a;};const _0x5f1413=a29_0x38ae,a29_0xcc7610=function(){let _0x2c1f83=!![];return function(_0x5e9946,_0x522554){const _0x1caee3=_0x2c1f83?function(){const _0x175c01=a29_0x38ae;if(_0x522554){const _0x42af78=_0x522554[_0x175c01(0x1df)](_0x5e9946,arguments);return _0x522554=null,_0x42af78;}}:function(){};return _0x2c1f83=![],_0x1caee3;};}(),a29_0x3c1e6e=a29_0xcc7610(this,function(){const _0x3cc53a=function(){const _0x9c3afb=a29_0x38ae,_0x36e891=_0x3cc53a['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x9c3afb(0x1d1)](_0x9c3afb(0x1dc));return!_0x36e891['test'](a29_0x3c1e6e);};return _0x3cc53a();});a29_0x3c1e6e();'use strict';const tesseract_1=require(_0x5f1413(0x1e0));module[_0x5f1413(0x1ca)]=class ModerationLogs extends tesseract_1[_0x5f1413(0x1d0)]{constructor(){const _0x54b64f=_0x5f1413;super('moderationLogs',{'description':_0x54b64f(0x1dd),'triggers':[_0x54b64f(0x1d9)],'arguments':{'alias':{'disable':['d']},'boolean':[_0x54b64f(0x1de)]},'scope':_0x54b64f(0x1ce),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x54b64f(0x1d6)],'syntax':[_0x54b64f(0x1d2),_0x54b64f(0x1c7)]}),this['exec']=async(_0x1c0052,_0x251035)=>{const _0x2f36d8=_0x54b64f,_0x2c2581=_0x1c0052['guild'];_0x251035[_0x2f36d8(0x1de)]?(_0x2c2581['document'][_0x2f36d8(0x1d5)]=undefined,delete _0x2c2581[_0x2f36d8(0x1d7)][_0x2f36d8(0x1d5)]):_0x2c2581[_0x2f36d8(0x1d7)][_0x2f36d8(0x1d5)]=_0x1c0052['channel']['id'],await _0x2c2581['document'][_0x2f36d8(0x1cc)](),await _0x1c0052[_0x2f36d8(0x1d4)]['send']({'embed':{'color':_0x2c2581[_0x2f36d8(0x1d7)][_0x2f36d8(0x1d5)]?tesseract_1[_0x2f36d8(0x1cb)][_0x2f36d8(0x1c6)][_0x2f36d8(0x1d8)]:tesseract_1[_0x2f36d8(0x1cb)]['COLORS']['RED'],'description':this[_0x2f36d8(0x1db)]['locale'][_0x2f36d8(0x1da)](_0x1c0052[_0x2f36d8(0x1ce)][_0x2f36d8(0x1d7)][_0x2f36d8(0x1d3)],_0x2f36d8(0x1c9),_0x2c2581['document'][_0x2f36d8(0x1d5)]?_0x2f36d8(0x1cf):_0x2f36d8(0x1c8),_0x1c0052['author']['tag'])}})[_0x2f36d8(0x1cd)](()=>{});};}}; \ No newline at end of file +const a29_0x2ef5=['language','disable','RED','Constants','GREEN','channel','moderationLogChannelId','exec','apply','document','COLORS','@bastion/tesseract','Command','catch','moderationLogs\x20--disable','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','save','constructor','info','test','guild','modLogs','getString','moderationLogs','moderationLogsDisable','client','author','moderationLogsEnable'];(function(_0x483e82,_0x300067){const _0x2ef5a8=function(_0x1c29da){while(--_0x1c29da){_0x483e82['push'](_0x483e82['shift']());}},_0x11a8eb=function(){const _0x51d8b0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x104b67,_0x13ec23,_0x510813,_0xc8d9f5){_0xc8d9f5=_0xc8d9f5||{};let _0x1230d8=_0x13ec23+'='+_0x510813,_0x1f275d=0x0;for(let _0x22674c=0x0,_0x356b19=_0x104b67['length'];_0x22674c<_0x356b19;_0x22674c++){const _0x272e4d=_0x104b67[_0x22674c];_0x1230d8+=';\x20'+_0x272e4d;const _0x1d2c20=_0x104b67[_0x272e4d];_0x104b67['push'](_0x1d2c20),_0x356b19=_0x104b67['length'],_0x1d2c20!==!![]&&(_0x1230d8+='='+_0x1d2c20);}_0xc8d9f5['cookie']=_0x1230d8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x390a49,_0x1a25fb){_0x390a49=_0x390a49||function(_0x4784a3){return _0x4784a3;};const _0x416807=_0x390a49(new RegExp('(?:^|;\x20)'+_0x1a25fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45e77c=function(_0x4b259b,_0x589a71){_0x4b259b(++_0x589a71);};return _0x45e77c(_0x2ef5a8,_0x300067),_0x416807?decodeURIComponent(_0x416807[0x1]):undefined;}},_0x2a4022=function(){const _0x411abc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x411abc['test'](_0x51d8b0['removeCookie']['toString']());};_0x51d8b0['updateCookie']=_0x2a4022;let _0x80fc49='';const _0x2e177b=_0x51d8b0['updateCookie']();if(!_0x2e177b)_0x51d8b0['setCookie'](['*'],'counter',0x1);else _0x2e177b?_0x80fc49=_0x51d8b0['getCookie'](null,'counter'):_0x51d8b0['removeCookie']();};_0x11a8eb();}(a29_0x2ef5,0x1ec));const a29_0x11a8=function(_0x483e82,_0x300067){_0x483e82=_0x483e82-0x133;let _0x2ef5a8=a29_0x2ef5[_0x483e82];return _0x2ef5a8;};const a29_0x19fc14=a29_0x11a8,a29_0x2a4022=function(){let _0x2e177b=!![];return function(_0x104b67,_0x13ec23){const _0x510813=_0x2e177b?function(){const _0x40568e=a29_0x11a8;if(_0x13ec23){const _0xc8d9f5=_0x13ec23[_0x40568e(0x14d)](_0x104b67,arguments);return _0x13ec23=null,_0xc8d9f5;}}:function(){};return _0x2e177b=![],_0x510813;};}(),a29_0x51d8b0=a29_0x2a4022(this,function(){const _0x1230d8=function(){const _0x1d3f45=a29_0x11a8,_0x1f275d=_0x1230d8[_0x1d3f45(0x13a)](_0x1d3f45(0x137))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1f275d[_0x1d3f45(0x13c)](a29_0x51d8b0);};return _0x1230d8();});a29_0x51d8b0();'use strict';const tesseract_1=require(a29_0x19fc14(0x150));module['exports']=class ModerationLogs extends tesseract_1[a29_0x19fc14(0x133)]{constructor(){const _0x1caa0b=a29_0x19fc14;super(_0x1caa0b(0x140),{'description':'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.','triggers':[_0x1caa0b(0x13e)],'arguments':{'alias':{'disable':['d']},'boolean':[_0x1caa0b(0x146)]},'scope':_0x1caa0b(0x13d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x1caa0b(0x140),_0x1caa0b(0x135)]}),this[_0x1caa0b(0x14c)]=async(_0x22674c,_0x356b19)=>{const _0x305233=_0x1caa0b,_0x272e4d=_0x22674c[_0x305233(0x13d)];_0x356b19[_0x305233(0x146)]?(_0x272e4d[_0x305233(0x14e)]['moderationLogChannelId']=undefined,delete _0x272e4d[_0x305233(0x14e)][_0x305233(0x14b)]):_0x272e4d[_0x305233(0x14e)][_0x305233(0x14b)]=_0x22674c[_0x305233(0x14a)]['id'],await _0x272e4d[_0x305233(0x14e)][_0x305233(0x139)](),await _0x22674c[_0x305233(0x14a)][_0x305233(0x136)]({'embed':{'color':_0x272e4d[_0x305233(0x14e)][_0x305233(0x14b)]?tesseract_1[_0x305233(0x148)][_0x305233(0x14f)][_0x305233(0x149)]:tesseract_1['Constants'][_0x305233(0x14f)][_0x305233(0x147)],'description':this[_0x305233(0x142)]['locale'][_0x305233(0x13f)](_0x22674c[_0x305233(0x13d)][_0x305233(0x14e)][_0x305233(0x145)],_0x305233(0x13b),_0x272e4d[_0x305233(0x14e)][_0x305233(0x14b)]?_0x305233(0x144):_0x305233(0x141),_0x22674c[_0x305233(0x143)][_0x305233(0x138)])}})[_0x305233(0x134)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/prefix.js b/commands/configuration/prefix.js index 5ece9ae54..84b1e4d83 100644 --- a/commands/configuration/prefix.js +++ b/commands/configuration/prefix.js @@ -1 +1 @@ -const a30_0x1a41=['apply','fetchPremiumTier','COLORS','Constants','getString','length','PLATINUM','GOLD','errors','@bastion/tesseract','../../utils/omnic','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','premiumPrefix','save','guildPrefixUpdate','prefixes','info','document','exports','tag','LIMITS','guildPrefixes','send','channel','catch','constructor','locale','client','Prefixes','prefix\x20--\x20PREFIX','join','PremiumTier','MANAGE_GUILD','PREMIUM_MEMBERSHIP_REQUIRED','isPublicBastion','author','membershipLimitPrefix','guild','Command','concat','It\x20allows\x20you\x20set\x20custom\x20prefixes\x20for\x20Bastion\x20in\x20your\x20server.','BASTION_ERROR_TYPE','language','configurations','exec','user','DiscordError','return\x20/\x22\x20+\x20this\x20+\x20\x22/','PREFIXES','GREEN'];(function(_0x55eb9f,_0x547e83){const _0x1a4151=function(_0x4ad766){while(--_0x4ad766){_0x55eb9f['push'](_0x55eb9f['shift']());}},_0xcab10d=function(){const _0x24f8ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d3d8f,_0x710798,_0x1bd8c9,_0x120f63){_0x120f63=_0x120f63||{};let _0x1675f9=_0x710798+'='+_0x1bd8c9,_0x1363a1=0x0;for(let _0x2c0086=0x0,_0x421e4e=_0x2d3d8f['length'];_0x2c0086<_0x421e4e;_0x2c0086++){const _0x24a147=_0x2d3d8f[_0x2c0086];_0x1675f9+=';\x20'+_0x24a147;const _0x7d78fd=_0x2d3d8f[_0x24a147];_0x2d3d8f['push'](_0x7d78fd),_0x421e4e=_0x2d3d8f['length'],_0x7d78fd!==!![]&&(_0x1675f9+='='+_0x7d78fd);}_0x120f63['cookie']=_0x1675f9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x366eae,_0x3575b0){_0x366eae=_0x366eae||function(_0x362561){return _0x362561;};const _0x5e0256=_0x366eae(new RegExp('(?:^|;\x20)'+_0x3575b0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x454b91=function(_0x3c61ab,_0x27ac18){_0x3c61ab(++_0x27ac18);};return _0x454b91(_0x1a4151,_0x547e83),_0x5e0256?decodeURIComponent(_0x5e0256[0x1]):undefined;}},_0x61590d=function(){const _0x541122=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x541122['test'](_0x24f8ea['removeCookie']['toString']());};_0x24f8ea['updateCookie']=_0x61590d;let _0x34e206='';const _0x528ca1=_0x24f8ea['updateCookie']();if(!_0x528ca1)_0x24f8ea['setCookie'](['*'],'counter',0x1);else _0x528ca1?_0x34e206=_0x24f8ea['getCookie'](null,'counter'):_0x24f8ea['removeCookie']();};_0xcab10d();}(a30_0x1a41,0xcf));const a30_0xcab1=function(_0x55eb9f,_0x547e83){_0x55eb9f=_0x55eb9f-0xda;let _0x1a4151=a30_0x1a41[_0x55eb9f];return _0x1a4151;};const _0xfe8c56=a30_0xcab1,a30_0x61590d=function(){let _0x528ca1=!![];return function(_0x2d3d8f,_0x710798){const _0x1bd8c9=_0x528ca1?function(){const _0x2dd236=a30_0xcab1;if(_0x710798){const _0x120f63=_0x710798[_0x2dd236(0x10a)](_0x2d3d8f,arguments);return _0x710798=null,_0x120f63;}}:function(){};return _0x528ca1=![],_0x1bd8c9;};}(),a30_0x24f8ea=a30_0x61590d(this,function(){const _0x1675f9=function(){const _0x5ab1e9=a30_0xcab1,_0x1363a1=_0x1675f9[_0x5ab1e9(0xf1)](_0x5ab1e9(0x107))()['constructor'](_0x5ab1e9(0xe3));return!_0x1363a1[_0x5ab1e9(0xe2)](a30_0x24f8ea);};return _0x1675f9();});a30_0x24f8ea();'use strict';const tesseract_1=require(_0xfe8c56(0xe0)),constants=require('../../utils/constants'),errors=require('../../utils/errors'),omnic=require(_0xfe8c56(0xe1));module[_0xfe8c56(0xea)]=class Prefix extends tesseract_1[_0xfe8c56(0xfe)]{constructor(){const _0x2e6eac=_0xfe8c56;super('prefix',{'description':_0x2e6eac(0x100),'triggers':[],'arguments':{},'scope':_0x2e6eac(0xfd),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x2e6eac(0xf8)],'syntax':['prefix',_0x2e6eac(0xf5)]}),this[_0x2e6eac(0x104)]=async(_0x2c0086,_0x421e4e)=>{const _0x1a1319=_0x2e6eac,_0x24a147=_0x2c0086[_0x1a1319(0xfd)];if(_0x421e4e['_'][_0x1a1319(0xdc)]){if(_0x421e4e['_'][_0x1a1319(0xdc)]>constants['LIMITS'][_0x1a1319(0x108)]&&constants[_0x1a1319(0xfa)](this[_0x1a1319(0xf3)][_0x1a1319(0x105)])){const _0x366eae=await omnic[_0x1a1319(0x10b)](_0x2c0086[_0x1a1319(0xfd)])[_0x1a1319(0xf0)](()=>{});if(_0x366eae){if(_0x366eae===omnic['PremiumTier']['GOLD']&&_0x421e4e['_'][_0x1a1319(0xdc)]>constants[_0x1a1319(0xec)][_0x1a1319(0xde)]['PREFIXES'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x1a1319(0xf3)]['locale'][_0x1a1319(0xdb)](_0x2c0086[_0x1a1319(0xfd)]['document'][_0x1a1319(0x102)],_0x1a1319(0xdf),_0x1a1319(0xfc),constants['LIMITS'][_0x1a1319(0xde)][_0x1a1319(0x108)]));else{if(_0x366eae===omnic[_0x1a1319(0xf7)][_0x1a1319(0xdd)]&&_0x421e4e['_'][_0x1a1319(0xdc)]>constants[_0x1a1319(0xec)][_0x1a1319(0xdd)][_0x1a1319(0x108)])throw new errors[(_0x1a1319(0x106))](errors[_0x1a1319(0x101)]['LIMITED_PREMIUM_MEMBERSHIP'],this['client'][_0x1a1319(0xf2)][_0x1a1319(0xdb)](_0x2c0086[_0x1a1319(0xfd)][_0x1a1319(0xe9)][_0x1a1319(0x102)],_0x1a1319(0xdf),'membershipLimitPrefix',constants[_0x1a1319(0xec)][_0x1a1319(0xdd)][_0x1a1319(0x108)]));}}else throw new errors[(_0x1a1319(0x106))](errors['BASTION_ERROR_TYPE'][_0x1a1319(0xf9)],this[_0x1a1319(0xf3)]['locale']['getString'](_0x2c0086[_0x1a1319(0xfd)][_0x1a1319(0xe9)][_0x1a1319(0x102)],_0x1a1319(0xdf),_0x1a1319(0xe4),constants[_0x1a1319(0xec)][_0x1a1319(0x108)]));}return _0x24a147[_0x1a1319(0xe9)][_0x1a1319(0xe7)]=_0x421e4e['_'],await _0x24a147[_0x1a1319(0xe9)][_0x1a1319(0xe5)](),await _0x2c0086[_0x1a1319(0xef)][_0x1a1319(0xee)]({'embed':{'color':tesseract_1[_0x1a1319(0xda)][_0x1a1319(0x10c)][_0x1a1319(0x109)],'description':this[_0x1a1319(0xf3)]['locale'][_0x1a1319(0xdb)](_0x2c0086['guild'][_0x1a1319(0xe9)][_0x1a1319(0x102)],_0x1a1319(0xe8),_0x1a1319(0xe6),_0x2c0086[_0x1a1319(0xfb)][_0x1a1319(0xeb)],_0x24a147[_0x1a1319(0xe9)][_0x1a1319(0xe7)][_0x1a1319(0xf6)]('\x20\x20'))}})[_0x1a1319(0xf0)](()=>{});}const _0x7d78fd=this[_0x1a1319(0xf3)][_0x1a1319(0x103)][_0x1a1319(0xe7)][_0x1a1319(0xff)](_0x24a147[_0x1a1319(0xe9)][_0x1a1319(0xe7)]);await _0x2c0086[_0x1a1319(0xef)][_0x1a1319(0xee)]({'embed':{'color':tesseract_1[_0x1a1319(0xda)]['COLORS']['IRIS'],'description':this[_0x1a1319(0xf3)][_0x1a1319(0xf2)][_0x1a1319(0xdb)](_0x2c0086[_0x1a1319(0xfd)][_0x1a1319(0xe9)]['language'],_0x1a1319(0xe8),_0x1a1319(0xed)),'fields':[{'name':_0x1a1319(0xf4),'value':_0x7d78fd['join']('\x20\x20')}]}})[_0x1a1319(0xf0)](()=>{});};}}; \ No newline at end of file +const a30_0x28c8=['exec','prefixes','apply','Command','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','send','PREMIUM_MEMBERSHIP_REQUIRED','author','PREFIXES','language','exports','guild','PLATINUM','getString','BASTION_ERROR_TYPE','MANAGE_GUILD','@bastion/tesseract','user','constructor','LIMITS','Prefixes','info','tag','GOLD','premiumPrefix','guildPrefixUpdate','../../utils/omnic','join','It\x20allows\x20you\x20set\x20custom\x20prefixes\x20for\x20Bastion\x20in\x20your\x20server.','prefix','membershipLimitPrefix','document','length','channel','LIMITED_PREMIUM_MEMBERSHIP','client','COLORS','../../utils/constants','fetchPremiumTier','DiscordError','PremiumTier','isPublicBastion','guildPrefixes','Constants','save','catch','errors','test','locale'];(function(_0x4bf8da,_0x56545d){const _0x28c85b=function(_0xa44161){while(--_0xa44161){_0x4bf8da['push'](_0x4bf8da['shift']());}},_0x2fce77=function(){const _0x373437={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x293c91,_0x3b831f,_0x303f0f,_0x27bb87){_0x27bb87=_0x27bb87||{};let _0x11b68b=_0x3b831f+'='+_0x303f0f,_0xed4069=0x0;for(let _0x1ccac3=0x0,_0xae16ba=_0x293c91['length'];_0x1ccac3<_0xae16ba;_0x1ccac3++){const _0x26ed77=_0x293c91[_0x1ccac3];_0x11b68b+=';\x20'+_0x26ed77;const _0x18a81f=_0x293c91[_0x26ed77];_0x293c91['push'](_0x18a81f),_0xae16ba=_0x293c91['length'],_0x18a81f!==!![]&&(_0x11b68b+='='+_0x18a81f);}_0x27bb87['cookie']=_0x11b68b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20872e,_0x1e6a11){_0x20872e=_0x20872e||function(_0x4ce6a0){return _0x4ce6a0;};const _0x3e350a=_0x20872e(new RegExp('(?:^|;\x20)'+_0x1e6a11['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17609b=function(_0x2043dc,_0x4fe1f0){_0x2043dc(++_0x4fe1f0);};return _0x17609b(_0x28c85b,_0x56545d),_0x3e350a?decodeURIComponent(_0x3e350a[0x1]):undefined;}},_0x4a5bb5=function(){const _0x1c3695=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1c3695['test'](_0x373437['removeCookie']['toString']());};_0x373437['updateCookie']=_0x4a5bb5;let _0xd8a25b='';const _0x172a15=_0x373437['updateCookie']();if(!_0x172a15)_0x373437['setCookie'](['*'],'counter',0x1);else _0x172a15?_0xd8a25b=_0x373437['getCookie'](null,'counter'):_0x373437['removeCookie']();};_0x2fce77();}(a30_0x28c8,0x15c));const a30_0x2fce=function(_0x4bf8da,_0x56545d){_0x4bf8da=_0x4bf8da-0x9a;let _0x28c85b=a30_0x28c8[_0x4bf8da];return _0x28c85b;};const a30_0x4adab0=a30_0x2fce,a30_0x4a5bb5=function(){let _0x172a15=!![];return function(_0x293c91,_0x3b831f){const _0x303f0f=_0x172a15?function(){const _0xc15781=a30_0x2fce;if(_0x3b831f){const _0x27bb87=_0x3b831f[_0xc15781(0x9e)](_0x293c91,arguments);return _0x3b831f=null,_0x27bb87;}}:function(){};return _0x172a15=![],_0x303f0f;};}(),a30_0x373437=a30_0x4a5bb5(this,function(){const _0x11b68b=function(){const _0x41c344=a30_0x2fce,_0xed4069=_0x11b68b[_0x41c344(0xaf)](_0x41c344(0xa1))()[_0x41c344(0xaf)](_0x41c344(0xa0));return!_0xed4069[_0x41c344(0x9a)](a30_0x373437);};return _0x11b68b();});a30_0x373437();'use strict';const tesseract_1=require(a30_0x4adab0(0xad)),constants=require(a30_0x4adab0(0xc2)),errors=require('../../utils/errors'),omnic=require(a30_0x4adab0(0xb7));module[a30_0x4adab0(0xa7)]=class Prefix extends tesseract_1[a30_0x4adab0(0x9f)]{constructor(){const _0x4365f7=a30_0x4adab0;super(_0x4365f7(0xba),{'description':_0x4365f7(0xb9),'triggers':[],'arguments':{},'scope':_0x4365f7(0xa8),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x4365f7(0xac)],'syntax':[_0x4365f7(0xba),'prefix\x20--\x20PREFIX']}),this[_0x4365f7(0x9c)]=async(_0x1ccac3,_0xae16ba)=>{const _0x12368e=_0x4365f7,_0x26ed77=_0x1ccac3['guild'];if(_0xae16ba['_'][_0x12368e(0xbd)]){if(_0xae16ba['_'][_0x12368e(0xbd)]>constants[_0x12368e(0xb0)][_0x12368e(0xa5)]&&constants[_0x12368e(0xc6)](this[_0x12368e(0xc0)][_0x12368e(0xae)])){const _0x20872e=await omnic[_0x12368e(0xc3)](_0x1ccac3[_0x12368e(0xa8)])[_0x12368e(0xca)](()=>{});if(_0x20872e){if(_0x20872e===omnic[_0x12368e(0xc5)][_0x12368e(0xb4)]&&_0xae16ba['_']['length']>constants[_0x12368e(0xb0)][_0x12368e(0xb4)]['PREFIXES'])throw new errors['DiscordError'](errors[_0x12368e(0xab)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x12368e(0xc0)][_0x12368e(0x9b)][_0x12368e(0xaa)](_0x1ccac3[_0x12368e(0xa8)][_0x12368e(0xbc)][_0x12368e(0xa6)],'errors',_0x12368e(0xbb),constants[_0x12368e(0xb0)][_0x12368e(0xb4)][_0x12368e(0xa5)]));else{if(_0x20872e===omnic[_0x12368e(0xc5)][_0x12368e(0xa9)]&&_0xae16ba['_']['length']>constants[_0x12368e(0xb0)][_0x12368e(0xa9)]['PREFIXES'])throw new errors[(_0x12368e(0xc4))](errors[_0x12368e(0xab)][_0x12368e(0xbf)],this[_0x12368e(0xc0)]['locale'][_0x12368e(0xaa)](_0x1ccac3[_0x12368e(0xa8)][_0x12368e(0xbc)][_0x12368e(0xa6)],_0x12368e(0xcb),'membershipLimitPrefix',constants['LIMITS']['PLATINUM']['PREFIXES']));}}else throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x12368e(0xa3)],this['client'][_0x12368e(0x9b)][_0x12368e(0xaa)](_0x1ccac3[_0x12368e(0xa8)]['document']['language'],_0x12368e(0xcb),_0x12368e(0xb5),constants[_0x12368e(0xb0)]['PREFIXES']));}return _0x26ed77['document'][_0x12368e(0x9d)]=_0xae16ba['_'],await _0x26ed77[_0x12368e(0xbc)][_0x12368e(0xc9)](),await _0x1ccac3['channel']['send']({'embed':{'color':tesseract_1[_0x12368e(0xc8)][_0x12368e(0xc1)]['GREEN'],'description':this[_0x12368e(0xc0)]['locale'][_0x12368e(0xaa)](_0x1ccac3['guild'][_0x12368e(0xbc)][_0x12368e(0xa6)],_0x12368e(0xb2),_0x12368e(0xb6),_0x1ccac3[_0x12368e(0xa4)][_0x12368e(0xb3)],_0x26ed77[_0x12368e(0xbc)][_0x12368e(0x9d)][_0x12368e(0xb8)]('\x20\x20'))}})[_0x12368e(0xca)](()=>{});}const _0x18a81f=this['client']['configurations'][_0x12368e(0x9d)]['concat'](_0x26ed77[_0x12368e(0xbc)][_0x12368e(0x9d)]);await _0x1ccac3[_0x12368e(0xbe)][_0x12368e(0xa2)]({'embed':{'color':tesseract_1[_0x12368e(0xc8)][_0x12368e(0xc1)]['IRIS'],'description':this[_0x12368e(0xc0)]['locale']['getString'](_0x1ccac3['guild'][_0x12368e(0xbc)][_0x12368e(0xa6)],_0x12368e(0xb2),_0x12368e(0xc7)),'fields':[{'name':_0x12368e(0xb1),'value':_0x18a81f[_0x12368e(0xb8)]('\x20\x20')}]}})[_0x12368e(0xca)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/reactionAnnouncements.js b/commands/configuration/reactionAnnouncements.js index 527c0eddd..21b211740 100644 --- a/commands/configuration/reactionAnnouncements.js +++ b/commands/configuration/reactionAnnouncements.js @@ -1 +1 @@ -const a31_0x3af2=['@bastion/tesseract','constructor','locale','reactionAnnouncementsEnableWithoutAnnouncementChannel','COLORS','document','tag','Command','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','send','save','channel','apply','Constants','reactionAnnouncementsEnable','GREEN','RED','MANAGE_GUILD','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.','client','announcementsChannelId','catch','reactionAnnouncements','author','getString'];(function(_0x51a4fa,_0x28705c){const _0x3af2df=function(_0x46bf2e){while(--_0x46bf2e){_0x51a4fa['push'](_0x51a4fa['shift']());}},_0x2062a8=function(){const _0x52e449={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x197f6b,_0x1faef0,_0x1280f2,_0x12ee07){_0x12ee07=_0x12ee07||{};let _0xbab29=_0x1faef0+'='+_0x1280f2,_0x91f5c0=0x0;for(let _0x22c00b=0x0,_0x16d97d=_0x197f6b['length'];_0x22c00b<_0x16d97d;_0x22c00b++){const _0x12cf52=_0x197f6b[_0x22c00b];_0xbab29+=';\x20'+_0x12cf52;const _0x2caea5=_0x197f6b[_0x12cf52];_0x197f6b['push'](_0x2caea5),_0x16d97d=_0x197f6b['length'],_0x2caea5!==!![]&&(_0xbab29+='='+_0x2caea5);}_0x12ee07['cookie']=_0xbab29;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d8505,_0x47846d){_0x1d8505=_0x1d8505||function(_0x449207){return _0x449207;};const _0x317920=_0x1d8505(new RegExp('(?:^|;\x20)'+_0x47846d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19c048=function(_0x905501,_0xa70672){_0x905501(++_0xa70672);};return _0x19c048(_0x3af2df,_0x28705c),_0x317920?decodeURIComponent(_0x317920[0x1]):undefined;}},_0x4e7bfe=function(){const _0x20976f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x20976f['test'](_0x52e449['removeCookie']['toString']());};_0x52e449['updateCookie']=_0x4e7bfe;let _0x3ce05a='';const _0x2e2d78=_0x52e449['updateCookie']();if(!_0x2e2d78)_0x52e449['setCookie'](['*'],'counter',0x1);else _0x2e2d78?_0x3ce05a=_0x52e449['getCookie'](null,'counter'):_0x52e449['removeCookie']();};_0x2062a8();}(a31_0x3af2,0x161));const a31_0x2062=function(_0x51a4fa,_0x28705c){_0x51a4fa=_0x51a4fa-0x9f;let _0x3af2df=a31_0x3af2[_0x51a4fa];return _0x3af2df;};const _0x138a9b=a31_0x2062,a31_0x4e7bfe=function(){let _0x2e2d78=!![];return function(_0x197f6b,_0x1faef0){const _0x1280f2=_0x2e2d78?function(){const _0x579b96=a31_0x2062;if(_0x1faef0){const _0x12ee07=_0x1faef0[_0x579b96(0xb9)](_0x197f6b,arguments);return _0x1faef0=null,_0x12ee07;}}:function(){};return _0x2e2d78=![],_0x1280f2;};}(),a31_0x52e449=a31_0x4e7bfe(this,function(){const _0xbab29=function(){const _0x503835=a31_0x2062,_0x91f5c0=_0xbab29[_0x503835(0xab)](_0x503835(0xb5))()[_0x503835(0xab)](_0x503835(0xb3));return!_0x91f5c0['test'](a31_0x52e449);};return _0xbab29();});a31_0x52e449();'use strict';const tesseract_1=require(_0x138a9b(0xaa));module['exports']=class ReactionAnnouncementsCommand extends tesseract_1[_0x138a9b(0xb1)]{constructor(){const _0x4f5d59=_0x138a9b;super(_0x4f5d59(0xa7),{'description':_0x4f5d59(0xa3),'triggers':[],'arguments':{},'scope':_0x4f5d59(0xb4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x4f5d59(0xa2)],'syntax':[]}),this['exec']=async _0x22c00b=>{const _0x48fd16=_0x4f5d59,_0x16d97d=_0x22c00b[_0x48fd16(0xb4)];_0x16d97d[_0x48fd16(0xaf)][_0x48fd16(0xa7)]?(_0x16d97d[_0x48fd16(0xaf)][_0x48fd16(0xa7)]=undefined,delete _0x16d97d[_0x48fd16(0xaf)]['reactionAnnouncements']):_0x16d97d[_0x48fd16(0xaf)][_0x48fd16(0xa7)]=!![],await _0x16d97d['document'][_0x48fd16(0xb7)](),await _0x22c00b[_0x48fd16(0xb8)][_0x48fd16(0xb6)]({'embed':{'color':_0x16d97d[_0x48fd16(0xaf)][_0x48fd16(0xa7)]?tesseract_1[_0x48fd16(0xba)][_0x48fd16(0xae)][_0x48fd16(0xa0)]:tesseract_1[_0x48fd16(0xba)][_0x48fd16(0xae)][_0x48fd16(0xa1)],'description':this['client']['locale'][_0x48fd16(0xa9)](_0x22c00b[_0x48fd16(0xb4)]['document']['language'],_0x48fd16(0xb2),_0x16d97d['document']['reactionAnnouncements']?_0x48fd16(0x9f):'reactionAnnouncementsDisable',_0x22c00b[_0x48fd16(0xa8)][_0x48fd16(0xb0)])+(_0x16d97d[_0x48fd16(0xaf)][_0x48fd16(0xa5)]?'':this[_0x48fd16(0xa4)][_0x48fd16(0xac)][_0x48fd16(0xa9)](_0x22c00b['guild'][_0x48fd16(0xaf)]['language'],_0x48fd16(0xb2),_0x48fd16(0xad),_0x22c00b[_0x48fd16(0xa8)][_0x48fd16(0xb0)]))}})[_0x48fd16(0xa6)](()=>{});};}}; \ No newline at end of file +const a31_0x2c42=['announcementsChannelId','language','info','client','reactionAnnouncements','send','MANAGE_GUILD','reactionAnnouncementsDisable','catch','save','author','exec','GREEN','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','Command','locale','constructor','getString','reactionAnnouncementsEnableWithoutAnnouncementChannel','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.','Constants','tag','document','RED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','channel','test'];(function(_0x29a9a0,_0x2f2171){const _0x2c424d=function(_0x2390ee){while(--_0x2390ee){_0x29a9a0['push'](_0x29a9a0['shift']());}},_0x32dc86=function(){const _0x5967df={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a9303,_0x107462,_0x1f424d,_0x1b8aa0){_0x1b8aa0=_0x1b8aa0||{};let _0x37277f=_0x107462+'='+_0x1f424d,_0xb9862c=0x0;for(let _0x18af97=0x0,_0x26f5ad=_0x5a9303['length'];_0x18af97<_0x26f5ad;_0x18af97++){const _0x5779ca=_0x5a9303[_0x18af97];_0x37277f+=';\x20'+_0x5779ca;const _0x6b4684=_0x5a9303[_0x5779ca];_0x5a9303['push'](_0x6b4684),_0x26f5ad=_0x5a9303['length'],_0x6b4684!==!![]&&(_0x37277f+='='+_0x6b4684);}_0x1b8aa0['cookie']=_0x37277f;},'removeCookie':function(){return'dev';},'getCookie':function(_0xea33e2,_0x3831ad){_0xea33e2=_0xea33e2||function(_0xf537bf){return _0xf537bf;};const _0x1f22cc=_0xea33e2(new RegExp('(?:^|;\x20)'+_0x3831ad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43e83b=function(_0x33da52,_0x34b103){_0x33da52(++_0x34b103);};return _0x43e83b(_0x2c424d,_0x2f2171),_0x1f22cc?decodeURIComponent(_0x1f22cc[0x1]):undefined;}},_0x69df68=function(){const _0x46c28e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46c28e['test'](_0x5967df['removeCookie']['toString']());};_0x5967df['updateCookie']=_0x69df68;let _0x2985ad='';const _0xcd61b1=_0x5967df['updateCookie']();if(!_0xcd61b1)_0x5967df['setCookie'](['*'],'counter',0x1);else _0xcd61b1?_0x2985ad=_0x5967df['getCookie'](null,'counter'):_0x5967df['removeCookie']();};_0x32dc86();}(a31_0x2c42,0xc6));const a31_0x32dc=function(_0x29a9a0,_0x2f2171){_0x29a9a0=_0x29a9a0-0xd2;let _0x2c424d=a31_0x2c42[_0x29a9a0];return _0x2c424d;};const a31_0x44b30d=a31_0x32dc,a31_0x69df68=function(){let _0xcd61b1=!![];return function(_0x5a9303,_0x107462){const _0x1f424d=_0xcd61b1?function(){if(_0x107462){const _0x1b8aa0=_0x107462['apply'](_0x5a9303,arguments);return _0x107462=null,_0x1b8aa0;}}:function(){};return _0xcd61b1=![],_0x1f424d;};}(),a31_0x5967df=a31_0x69df68(this,function(){const _0x37277f=function(){const _0x452cba=a31_0x32dc,_0xb9862c=_0x37277f[_0x452cba(0xe8)](_0x452cba(0xe4))()[_0x452cba(0xe8)](_0x452cba(0xd3));return!_0xb9862c[_0x452cba(0xd6)](a31_0x5967df);};return _0x37277f();});a31_0x5967df();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class ReactionAnnouncementsCommand extends tesseract_1[a31_0x44b30d(0xe6)]{constructor(){const _0x3effe8=a31_0x44b30d;super(_0x3effe8(0xdb),{'description':_0x3effe8(0xeb),'triggers':[],'arguments':{},'scope':_0x3effe8(0xe5),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3effe8(0xdd)],'syntax':[]}),this[_0x3effe8(0xe2)]=async _0x18af97=>{const _0x46dbe6=_0x3effe8,_0x26f5ad=_0x18af97[_0x46dbe6(0xe5)];_0x26f5ad['document'][_0x46dbe6(0xdb)]?(_0x26f5ad[_0x46dbe6(0xee)][_0x46dbe6(0xdb)]=undefined,delete _0x26f5ad['document'][_0x46dbe6(0xdb)]):_0x26f5ad['document'][_0x46dbe6(0xdb)]=!![],await _0x26f5ad[_0x46dbe6(0xee)][_0x46dbe6(0xe0)](),await _0x18af97[_0x46dbe6(0xd5)][_0x46dbe6(0xdc)]({'embed':{'color':_0x26f5ad[_0x46dbe6(0xee)][_0x46dbe6(0xdb)]?tesseract_1[_0x46dbe6(0xec)][_0x46dbe6(0xd4)][_0x46dbe6(0xe3)]:tesseract_1['Constants'][_0x46dbe6(0xd4)][_0x46dbe6(0xd2)],'description':this['client'][_0x46dbe6(0xe7)][_0x46dbe6(0xe9)](_0x18af97['guild'][_0x46dbe6(0xee)][_0x46dbe6(0xd8)],_0x46dbe6(0xd9),_0x26f5ad[_0x46dbe6(0xee)][_0x46dbe6(0xdb)]?'reactionAnnouncementsEnable':_0x46dbe6(0xde),_0x18af97[_0x46dbe6(0xe1)][_0x46dbe6(0xed)])+(_0x26f5ad[_0x46dbe6(0xee)][_0x46dbe6(0xd7)]?'':this[_0x46dbe6(0xda)][_0x46dbe6(0xe7)][_0x46dbe6(0xe9)](_0x18af97['guild']['document']['language'],_0x46dbe6(0xd9),_0x46dbe6(0xea),_0x18af97[_0x46dbe6(0xe1)][_0x46dbe6(0xed)]))}})[_0x46dbe6(0xdf)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/reactionPinning.js b/commands/configuration/reactionPinning.js index aec6bb18f..4e5ee81f1 100644 --- a/commands/configuration/reactionPinning.js +++ b/commands/configuration/reactionPinning.js @@ -1 +1 @@ -const a32_0x3d4f=['catch','RED','reactionPinningDisable','locale','tag','COLORS','guild','reactionPinning','MANAGE_GUILD','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','reactionPinningEnable','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','info','channel','save','document','test','language','author','getString','Constants','exec','client'];(function(_0x391c40,_0x5b055a){const _0x3d4f7d=function(_0x43ddd0){while(--_0x43ddd0){_0x391c40['push'](_0x391c40['shift']());}},_0x5c3f0e=function(){const _0x3a0545={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e8041,_0xc8b593,_0x3d62b7,_0x17ecae){_0x17ecae=_0x17ecae||{};let _0x53f2dc=_0xc8b593+'='+_0x3d62b7,_0x3d7b2e=0x0;for(let _0x344206=0x0,_0x111b65=_0x5e8041['length'];_0x344206<_0x111b65;_0x344206++){const _0x4d1aa3=_0x5e8041[_0x344206];_0x53f2dc+=';\x20'+_0x4d1aa3;const _0x894231=_0x5e8041[_0x4d1aa3];_0x5e8041['push'](_0x894231),_0x111b65=_0x5e8041['length'],_0x894231!==!![]&&(_0x53f2dc+='='+_0x894231);}_0x17ecae['cookie']=_0x53f2dc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x13d7ab,_0x32557e){_0x13d7ab=_0x13d7ab||function(_0x3a30cc){return _0x3a30cc;};const _0x3ec22a=_0x13d7ab(new RegExp('(?:^|;\x20)'+_0x32557e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x37300a=function(_0x347b75,_0x5f0980){_0x347b75(++_0x5f0980);};return _0x37300a(_0x3d4f7d,_0x5b055a),_0x3ec22a?decodeURIComponent(_0x3ec22a[0x1]):undefined;}},_0x5266f4=function(){const _0x20201c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x20201c['test'](_0x3a0545['removeCookie']['toString']());};_0x3a0545['updateCookie']=_0x5266f4;let _0x277b9f='';const _0x2e8a24=_0x3a0545['updateCookie']();if(!_0x2e8a24)_0x3a0545['setCookie'](['*'],'counter',0x1);else _0x2e8a24?_0x277b9f=_0x3a0545['getCookie'](null,'counter'):_0x3a0545['removeCookie']();};_0x5c3f0e();}(a32_0x3d4f,0x147));const a32_0x5c3f=function(_0x391c40,_0x5b055a){_0x391c40=_0x391c40-0x1de;let _0x3d4f7d=a32_0x3d4f[_0x391c40];return _0x3d4f7d;};const a32_0x5266f4=function(){let _0x2e8a24=!![];return function(_0x5e8041,_0xc8b593){const _0x3d62b7=_0x2e8a24?function(){if(_0xc8b593){const _0x17ecae=_0xc8b593['apply'](_0x5e8041,arguments);return _0xc8b593=null,_0x17ecae;}}:function(){};return _0x2e8a24=![],_0x3d62b7;};}(),a32_0x3a0545=a32_0x5266f4(this,function(){const _0x53f2dc=function(){const _0x23d488=a32_0x5c3f,_0x3d7b2e=_0x53f2dc[_0x23d488(0x1e8)](_0x23d488(0x1e6))()[_0x23d488(0x1e8)](_0x23d488(0x1e9));return!_0x3d7b2e[_0x23d488(0x1ee)](a32_0x3a0545);};return _0x53f2dc();});a32_0x3a0545();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class ReactionPinningCommand extends tesseract_1['Command']{constructor(){const _0x3d81d9=a32_0x5c3f;super(_0x3d81d9(0x1e3),{'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':_0x3d81d9(0x1e2),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3d81d9(0x1e4)],'syntax':[]}),this[_0x3d81d9(0x1f3)]=async _0x344206=>{const _0x2ce3c8=_0x3d81d9,_0x111b65=_0x344206[_0x2ce3c8(0x1e2)];_0x111b65[_0x2ce3c8(0x1ed)][_0x2ce3c8(0x1e3)]?(_0x111b65[_0x2ce3c8(0x1ed)][_0x2ce3c8(0x1e3)]=undefined,delete _0x111b65['document']['reactionPinning']):_0x111b65[_0x2ce3c8(0x1ed)][_0x2ce3c8(0x1e3)]=!![],await _0x111b65[_0x2ce3c8(0x1ed)][_0x2ce3c8(0x1ec)](),await _0x344206[_0x2ce3c8(0x1eb)][_0x2ce3c8(0x1e5)]({'embed':{'color':_0x111b65['document'][_0x2ce3c8(0x1e3)]?tesseract_1[_0x2ce3c8(0x1f2)][_0x2ce3c8(0x1e1)]['GREEN']:tesseract_1['Constants'][_0x2ce3c8(0x1e1)][_0x2ce3c8(0x1f6)],'description':this[_0x2ce3c8(0x1f4)][_0x2ce3c8(0x1df)][_0x2ce3c8(0x1f1)](_0x344206[_0x2ce3c8(0x1e2)][_0x2ce3c8(0x1ed)][_0x2ce3c8(0x1ef)],_0x2ce3c8(0x1ea),_0x111b65[_0x2ce3c8(0x1ed)]['reactionPinning']?_0x2ce3c8(0x1e7):_0x2ce3c8(0x1de),_0x344206[_0x2ce3c8(0x1f0)][_0x2ce3c8(0x1e0)])}})[_0x2ce3c8(0x1f5)](()=>{});};}}; \ No newline at end of file +const a32_0x1eea=['RED','COLORS','MANAGE_GUILD','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','author','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.','constructor','getString','Command','GREEN','info','language','reactionPinningEnable','@bastion/tesseract','document','test','reactionPinningDisable','tag','channel','send','reactionPinning'];(function(_0x1b9109,_0x40cd2d){const _0x1eeabe=function(_0x3e8083){while(--_0x3e8083){_0x1b9109['push'](_0x1b9109['shift']());}},_0x5a210a=function(){const _0x41db44={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ac83b,_0x3ea01b,_0x294a07,_0x5b1460){_0x5b1460=_0x5b1460||{};let _0x280b64=_0x3ea01b+'='+_0x294a07,_0xfb86c=0x0;for(let _0x2b4d4e=0x0,_0x32e880=_0x1ac83b['length'];_0x2b4d4e<_0x32e880;_0x2b4d4e++){const _0x527312=_0x1ac83b[_0x2b4d4e];_0x280b64+=';\x20'+_0x527312;const _0x199e86=_0x1ac83b[_0x527312];_0x1ac83b['push'](_0x199e86),_0x32e880=_0x1ac83b['length'],_0x199e86!==!![]&&(_0x280b64+='='+_0x199e86);}_0x5b1460['cookie']=_0x280b64;},'removeCookie':function(){return'dev';},'getCookie':function(_0x265e9f,_0x4a25ab){_0x265e9f=_0x265e9f||function(_0xec80f4){return _0xec80f4;};const _0x31af92=_0x265e9f(new RegExp('(?:^|;\x20)'+_0x4a25ab['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x209904=function(_0x3a6071,_0x27923b){_0x3a6071(++_0x27923b);};return _0x209904(_0x1eeabe,_0x40cd2d),_0x31af92?decodeURIComponent(_0x31af92[0x1]):undefined;}},_0x1e00a7=function(){const _0x2f8007=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f8007['test'](_0x41db44['removeCookie']['toString']());};_0x41db44['updateCookie']=_0x1e00a7;let _0x441c94='';const _0x5774cd=_0x41db44['updateCookie']();if(!_0x5774cd)_0x41db44['setCookie'](['*'],'counter',0x1);else _0x5774cd?_0x441c94=_0x41db44['getCookie'](null,'counter'):_0x41db44['removeCookie']();};_0x5a210a();}(a32_0x1eea,0x147));const a32_0x5a21=function(_0x1b9109,_0x40cd2d){_0x1b9109=_0x1b9109-0xcd;let _0x1eeabe=a32_0x1eea[_0x1b9109];return _0x1eeabe;};const a32_0x50d345=a32_0x5a21,a32_0x1e00a7=function(){let _0x5774cd=!![];return function(_0x1ac83b,_0x3ea01b){const _0x294a07=_0x5774cd?function(){if(_0x3ea01b){const _0x5b1460=_0x3ea01b['apply'](_0x1ac83b,arguments);return _0x3ea01b=null,_0x5b1460;}}:function(){};return _0x5774cd=![],_0x294a07;};}(),a32_0x41db44=a32_0x1e00a7(this,function(){const _0x280b64=function(){const _0x4695bd=a32_0x5a21,_0xfb86c=_0x280b64[_0x4695bd(0xd7)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4695bd(0xd7)](_0x4695bd(0xd3));return!_0xfb86c[_0x4695bd(0xe0)](a32_0x41db44);};return _0x280b64();});a32_0x41db44();'use strict';const tesseract_1=require(a32_0x50d345(0xde));module['exports']=class ReactionPinningCommand extends tesseract_1[a32_0x50d345(0xd9)]{constructor(){const _0x3b2786=a32_0x50d345;super(_0x3b2786(0xcf),{'description':_0x3b2786(0xd6),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3b2786(0xd2)],'syntax':[]}),this['exec']=async _0x2b4d4e=>{const _0x475343=_0x3b2786,_0x32e880=_0x2b4d4e['guild'];_0x32e880['document'][_0x475343(0xcf)]?(_0x32e880[_0x475343(0xdf)]['reactionPinning']=undefined,delete _0x32e880[_0x475343(0xdf)][_0x475343(0xcf)]):_0x32e880[_0x475343(0xdf)][_0x475343(0xcf)]=!![],await _0x32e880[_0x475343(0xdf)]['save'](),await _0x2b4d4e[_0x475343(0xcd)][_0x475343(0xce)]({'embed':{'color':_0x32e880['document'][_0x475343(0xcf)]?tesseract_1['Constants'][_0x475343(0xd1)][_0x475343(0xda)]:tesseract_1[_0x475343(0xd4)][_0x475343(0xd1)][_0x475343(0xd0)],'description':this['client']['locale'][_0x475343(0xd8)](_0x2b4d4e['guild'][_0x475343(0xdf)][_0x475343(0xdc)],_0x475343(0xdb),_0x32e880[_0x475343(0xdf)][_0x475343(0xcf)]?_0x475343(0xdd):_0x475343(0xe1),_0x2b4d4e[_0x475343(0xd5)][_0x475343(0xe2)])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/reports.js b/commands/configuration/reports.js index 10ab86c0e..8f2138a32 100644 --- a/commands/configuration/reports.js +++ b/commands/configuration/reports.js @@ -1 +1 @@ -const a33_0x3b18=['reportsEnable','channel','reports','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','MANAGE_GUILD','GREEN','client','reportsChannelId','tag','Constants','locale','info','save','@bastion/tesseract','apply','catch','language','send','exports','reports\x20--disable','Command','exec','constructor','guild','getString','reportsDisable','author','document'];(function(_0x2b2d75,_0x4750f3){const _0x3b18aa=function(_0x1673cb){while(--_0x1673cb){_0x2b2d75['push'](_0x2b2d75['shift']());}},_0x54caa0=function(){const _0x357ac6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1039d,_0xc2964f,_0x33b7fb,_0x3ba40b){_0x3ba40b=_0x3ba40b||{};let _0x245e8c=_0xc2964f+'='+_0x33b7fb,_0x2db9bd=0x0;for(let _0x5b23f9=0x0,_0x466b25=_0x1039d['length'];_0x5b23f9<_0x466b25;_0x5b23f9++){const _0x2c7aa2=_0x1039d[_0x5b23f9];_0x245e8c+=';\x20'+_0x2c7aa2;const _0x129f53=_0x1039d[_0x2c7aa2];_0x1039d['push'](_0x129f53),_0x466b25=_0x1039d['length'],_0x129f53!==!![]&&(_0x245e8c+='='+_0x129f53);}_0x3ba40b['cookie']=_0x245e8c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x30da0a,_0x327e87){_0x30da0a=_0x30da0a||function(_0x3b1745){return _0x3b1745;};const _0x4ac97f=_0x30da0a(new RegExp('(?:^|;\x20)'+_0x327e87['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1132f5=function(_0x43d74d,_0x366f8a){_0x43d74d(++_0x366f8a);};return _0x1132f5(_0x3b18aa,_0x4750f3),_0x4ac97f?decodeURIComponent(_0x4ac97f[0x1]):undefined;}},_0x4e386f=function(){const _0x51e4f9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x51e4f9['test'](_0x357ac6['removeCookie']['toString']());};_0x357ac6['updateCookie']=_0x4e386f;let _0x35eb87='';const _0x23c094=_0x357ac6['updateCookie']();if(!_0x23c094)_0x357ac6['setCookie'](['*'],'counter',0x1);else _0x23c094?_0x35eb87=_0x357ac6['getCookie'](null,'counter'):_0x357ac6['removeCookie']();};_0x54caa0();}(a33_0x3b18,0x143));const a33_0x54ca=function(_0x2b2d75,_0x4750f3){_0x2b2d75=_0x2b2d75-0x11a;let _0x3b18aa=a33_0x3b18[_0x2b2d75];return _0x3b18aa;};const _0x55f622=a33_0x54ca,a33_0x4e386f=function(){let _0x23c094=!![];return function(_0x1039d,_0xc2964f){const _0x33b7fb=_0x23c094?function(){const _0x4751c1=a33_0x54ca;if(_0xc2964f){const _0x3ba40b=_0xc2964f[_0x4751c1(0x125)](_0x1039d,arguments);return _0xc2964f=null,_0x3ba40b;}}:function(){};return _0x23c094=![],_0x33b7fb;};}(),a33_0x357ac6=a33_0x4e386f(this,function(){const _0x245e8c=function(){const _0x23865a=a33_0x54ca,_0x2db9bd=_0x245e8c[_0x23865a(0x12d)](_0x23865a(0x11a))()[_0x23865a(0x12d)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2db9bd['test'](a33_0x357ac6);};return _0x245e8c();});a33_0x357ac6();'use strict';const tesseract_1=require(_0x55f622(0x124));module[_0x55f622(0x129)]=class Reports extends tesseract_1[_0x55f622(0x12b)]{constructor(){const _0x557962=_0x55f622;super(_0x557962(0x135),{'description':'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.','triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':_0x557962(0x12e),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x557962(0x11b)],'syntax':[_0x557962(0x135),_0x557962(0x12a)]}),this[_0x557962(0x12c)]=async(_0x5b23f9,_0x466b25)=>{const _0x2f7691=_0x557962,_0x2c7aa2=_0x5b23f9[_0x2f7691(0x12e)];_0x466b25['disable']?(_0x2c7aa2['document'][_0x2f7691(0x11e)]=undefined,delete _0x2c7aa2['document'][_0x2f7691(0x11e)]):_0x2c7aa2[_0x2f7691(0x132)][_0x2f7691(0x11e)]=_0x5b23f9[_0x2f7691(0x134)]['id'],await _0x2c7aa2[_0x2f7691(0x132)][_0x2f7691(0x123)](),await _0x5b23f9['channel'][_0x2f7691(0x128)]({'embed':{'color':_0x2c7aa2['document'][_0x2f7691(0x11e)]?tesseract_1['Constants']['COLORS'][_0x2f7691(0x11c)]:tesseract_1[_0x2f7691(0x120)][_0x2f7691(0x136)]['RED'],'description':this[_0x2f7691(0x11d)][_0x2f7691(0x121)][_0x2f7691(0x12f)](_0x5b23f9[_0x2f7691(0x12e)][_0x2f7691(0x132)][_0x2f7691(0x127)],_0x2f7691(0x122),_0x2c7aa2[_0x2f7691(0x132)]['reportsChannelId']?_0x2f7691(0x133):_0x2f7691(0x130),_0x5b23f9[_0x2f7691(0x131)][_0x2f7691(0x11f)])}})[_0x2f7691(0x126)](()=>{});};}}; \ No newline at end of file +const a33_0x3599=['disable','reportsDisable','language','COLORS','reportsEnable','guild','exec','MANAGE_GUILD','@bastion/tesseract','document','Command','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.','save','reportsChannelId','Constants','author','info','send','reports\x20--disable','test','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','catch','reports','tag','locale','getString','RED','channel','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x14aa16,_0x75744a){const _0x3599d5=function(_0x4ccf60){while(--_0x4ccf60){_0x14aa16['push'](_0x14aa16['shift']());}},_0x2c03b6=function(){const _0x1e93e4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x335278,_0x5daddb,_0x19fbe1,_0x5abe01){_0x5abe01=_0x5abe01||{};let _0x47ba00=_0x5daddb+'='+_0x19fbe1,_0x139770=0x0;for(let _0x326ee0=0x0,_0x5c0a53=_0x335278['length'];_0x326ee0<_0x5c0a53;_0x326ee0++){const _0x38a125=_0x335278[_0x326ee0];_0x47ba00+=';\x20'+_0x38a125;const _0x480081=_0x335278[_0x38a125];_0x335278['push'](_0x480081),_0x5c0a53=_0x335278['length'],_0x480081!==!![]&&(_0x47ba00+='='+_0x480081);}_0x5abe01['cookie']=_0x47ba00;},'removeCookie':function(){return'dev';},'getCookie':function(_0x227584,_0x25fda1){_0x227584=_0x227584||function(_0xc40e44){return _0xc40e44;};const _0x46f96f=_0x227584(new RegExp('(?:^|;\x20)'+_0x25fda1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x177a51=function(_0x1e7c0a,_0x21a785){_0x1e7c0a(++_0x21a785);};return _0x177a51(_0x3599d5,_0x75744a),_0x46f96f?decodeURIComponent(_0x46f96f[0x1]):undefined;}},_0x450a84=function(){const _0x256dcc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x256dcc['test'](_0x1e93e4['removeCookie']['toString']());};_0x1e93e4['updateCookie']=_0x450a84;let _0x4e6575='';const _0x302489=_0x1e93e4['updateCookie']();if(!_0x302489)_0x1e93e4['setCookie'](['*'],'counter',0x1);else _0x302489?_0x4e6575=_0x1e93e4['getCookie'](null,'counter'):_0x1e93e4['removeCookie']();};_0x2c03b6();}(a33_0x3599,0x1d9));const a33_0x2c03=function(_0x14aa16,_0x75744a){_0x14aa16=_0x14aa16-0x15d;let _0x3599d5=a33_0x3599[_0x14aa16];return _0x3599d5;};const a33_0x5654d9=a33_0x2c03,a33_0x450a84=function(){let _0x302489=!![];return function(_0x335278,_0x5daddb){const _0x19fbe1=_0x302489?function(){if(_0x5daddb){const _0x5abe01=_0x5daddb['apply'](_0x335278,arguments);return _0x5daddb=null,_0x5abe01;}}:function(){};return _0x302489=![],_0x19fbe1;};}(),a33_0x1e93e4=a33_0x450a84(this,function(){const _0x47ba00=function(){const _0x179e53=a33_0x2c03,_0x139770=_0x47ba00[_0x179e53(0x169)](_0x179e53(0x16a))()[_0x179e53(0x169)](_0x179e53(0x173));return!_0x139770[_0x179e53(0x168)](a33_0x1e93e4);};return _0x47ba00();});a33_0x1e93e4();'use strict';const tesseract_1=require(a33_0x5654d9(0x15d));module[a33_0x5654d9(0x172)]=class Reports extends tesseract_1[a33_0x5654d9(0x15f)]{constructor(){const _0x54d778=a33_0x5654d9;super(_0x54d778(0x16c),{'description':_0x54d778(0x160),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[_0x54d778(0x174)]},'scope':_0x54d778(0x179),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x54d778(0x17b)],'syntax':[_0x54d778(0x16c),_0x54d778(0x167)]}),this[_0x54d778(0x17a)]=async(_0x326ee0,_0x5c0a53)=>{const _0x243d97=_0x54d778,_0x38a125=_0x326ee0[_0x243d97(0x179)];_0x5c0a53['disable']?(_0x38a125['document'][_0x243d97(0x162)]=undefined,delete _0x38a125[_0x243d97(0x15e)][_0x243d97(0x162)]):_0x38a125[_0x243d97(0x15e)]['reportsChannelId']=_0x326ee0[_0x243d97(0x171)]['id'],await _0x38a125[_0x243d97(0x15e)][_0x243d97(0x161)](),await _0x326ee0[_0x243d97(0x171)][_0x243d97(0x166)]({'embed':{'color':_0x38a125[_0x243d97(0x15e)][_0x243d97(0x162)]?tesseract_1[_0x243d97(0x163)][_0x243d97(0x177)]['GREEN']:tesseract_1['Constants'][_0x243d97(0x177)][_0x243d97(0x170)],'description':this['client'][_0x243d97(0x16e)][_0x243d97(0x16f)](_0x326ee0[_0x243d97(0x179)][_0x243d97(0x15e)][_0x243d97(0x176)],_0x243d97(0x165),_0x38a125[_0x243d97(0x15e)][_0x243d97(0x162)]?_0x243d97(0x178):_0x243d97(0x175),_0x326ee0[_0x243d97(0x164)][_0x243d97(0x16d)])}})[_0x243d97(0x16b)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/selfRoles.js b/commands/configuration/selfRoles.js index 192ec5404..1e6f6c5c9 100644 --- a/commands/configuration/selfRoles.js +++ b/commands/configuration/selfRoles.js @@ -1 +1 @@ -const a34_0x46a2=['IRIS','LIMITED_PREMIUM_MEMBERSHIP','selfRolesRemove','membershipLimitSelfRoles','client','fetchPremiumTier','Command','DiscordError','user','join','default','document','push','findByIdAndUpdate','PREMIUM_MEMBERSHIP_REQUIRED','COLORS','send','resolveRole','MANAGE_ROLES','test','selfRoles\x20--add\x20ROLE','Constants','remove','roles','selfRolesList','../../utils/omnic','info','GREEN','length','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','@bastion/tesseract','PremiumTier','../../utils/constants','roleNotFound','return\x20/\x22\x20+\x20this\x20+\x20\x22/','LIMITS','selfRoles','locale','name','errors','../../utils/errors','_id','RED','author','GOLD','BASTION_ERROR_TYPE','exec','cache','add','ROLE_NOT_FOUND','language','exports','Self\x20Roles','selfRoles\x20--remove\x20ROLE','PLATINUM','guild','catch','channel','resolver','get','SELF_ROLES','has','getString','tag'];(function(_0x6f0c76,_0x4f0cc1){const _0x46a274=function(_0x127e14){while(--_0x127e14){_0x6f0c76['push'](_0x6f0c76['shift']());}},_0x6f06e8=function(){const _0x403af7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1f1af5,_0x28e6e7,_0x50e23f,_0x52c1ac){_0x52c1ac=_0x52c1ac||{};let _0x9441be=_0x28e6e7+'='+_0x50e23f,_0x28796d=0x0;for(let _0x3f05c5=0x0,_0x5bea6b=_0x1f1af5['length'];_0x3f05c5<_0x5bea6b;_0x3f05c5++){const _0x14d272=_0x1f1af5[_0x3f05c5];_0x9441be+=';\x20'+_0x14d272;const _0xff6496=_0x1f1af5[_0x14d272];_0x1f1af5['push'](_0xff6496),_0x5bea6b=_0x1f1af5['length'],_0xff6496!==!![]&&(_0x9441be+='='+_0xff6496);}_0x52c1ac['cookie']=_0x9441be;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a6be6,_0x3ae140){_0x5a6be6=_0x5a6be6||function(_0x4edaf4){return _0x4edaf4;};const _0x37b978=_0x5a6be6(new RegExp('(?:^|;\x20)'+_0x3ae140['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23362a=function(_0x2ca713,_0xe5db7e){_0x2ca713(++_0xe5db7e);};return _0x23362a(_0x46a274,_0x4f0cc1),_0x37b978?decodeURIComponent(_0x37b978[0x1]):undefined;}},_0x652652=function(){const _0x53f2a4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x53f2a4['test'](_0x403af7['removeCookie']['toString']());};_0x403af7['updateCookie']=_0x652652;let _0x512465='';const _0x3b25f0=_0x403af7['updateCookie']();if(!_0x3b25f0)_0x403af7['setCookie'](['*'],'counter',0x1);else _0x3b25f0?_0x512465=_0x403af7['getCookie'](null,'counter'):_0x403af7['removeCookie']();};_0x6f06e8();}(a34_0x46a2,0x162));const a34_0x6f06=function(_0x6f0c76,_0x4f0cc1){_0x6f0c76=_0x6f0c76-0x1a3;let _0x46a274=a34_0x46a2[_0x6f0c76];return _0x46a274;};const _0x4b15d6=a34_0x6f06,a34_0x652652=function(){let _0x3b25f0=!![];return function(_0x1f1af5,_0x28e6e7){const _0x50e23f=_0x3b25f0?function(){const _0x2b0779=a34_0x6f06;if(_0x28e6e7){const _0x52c1ac=_0x28e6e7[_0x2b0779(0x1aa)](_0x1f1af5,arguments);return _0x28e6e7=null,_0x52c1ac;}}:function(){};return _0x3b25f0=![],_0x50e23f;};}(),a34_0x403af7=a34_0x652652(this,function(){const _0x9441be=function(){const _0x4582e3=a34_0x6f06,_0x28796d=_0x9441be['constructor'](_0x4582e3(0x1af))()[_0x4582e3(0x1a8)](_0x4582e3(0x1a9));return!_0x28796d[_0x4582e3(0x1e0)](a34_0x403af7);};return _0x9441be();});a34_0x403af7();'use strict';const tesseract_1=require(_0x4b15d6(0x1ab)),Role_1=require('../../models/Role'),constants=require(_0x4b15d6(0x1ad)),errors=require(_0x4b15d6(0x1b5)),omnic=require(_0x4b15d6(0x1a4));module[_0x4b15d6(0x1c0)]=class SelfRoles extends tesseract_1[_0x4b15d6(0x1d3)]{constructor(){const _0x212a49=_0x4b15d6;super(_0x212a49(0x1b1),{'description':'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.','triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'array':[_0x212a49(0x1bd),_0x212a49(0x1e3)],'string':[_0x212a49(0x1bd),_0x212a49(0x1e3)]},'scope':_0x212a49(0x1c4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[_0x212a49(0x1df)],'syntax':[_0x212a49(0x1b1),_0x212a49(0x1e1),_0x212a49(0x1c2)]}),this[_0x212a49(0x1bb)]=async(_0x3f05c5,_0x5bea6b)=>{const _0x46e150=_0x212a49;if(_0x5bea6b[_0x46e150(0x1bd)]){if(constants['isPublicBastion'](this['client'][_0x46e150(0x1d5)])){const _0xff6496=await Role_1[_0x46e150(0x1d7)]['countDocuments']({'guild':_0x3f05c5[_0x46e150(0x1c4)]['id'],'selfAssignable':!![]});if(_0xff6496>=constants[_0x46e150(0x1b0)][_0x46e150(0x1c9)]){const _0x5a6be6=await omnic[_0x46e150(0x1d2)](_0x3f05c5['guild'])[_0x46e150(0x1c5)](()=>{});if(_0x5a6be6){if(_0x5a6be6===omnic[_0x46e150(0x1ac)][_0x46e150(0x1b9)]&&_0xff6496>=constants[_0x46e150(0x1b0)][_0x46e150(0x1b9)][_0x46e150(0x1c9)])throw new errors[(_0x46e150(0x1d4))](errors[_0x46e150(0x1ba)][_0x46e150(0x1ce)],this[_0x46e150(0x1d1)][_0x46e150(0x1b2)][_0x46e150(0x1cb)](_0x3f05c5[_0x46e150(0x1c4)]['document'][_0x46e150(0x1bf)],_0x46e150(0x1b4),_0x46e150(0x1d0),constants[_0x46e150(0x1b0)]['GOLD']['SELF_ROLES']));else{if(_0x5a6be6===omnic[_0x46e150(0x1ac)]['PLATINUM']&&_0xff6496>=constants[_0x46e150(0x1b0)][_0x46e150(0x1c3)][_0x46e150(0x1c9)])throw new errors[(_0x46e150(0x1d4))](errors[_0x46e150(0x1ba)][_0x46e150(0x1ce)],this[_0x46e150(0x1d1)][_0x46e150(0x1b2)][_0x46e150(0x1cb)](_0x3f05c5[_0x46e150(0x1c4)][_0x46e150(0x1d8)][_0x46e150(0x1bf)],_0x46e150(0x1b4),_0x46e150(0x1d0),constants[_0x46e150(0x1b0)][_0x46e150(0x1c3)][_0x46e150(0x1c9)]));}}else throw new errors[(_0x46e150(0x1d4))](errors[_0x46e150(0x1ba)][_0x46e150(0x1db)],this['client'][_0x46e150(0x1b2)]['getString'](_0x3f05c5['guild'][_0x46e150(0x1d8)][_0x46e150(0x1bf)],_0x46e150(0x1b4),'premiumSelfRoles',constants[_0x46e150(0x1b0)][_0x46e150(0x1c9)]));}}const _0x14d272=this[_0x46e150(0x1d1)][_0x46e150(0x1c7)][_0x46e150(0x1de)](_0x3f05c5[_0x46e150(0x1c4)],_0x5bea6b[_0x46e150(0x1bd)][_0x46e150(0x1d6)]('\x20'));if(!_0x14d272)throw new errors[(_0x46e150(0x1d4))](errors[_0x46e150(0x1ba)][_0x46e150(0x1be)],this['client'][_0x46e150(0x1b2)]['getString'](_0x3f05c5['guild']['document'][_0x46e150(0x1bf)],'errors',_0x46e150(0x1ae)));await Role_1[_0x46e150(0x1d7)][_0x46e150(0x1da)](_0x14d272['id'],{'_id':_0x14d272['id'],'guild':_0x3f05c5['guild']['id'],'selfAssignable':!![]},{'upsert':!![]}),await _0x3f05c5[_0x46e150(0x1c6)][_0x46e150(0x1dd)]({'embed':{'color':tesseract_1[_0x46e150(0x1e2)][_0x46e150(0x1dc)][_0x46e150(0x1a6)],'description':this[_0x46e150(0x1d1)][_0x46e150(0x1b2)][_0x46e150(0x1cb)](_0x3f05c5['guild'][_0x46e150(0x1d8)]['language'],_0x46e150(0x1a5),'selfRolesAdd',_0x3f05c5[_0x46e150(0x1b8)]['tag'],_0x14d272[_0x46e150(0x1b3)]),'footer':{'text':_0x14d272['id']}}})[_0x46e150(0x1c5)](()=>{});}else{if(_0x5bea6b['remove']){const _0x3ae140=this['client'][_0x46e150(0x1c7)][_0x46e150(0x1de)](_0x3f05c5['guild'],_0x5bea6b[_0x46e150(0x1e3)]['join']('\x20'));if(!_0x3ae140)throw new errors[(_0x46e150(0x1d4))](errors[_0x46e150(0x1ba)][_0x46e150(0x1be)],this[_0x46e150(0x1d1)][_0x46e150(0x1b2)][_0x46e150(0x1cb)](_0x3f05c5[_0x46e150(0x1c4)][_0x46e150(0x1d8)][_0x46e150(0x1bf)],_0x46e150(0x1b4),_0x46e150(0x1ae)));await Role_1[_0x46e150(0x1d7)][_0x46e150(0x1da)](_0x3ae140['id'],{'$unset':{'selfAssignable':0x1}}),await _0x3f05c5[_0x46e150(0x1c6)][_0x46e150(0x1dd)]({'embed':{'color':tesseract_1['Constants'][_0x46e150(0x1dc)][_0x46e150(0x1b7)],'description':this['client']['locale']['getString'](_0x3f05c5[_0x46e150(0x1c4)][_0x46e150(0x1d8)]['language'],'info',_0x46e150(0x1cf),_0x3f05c5['author'][_0x46e150(0x1cc)],_0x3ae140[_0x46e150(0x1b3)]),'footer':{'text':_0x3ae140['id']}}})[_0x46e150(0x1c5)](()=>{});}else{const _0x37b978=await Role_1[_0x46e150(0x1d7)]['find']({'guild':_0x3f05c5[_0x46e150(0x1c4)]['id'],'selfAssignable':!![]});if(!_0x37b978[_0x46e150(0x1a7)])throw new Error(this[_0x46e150(0x1d1)]['locale'][_0x46e150(0x1cb)](_0x3f05c5[_0x46e150(0x1c4)]['document'][_0x46e150(0x1bf)],_0x46e150(0x1b4),'noSelfRoles'));const _0x23362a=[];for(const _0x4edaf4 of _0x37b978){!_0x3f05c5[_0x46e150(0x1c4)][_0x46e150(0x1e4)][_0x46e150(0x1bc)][_0x46e150(0x1ca)](_0x4edaf4['_id'])&&await _0x4edaf4[_0x46e150(0x1e3)]()[_0x46e150(0x1c5)](()=>{}),_0x23362a[_0x46e150(0x1d9)]({'name':_0x3f05c5[_0x46e150(0x1c4)][_0x46e150(0x1e4)][_0x46e150(0x1bc)][_0x46e150(0x1c8)](_0x4edaf4[_0x46e150(0x1b6)])[_0x46e150(0x1b3)]||'-','value':_0x4edaf4[_0x46e150(0x1b6)]});}await _0x3f05c5[_0x46e150(0x1c6)]['send']({'embed':{'color':tesseract_1[_0x46e150(0x1e2)][_0x46e150(0x1dc)][_0x46e150(0x1cd)],'title':_0x46e150(0x1c1),'description':this[_0x46e150(0x1d1)][_0x46e150(0x1b2)][_0x46e150(0x1cb)](_0x3f05c5[_0x46e150(0x1c4)][_0x46e150(0x1d8)][_0x46e150(0x1bf)],_0x46e150(0x1a5),_0x46e150(0x1a3)),'fields':_0x23362a}})[_0x46e150(0x1c5)](()=>{});}}};}}; \ No newline at end of file +const a34_0x309a=['noSelfRoles','remove','join','push','info','resolver','document','user','COLORS','exports','IRIS','guild','@bastion/tesseract','catch','findByIdAndUpdate','SELF_ROLES','../../utils/omnic','../../models/Role','LIMITED_PREMIUM_MEMBERSHIP','../../utils/errors','selfRolesList','name','language','fetchPremiumTier','PLATINUM','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','cache','add','premiumSelfRoles','isPublicBastion','constructor','DiscordError','resolveRole','tag','RED','selfRoles','PREMIUM_MEMBERSHIP_REQUIRED','channel','MANAGE_ROLES','Constants','errors','LIMITS','getString','locale','client','PremiumTier','GOLD','GREEN','find','get','roleNotFound','membershipLimitSelfRoles','ROLE_NOT_FOUND','_id','selfRolesAdd','selfRolesRemove','length','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.','BASTION_ERROR_TYPE','apply','roles','return\x20/\x22\x20+\x20this\x20+\x20\x22/','has','Command','author','Self\x20Roles','default'];(function(_0x2ec6c5,_0x27709f){const _0x309a07=function(_0x530aac){while(--_0x530aac){_0x2ec6c5['push'](_0x2ec6c5['shift']());}},_0x12c5f2=function(){const _0x3f33c2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x20342f,_0x288dfb,_0x51ba51,_0x233b02){_0x233b02=_0x233b02||{};let _0x2a82b3=_0x288dfb+'='+_0x51ba51,_0x58af3d=0x0;for(let _0x20fda2=0x0,_0x23e30b=_0x20342f['length'];_0x20fda2<_0x23e30b;_0x20fda2++){const _0x1112a4=_0x20342f[_0x20fda2];_0x2a82b3+=';\x20'+_0x1112a4;const _0xb0f2d8=_0x20342f[_0x1112a4];_0x20342f['push'](_0xb0f2d8),_0x23e30b=_0x20342f['length'],_0xb0f2d8!==!![]&&(_0x2a82b3+='='+_0xb0f2d8);}_0x233b02['cookie']=_0x2a82b3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4186cc,_0x12308c){_0x4186cc=_0x4186cc||function(_0x2b1de7){return _0x2b1de7;};const _0x19332f=_0x4186cc(new RegExp('(?:^|;\x20)'+_0x12308c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1ef3d1=function(_0x204ec0,_0x598bb6){_0x204ec0(++_0x598bb6);};return _0x1ef3d1(_0x309a07,_0x27709f),_0x19332f?decodeURIComponent(_0x19332f[0x1]):undefined;}},_0x194790=function(){const _0xff4ee7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xff4ee7['test'](_0x3f33c2['removeCookie']['toString']());};_0x3f33c2['updateCookie']=_0x194790;let _0x512963='';const _0xca57f2=_0x3f33c2['updateCookie']();if(!_0xca57f2)_0x3f33c2['setCookie'](['*'],'counter',0x1);else _0xca57f2?_0x512963=_0x3f33c2['getCookie'](null,'counter'):_0x3f33c2['removeCookie']();};_0x12c5f2();}(a34_0x309a,0x1e8));const a34_0x12c5=function(_0x2ec6c5,_0x27709f){_0x2ec6c5=_0x2ec6c5-0x1a7;let _0x309a07=a34_0x309a[_0x2ec6c5];return _0x309a07;};const a34_0x131ed9=a34_0x12c5,a34_0x194790=function(){let _0xca57f2=!![];return function(_0x20342f,_0x288dfb){const _0x51ba51=_0xca57f2?function(){const _0x51029e=a34_0x12c5;if(_0x288dfb){const _0x233b02=_0x288dfb[_0x51029e(0x1d7)](_0x20342f,arguments);return _0x288dfb=null,_0x233b02;}}:function(){};return _0xca57f2=![],_0x51ba51;};}(),a34_0x3f33c2=a34_0x194790(this,function(){const _0x2a82b3=function(){const _0x21aac6=a34_0x12c5,_0x58af3d=_0x2a82b3[_0x21aac6(0x1ba)](_0x21aac6(0x1d9))()[_0x21aac6(0x1ba)](_0x21aac6(0x1b4));return!_0x58af3d['test'](a34_0x3f33c2);};return _0x2a82b3();});a34_0x3f33c2();'use strict';const tesseract_1=require(a34_0x131ed9(0x1a7)),Role_1=require(a34_0x131ed9(0x1ac)),constants=require('../../utils/constants'),errors=require(a34_0x131ed9(0x1ae)),omnic=require(a34_0x131ed9(0x1ab));module[a34_0x131ed9(0x1e8)]=class SelfRoles extends tesseract_1[a34_0x131ed9(0x1db)]{constructor(){const _0x165baf=a34_0x131ed9;super(_0x165baf(0x1bf),{'description':_0x165baf(0x1d5),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'array':[_0x165baf(0x1b7),_0x165baf(0x1e0)],'string':[_0x165baf(0x1b7),_0x165baf(0x1e0)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x165baf(0x1c2)],'userPermissions':[_0x165baf(0x1c2)],'syntax':['selfRoles','selfRoles\x20--add\x20ROLE','selfRoles\x20--remove\x20ROLE']}),this['exec']=async(_0x20fda2,_0x23e30b)=>{const _0x1d7c9e=_0x165baf;if(_0x23e30b[_0x1d7c9e(0x1b7)]){if(constants[_0x1d7c9e(0x1b9)](this['client'][_0x1d7c9e(0x1e6)])){const _0xb0f2d8=await Role_1['default']['countDocuments']({'guild':_0x20fda2[_0x1d7c9e(0x1ea)]['id'],'selfAssignable':!![]});if(_0xb0f2d8>=constants['LIMITS'][_0x1d7c9e(0x1aa)]){const _0x4186cc=await omnic[_0x1d7c9e(0x1b2)](_0x20fda2[_0x1d7c9e(0x1ea)])[_0x1d7c9e(0x1a8)](()=>{});if(_0x4186cc){if(_0x4186cc===omnic[_0x1d7c9e(0x1c9)][_0x1d7c9e(0x1ca)]&&_0xb0f2d8>=constants['LIMITS']['GOLD']['SELF_ROLES'])throw new errors[(_0x1d7c9e(0x1bb))](errors['BASTION_ERROR_TYPE'][_0x1d7c9e(0x1ad)],this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1c7)]['getString'](_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1e5)]['language'],'errors','membershipLimitSelfRoles',constants[_0x1d7c9e(0x1c5)]['GOLD'][_0x1d7c9e(0x1aa)]));else{if(_0x4186cc===omnic[_0x1d7c9e(0x1c9)]['PLATINUM']&&_0xb0f2d8>=constants['LIMITS'][_0x1d7c9e(0x1b3)][_0x1d7c9e(0x1aa)])throw new errors[(_0x1d7c9e(0x1bb))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this['client'][_0x1d7c9e(0x1c7)][_0x1d7c9e(0x1c6)](_0x20fda2['guild'][_0x1d7c9e(0x1e5)][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1c4),_0x1d7c9e(0x1cf),constants[_0x1d7c9e(0x1c5)][_0x1d7c9e(0x1b3)]['SELF_ROLES']));}}else throw new errors[(_0x1d7c9e(0x1bb))](errors[_0x1d7c9e(0x1d6)][_0x1d7c9e(0x1c0)],this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1c7)]['getString'](_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1e5)][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1c4),_0x1d7c9e(0x1b8),constants[_0x1d7c9e(0x1c5)]['SELF_ROLES']));}}const _0x1112a4=this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1e4)][_0x1d7c9e(0x1bc)](_0x20fda2[_0x1d7c9e(0x1ea)],_0x23e30b[_0x1d7c9e(0x1b7)][_0x1d7c9e(0x1e1)]('\x20'));if(!_0x1112a4)throw new errors['DiscordError'](errors[_0x1d7c9e(0x1d6)]['ROLE_NOT_FOUND'],this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1c7)]['getString'](_0x20fda2[_0x1d7c9e(0x1ea)]['document'][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1c4),_0x1d7c9e(0x1ce)));await Role_1[_0x1d7c9e(0x1de)][_0x1d7c9e(0x1a9)](_0x1112a4['id'],{'_id':_0x1112a4['id'],'guild':_0x20fda2['guild']['id'],'selfAssignable':!![]},{'upsert':!![]}),await _0x20fda2['channel'][_0x1d7c9e(0x1b5)]({'embed':{'color':tesseract_1[_0x1d7c9e(0x1c3)][_0x1d7c9e(0x1e7)][_0x1d7c9e(0x1cb)],'description':this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1c7)][_0x1d7c9e(0x1c6)](_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1e5)][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1e3),_0x1d7c9e(0x1d2),_0x20fda2[_0x1d7c9e(0x1dc)][_0x1d7c9e(0x1bd)],_0x1112a4['name']),'footer':{'text':_0x1112a4['id']}}})[_0x1d7c9e(0x1a8)](()=>{});}else{if(_0x23e30b[_0x1d7c9e(0x1e0)]){const _0x12308c=this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1e4)][_0x1d7c9e(0x1bc)](_0x20fda2['guild'],_0x23e30b['remove'][_0x1d7c9e(0x1e1)]('\x20'));if(!_0x12308c)throw new errors['DiscordError'](errors[_0x1d7c9e(0x1d6)][_0x1d7c9e(0x1d0)],this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1c7)][_0x1d7c9e(0x1c6)](_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1e5)][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1c4),_0x1d7c9e(0x1ce)));await Role_1[_0x1d7c9e(0x1de)]['findByIdAndUpdate'](_0x12308c['id'],{'$unset':{'selfAssignable':0x1}}),await _0x20fda2[_0x1d7c9e(0x1c1)][_0x1d7c9e(0x1b5)]({'embed':{'color':tesseract_1[_0x1d7c9e(0x1c3)][_0x1d7c9e(0x1e7)][_0x1d7c9e(0x1be)],'description':this[_0x1d7c9e(0x1c8)]['locale'][_0x1d7c9e(0x1c6)](_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1e5)][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1e3),_0x1d7c9e(0x1d3),_0x20fda2[_0x1d7c9e(0x1dc)]['tag'],_0x12308c[_0x1d7c9e(0x1b0)]),'footer':{'text':_0x12308c['id']}}})[_0x1d7c9e(0x1a8)](()=>{});}else{const _0x19332f=await Role_1[_0x1d7c9e(0x1de)][_0x1d7c9e(0x1cc)]({'guild':_0x20fda2[_0x1d7c9e(0x1ea)]['id'],'selfAssignable':!![]});if(!_0x19332f[_0x1d7c9e(0x1d4)])throw new Error(this[_0x1d7c9e(0x1c8)][_0x1d7c9e(0x1c7)][_0x1d7c9e(0x1c6)](_0x20fda2['guild'][_0x1d7c9e(0x1e5)][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1c4),_0x1d7c9e(0x1df)));const _0x1ef3d1=[];for(const _0x2b1de7 of _0x19332f){!_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1d8)][_0x1d7c9e(0x1b6)][_0x1d7c9e(0x1da)](_0x2b1de7[_0x1d7c9e(0x1d1)])&&await _0x2b1de7[_0x1d7c9e(0x1e0)]()[_0x1d7c9e(0x1a8)](()=>{}),_0x1ef3d1[_0x1d7c9e(0x1e2)]({'name':_0x20fda2[_0x1d7c9e(0x1ea)][_0x1d7c9e(0x1d8)][_0x1d7c9e(0x1b6)][_0x1d7c9e(0x1cd)](_0x2b1de7[_0x1d7c9e(0x1d1)])[_0x1d7c9e(0x1b0)]||'-','value':_0x2b1de7[_0x1d7c9e(0x1d1)]});}await _0x20fda2[_0x1d7c9e(0x1c1)]['send']({'embed':{'color':tesseract_1[_0x1d7c9e(0x1c3)][_0x1d7c9e(0x1e7)][_0x1d7c9e(0x1e9)],'title':_0x1d7c9e(0x1dd),'description':this['client']['locale'][_0x1d7c9e(0x1c6)](_0x20fda2[_0x1d7c9e(0x1ea)]['document'][_0x1d7c9e(0x1b1)],_0x1d7c9e(0x1e3),_0x1d7c9e(0x1af)),'fields':_0x1ef3d1}})[_0x1d7c9e(0x1a8)](()=>{});}}};}}; \ No newline at end of file diff --git a/commands/configuration/serverLogs.js b/commands/configuration/serverLogs.js index 4925c36e6..6cc1045a1 100644 --- a/commands/configuration/serverLogs.js +++ b/commands/configuration/serverLogs.js @@ -1 +1 @@ -const a35_0x2878=['channel','serverLogsEnable','catch','GREEN','guild','RED','author','getString','Constants','apply','serverLogsDisable','serverLogs\x20--disable','document','constructor','send','locale','serverLogChannelId','test','info','COLORS','disable','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','save','Command','@bastion/tesseract','serverLogs','tag'];(function(_0x48bdf5,_0x4f2eb7){const _0x2878de=function(_0x36b4dc){while(--_0x36b4dc){_0x48bdf5['push'](_0x48bdf5['shift']());}},_0x4341cf=function(){const _0x49c010={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x33a2ce,_0x39b1dd,_0x583d01,_0xea362d){_0xea362d=_0xea362d||{};let _0x1582b4=_0x39b1dd+'='+_0x583d01,_0x560d8e=0x0;for(let _0x3a7b05=0x0,_0x531ca6=_0x33a2ce['length'];_0x3a7b05<_0x531ca6;_0x3a7b05++){const _0x4ad46e=_0x33a2ce[_0x3a7b05];_0x1582b4+=';\x20'+_0x4ad46e;const _0x189ad8=_0x33a2ce[_0x4ad46e];_0x33a2ce['push'](_0x189ad8),_0x531ca6=_0x33a2ce['length'],_0x189ad8!==!![]&&(_0x1582b4+='='+_0x189ad8);}_0xea362d['cookie']=_0x1582b4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x37be8d,_0x44a369){_0x37be8d=_0x37be8d||function(_0x1d4b09){return _0x1d4b09;};const _0x1a2c00=_0x37be8d(new RegExp('(?:^|;\x20)'+_0x44a369['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43301e=function(_0x1a695c,_0x583613){_0x1a695c(++_0x583613);};return _0x43301e(_0x2878de,_0x4f2eb7),_0x1a2c00?decodeURIComponent(_0x1a2c00[0x1]):undefined;}},_0x579b76=function(){const _0x35f3d7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35f3d7['test'](_0x49c010['removeCookie']['toString']());};_0x49c010['updateCookie']=_0x579b76;let _0x4fc877='';const _0x3583bd=_0x49c010['updateCookie']();if(!_0x3583bd)_0x49c010['setCookie'](['*'],'counter',0x1);else _0x3583bd?_0x4fc877=_0x49c010['getCookie'](null,'counter'):_0x49c010['removeCookie']();};_0x4341cf();}(a35_0x2878,0xbc));const a35_0x4341=function(_0x48bdf5,_0x4f2eb7){_0x48bdf5=_0x48bdf5-0x70;let _0x2878de=a35_0x2878[_0x48bdf5];return _0x2878de;};const _0x5bb5de=a35_0x4341,a35_0x579b76=function(){let _0x3583bd=!![];return function(_0x33a2ce,_0x39b1dd){const _0x583d01=_0x3583bd?function(){const _0x12f9c8=a35_0x4341;if(_0x39b1dd){const _0xea362d=_0x39b1dd[_0x12f9c8(0x88)](_0x33a2ce,arguments);return _0x39b1dd=null,_0xea362d;}}:function(){};return _0x3583bd=![],_0x583d01;};}(),a35_0x49c010=a35_0x579b76(this,function(){const _0x1582b4=function(){const _0x535e62=a35_0x4341,_0x560d8e=_0x1582b4[_0x535e62(0x8c)](_0x535e62(0x78))()[_0x535e62(0x8c)](_0x535e62(0x79));return!_0x560d8e[_0x535e62(0x73)](a35_0x49c010);};return _0x1582b4();});a35_0x49c010();'use strict';const tesseract_1=require(_0x5bb5de(0x7c));module['exports']=class ServerLogs extends tesseract_1[_0x5bb5de(0x7b)]{constructor(){const _0x2cb6e3=_0x5bb5de;super(_0x2cb6e3(0x7d),{'description':'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.','triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':_0x2cb6e3(0x83),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x2cb6e3(0x7d),_0x2cb6e3(0x8a)]}),this['exec']=async(_0x3a7b05,_0x531ca6)=>{const _0x5aa8a0=_0x2cb6e3,_0x4ad46e=_0x3a7b05[_0x5aa8a0(0x83)];_0x531ca6[_0x5aa8a0(0x76)]?(_0x4ad46e[_0x5aa8a0(0x8b)][_0x5aa8a0(0x72)]=undefined,delete _0x4ad46e[_0x5aa8a0(0x8b)][_0x5aa8a0(0x72)]):_0x4ad46e[_0x5aa8a0(0x8b)][_0x5aa8a0(0x72)]=_0x3a7b05['channel']['id'],await _0x4ad46e[_0x5aa8a0(0x8b)][_0x5aa8a0(0x7a)](),await _0x3a7b05[_0x5aa8a0(0x7f)][_0x5aa8a0(0x70)]({'embed':{'color':_0x4ad46e[_0x5aa8a0(0x8b)][_0x5aa8a0(0x72)]?tesseract_1[_0x5aa8a0(0x87)][_0x5aa8a0(0x75)][_0x5aa8a0(0x82)]:tesseract_1[_0x5aa8a0(0x87)][_0x5aa8a0(0x75)][_0x5aa8a0(0x84)],'description':this['client'][_0x5aa8a0(0x71)][_0x5aa8a0(0x86)](_0x3a7b05['guild'][_0x5aa8a0(0x8b)][_0x5aa8a0(0x77)],_0x5aa8a0(0x74),_0x4ad46e[_0x5aa8a0(0x8b)][_0x5aa8a0(0x72)]?_0x5aa8a0(0x80):_0x5aa8a0(0x89),_0x3a7b05[_0x5aa8a0(0x85)][_0x5aa8a0(0x7e)])}})[_0x5aa8a0(0x81)](()=>{});};}}; \ No newline at end of file +const a35_0x2efd=['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.','disable','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','test','apply','exports','serverLogs\x20--disable','catch','RED','serverLogChannelId','MANAGE_GUILD','client','getString','COLORS','info','language','GREEN','@bastion/tesseract','save','constructor','serverLogsEnable','channel','guild'];(function(_0x56662d,_0x59d497){const _0x2efdfa=function(_0x502118){while(--_0x502118){_0x56662d['push'](_0x56662d['shift']());}},_0x597926=function(){const _0x16779e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5eec4d,_0x595e4a,_0xeec600,_0x1042c4){_0x1042c4=_0x1042c4||{};let _0x12cbeb=_0x595e4a+'='+_0xeec600,_0x1144b9=0x0;for(let _0x475ff4=0x0,_0x50ee2f=_0x5eec4d['length'];_0x475ff4<_0x50ee2f;_0x475ff4++){const _0x3a3bd6=_0x5eec4d[_0x475ff4];_0x12cbeb+=';\x20'+_0x3a3bd6;const _0x2c6cdf=_0x5eec4d[_0x3a3bd6];_0x5eec4d['push'](_0x2c6cdf),_0x50ee2f=_0x5eec4d['length'],_0x2c6cdf!==!![]&&(_0x12cbeb+='='+_0x2c6cdf);}_0x1042c4['cookie']=_0x12cbeb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x26af4e,_0x4aacc){_0x26af4e=_0x26af4e||function(_0x212c02){return _0x212c02;};const _0x5f380e=_0x26af4e(new RegExp('(?:^|;\x20)'+_0x4aacc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59c06a=function(_0x3cb86d,_0x37bb33){_0x3cb86d(++_0x37bb33);};return _0x59c06a(_0x2efdfa,_0x59d497),_0x5f380e?decodeURIComponent(_0x5f380e[0x1]):undefined;}},_0x3827f3=function(){const _0x5eb92d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5eb92d['test'](_0x16779e['removeCookie']['toString']());};_0x16779e['updateCookie']=_0x3827f3;let _0x33ae15='';const _0x425900=_0x16779e['updateCookie']();if(!_0x425900)_0x16779e['setCookie'](['*'],'counter',0x1);else _0x425900?_0x33ae15=_0x16779e['getCookie'](null,'counter'):_0x16779e['removeCookie']();};_0x597926();}(a35_0x2efd,0x130));const a35_0x5979=function(_0x56662d,_0x59d497){_0x56662d=_0x56662d-0xfc;let _0x2efdfa=a35_0x2efd[_0x56662d];return _0x2efdfa;};const a35_0x306f85=a35_0x5979,a35_0x3827f3=function(){let _0x425900=!![];return function(_0x5eec4d,_0x595e4a){const _0xeec600=_0x425900?function(){const _0x569558=a35_0x5979;if(_0x595e4a){const _0x1042c4=_0x595e4a[_0x569558(0xfe)](_0x5eec4d,arguments);return _0x595e4a=null,_0x1042c4;}}:function(){};return _0x425900=![],_0xeec600;};}(),a35_0x16779e=a35_0x3827f3(this,function(){const _0x12cbeb=function(){const _0x1a6773=a35_0x5979,_0x1144b9=_0x12cbeb[_0x1a6773(0x10d)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1a6773(0x10d)](_0x1a6773(0x114));return!_0x1144b9[_0x1a6773(0xfd)](a35_0x16779e);};return _0x12cbeb();});a35_0x16779e();'use strict';const tesseract_1=require(a35_0x306f85(0x10b));module[a35_0x306f85(0xff)]=class ServerLogs extends tesseract_1['Command']{constructor(){const _0x3e64ab=a35_0x306f85;super('serverLogs',{'description':_0x3e64ab(0x111),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[_0x3e64ab(0x112)]},'scope':_0x3e64ab(0x110),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3e64ab(0x104)],'syntax':['serverLogs',_0x3e64ab(0x100)]}),this['exec']=async(_0x475ff4,_0x50ee2f)=>{const _0x48a757=_0x3e64ab,_0x3a3bd6=_0x475ff4[_0x48a757(0x110)];_0x50ee2f[_0x48a757(0x112)]?(_0x3a3bd6[_0x48a757(0xfc)]['serverLogChannelId']=undefined,delete _0x3a3bd6['document']['serverLogChannelId']):_0x3a3bd6[_0x48a757(0xfc)][_0x48a757(0x103)]=_0x475ff4[_0x48a757(0x10f)]['id'],await _0x3a3bd6[_0x48a757(0xfc)][_0x48a757(0x10c)](),await _0x475ff4[_0x48a757(0x10f)]['send']({'embed':{'color':_0x3a3bd6['document']['serverLogChannelId']?tesseract_1[_0x48a757(0x113)]['COLORS'][_0x48a757(0x10a)]:tesseract_1[_0x48a757(0x113)][_0x48a757(0x107)][_0x48a757(0x102)],'description':this[_0x48a757(0x105)]['locale'][_0x48a757(0x106)](_0x475ff4[_0x48a757(0x110)][_0x48a757(0xfc)][_0x48a757(0x109)],_0x48a757(0x108),_0x3a3bd6[_0x48a757(0xfc)][_0x48a757(0x103)]?_0x48a757(0x10e):'serverLogsDisable',_0x475ff4['author']['tag'])}})[_0x48a757(0x101)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/starboard.js b/commands/configuration/starboard.js index fe56fcb8d..182b007ed 100644 --- a/commands/configuration/starboard.js +++ b/commands/configuration/starboard.js @@ -1 +1 @@ -const a36_0x2e1d=['apply','author','disable','starboardEnable','GREEN','locale','test','starboardChannelId','document','language','channel','tag','Constants','info','send','starboard\x20--disable','save','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','starboardDisable','COLORS','RED','getString','Command','guild','constructor','starboard','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.'];(function(_0x95f578,_0x22fadf){const _0x2e1d63=function(_0x34ad9c){while(--_0x34ad9c){_0x95f578['push'](_0x95f578['shift']());}},_0x30def9=function(){const _0x131a49={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xab63d5,_0x1a2c76,_0x419537,_0x5528be){_0x5528be=_0x5528be||{};let _0x135c58=_0x1a2c76+'='+_0x419537,_0x1d3f45=0x0;for(let _0x372137=0x0,_0xc9b7b9=_0xab63d5['length'];_0x372137<_0xc9b7b9;_0x372137++){const _0xb46102=_0xab63d5[_0x372137];_0x135c58+=';\x20'+_0xb46102;const _0x3f8c53=_0xab63d5[_0xb46102];_0xab63d5['push'](_0x3f8c53),_0xc9b7b9=_0xab63d5['length'],_0x3f8c53!==!![]&&(_0x135c58+='='+_0x3f8c53);}_0x5528be['cookie']=_0x135c58;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2991b2,_0x2f2244){_0x2991b2=_0x2991b2||function(_0x2e654f){return _0x2e654f;};const _0xe0d41a=_0x2991b2(new RegExp('(?:^|;\x20)'+_0x2f2244['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f3694=function(_0x1eabaf,_0x12d617){_0x1eabaf(++_0x12d617);};return _0x4f3694(_0x2e1d63,_0x22fadf),_0xe0d41a?decodeURIComponent(_0xe0d41a[0x1]):undefined;}},_0x59d70e=function(){const _0xeda690=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xeda690['test'](_0x131a49['removeCookie']['toString']());};_0x131a49['updateCookie']=_0x59d70e;let _0x183375='';const _0x21e34f=_0x131a49['updateCookie']();if(!_0x21e34f)_0x131a49['setCookie'](['*'],'counter',0x1);else _0x21e34f?_0x183375=_0x131a49['getCookie'](null,'counter'):_0x131a49['removeCookie']();};_0x30def9();}(a36_0x2e1d,0x179));const a36_0x30de=function(_0x95f578,_0x22fadf){_0x95f578=_0x95f578-0xe6;let _0x2e1d63=a36_0x2e1d[_0x95f578];return _0x2e1d63;};const _0x39ed76=a36_0x30de,a36_0x59d70e=function(){let _0x21e34f=!![];return function(_0xab63d5,_0x1a2c76){const _0x419537=_0x21e34f?function(){const _0x209079=a36_0x30de;if(_0x1a2c76){const _0x5528be=_0x1a2c76[_0x209079(0xe7)](_0xab63d5,arguments);return _0x1a2c76=null,_0x5528be;}}:function(){};return _0x21e34f=![],_0x419537;};}(),a36_0x131a49=a36_0x59d70e(this,function(){const _0x135c58=function(){const _0x35dbe9=a36_0x30de,_0x1d3f45=_0x135c58[_0x35dbe9(0xff)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x35dbe9(0xff)](_0x35dbe9(0xf8));return!_0x1d3f45[_0x35dbe9(0xed)](a36_0x131a49);};return _0x135c58();});a36_0x131a49();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class Starboard extends tesseract_1[_0x39ed76(0xfd)]{constructor(){const _0x497bae=_0x39ed76;super(_0x497bae(0x100),{'description':_0x497bae(0xe6),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[_0x497bae(0xe9)]},'scope':_0x497bae(0xfe),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x497bae(0x100),_0x497bae(0xf6)]}),this['exec']=async(_0x372137,_0xc9b7b9)=>{const _0x3b6204=_0x497bae,_0xb46102=_0x372137['guild'];_0xc9b7b9['disable']?(_0xb46102['document'][_0x3b6204(0xee)]=undefined,delete _0xb46102[_0x3b6204(0xef)]['starboardChannelId']):_0xb46102[_0x3b6204(0xef)][_0x3b6204(0xee)]=_0x372137[_0x3b6204(0xf1)]['id'],await _0xb46102[_0x3b6204(0xef)][_0x3b6204(0xf7)](),await _0x372137[_0x3b6204(0xf1)][_0x3b6204(0xf5)]({'embed':{'color':_0xb46102['document'][_0x3b6204(0xee)]?tesseract_1[_0x3b6204(0xf3)][_0x3b6204(0xfa)][_0x3b6204(0xeb)]:tesseract_1[_0x3b6204(0xf3)][_0x3b6204(0xfa)][_0x3b6204(0xfb)],'description':this['client'][_0x3b6204(0xec)][_0x3b6204(0xfc)](_0x372137['guild'][_0x3b6204(0xef)][_0x3b6204(0xf0)],_0x3b6204(0xf4),_0xb46102['document'][_0x3b6204(0xee)]?_0x3b6204(0xea):_0x3b6204(0xf9),_0x372137[_0x3b6204(0xe8)][_0x3b6204(0xf2)])}})['catch'](()=>{});};}}; \ No newline at end of file +const a36_0x51df=['@bastion/tesseract','starboard\x20--disable','apply','locale','starboard','COLORS','send','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','MANAGE_GUILD','catch','channel','Constants','document','starboardChannelId','exec','starboardDisable','RED','info','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.'];(function(_0x51025d,_0x321bb1){const _0x51dff9=function(_0x2ec517){while(--_0x2ec517){_0x51025d['push'](_0x51025d['shift']());}},_0x5a7543=function(){const _0x2537f3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x43bad7,_0xd9259b,_0x15b3b6,_0x6b8a34){_0x6b8a34=_0x6b8a34||{};let _0x2ff372=_0xd9259b+'='+_0x15b3b6,_0x4f94af=0x0;for(let _0x2a049c=0x0,_0x1ef584=_0x43bad7['length'];_0x2a049c<_0x1ef584;_0x2a049c++){const _0x545d9c=_0x43bad7[_0x2a049c];_0x2ff372+=';\x20'+_0x545d9c;const _0x31a337=_0x43bad7[_0x545d9c];_0x43bad7['push'](_0x31a337),_0x1ef584=_0x43bad7['length'],_0x31a337!==!![]&&(_0x2ff372+='='+_0x31a337);}_0x6b8a34['cookie']=_0x2ff372;},'removeCookie':function(){return'dev';},'getCookie':function(_0x349882,_0x592098){_0x349882=_0x349882||function(_0x199671){return _0x199671;};const _0x49e46b=_0x349882(new RegExp('(?:^|;\x20)'+_0x592098['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4aa5d7=function(_0x94b66b,_0x32ba2e){_0x94b66b(++_0x32ba2e);};return _0x4aa5d7(_0x51dff9,_0x321bb1),_0x49e46b?decodeURIComponent(_0x49e46b[0x1]):undefined;}},_0x2ff081=function(){const _0x12d7bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12d7bf['test'](_0x2537f3['removeCookie']['toString']());};_0x2537f3['updateCookie']=_0x2ff081;let _0x12f8ed='';const _0x5d52e1=_0x2537f3['updateCookie']();if(!_0x5d52e1)_0x2537f3['setCookie'](['*'],'counter',0x1);else _0x5d52e1?_0x12f8ed=_0x2537f3['getCookie'](null,'counter'):_0x2537f3['removeCookie']();};_0x5a7543();}(a36_0x51df,0x1bf));const a36_0x5a75=function(_0x51025d,_0x321bb1){_0x51025d=_0x51025d-0x11b;let _0x51dff9=a36_0x51df[_0x51025d];return _0x51dff9;};const a36_0x54ccc7=a36_0x5a75,a36_0x2ff081=function(){let _0x5d52e1=!![];return function(_0x43bad7,_0xd9259b){const _0x15b3b6=_0x5d52e1?function(){const _0x5e582c=a36_0x5a75;if(_0xd9259b){const _0x6b8a34=_0xd9259b[_0x5e582c(0x12c)](_0x43bad7,arguments);return _0xd9259b=null,_0x6b8a34;}}:function(){};return _0x5d52e1=![],_0x15b3b6;};}(),a36_0x2537f3=a36_0x2ff081(this,function(){const _0x2ff372=function(){const _0x23ca52=a36_0x5a75,_0x4f94af=_0x2ff372['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x23ca52(0x11c));return!_0x4f94af[_0x23ca52(0x11d)](a36_0x2537f3);};return _0x2ff372();});a36_0x2537f3();'use strict';const tesseract_1=require(a36_0x54ccc7(0x12a));module['exports']=class Starboard extends tesseract_1['Command']{constructor(){const _0x1a9671=a36_0x54ccc7;super(_0x1a9671(0x12e),{'description':_0x1a9671(0x129),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':['disable']},'scope':_0x1a9671(0x128),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x1a9671(0x11e)],'syntax':[_0x1a9671(0x12e),_0x1a9671(0x12b)]}),this[_0x1a9671(0x124)]=async(_0x2a049c,_0x1ef584)=>{const _0x162c3e=_0x1a9671,_0x545d9c=_0x2a049c['guild'];_0x1ef584['disable']?(_0x545d9c['document'][_0x162c3e(0x123)]=undefined,delete _0x545d9c[_0x162c3e(0x122)][_0x162c3e(0x123)]):_0x545d9c[_0x162c3e(0x122)][_0x162c3e(0x123)]=_0x2a049c['channel']['id'],await _0x545d9c[_0x162c3e(0x122)]['save'](),await _0x2a049c[_0x162c3e(0x120)][_0x162c3e(0x130)]({'embed':{'color':_0x545d9c[_0x162c3e(0x122)]['starboardChannelId']?tesseract_1[_0x162c3e(0x121)]['COLORS']['GREEN']:tesseract_1[_0x162c3e(0x121)][_0x162c3e(0x12f)][_0x162c3e(0x126)],'description':this['client'][_0x162c3e(0x12d)]['getString'](_0x2a049c[_0x162c3e(0x128)][_0x162c3e(0x122)]['language'],_0x162c3e(0x127),_0x545d9c[_0x162c3e(0x122)][_0x162c3e(0x123)]?'starboardEnable':_0x162c3e(0x125),_0x2a049c['author'][_0x162c3e(0x11b)])}})[_0x162c3e(0x11f)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/streamerRole.js b/commands/configuration/streamerRole.js index 6b1d29516..8ededcb34 100644 --- a/commands/configuration/streamerRole.js +++ b/commands/configuration/streamerRole.js @@ -1 +1 @@ -const a37_0x56c7=['roleNotFound','resolver','streamerRoleId','save','author','MANAGE_GUILD','Command','streamerRole','BASTION_ERROR_TYPE','INVALID_COMMAND_SYNTAX','streamerRoleSet','DiscordError','remove','exec','streamerRoleUnset','language','apply','streamerRole\x20ROLE','COLORS','constructor','../../utils/errors','tag','catch','document','guild','send','errors','locale','join','@bastion/tesseract','test','length','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','ROLE_NOT_FOUND','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','info','Constants','client','exports','RED'];(function(_0x426265,_0x330e1f){const _0x56c7c5=function(_0x39d2c1){while(--_0x39d2c1){_0x426265['push'](_0x426265['shift']());}},_0x4260dd=function(){const _0x5992c8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x550750,_0x1fb3b1,_0xdc0f4b,_0x1c59f3){_0x1c59f3=_0x1c59f3||{};let _0x165e12=_0x1fb3b1+'='+_0xdc0f4b,_0x277550=0x0;for(let _0x2129bf=0x0,_0x5789d7=_0x550750['length'];_0x2129bf<_0x5789d7;_0x2129bf++){const _0x303288=_0x550750[_0x2129bf];_0x165e12+=';\x20'+_0x303288;const _0xab314d=_0x550750[_0x303288];_0x550750['push'](_0xab314d),_0x5789d7=_0x550750['length'],_0xab314d!==!![]&&(_0x165e12+='='+_0xab314d);}_0x1c59f3['cookie']=_0x165e12;},'removeCookie':function(){return'dev';},'getCookie':function(_0xb5c1e9,_0x19e6aa){_0xb5c1e9=_0xb5c1e9||function(_0x2f7131){return _0x2f7131;};const _0x50c017=_0xb5c1e9(new RegExp('(?:^|;\x20)'+_0x19e6aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f01c4=function(_0x184d6c,_0xf3fdb0){_0x184d6c(++_0xf3fdb0);};return _0x1f01c4(_0x56c7c5,_0x330e1f),_0x50c017?decodeURIComponent(_0x50c017[0x1]):undefined;}},_0x24093e=function(){const _0xf2a918=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf2a918['test'](_0x5992c8['removeCookie']['toString']());};_0x5992c8['updateCookie']=_0x24093e;let _0x4bc640='';const _0x2155fb=_0x5992c8['updateCookie']();if(!_0x2155fb)_0x5992c8['setCookie'](['*'],'counter',0x1);else _0x2155fb?_0x4bc640=_0x5992c8['getCookie'](null,'counter'):_0x5992c8['removeCookie']();};_0x4260dd();}(a37_0x56c7,0x19c));const a37_0x4260=function(_0x426265,_0x330e1f){_0x426265=_0x426265-0x180;let _0x56c7c5=a37_0x56c7[_0x426265];return _0x56c7c5;};const _0x39ea75=a37_0x4260,a37_0x24093e=function(){let _0x2155fb=!![];return function(_0x550750,_0x1fb3b1){const _0xdc0f4b=_0x2155fb?function(){const _0x13452c=a37_0x4260;if(_0x1fb3b1){const _0x1c59f3=_0x1fb3b1[_0x13452c(0x198)](_0x550750,arguments);return _0x1fb3b1=null,_0x1c59f3;}}:function(){};return _0x2155fb=![],_0xdc0f4b;};}(),a37_0x5992c8=a37_0x24093e(this,function(){const _0x165e12=function(){const _0x2d58c6=a37_0x4260,_0x277550=_0x165e12['constructor'](_0x2d58c6(0x182))()[_0x2d58c6(0x19b)](_0x2d58c6(0x1a8));return!_0x277550[_0x2d58c6(0x1a6)](a37_0x5992c8);};return _0x165e12();});a37_0x5992c8();'use strict';const tesseract_1=require(_0x39ea75(0x1a5)),errors=require(_0x39ea75(0x19c));module[_0x39ea75(0x186)]=class StreamerRoleCommand extends tesseract_1[_0x39ea75(0x18e)]{constructor(){const _0x2c3f04=_0x39ea75;super(_0x2c3f04(0x18f),{'description':'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.','triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[_0x2c3f04(0x194)]},'scope':_0x2c3f04(0x1a0),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x2c3f04(0x18d)],'syntax':[_0x2c3f04(0x199),'streamerRole\x20--remove']}),this[_0x2c3f04(0x195)]=async(_0x2129bf,_0x5789d7)=>{const _0x432052=_0x2c3f04;if(!_0x5789d7['_'][_0x432052(0x1a7)]&&!_0x5789d7[_0x432052(0x194)])throw new errors[(_0x432052(0x193))](errors[_0x432052(0x190)][_0x432052(0x191)],this['name']);const _0x303288=_0x2129bf[_0x432052(0x1a0)];let _0xab314d;if(_0x5789d7['remove'])_0x303288[_0x432052(0x19f)][_0x432052(0x18a)]=undefined,delete _0x303288['document'][_0x432052(0x18a)];else{_0xab314d=this['client'][_0x432052(0x189)]['resolveRole'](_0x2129bf['guild'],_0x5789d7['_'][_0x432052(0x1a4)]('\x20'));if(!_0xab314d)throw new errors[(_0x432052(0x193))](errors[_0x432052(0x190)][_0x432052(0x180)],this[_0x432052(0x185)]['locale']['getString'](_0x2129bf[_0x432052(0x1a0)][_0x432052(0x19f)][_0x432052(0x197)],_0x432052(0x1a2),_0x432052(0x188)));_0x303288[_0x432052(0x19f)]['streamerRoleId']=_0xab314d['id'];}await _0x303288['document'][_0x432052(0x18b)](),await _0x2129bf[_0x432052(0x181)][_0x432052(0x1a1)]({'embed':{'color':_0x303288[_0x432052(0x19f)]['streamerRoleId']?tesseract_1[_0x432052(0x184)][_0x432052(0x19a)]['GREEN']:tesseract_1[_0x432052(0x184)][_0x432052(0x19a)][_0x432052(0x187)],'description':this['client'][_0x432052(0x1a3)]['getString'](_0x2129bf[_0x432052(0x1a0)][_0x432052(0x19f)][_0x432052(0x197)],_0x432052(0x183),_0x303288[_0x432052(0x19f)][_0x432052(0x18a)]?_0x432052(0x192):_0x432052(0x196),_0x2129bf[_0x432052(0x18c)][_0x432052(0x19d)],_0xab314d?_0xab314d[_0x432052(0x1a9)]:'')}})[_0x432052(0x19e)](()=>{});};}}; \ No newline at end of file +const a37_0x45e2=['exports','remove','author','errors','MANAGE_GUILD','Constants','channel','document','roleNotFound','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.','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','streamerRole\x20--remove','join','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','info','guild','name','Command','streamerRoleId','DiscordError','test','language','streamerRole\x20ROLE','../../utils/errors','save','send','ROLE_NOT_FOUND','@bastion/tesseract','RED','constructor','length','resolveRole','client','GREEN','COLORS','getString','BASTION_ERROR_TYPE','tag'];(function(_0x29de93,_0x514340){const _0x45e2a3=function(_0x5f2826){while(--_0x5f2826){_0x29de93['push'](_0x29de93['shift']());}},_0x4ecf57=function(){const _0x2bb28f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x128ab2,_0x42fa13,_0x399011,_0x1d53be){_0x1d53be=_0x1d53be||{};let _0x2a9fee=_0x42fa13+'='+_0x399011,_0x1b1e6a=0x0;for(let _0x595655=0x0,_0x13377c=_0x128ab2['length'];_0x595655<_0x13377c;_0x595655++){const _0x2e66eb=_0x128ab2[_0x595655];_0x2a9fee+=';\x20'+_0x2e66eb;const _0x55a362=_0x128ab2[_0x2e66eb];_0x128ab2['push'](_0x55a362),_0x13377c=_0x128ab2['length'],_0x55a362!==!![]&&(_0x2a9fee+='='+_0x55a362);}_0x1d53be['cookie']=_0x2a9fee;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e4f06,_0x16e511){_0x4e4f06=_0x4e4f06||function(_0x2380bd){return _0x2380bd;};const _0x47df82=_0x4e4f06(new RegExp('(?:^|;\x20)'+_0x16e511['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3fddbb=function(_0x339d78,_0x174b7d){_0x339d78(++_0x174b7d);};return _0x3fddbb(_0x45e2a3,_0x514340),_0x47df82?decodeURIComponent(_0x47df82[0x1]):undefined;}},_0x43e931=function(){const _0x1e9616=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e9616['test'](_0x2bb28f['removeCookie']['toString']());};_0x2bb28f['updateCookie']=_0x43e931;let _0xa8d73e='';const _0x39d05c=_0x2bb28f['updateCookie']();if(!_0x39d05c)_0x2bb28f['setCookie'](['*'],'counter',0x1);else _0x39d05c?_0xa8d73e=_0x2bb28f['getCookie'](null,'counter'):_0x2bb28f['removeCookie']();};_0x4ecf57();}(a37_0x45e2,0x1a6));const a37_0x4ecf=function(_0x29de93,_0x514340){_0x29de93=_0x29de93-0x1a0;let _0x45e2a3=a37_0x45e2[_0x29de93];return _0x45e2a3;};const a37_0x263271=a37_0x4ecf,a37_0x43e931=function(){let _0x39d05c=!![];return function(_0x128ab2,_0x42fa13){const _0x399011=_0x39d05c?function(){if(_0x42fa13){const _0x1d53be=_0x42fa13['apply'](_0x128ab2,arguments);return _0x42fa13=null,_0x1d53be;}}:function(){};return _0x39d05c=![],_0x399011;};}(),a37_0x2bb28f=a37_0x43e931(this,function(){const _0x2a9fee=function(){const _0x4713e6=a37_0x4ecf,_0x1b1e6a=_0x2a9fee[_0x4713e6(0x1a9)](_0x4713e6(0x1bd))()[_0x4713e6(0x1a9)](_0x4713e6(0x1c1));return!_0x1b1e6a[_0x4713e6(0x1a0)](a37_0x2bb28f);};return _0x2a9fee();});a37_0x2bb28f();'use strict';const tesseract_1=require(a37_0x263271(0x1a7)),errors=require(a37_0x263271(0x1a3));module[a37_0x263271(0x1b2)]=class StreamerRoleCommand extends tesseract_1[a37_0x263271(0x1c5)]{constructor(){const _0x16f6cb=a37_0x263271;super('streamerRole',{'description':_0x16f6cb(0x1bb),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[_0x16f6cb(0x1b3)]},'scope':_0x16f6cb(0x1c3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x16f6cb(0x1b6)],'syntax':[_0x16f6cb(0x1a2),_0x16f6cb(0x1be)]}),this[_0x16f6cb(0x1c0)]=async(_0x595655,_0x13377c)=>{const _0x2fe170=_0x16f6cb;if(!_0x13377c['_'][_0x2fe170(0x1aa)]&&!_0x13377c[_0x2fe170(0x1b3)])throw new errors[(_0x2fe170(0x1c7))](errors[_0x2fe170(0x1b0)]['INVALID_COMMAND_SYNTAX'],this[_0x2fe170(0x1c4)]);const _0x2e66eb=_0x595655[_0x2fe170(0x1c3)];let _0x55a362;if(_0x13377c[_0x2fe170(0x1b3)])_0x2e66eb[_0x2fe170(0x1b9)][_0x2fe170(0x1c6)]=undefined,delete _0x2e66eb[_0x2fe170(0x1b9)][_0x2fe170(0x1c6)];else{_0x55a362=this[_0x2fe170(0x1ac)]['resolver'][_0x2fe170(0x1ab)](_0x595655[_0x2fe170(0x1c3)],_0x13377c['_'][_0x2fe170(0x1bf)]('\x20'));if(!_0x55a362)throw new errors[(_0x2fe170(0x1c7))](errors[_0x2fe170(0x1b0)][_0x2fe170(0x1a6)],this[_0x2fe170(0x1ac)]['locale'][_0x2fe170(0x1af)](_0x595655['guild'][_0x2fe170(0x1b9)][_0x2fe170(0x1a1)],_0x2fe170(0x1b5),_0x2fe170(0x1ba)));_0x2e66eb[_0x2fe170(0x1b9)]['streamerRoleId']=_0x55a362['id'];}await _0x2e66eb[_0x2fe170(0x1b9)][_0x2fe170(0x1a4)](),await _0x595655[_0x2fe170(0x1b8)][_0x2fe170(0x1a5)]({'embed':{'color':_0x2e66eb[_0x2fe170(0x1b9)][_0x2fe170(0x1c6)]?tesseract_1[_0x2fe170(0x1b7)]['COLORS'][_0x2fe170(0x1ad)]:tesseract_1[_0x2fe170(0x1b7)][_0x2fe170(0x1ae)][_0x2fe170(0x1a8)],'description':this['client'][_0x2fe170(0x1bc)][_0x2fe170(0x1af)](_0x595655[_0x2fe170(0x1c3)][_0x2fe170(0x1b9)][_0x2fe170(0x1a1)],_0x2fe170(0x1c2),_0x2e66eb[_0x2fe170(0x1b9)][_0x2fe170(0x1c6)]?'streamerRoleSet':'streamerRoleUnset',_0x595655[_0x2fe170(0x1b4)][_0x2fe170(0x1b1)],_0x55a362?_0x55a362[_0x2fe170(0x1c4)]:'')}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/streamers.js b/commands/configuration/streamers.js index a3dca3890..a81ef898b 100644 --- a/commands/configuration/streamers.js +++ b/commands/configuration/streamers.js @@ -1 +1 @@ -const a38_0x2fec=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Twitch','send','COLORS','locale','includes','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.','getString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','twitch','DiscordError','TWITCH','guild','@bastion/tesseract','PremiumTier','BASTION_ERROR_TYPE','name','Constants','overwrite','remove','LIMITED_PREMIUM_MEMBERSHIP','fetchPremiumTier','MANAGE_GUILD','You\x20aren\x27t\x20following\x20any\x20streamers.','users','PLATINUM','GOLD','constructor','streamers\x20--twitch\x20USERNAME','apply','push','exports','errors','join','streamers\x20--twitch\x20USERNAME\x20--remove','catch','concat','save','language','membershipLimitStreamers','../../utils/errors','PREMIUM_MEMBERSHIP_REQUIRED','length','streamers','exec','document','LIMITS','premiumStreamers','IRIS','channelId','isPublicBastion','Followed\x20Streamers','channel','See\x20`','STREAMERS_PER_SERVICE','Command','client'];(function(_0x4e03a3,_0x398d8a){const _0x2feceb=function(_0x8f90a0){while(--_0x8f90a0){_0x4e03a3['push'](_0x4e03a3['shift']());}},_0x3057fc=function(){const _0x35000f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5378f9,_0x3fa5ba,_0x2b9ed6,_0x4d3a58){_0x4d3a58=_0x4d3a58||{};let _0x315136=_0x3fa5ba+'='+_0x2b9ed6,_0x482ec9=0x0;for(let _0x432bce=0x0,_0x390897=_0x5378f9['length'];_0x432bce<_0x390897;_0x432bce++){const _0x38f6a1=_0x5378f9[_0x432bce];_0x315136+=';\x20'+_0x38f6a1;const _0x2f38bf=_0x5378f9[_0x38f6a1];_0x5378f9['push'](_0x2f38bf),_0x390897=_0x5378f9['length'],_0x2f38bf!==!![]&&(_0x315136+='='+_0x2f38bf);}_0x4d3a58['cookie']=_0x315136;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40d717,_0xe11fe9){_0x40d717=_0x40d717||function(_0x5e1209){return _0x5e1209;};const _0x5f587d=_0x40d717(new RegExp('(?:^|;\x20)'+_0xe11fe9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4188e6=function(_0x463f74,_0x39a986){_0x463f74(++_0x39a986);};return _0x4188e6(_0x2feceb,_0x398d8a),_0x5f587d?decodeURIComponent(_0x5f587d[0x1]):undefined;}},_0x484e8d=function(){const _0x2bcf3e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2bcf3e['test'](_0x35000f['removeCookie']['toString']());};_0x35000f['updateCookie']=_0x484e8d;let _0x373b3b='';const _0x3c2879=_0x35000f['updateCookie']();if(!_0x3c2879)_0x35000f['setCookie'](['*'],'counter',0x1);else _0x3c2879?_0x373b3b=_0x35000f['getCookie'](null,'counter'):_0x35000f['removeCookie']();};_0x3057fc();}(a38_0x2fec,0x1e6));const a38_0x3057=function(_0x4e03a3,_0x398d8a){_0x4e03a3=_0x4e03a3-0x1c6;let _0x2feceb=a38_0x2fec[_0x4e03a3];return _0x2feceb;};const _0xb1de96=a38_0x3057,a38_0x484e8d=function(){let _0x3c2879=!![];return function(_0x5378f9,_0x3fa5ba){const _0x2b9ed6=_0x3c2879?function(){const _0x389001=a38_0x3057;if(_0x3fa5ba){const _0x4d3a58=_0x3fa5ba[_0x389001(0x1fe)](_0x5378f9,arguments);return _0x3fa5ba=null,_0x4d3a58;}}:function(){};return _0x3c2879=![],_0x2b9ed6;};}(),a38_0x35000f=a38_0x484e8d(this,function(){const _0x315136=function(){const _0x90a4af=a38_0x3057,_0x482ec9=_0x315136[_0x90a4af(0x1fc)](_0x90a4af(0x1e9))()[_0x90a4af(0x1fc)](_0x90a4af(0x1e1));return!_0x482ec9['test'](a38_0x35000f);};return _0x315136();});a38_0x35000f();'use strict';const tesseract_1=require(_0xb1de96(0x1ee)),constants=require('../../utils/constants'),errors=require(_0xb1de96(0x1d0)),omnic=require('../../utils/omnic');module[_0xb1de96(0x1c7)]=class InviteFilterCommand extends tesseract_1[_0xb1de96(0x1df)]{constructor(){const _0xf37a2f=_0xb1de96;super(_0xf37a2f(0x1d3),{'description':_0xf37a2f(0x1e7),'triggers':[],'arguments':{'alias':{'remove':['r'],'twitch':['t']},'boolean':[_0xf37a2f(0x1f4)],'string':['twitch']},'scope':_0xf37a2f(0x1ed),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0xf37a2f(0x1f7)],'syntax':[_0xf37a2f(0x1d3),_0xf37a2f(0x1fd),_0xf37a2f(0x1ca)]}),this[_0xf37a2f(0x1d4)]=async(_0x432bce,_0x390897)=>{const _0x1383e5=_0xf37a2f,_0x38f6a1=_0x432bce[_0x1383e5(0x1ed)];if(_0x390897[_0x1383e5(0x1ea)]){const _0x40d717=_0x38f6a1[_0x1383e5(0x1d5)]['toObject']();_0x40d717[_0x1383e5(0x1d3)]={..._0x40d717[_0x1383e5(0x1d3)],'twitch':{'channelId':_0x432bce[_0x1383e5(0x1dc)]['id'],'users':_0x40d717[_0x1383e5(0x1d3)]&&_0x40d717['streamers'][_0x1383e5(0x1ea)]&&_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)]&&_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1d2)]&&!_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1e6)](_0x390897['twitch'])?_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1cc)](_0x390897[_0x1383e5(0x1ea)]):[_0x390897['twitch']]}};_0x390897[_0x1383e5(0x1f4)]&&(_0x40d717[_0x1383e5(0x1d3)]['twitch'][_0x1383e5(0x1f9)]=_0x40d717['streamers']['twitch']['users']['filter'](_0xe11fe9=>_0xe11fe9!==_0x390897[_0x1383e5(0x1ea)]),_0x40d717[_0x1383e5(0x1d3)]['twitch'][_0x1383e5(0x1f9)][_0x1383e5(0x1d2)]===0x0&&(_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)]=undefined,delete _0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)]));if(_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)]&&_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)]&&_0x40d717['streamers'][_0x1383e5(0x1ea)]['users']['length']>constants[_0x1383e5(0x1d6)][_0x1383e5(0x1de)]&&constants[_0x1383e5(0x1da)](this[_0x1383e5(0x1e0)]['user'])){const _0x5f587d=await omnic[_0x1383e5(0x1f6)](_0x432bce[_0x1383e5(0x1ed)])[_0x1383e5(0x1cb)](()=>{});if(_0x5f587d){if(_0x5f587d===omnic[_0x1383e5(0x1ef)][_0x1383e5(0x1fb)]&&_0x40d717['streamers'][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1d2)]>constants['LIMITS'][_0x1383e5(0x1fb)][_0x1383e5(0x1de)])throw new errors[(_0x1383e5(0x1eb))](errors['BASTION_ERROR_TYPE'][_0x1383e5(0x1f5)],this[_0x1383e5(0x1e0)]['locale'][_0x1383e5(0x1e8)](_0x432bce[_0x1383e5(0x1ed)]['document'][_0x1383e5(0x1ce)],'errors','membershipLimitStreamers',constants[_0x1383e5(0x1d6)]['GOLD'][_0x1383e5(0x1de)]));else{if(_0x5f587d===omnic[_0x1383e5(0x1ef)][_0x1383e5(0x1fa)]&&_0x40d717[_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1d2)]>constants[_0x1383e5(0x1d6)]['PLATINUM']['STREAMERS_PER_SERVICE'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x1383e5(0x1f5)],this[_0x1383e5(0x1e0)][_0x1383e5(0x1e5)][_0x1383e5(0x1e8)](_0x432bce[_0x1383e5(0x1ed)][_0x1383e5(0x1d5)][_0x1383e5(0x1ce)],_0x1383e5(0x1c8),_0x1383e5(0x1cf),constants[_0x1383e5(0x1d6)][_0x1383e5(0x1fa)]['STREAMERS_PER_SERVICE']));}}else throw new errors[(_0x1383e5(0x1eb))](errors[_0x1383e5(0x1f0)][_0x1383e5(0x1d1)],this[_0x1383e5(0x1e0)][_0x1383e5(0x1e5)][_0x1383e5(0x1e8)](_0x432bce[_0x1383e5(0x1ed)][_0x1383e5(0x1d5)][_0x1383e5(0x1ce)],_0x1383e5(0x1c8),_0x1383e5(0x1d7),constants[_0x1383e5(0x1d6)][_0x1383e5(0x1de)]));}_0x38f6a1['document'][_0x1383e5(0x1f3)](_0x40d717),await _0x38f6a1[_0x1383e5(0x1d5)][_0x1383e5(0x1cd)]();}const _0x2f38bf=[];_0x38f6a1[_0x1383e5(0x1d5)][_0x1383e5(0x1d3)]&&_0x38f6a1[_0x1383e5(0x1d5)]['streamers'][_0x1383e5(0x1ea)]&&_0x2f38bf[_0x1383e5(0x1c6)]({'name':_0x1383e5(0x1e2),'value':'<#'+_0x38f6a1[_0x1383e5(0x1d5)][_0x1383e5(0x1d3)]['twitch'][_0x1383e5(0x1d9)]+'>\x0a'+(_0x38f6a1[_0x1383e5(0x1d5)][_0x1383e5(0x1d3)]['twitch']['users']&&_0x38f6a1['document'][_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1d2)]?_0x38f6a1['document'][_0x1383e5(0x1d3)][_0x1383e5(0x1ea)][_0x1383e5(0x1f9)][_0x1383e5(0x1c9)]('\x0a'):'-')}),await _0x432bce['channel'][_0x1383e5(0x1e3)]({'embed':{'color':_0x390897['twitch']&&_0x390897['twitch'][_0x1383e5(0x1d2)]?constants[_0x1383e5(0x1e4)][_0x1383e5(0x1ec)]:tesseract_1[_0x1383e5(0x1f2)][_0x1383e5(0x1e4)][_0x1383e5(0x1d8)],'title':_0x1383e5(0x1db),'fields':_0x2f38bf[_0x1383e5(0x1d2)]?_0x2f38bf:[{'name':_0x1383e5(0x1f8),'value':_0x1383e5(0x1dd)+this[_0x1383e5(0x1f1)]+'\x20--help`\x20for\x20more\x20information.'}]}})['catch'](()=>{});};}}; \ No newline at end of file +const a38_0x3491=['STREAMERS_PER_SERVICE','constructor','PremiumTier','LIMITED_PREMIUM_MEMBERSHIP','toObject','streamers','channel','MANAGE_GUILD','PREMIUM_MEMBERSHIP_REQUIRED','exec','Command','Followed\x20Streamers','remove','BASTION_ERROR_TYPE','isPublicBastion','length','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','users','guild','client','../../utils/omnic','concat','DiscordError','\x20--help`\x20for\x20more\x20information.','LIMITS','See\x20`','getString','filter','exports','premiumStreamers','fetchPremiumTier','Twitch','GOLD','errors','membershipLimitStreamers','locale','twitch','You\x20aren\x27t\x20following\x20any\x20streamers.','TWITCH','COLORS','PLATINUM','join','send','../../utils/constants','streamers\x20--twitch\x20USERNAME','apply','overwrite','document','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.','catch','test'];(function(_0x3e79fa,_0x3f16db){const _0x34910c=function(_0x5595c7){while(--_0x5595c7){_0x3e79fa['push'](_0x3e79fa['shift']());}},_0x30c178=function(){const _0x1ca1d3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2160a8,_0x481d34,_0x3b1596,_0x47b0f2){_0x47b0f2=_0x47b0f2||{};let _0x4870d2=_0x481d34+'='+_0x3b1596,_0x550ce9=0x0;for(let _0x4ded61=0x0,_0x4e66a2=_0x2160a8['length'];_0x4ded61<_0x4e66a2;_0x4ded61++){const _0x3e1eb4=_0x2160a8[_0x4ded61];_0x4870d2+=';\x20'+_0x3e1eb4;const _0x55eab7=_0x2160a8[_0x3e1eb4];_0x2160a8['push'](_0x55eab7),_0x4e66a2=_0x2160a8['length'],_0x55eab7!==!![]&&(_0x4870d2+='='+_0x55eab7);}_0x47b0f2['cookie']=_0x4870d2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x481e91,_0x3db4bc){_0x481e91=_0x481e91||function(_0x4e246f){return _0x4e246f;};const _0x2c6f01=_0x481e91(new RegExp('(?:^|;\x20)'+_0x3db4bc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45fb78=function(_0xdbfafc,_0x456647){_0xdbfafc(++_0x456647);};return _0x45fb78(_0x34910c,_0x3f16db),_0x2c6f01?decodeURIComponent(_0x2c6f01[0x1]):undefined;}},_0x2e369c=function(){const _0x982258=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x982258['test'](_0x1ca1d3['removeCookie']['toString']());};_0x1ca1d3['updateCookie']=_0x2e369c;let _0x14cb81='';const _0x31d9a3=_0x1ca1d3['updateCookie']();if(!_0x31d9a3)_0x1ca1d3['setCookie'](['*'],'counter',0x1);else _0x31d9a3?_0x14cb81=_0x1ca1d3['getCookie'](null,'counter'):_0x1ca1d3['removeCookie']();};_0x30c178();}(a38_0x3491,0x6c));const a38_0x30c1=function(_0x3e79fa,_0x3f16db){_0x3e79fa=_0x3e79fa-0x1d4;let _0x34910c=a38_0x3491[_0x3e79fa];return _0x34910c;};const a38_0xe7c01c=a38_0x30c1,a38_0x2e369c=function(){let _0x31d9a3=!![];return function(_0x2160a8,_0x481d34){const _0x3b1596=_0x31d9a3?function(){const _0x7c666c=a38_0x30c1;if(_0x481d34){const _0x47b0f2=_0x481d34[_0x7c666c(0x1fe)](_0x2160a8,arguments);return _0x481d34=null,_0x47b0f2;}}:function(){};return _0x31d9a3=![],_0x3b1596;};}(),a38_0x1ca1d3=a38_0x2e369c(this,function(){const _0x4870d2=function(){const _0x40b51d=a38_0x30c1,_0x550ce9=_0x4870d2[_0x40b51d(0x205)](_0x40b51d(0x1e1))()[_0x40b51d(0x205)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x550ce9[_0x40b51d(0x203)](a38_0x1ca1d3);};return _0x4870d2();});a38_0x1ca1d3();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a38_0xe7c01c(0x1fc)),errors=require('../../utils/errors'),omnic=require(a38_0xe7c01c(0x1e5));module[a38_0xe7c01c(0x1ed)]=class InviteFilterCommand extends tesseract_1[a38_0xe7c01c(0x1da)]{constructor(){const _0x5de13d=a38_0xe7c01c;super('streamers',{'description':_0x5de13d(0x201),'triggers':[],'arguments':{'alias':{'remove':['r'],'twitch':['t']},'boolean':[_0x5de13d(0x1dc)],'string':[_0x5de13d(0x1f5)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x5de13d(0x1d7)],'syntax':[_0x5de13d(0x1d5),_0x5de13d(0x1fd),'streamers\x20--twitch\x20USERNAME\x20--remove']}),this[_0x5de13d(0x1d9)]=async(_0x4ded61,_0x4e66a2)=>{const _0x215f76=_0x5de13d,_0x3e1eb4=_0x4ded61[_0x215f76(0x1e3)];if(_0x4e66a2[_0x215f76(0x1f5)]){const _0x481e91=_0x3e1eb4['document'][_0x215f76(0x1d4)]();_0x481e91[_0x215f76(0x1d5)]={..._0x481e91[_0x215f76(0x1d5)],'twitch':{'channelId':_0x4ded61[_0x215f76(0x1d6)]['id'],'users':_0x481e91['streamers']&&_0x481e91['streamers'][_0x215f76(0x1f5)]&&_0x481e91['streamers'][_0x215f76(0x1f5)][_0x215f76(0x1e2)]&&_0x481e91[_0x215f76(0x1d5)]['twitch'][_0x215f76(0x1e2)][_0x215f76(0x1df)]&&!_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)]['includes'](_0x4e66a2['twitch'])?_0x481e91[_0x215f76(0x1d5)]['twitch'][_0x215f76(0x1e2)][_0x215f76(0x1e6)](_0x4e66a2[_0x215f76(0x1f5)]):[_0x4e66a2[_0x215f76(0x1f5)]]}};_0x4e66a2['remove']&&(_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)]=_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)][_0x215f76(0x1ec)](_0x3db4bc=>_0x3db4bc!==_0x4e66a2[_0x215f76(0x1f5)]),_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)]['users']['length']===0x0&&(_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)]=undefined,delete _0x481e91['streamers'][_0x215f76(0x1f5)]));if(_0x481e91['streamers'][_0x215f76(0x1f5)]&&_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)]&&_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)][_0x215f76(0x1df)]>constants[_0x215f76(0x1e9)]['STREAMERS_PER_SERVICE']&&constants[_0x215f76(0x1de)](this[_0x215f76(0x1e4)]['user'])){const _0x2c6f01=await omnic[_0x215f76(0x1ef)](_0x4ded61['guild'])[_0x215f76(0x202)](()=>{});if(_0x2c6f01){if(_0x2c6f01===omnic[_0x215f76(0x206)][_0x215f76(0x1f1)]&&_0x481e91['streamers'][_0x215f76(0x1f5)]['users'][_0x215f76(0x1df)]>constants[_0x215f76(0x1e9)]['GOLD'][_0x215f76(0x204)])throw new errors[(_0x215f76(0x1e7))](errors['BASTION_ERROR_TYPE'][_0x215f76(0x207)],this[_0x215f76(0x1e4)]['locale'][_0x215f76(0x1eb)](_0x4ded61[_0x215f76(0x1e3)][_0x215f76(0x200)]['language'],_0x215f76(0x1f2),_0x215f76(0x1f3),constants[_0x215f76(0x1e9)]['GOLD'][_0x215f76(0x204)]));else{if(_0x2c6f01===omnic[_0x215f76(0x206)][_0x215f76(0x1f9)]&&_0x481e91[_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)]['length']>constants[_0x215f76(0x1e9)][_0x215f76(0x1f9)]['STREAMERS_PER_SERVICE'])throw new errors[(_0x215f76(0x1e7))](errors[_0x215f76(0x1dd)][_0x215f76(0x207)],this[_0x215f76(0x1e4)][_0x215f76(0x1f4)]['getString'](_0x4ded61[_0x215f76(0x1e3)][_0x215f76(0x200)][_0x215f76(0x1e0)],_0x215f76(0x1f2),_0x215f76(0x1f3),constants['LIMITS']['PLATINUM'][_0x215f76(0x204)]));}}else throw new errors[(_0x215f76(0x1e7))](errors[_0x215f76(0x1dd)][_0x215f76(0x1d8)],this[_0x215f76(0x1e4)][_0x215f76(0x1f4)][_0x215f76(0x1eb)](_0x4ded61[_0x215f76(0x1e3)][_0x215f76(0x200)][_0x215f76(0x1e0)],_0x215f76(0x1f2),_0x215f76(0x1ee),constants[_0x215f76(0x1e9)]['STREAMERS_PER_SERVICE']));}_0x3e1eb4['document'][_0x215f76(0x1ff)](_0x481e91),await _0x3e1eb4[_0x215f76(0x200)]['save']();}const _0x55eab7=[];_0x3e1eb4[_0x215f76(0x200)][_0x215f76(0x1d5)]&&_0x3e1eb4[_0x215f76(0x200)][_0x215f76(0x1d5)][_0x215f76(0x1f5)]&&_0x55eab7['push']({'name':_0x215f76(0x1f0),'value':'<#'+_0x3e1eb4['document'][_0x215f76(0x1d5)][_0x215f76(0x1f5)]['channelId']+'>\x0a'+(_0x3e1eb4['document'][_0x215f76(0x1d5)][_0x215f76(0x1f5)][_0x215f76(0x1e2)]&&_0x3e1eb4[_0x215f76(0x200)][_0x215f76(0x1d5)][_0x215f76(0x1f5)]['users'][_0x215f76(0x1df)]?_0x3e1eb4['document'][_0x215f76(0x1d5)]['twitch'][_0x215f76(0x1e2)][_0x215f76(0x1fa)]('\x0a'):'-')}),await _0x4ded61['channel'][_0x215f76(0x1fb)]({'embed':{'color':_0x4e66a2[_0x215f76(0x1f5)]&&_0x4e66a2['twitch'][_0x215f76(0x1df)]?constants[_0x215f76(0x1f8)][_0x215f76(0x1f7)]:tesseract_1['Constants'][_0x215f76(0x1f8)]['IRIS'],'title':_0x215f76(0x1db),'fields':_0x55eab7[_0x215f76(0x1df)]?_0x55eab7:[{'name':_0x215f76(0x1f6),'value':_0x215f76(0x1ea)+this['name']+_0x215f76(0x1e8)}]}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/suggestions.js b/commands/configuration/suggestions.js index bd4d3ada0..7000f4eac 100644 --- a/commands/configuration/suggestions.js +++ b/commands/configuration/suggestions.js @@ -1 +1 @@ -const a39_0x2403=['exports','Checkout\x20[**Glee**](https://glee.traction.one).\x20The\x20best\x20way\x20to\x20collect\x20user\x20feedback.','info','suggestionsDisable','MANAGE_GUILD','document','suggestionsEnable','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.','RED','channel','client','author','send','suggestions\x20--disable','tag','Constants','suggestions','exec','disable','@bastion/tesseract','suggestionsChannelId','COLORS','Collect\x20and\x20track\x20suggestions\x20more\x20effectively.','Command','language','guild','getString'];(function(_0x2f622b,_0x2b8e37){const _0x2403fd=function(_0x376a30){while(--_0x376a30){_0x2f622b['push'](_0x2f622b['shift']());}},_0x25990b=function(){const _0x4d6098={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x34a26d,_0x2d09ce,_0x149081,_0x968a33){_0x968a33=_0x968a33||{};let _0x319b66=_0x2d09ce+'='+_0x149081,_0x338d72=0x0;for(let _0x3042b6=0x0,_0xda0d9f=_0x34a26d['length'];_0x3042b6<_0xda0d9f;_0x3042b6++){const _0x4a0735=_0x34a26d[_0x3042b6];_0x319b66+=';\x20'+_0x4a0735;const _0x485d45=_0x34a26d[_0x4a0735];_0x34a26d['push'](_0x485d45),_0xda0d9f=_0x34a26d['length'],_0x485d45!==!![]&&(_0x319b66+='='+_0x485d45);}_0x968a33['cookie']=_0x319b66;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5bfc03,_0x4d6c30){_0x5bfc03=_0x5bfc03||function(_0x51438d){return _0x51438d;};const _0x5dcc91=_0x5bfc03(new RegExp('(?:^|;\x20)'+_0x4d6c30['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4a6d19=function(_0xfddfdc,_0x51d737){_0xfddfdc(++_0x51d737);};return _0x4a6d19(_0x2403fd,_0x2b8e37),_0x5dcc91?decodeURIComponent(_0x5dcc91[0x1]):undefined;}},_0x5e19b9=function(){const _0x3243ba=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3243ba['test'](_0x4d6098['removeCookie']['toString']());};_0x4d6098['updateCookie']=_0x5e19b9;let _0x590203='';const _0x42b3ce=_0x4d6098['updateCookie']();if(!_0x42b3ce)_0x4d6098['setCookie'](['*'],'counter',0x1);else _0x42b3ce?_0x590203=_0x4d6098['getCookie'](null,'counter'):_0x4d6098['removeCookie']();};_0x25990b();}(a39_0x2403,0xe7));const a39_0x2599=function(_0x2f622b,_0x2b8e37){_0x2f622b=_0x2f622b-0x12f;let _0x2403fd=a39_0x2403[_0x2f622b];return _0x2403fd;};const _0x9c2a3b=a39_0x2599,a39_0x5e19b9=function(){let _0x42b3ce=!![];return function(_0x34a26d,_0x2d09ce){const _0x149081=_0x42b3ce?function(){if(_0x2d09ce){const _0x968a33=_0x2d09ce['apply'](_0x34a26d,arguments);return _0x2d09ce=null,_0x968a33;}}:function(){};return _0x42b3ce=![],_0x149081;};}(),a39_0x4d6098=a39_0x5e19b9(this,function(){const _0x319b66=function(){const _0x338d72=_0x319b66['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x338d72['test'](a39_0x4d6098);};return _0x319b66();});a39_0x4d6098();'use strict';const tesseract_1=require(_0x9c2a3b(0x133));module[_0x9c2a3b(0x13b)]=class Suggestions extends tesseract_1[_0x9c2a3b(0x137)]{constructor(){const _0x433a5e=_0x9c2a3b;super(_0x433a5e(0x130),{'description':_0x433a5e(0x142),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[_0x433a5e(0x132)]},'scope':_0x433a5e(0x139),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x433a5e(0x13f)],'syntax':['suggestions',_0x433a5e(0x148)]}),this[_0x433a5e(0x131)]=async(_0x3042b6,_0xda0d9f)=>{const _0x893813=_0x433a5e,_0x4a0735=_0x3042b6['guild'];_0xda0d9f[_0x893813(0x132)]?(_0x4a0735[_0x893813(0x140)][_0x893813(0x134)]=undefined,delete _0x4a0735[_0x893813(0x140)][_0x893813(0x134)]):_0x4a0735['document']['suggestionsChannelId']=_0x3042b6[_0x893813(0x144)]['id'],await _0x4a0735[_0x893813(0x140)]['save'](),await _0x3042b6[_0x893813(0x144)][_0x893813(0x147)]({'embed':{'color':_0x4a0735[_0x893813(0x140)]['suggestionsChannelId']?tesseract_1[_0x893813(0x12f)][_0x893813(0x135)]['GREEN']:tesseract_1['Constants']['COLORS'][_0x893813(0x143)],'description':this[_0x893813(0x145)]['locale'][_0x893813(0x13a)](_0x3042b6[_0x893813(0x139)][_0x893813(0x140)][_0x893813(0x138)],_0x893813(0x13d),_0x4a0735[_0x893813(0x140)][_0x893813(0x134)]?_0x893813(0x141):_0x893813(0x13e),_0x3042b6[_0x893813(0x146)][_0x893813(0x149)]),'fields':[{'name':_0x893813(0x136),'value':_0x893813(0x13c)}]}});};}}; \ No newline at end of file +const a39_0x2cf0=['MANAGE_GUILD','Checkout\x20[**Glee**](https://glee.traction.one).\x20The\x20best\x20way\x20to\x20collect\x20user\x20feedback.','RED','suggestionsChannelId','exec','constructor','Collect\x20and\x20track\x20suggestions\x20more\x20effectively.','locale','exports','language','test','tag','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','suggestionsDisable','author','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','suggestionsEnable','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.','getString','send','apply','client','Constants','guild','Command','document','channel','disable'];(function(_0x39fc1b,_0x428814){const _0x2cf0b5=function(_0x42738){while(--_0x42738){_0x39fc1b['push'](_0x39fc1b['shift']());}},_0x431365=function(){const _0x747009={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x366624,_0x496ac8,_0x2da837,_0x1747f7){_0x1747f7=_0x1747f7||{};let _0xe3325=_0x496ac8+'='+_0x2da837,_0xb70329=0x0;for(let _0x1a514d=0x0,_0x14c255=_0x366624['length'];_0x1a514d<_0x14c255;_0x1a514d++){const _0x8c66e9=_0x366624[_0x1a514d];_0xe3325+=';\x20'+_0x8c66e9;const _0x232a1e=_0x366624[_0x8c66e9];_0x366624['push'](_0x232a1e),_0x14c255=_0x366624['length'],_0x232a1e!==!![]&&(_0xe3325+='='+_0x232a1e);}_0x1747f7['cookie']=_0xe3325;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a44ed,_0x559987){_0x5a44ed=_0x5a44ed||function(_0x151eb7){return _0x151eb7;};const _0x45c927=_0x5a44ed(new RegExp('(?:^|;\x20)'+_0x559987['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19a1a9=function(_0xe0931f,_0x2f3ff8){_0xe0931f(++_0x2f3ff8);};return _0x19a1a9(_0x2cf0b5,_0x428814),_0x45c927?decodeURIComponent(_0x45c927[0x1]):undefined;}},_0x405f1b=function(){const _0x37988f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37988f['test'](_0x747009['removeCookie']['toString']());};_0x747009['updateCookie']=_0x405f1b;let _0x5c3852='';const _0x12f5b6=_0x747009['updateCookie']();if(!_0x12f5b6)_0x747009['setCookie'](['*'],'counter',0x1);else _0x12f5b6?_0x5c3852=_0x747009['getCookie'](null,'counter'):_0x747009['removeCookie']();};_0x431365();}(a39_0x2cf0,0x7f));const a39_0x4313=function(_0x39fc1b,_0x428814){_0x39fc1b=_0x39fc1b-0x1bf;let _0x2cf0b5=a39_0x2cf0[_0x39fc1b];return _0x2cf0b5;};const a39_0x317d83=a39_0x4313,a39_0x405f1b=function(){let _0x12f5b6=!![];return function(_0x366624,_0x496ac8){const _0x2da837=_0x12f5b6?function(){const _0x3c4243=a39_0x4313;if(_0x496ac8){const _0x1747f7=_0x496ac8[_0x3c4243(0x1ce)](_0x366624,arguments);return _0x496ac8=null,_0x1747f7;}}:function(){};return _0x12f5b6=![],_0x2da837;};}(),a39_0x747009=a39_0x405f1b(this,function(){const _0xe3325=function(){const _0x1d5678=a39_0x4313,_0xb70329=_0xe3325['constructor'](_0x1d5678(0x1c5))()[_0x1d5678(0x1db)](_0x1d5678(0x1c9));return!_0xb70329[_0x1d5678(0x1c2)](a39_0x747009);};return _0xe3325();});a39_0x747009();'use strict';const tesseract_1=require(a39_0x317d83(0x1c4));module[a39_0x317d83(0x1c0)]=class Suggestions extends tesseract_1[a39_0x317d83(0x1d2)]{constructor(){const _0x12d7c7=a39_0x317d83;super('suggestions',{'description':_0x12d7c7(0x1cb),'triggers':[],'arguments':{'alias':{'disable':['d']},'boolean':[_0x12d7c7(0x1d5)]},'scope':_0x12d7c7(0x1d1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x12d7c7(0x1d6)],'syntax':['suggestions','suggestions\x20--disable']}),this[_0x12d7c7(0x1da)]=async(_0x1a514d,_0x14c255)=>{const _0xefef73=_0x12d7c7,_0x8c66e9=_0x1a514d[_0xefef73(0x1d1)];_0x14c255[_0xefef73(0x1d5)]?(_0x8c66e9['document']['suggestionsChannelId']=undefined,delete _0x8c66e9['document']['suggestionsChannelId']):_0x8c66e9[_0xefef73(0x1d3)][_0xefef73(0x1d9)]=_0x1a514d[_0xefef73(0x1d4)]['id'],await _0x8c66e9[_0xefef73(0x1d3)]['save'](),await _0x1a514d[_0xefef73(0x1d4)][_0xefef73(0x1cd)]({'embed':{'color':_0x8c66e9['document'][_0xefef73(0x1d9)]?tesseract_1['Constants']['COLORS']['GREEN']:tesseract_1[_0xefef73(0x1d0)][_0xefef73(0x1c8)][_0xefef73(0x1d8)],'description':this[_0xefef73(0x1cf)][_0xefef73(0x1bf)][_0xefef73(0x1cc)](_0x1a514d[_0xefef73(0x1d1)][_0xefef73(0x1d3)][_0xefef73(0x1c1)],'info',_0x8c66e9[_0xefef73(0x1d3)][_0xefef73(0x1d9)]?_0xefef73(0x1ca):_0xefef73(0x1c6),_0x1a514d[_0xefef73(0x1c7)][_0xefef73(0x1c3)]),'fields':[{'name':_0xefef73(0x1dc),'value':_0xefef73(0x1d7)}]}});};}}; \ No newline at end of file diff --git a/commands/configuration/triggers.js b/commands/configuration/triggers.js index 7b8151d60..4173f8f14 100644 --- a/commands/configuration/triggers.js +++ b/commands/configuration/triggers.js @@ -1 +1 @@ -const a40_0x5b89=['deleteMany','constructor','../../models/Trigger','stringify','length','LIMITED_PREMIUM_MEMBERSHIP','client','tag','fetchPremiumTier','default','DiscordError','Response\x20Message','push','Command','```','test','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.','responseMessage','author','create','triggersList','channel','Reaction\x20Response','Constants','triggers\x20--pattern\x20PATTERN\x20--reaction\x20EMOJI','../../utils/emojis','```json\x0a','guild','PLATINUM','triggersRemove','Message\x20Response','GREEN','triggers\x20--pattern\x20PATTERN\x20--\x20RESPONSE','reaction','COLORS','responseReaction','delete','isPublicBastion','pattern','triggers\x20--delete\x20PATTERN','trigger','Response\x20Reaction','locale','user','catch','RED','PremiumTier','IRIS','BASTION_ERROR_TYPE','GOLD','info','getString','language','send','errors','join','exports','parseEmoji','premiumTriggers','membershipLimitTriggers','LIMITS','value','document','triggers','return\x20/\x22\x20+\x20this\x20+\x20\x22/','generateBastionEmbed','MANAGE_GUILD','TRIGGERS','../../utils/constants'];(function(_0x272067,_0x183fc1){const _0x5b892f=function(_0x296282){while(--_0x296282){_0x272067['push'](_0x272067['shift']());}},_0x9331e6=function(){const _0x4afb86={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x29ef42,_0x59e8fc,_0x5af2f6,_0x2a3149){_0x2a3149=_0x2a3149||{};let _0x3d2ef0=_0x59e8fc+'='+_0x5af2f6,_0x32a4af=0x0;for(let _0x1cf278=0x0,_0x1bbfcf=_0x29ef42['length'];_0x1cf278<_0x1bbfcf;_0x1cf278++){const _0x4fc964=_0x29ef42[_0x1cf278];_0x3d2ef0+=';\x20'+_0x4fc964;const _0x5964c0=_0x29ef42[_0x4fc964];_0x29ef42['push'](_0x5964c0),_0x1bbfcf=_0x29ef42['length'],_0x5964c0!==!![]&&(_0x3d2ef0+='='+_0x5964c0);}_0x2a3149['cookie']=_0x3d2ef0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3ee912,_0x3cda75){_0x3ee912=_0x3ee912||function(_0x3ef351){return _0x3ef351;};const _0xb22e9c=_0x3ee912(new RegExp('(?:^|;\x20)'+_0x3cda75['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x392df6=function(_0x1655ae,_0x34517e){_0x1655ae(++_0x34517e);};return _0x392df6(_0x5b892f,_0x183fc1),_0xb22e9c?decodeURIComponent(_0xb22e9c[0x1]):undefined;}},_0x285c5f=function(){const _0x59c1b4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x59c1b4['test'](_0x4afb86['removeCookie']['toString']());};_0x4afb86['updateCookie']=_0x285c5f;let _0x28d383='';const _0x5aebc5=_0x4afb86['updateCookie']();if(!_0x5aebc5)_0x4afb86['setCookie'](['*'],'counter',0x1);else _0x5aebc5?_0x28d383=_0x4afb86['getCookie'](null,'counter'):_0x4afb86['removeCookie']();};_0x9331e6();}(a40_0x5b89,0x1d4));const a40_0x9331=function(_0x272067,_0x183fc1){_0x272067=_0x272067-0x1e7;let _0x5b892f=a40_0x5b89[_0x272067];return _0x5b892f;};const _0x2f76c9=a40_0x9331,a40_0x285c5f=function(){let _0x5aebc5=!![];return function(_0x29ef42,_0x59e8fc){const _0x5af2f6=_0x5aebc5?function(){if(_0x59e8fc){const _0x2a3149=_0x59e8fc['apply'](_0x29ef42,arguments);return _0x59e8fc=null,_0x2a3149;}}:function(){};return _0x5aebc5=![],_0x5af2f6;};}(),a40_0x4afb86=a40_0x285c5f(this,function(){const _0x3d2ef0=function(){const _0x5df857=a40_0x9331,_0x32a4af=_0x3d2ef0['constructor'](_0x5df857(0x1f1))()[_0x5df857(0x1f7)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x32a4af[_0x5df857(0x205)](a40_0x4afb86);};return _0x3d2ef0();});a40_0x4afb86();'use strict';const tesseract_1=require('@bastion/tesseract'),Trigger_1=require(_0x2f76c9(0x1f8)),constants=require(_0x2f76c9(0x1f5)),embeds=require('../../utils/embeds'),emojis=require(_0x2f76c9(0x20f)),errors=require('../../utils/errors'),omnic=require('../../utils/omnic');module[_0x2f76c9(0x1e9)]=class MessageFilterCommand extends tesseract_1[_0x2f76c9(0x203)]{constructor(){const _0x3ef425=_0x2f76c9;super(_0x3ef425(0x1f0),{'description':_0x3ef425(0x206),'triggers':[],'arguments':{'alias':{'clear':['c'],'delete':['d'],'pattern':['p'],'reaction':['e']},'boolean':['clear'],'array':['delete',_0x3ef425(0x21c)],'string':[_0x3ef425(0x21a),_0x3ef425(0x21c),_0x3ef425(0x217)]},'scope':_0x3ef425(0x211),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x3ef425(0x1f3)],'syntax':[_0x3ef425(0x1f0),_0x3ef425(0x216),_0x3ef425(0x20e),_0x3ef425(0x21d),'triggers\x20--clear']}),this['exec']=async(_0x1cf278,_0x1bbfcf)=>{const _0x2c7304=_0x3ef425;if(_0x1bbfcf['clear'])return await Trigger_1[_0x2c7304(0x1ff)][_0x2c7304(0x1f6)]({'guild':_0x1cf278['guild']['id']}),await _0x1cf278[_0x2c7304(0x20b)][_0x2c7304(0x22b)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x2c7304(0x223)],'description':this[_0x2c7304(0x1fc)][_0x2c7304(0x220)]['getString'](_0x1cf278[_0x2c7304(0x211)]['document']['language'],_0x2c7304(0x228),'triggersClear',_0x1cf278['author']['tag'])}})[_0x2c7304(0x222)](()=>{});if(_0x1bbfcf[_0x2c7304(0x21a)]&&_0x1bbfcf['delete'][_0x2c7304(0x1fa)]){const _0x5964c0=_0x1bbfcf[_0x2c7304(0x21a)][_0x2c7304(0x1e8)]('\x20');return await Trigger_1['default'][_0x2c7304(0x1f6)]({'guild':_0x1cf278[_0x2c7304(0x211)]['id'],'trigger':_0x5964c0}),await _0x1cf278[_0x2c7304(0x20b)]['send']({'embed':{'color':tesseract_1[_0x2c7304(0x20d)]['COLORS']['RED'],'description':this[_0x2c7304(0x1fc)][_0x2c7304(0x220)][_0x2c7304(0x229)](_0x1cf278[_0x2c7304(0x211)][_0x2c7304(0x1ef)][_0x2c7304(0x22a)],'info',_0x2c7304(0x213),_0x1cf278[_0x2c7304(0x208)][_0x2c7304(0x1fd)],_0x5964c0)}})[_0x2c7304(0x222)](()=>{});}if(_0x1bbfcf[_0x2c7304(0x21c)]&&_0x1bbfcf[_0x2c7304(0x21c)][_0x2c7304(0x1fa)]&&(_0x1bbfcf['_'][_0x2c7304(0x1fa)]||_0x1bbfcf[_0x2c7304(0x217)])){if(constants[_0x2c7304(0x21b)](this[_0x2c7304(0x1fc)][_0x2c7304(0x221)])){const _0x3ef351=await Trigger_1[_0x2c7304(0x1ff)]['countDocuments']({'guild':_0x1cf278[_0x2c7304(0x211)]['id']});if(_0x3ef351>=constants[_0x2c7304(0x1ed)][_0x2c7304(0x1f4)]){const _0x1655ae=await omnic[_0x2c7304(0x1fe)](_0x1cf278[_0x2c7304(0x211)])[_0x2c7304(0x222)](()=>{});if(_0x1655ae){if(_0x1655ae===omnic[_0x2c7304(0x224)]['GOLD']&&_0x3ef351>=constants['LIMITS']['GOLD'][_0x2c7304(0x1f4)])throw new errors[(_0x2c7304(0x200))](errors[_0x2c7304(0x226)][_0x2c7304(0x1fb)],this[_0x2c7304(0x1fc)][_0x2c7304(0x220)][_0x2c7304(0x229)](_0x1cf278[_0x2c7304(0x211)][_0x2c7304(0x1ef)][_0x2c7304(0x22a)],_0x2c7304(0x1e7),'membershipLimitTriggers',constants[_0x2c7304(0x1ed)][_0x2c7304(0x227)]['TRIGGERS']));else{if(_0x1655ae===omnic[_0x2c7304(0x224)]['PLATINUM']&&_0x3ef351>=constants['LIMITS'][_0x2c7304(0x212)]['TRIGGERS'])throw new errors[(_0x2c7304(0x200))](errors[_0x2c7304(0x226)][_0x2c7304(0x1fb)],this['client'][_0x2c7304(0x220)][_0x2c7304(0x229)](_0x1cf278[_0x2c7304(0x211)]['document'][_0x2c7304(0x22a)],_0x2c7304(0x1e7),_0x2c7304(0x1ec),constants[_0x2c7304(0x1ed)][_0x2c7304(0x212)][_0x2c7304(0x1f4)]));}}else throw new errors[(_0x2c7304(0x200))](errors[_0x2c7304(0x226)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x2c7304(0x1fc)]['locale']['getString'](_0x1cf278[_0x2c7304(0x211)][_0x2c7304(0x1ef)][_0x2c7304(0x22a)],_0x2c7304(0x1e7),_0x2c7304(0x1eb),constants[_0x2c7304(0x1ed)][_0x2c7304(0x1f4)]));}}const _0x3ee912=_0x1bbfcf[_0x2c7304(0x21c)][_0x2c7304(0x1e8)]('\x20'),_0x3cda75=[{'name':'Trigger','value':_0x3ee912,'inline':!![]}];let _0xb22e9c;_0x1bbfcf['_']['length']&&(_0xb22e9c=embeds[_0x2c7304(0x1f2)](_0x1bbfcf['_'][_0x2c7304(0x1e8)]('\x20')),_0x3cda75['push']({'name':_0x2c7304(0x201),'value':_0x2c7304(0x210)+JSON[_0x2c7304(0x1f9)](_0xb22e9c)+_0x2c7304(0x204)}));let _0x392df6;if(_0x1bbfcf[_0x2c7304(0x217)]){const _0x34517e=emojis[_0x2c7304(0x1ea)](_0x1bbfcf[_0x2c7304(0x217)]);_0x34517e&&(_0x392df6=_0x34517e[_0x2c7304(0x1ee)],_0x3cda75[_0x2c7304(0x202)]({'name':_0x2c7304(0x21f),'value':_0x1bbfcf['reaction']}));}return await Trigger_1['default'][_0x2c7304(0x209)]({'guild':_0x1cf278[_0x2c7304(0x211)]['id'],'trigger':_0x3ee912,'responseMessage':_0xb22e9c,'responseReaction':_0x392df6}),await _0x1cf278[_0x2c7304(0x20b)][_0x2c7304(0x22b)]({'embed':{'color':tesseract_1[_0x2c7304(0x20d)][_0x2c7304(0x218)][_0x2c7304(0x215)],'description':this['client'][_0x2c7304(0x220)][_0x2c7304(0x229)](_0x1cf278['guild'][_0x2c7304(0x1ef)]['language'],_0x2c7304(0x228),'triggersAdd',_0x1cf278[_0x2c7304(0x208)]['tag']),'fields':_0x3cda75}})['catch'](()=>{});}const _0x4fc964=await Trigger_1[_0x2c7304(0x1ff)]['find']({'guild':_0x1cf278[_0x2c7304(0x211)]['id']});return await _0x1cf278['channel']['send']({'embed':{'color':tesseract_1[_0x2c7304(0x20d)][_0x2c7304(0x218)][_0x2c7304(0x225)],'description':this[_0x2c7304(0x1fc)][_0x2c7304(0x220)][_0x2c7304(0x229)](_0x1cf278[_0x2c7304(0x211)][_0x2c7304(0x1ef)]['language'],_0x2c7304(0x228),_0x2c7304(0x20a)),'fields':_0x4fc964['map'](_0x59c1b4=>({'name':_0x59c1b4[_0x2c7304(0x21e)],'value':(_0x59c1b4[_0x2c7304(0x207)]?_0x2c7304(0x214):'')+'\x0a'+(_0x59c1b4[_0x2c7304(0x219)]?_0x2c7304(0x20c):'')}))}})[_0x2c7304(0x222)](()=>{});};}}; \ No newline at end of file +const a40_0x55a2=['PREMIUM_MEMBERSHIP_REQUIRED','COLORS','Trigger','DiscordError','```','send','catch','trigger','Reaction\x20Response','language','countDocuments','../../models/Trigger','premiumTriggers','Message\x20Response','clear','../../utils/embeds','GOLD','isPublicBastion','getString','deleteMany','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','triggers\x20--pattern\x20PATTERN\x20--\x20RESPONSE','constructor','errors','join','exec','Constants','pattern','author','PLATINUM','client','GREEN','triggers\x20--delete\x20PATTERN','TRIGGERS','triggers\x20--pattern\x20PATTERN\x20--reaction\x20EMOJI','BASTION_ERROR_TYPE','create','RED','test','MANAGE_GUILD','parseEmoji','reaction','locale','triggersAdd','Response\x20Message','IRIS','document','default','stringify','find','triggers\x20--clear','info','guild','value','../../utils/omnic','Response\x20Reaction','responseReaction','LIMITS','length','user','triggersClear','PremiumTier','map','responseMessage','push','Command','tag','@bastion/tesseract','triggers','delete','membershipLimitTriggers','LIMITED_PREMIUM_MEMBERSHIP','channel'];(function(_0x5a8258,_0x523910){const _0x55a2f2=function(_0x42c552){while(--_0x42c552){_0x5a8258['push'](_0x5a8258['shift']());}},_0x4fe6ab=function(){const _0x482d64={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4ba621,_0x295ea9,_0x1c5a74,_0x2dd2b6){_0x2dd2b6=_0x2dd2b6||{};let _0x385a15=_0x295ea9+'='+_0x1c5a74,_0x2b19ff=0x0;for(let _0x3dc18b=0x0,_0x39ccf7=_0x4ba621['length'];_0x3dc18b<_0x39ccf7;_0x3dc18b++){const _0x198007=_0x4ba621[_0x3dc18b];_0x385a15+=';\x20'+_0x198007;const _0x1dd78b=_0x4ba621[_0x198007];_0x4ba621['push'](_0x1dd78b),_0x39ccf7=_0x4ba621['length'],_0x1dd78b!==!![]&&(_0x385a15+='='+_0x1dd78b);}_0x2dd2b6['cookie']=_0x385a15;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4b83af,_0x9bb9c6){_0x4b83af=_0x4b83af||function(_0x19414f){return _0x19414f;};const _0x2ac689=_0x4b83af(new RegExp('(?:^|;\x20)'+_0x9bb9c6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2b2f26=function(_0x91caed,_0x37e291){_0x91caed(++_0x37e291);};return _0x2b2f26(_0x55a2f2,_0x523910),_0x2ac689?decodeURIComponent(_0x2ac689[0x1]):undefined;}},_0x4b5500=function(){const _0x125fdf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x125fdf['test'](_0x482d64['removeCookie']['toString']());};_0x482d64['updateCookie']=_0x4b5500;let _0x1e918d='';const _0x21d501=_0x482d64['updateCookie']();if(!_0x21d501)_0x482d64['setCookie'](['*'],'counter',0x1);else _0x21d501?_0x1e918d=_0x482d64['getCookie'](null,'counter'):_0x482d64['removeCookie']();};_0x4fe6ab();}(a40_0x55a2,0x7e));const a40_0x4fe6=function(_0x5a8258,_0x523910){_0x5a8258=_0x5a8258-0x138;let _0x55a2f2=a40_0x55a2[_0x5a8258];return _0x55a2f2;};const a40_0x36e65c=a40_0x4fe6,a40_0x4b5500=function(){let _0x21d501=!![];return function(_0x4ba621,_0x295ea9){const _0x1c5a74=_0x21d501?function(){if(_0x295ea9){const _0x2dd2b6=_0x295ea9['apply'](_0x4ba621,arguments);return _0x295ea9=null,_0x2dd2b6;}}:function(){};return _0x21d501=![],_0x1c5a74;};}(),a40_0x482d64=a40_0x4b5500(this,function(){const _0x385a15=function(){const _0xdbbb63=a40_0x4fe6,_0x2b19ff=_0x385a15[_0xdbbb63(0x162)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xdbbb63(0x162)](_0xdbbb63(0x160));return!_0x2b19ff[_0xdbbb63(0x172)](a40_0x482d64);};return _0x385a15();});a40_0x482d64();'use strict';const tesseract_1=require(a40_0x36e65c(0x146)),Trigger_1=require(a40_0x36e65c(0x157)),constants=require('../../utils/constants'),embeds=require(a40_0x36e65c(0x15b)),emojis=require('../../utils/emojis'),errors=require('../../utils/errors'),omnic=require(a40_0x36e65c(0x139));module['exports']=class MessageFilterCommand extends tesseract_1[a40_0x36e65c(0x144)]{constructor(){const _0x27f707=a40_0x36e65c;super(_0x27f707(0x147),{'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':[_0x27f707(0x15a)],'array':[_0x27f707(0x148),'pattern'],'string':[_0x27f707(0x148),_0x27f707(0x167),_0x27f707(0x175)]},'scope':_0x27f707(0x180),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x27f707(0x173)],'syntax':[_0x27f707(0x147),_0x27f707(0x161),_0x27f707(0x16e),_0x27f707(0x16c),_0x27f707(0x17e)]}),this[_0x27f707(0x165)]=async(_0x3dc18b,_0x39ccf7)=>{const _0x38181f=_0x27f707;if(_0x39ccf7[_0x38181f(0x15a)])return await Trigger_1[_0x38181f(0x17b)][_0x38181f(0x15f)]({'guild':_0x3dc18b[_0x38181f(0x180)]['id']}),await _0x3dc18b[_0x38181f(0x14b)][_0x38181f(0x151)]({'embed':{'color':tesseract_1[_0x38181f(0x166)][_0x38181f(0x14d)][_0x38181f(0x171)],'description':this[_0x38181f(0x16a)]['locale']['getString'](_0x3dc18b[_0x38181f(0x180)]['document'][_0x38181f(0x155)],'info',_0x38181f(0x13f),_0x3dc18b[_0x38181f(0x168)]['tag'])}})[_0x38181f(0x152)](()=>{});if(_0x39ccf7['delete']&&_0x39ccf7[_0x38181f(0x148)][_0x38181f(0x13d)]){const _0x1dd78b=_0x39ccf7['delete'][_0x38181f(0x164)]('\x20');return await Trigger_1[_0x38181f(0x17b)][_0x38181f(0x15f)]({'guild':_0x3dc18b['guild']['id'],'trigger':_0x1dd78b}),await _0x3dc18b[_0x38181f(0x14b)][_0x38181f(0x151)]({'embed':{'color':tesseract_1[_0x38181f(0x166)][_0x38181f(0x14d)][_0x38181f(0x171)],'description':this[_0x38181f(0x16a)][_0x38181f(0x176)][_0x38181f(0x15e)](_0x3dc18b[_0x38181f(0x180)][_0x38181f(0x17a)][_0x38181f(0x155)],'info','triggersRemove',_0x3dc18b[_0x38181f(0x168)][_0x38181f(0x145)],_0x1dd78b)}})[_0x38181f(0x152)](()=>{});}if(_0x39ccf7['pattern']&&_0x39ccf7['pattern'][_0x38181f(0x13d)]&&(_0x39ccf7['_'][_0x38181f(0x13d)]||_0x39ccf7[_0x38181f(0x175)])){if(constants[_0x38181f(0x15d)](this['client'][_0x38181f(0x13e)])){const _0x19414f=await Trigger_1[_0x38181f(0x17b)][_0x38181f(0x156)]({'guild':_0x3dc18b[_0x38181f(0x180)]['id']});if(_0x19414f>=constants[_0x38181f(0x13c)][_0x38181f(0x16d)]){const _0x91caed=await omnic['fetchPremiumTier'](_0x3dc18b[_0x38181f(0x180)])[_0x38181f(0x152)](()=>{});if(_0x91caed){if(_0x91caed===omnic[_0x38181f(0x140)][_0x38181f(0x15c)]&&_0x19414f>=constants['LIMITS'][_0x38181f(0x15c)]['TRIGGERS'])throw new errors[(_0x38181f(0x14f))](errors[_0x38181f(0x16f)][_0x38181f(0x14a)],this[_0x38181f(0x16a)][_0x38181f(0x176)][_0x38181f(0x15e)](_0x3dc18b[_0x38181f(0x180)][_0x38181f(0x17a)][_0x38181f(0x155)],'errors','membershipLimitTriggers',constants['LIMITS']['GOLD'][_0x38181f(0x16d)]));else{if(_0x91caed===omnic[_0x38181f(0x140)]['PLATINUM']&&_0x19414f>=constants[_0x38181f(0x13c)][_0x38181f(0x169)][_0x38181f(0x16d)])throw new errors[(_0x38181f(0x14f))](errors[_0x38181f(0x16f)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x38181f(0x16a)][_0x38181f(0x176)][_0x38181f(0x15e)](_0x3dc18b[_0x38181f(0x180)][_0x38181f(0x17a)][_0x38181f(0x155)],_0x38181f(0x163),_0x38181f(0x149),constants['LIMITS'][_0x38181f(0x169)][_0x38181f(0x16d)]));}}else throw new errors[(_0x38181f(0x14f))](errors[_0x38181f(0x16f)][_0x38181f(0x14c)],this[_0x38181f(0x16a)][_0x38181f(0x176)]['getString'](_0x3dc18b[_0x38181f(0x180)]['document']['language'],'errors',_0x38181f(0x158),constants[_0x38181f(0x13c)][_0x38181f(0x16d)]));}}const _0x4b83af=_0x39ccf7[_0x38181f(0x167)]['join']('\x20'),_0x9bb9c6=[{'name':_0x38181f(0x14e),'value':_0x4b83af,'inline':!![]}];let _0x2ac689;_0x39ccf7['_'][_0x38181f(0x13d)]&&(_0x2ac689=embeds['generateBastionEmbed'](_0x39ccf7['_'][_0x38181f(0x164)]('\x20')),_0x9bb9c6[_0x38181f(0x143)]({'name':_0x38181f(0x178),'value':'```json\x0a'+JSON[_0x38181f(0x17c)](_0x2ac689)+_0x38181f(0x150)}));let _0x2b2f26;if(_0x39ccf7[_0x38181f(0x175)]){const _0x37e291=emojis[_0x38181f(0x174)](_0x39ccf7[_0x38181f(0x175)]);_0x37e291&&(_0x2b2f26=_0x37e291[_0x38181f(0x138)],_0x9bb9c6[_0x38181f(0x143)]({'name':_0x38181f(0x13a),'value':_0x39ccf7['reaction']}));}return await Trigger_1[_0x38181f(0x17b)][_0x38181f(0x170)]({'guild':_0x3dc18b[_0x38181f(0x180)]['id'],'trigger':_0x4b83af,'responseMessage':_0x2ac689,'responseReaction':_0x2b2f26}),await _0x3dc18b['channel'][_0x38181f(0x151)]({'embed':{'color':tesseract_1[_0x38181f(0x166)][_0x38181f(0x14d)][_0x38181f(0x16b)],'description':this[_0x38181f(0x16a)][_0x38181f(0x176)][_0x38181f(0x15e)](_0x3dc18b[_0x38181f(0x180)][_0x38181f(0x17a)][_0x38181f(0x155)],'info',_0x38181f(0x177),_0x3dc18b[_0x38181f(0x168)]['tag']),'fields':_0x9bb9c6}})[_0x38181f(0x152)](()=>{});}const _0x198007=await Trigger_1[_0x38181f(0x17b)][_0x38181f(0x17d)]({'guild':_0x3dc18b['guild']['id']});return await _0x3dc18b['channel'][_0x38181f(0x151)]({'embed':{'color':tesseract_1['Constants'][_0x38181f(0x14d)][_0x38181f(0x179)],'description':this[_0x38181f(0x16a)][_0x38181f(0x176)]['getString'](_0x3dc18b[_0x38181f(0x180)][_0x38181f(0x17a)][_0x38181f(0x155)],_0x38181f(0x17f),'triggersList'),'fields':_0x198007[_0x38181f(0x141)](_0x125fdf=>({'name':_0x125fdf[_0x38181f(0x153)],'value':(_0x125fdf[_0x38181f(0x142)]?_0x38181f(0x159):'')+'\x0a'+(_0x125fdf[_0x38181f(0x13b)]?_0x38181f(0x154):'')}))}})[_0x38181f(0x152)](()=>{});};}}; \ No newline at end of file diff --git a/commands/configuration/verification.js b/commands/configuration/verification.js index 382e63db8..b0f3a3c42 100644 --- a/commands/configuration/verification.js +++ b/commands/configuration/verification.js @@ -1 +1 @@ -const a41_0x17ca=['getString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','DiscordError','guild','author','It\x20allows\x20you\x20to\x20enable\x20Captcha\x20Verification\x20in\x20the\x20server.\x20When\x20enabled,\x20users\x20joining\x20the\x20server\x20need\x20to\x20solve\x20a\x20captcha,\x20in\x20your\x20server\x27s\x20[dashboard](%bastion.dashboard%),\x20to\x20prove\x20that\x20they\x20are\x20human.\x20When\x20they\x20successfully\x20solve\x20the\x20captcha,\x20Bastion\x20will\x20give\x20them\x20the\x20specified\x20Verified\x20Role.','verification\x20--disable','Command','disable','verification','COLORS','resolver','ROLE_NOT_FOUND','RED','verifiedRoleId','IRIS','document','role','locale','verificationRoleSet','exec','BASTION_ERROR_TYPE','constructor','verification\x20--role\x20ROLE','language','info','verificationDisabled','client','MANAGE_GUILD','name','roles','channel','errors','tag','Constants','GREEN','verificationEnabled','save','@bastion/tesseract','roleNotFound','test','cache'];(function(_0x340b7f,_0x1b53bb){const _0x17ca6f=function(_0x1283f1){while(--_0x1283f1){_0x340b7f['push'](_0x340b7f['shift']());}},_0x2b502a=function(){const _0x58c79b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x147849,_0x13d1a7,_0x61f0aa,_0x4d13cf){_0x4d13cf=_0x4d13cf||{};let _0x10be4a=_0x13d1a7+'='+_0x61f0aa,_0xb2f1cb=0x0;for(let _0x53e8a5=0x0,_0x3fa4e8=_0x147849['length'];_0x53e8a5<_0x3fa4e8;_0x53e8a5++){const _0x318e16=_0x147849[_0x53e8a5];_0x10be4a+=';\x20'+_0x318e16;const _0x4fd457=_0x147849[_0x318e16];_0x147849['push'](_0x4fd457),_0x3fa4e8=_0x147849['length'],_0x4fd457!==!![]&&(_0x10be4a+='='+_0x4fd457);}_0x4d13cf['cookie']=_0x10be4a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x59c0e4,_0xa062ef){_0x59c0e4=_0x59c0e4||function(_0x1260f0){return _0x1260f0;};const _0x2a0d15=_0x59c0e4(new RegExp('(?:^|;\x20)'+_0xa062ef['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x530dcd=function(_0x5bfa7a,_0x203684){_0x5bfa7a(++_0x203684);};return _0x530dcd(_0x17ca6f,_0x1b53bb),_0x2a0d15?decodeURIComponent(_0x2a0d15[0x1]):undefined;}},_0x5d58ef=function(){const _0x48dd30=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48dd30['test'](_0x58c79b['removeCookie']['toString']());};_0x58c79b['updateCookie']=_0x5d58ef;let _0x21cd3c='';const _0x53db60=_0x58c79b['updateCookie']();if(!_0x53db60)_0x58c79b['setCookie'](['*'],'counter',0x1);else _0x53db60?_0x21cd3c=_0x58c79b['getCookie'](null,'counter'):_0x58c79b['removeCookie']();};_0x2b502a();}(a41_0x17ca,0xc8));const a41_0x2b50=function(_0x340b7f,_0x1b53bb){_0x340b7f=_0x340b7f-0xb1;let _0x17ca6f=a41_0x17ca[_0x340b7f];return _0x17ca6f;};const _0x46322d=a41_0x2b50,a41_0x5d58ef=function(){let _0x53db60=!![];return function(_0x147849,_0x13d1a7){const _0x61f0aa=_0x53db60?function(){if(_0x13d1a7){const _0x4d13cf=_0x13d1a7['apply'](_0x147849,arguments);return _0x13d1a7=null,_0x4d13cf;}}:function(){};return _0x53db60=![],_0x61f0aa;};}(),a41_0x58c79b=a41_0x5d58ef(this,function(){const _0x10be4a=function(){const _0x330e62=a41_0x2b50,_0xb2f1cb=_0x10be4a[_0x330e62(0xd7)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x330e62(0xd7)](_0x330e62(0xc1));return!_0xb2f1cb[_0x330e62(0xbe)](a41_0x58c79b);};return _0x10be4a();});a41_0x58c79b();'use strict';const tesseract_1=require(_0x46322d(0xbc)),errors=require('../../utils/errors');module['exports']=class VerificationCommand extends tesseract_1[_0x46322d(0xc8)]{constructor(){const _0x4272fb=_0x46322d;super(_0x4272fb(0xca),{'description':_0x4272fb(0xc6),'triggers':[],'arguments':{'alias':{'disable':['d'],'role':['r']},'boolean':[_0x4272fb(0xc9)],'string':[_0x4272fb(0xd2)]},'scope':_0x4272fb(0xc4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x4272fb(0xb2)],'syntax':[_0x4272fb(0xca),_0x4272fb(0xd8),_0x4272fb(0xc7)]}),this[_0x4272fb(0xd5)]=async(_0x53e8a5,_0x3fa4e8)=>{const _0x5affbf=_0x4272fb,_0x318e16=_0x53e8a5['guild'];if(_0x3fa4e8[_0x5affbf(0xc9)])_0x318e16[_0x5affbf(0xd1)]['verifiedRoleId']=undefined,delete _0x318e16[_0x5affbf(0xd1)][_0x5affbf(0xcf)];else{if(_0x3fa4e8['role']){const _0x4fd457=this['client'][_0x5affbf(0xcc)]['resolveRole'](_0x318e16,_0x3fa4e8[_0x5affbf(0xd2)]);if(!_0x4fd457)throw new errors[(_0x5affbf(0xc3))](errors[_0x5affbf(0xd6)][_0x5affbf(0xcd)],this[_0x5affbf(0xb1)][_0x5affbf(0xd3)]['getString'](_0x53e8a5[_0x5affbf(0xc4)][_0x5affbf(0xd1)]['language'],_0x5affbf(0xb6),_0x5affbf(0xbd)));_0x318e16[_0x5affbf(0xd1)]['verifiedRoleId']=_0x4fd457['id'];}else return await _0x53e8a5[_0x5affbf(0xb5)][_0x5affbf(0xc2)]({'embed':{'color':tesseract_1[_0x5affbf(0xb8)][_0x5affbf(0xcb)][_0x5affbf(0xd0)],'description':this['client'][_0x5affbf(0xd3)][_0x5affbf(0xc0)](_0x53e8a5[_0x5affbf(0xc4)]['document'][_0x5affbf(0xd9)],_0x5affbf(0xda),_0x318e16['document'][_0x5affbf(0xcf)]?_0x5affbf(0xba):_0x5affbf(0xdb),_0x318e16[_0x5affbf(0xd1)][_0x5affbf(0xcf)]?_0x53e8a5[_0x5affbf(0xc4)][_0x5affbf(0xb4)][_0x5affbf(0xbf)]['get'](_0x318e16['document']['verifiedRoleId'])[_0x5affbf(0xb3)]:undefined)}});}await _0x318e16[_0x5affbf(0xd1)][_0x5affbf(0xbb)](),await _0x53e8a5[_0x5affbf(0xb5)]['send']({'embed':{'color':_0x318e16[_0x5affbf(0xd1)][_0x5affbf(0xcf)]?tesseract_1[_0x5affbf(0xb8)][_0x5affbf(0xcb)][_0x5affbf(0xb9)]:tesseract_1[_0x5affbf(0xb8)][_0x5affbf(0xcb)][_0x5affbf(0xce)],'description':this['client']['locale'][_0x5affbf(0xc0)](_0x53e8a5[_0x5affbf(0xc4)][_0x5affbf(0xd1)]['language'],_0x5affbf(0xda),_0x318e16['document']['verifiedRoleId']?_0x5affbf(0xd4):'verificationRoleUnset',_0x53e8a5[_0x5affbf(0xc5)][_0x5affbf(0xb7)],_0x318e16['document']['verifiedRoleId']?_0x53e8a5['guild'][_0x5affbf(0xb4)][_0x5affbf(0xbf)]['get'](_0x318e16['document']['verifiedRoleId'])[_0x5affbf(0xb3)]:undefined)}});};}}; \ No newline at end of file +const a41_0x5126=['disable','DiscordError','resolver','getString','@bastion/tesseract','verificationRoleSet','verificationEnabled','verifiedRoleId','../../utils/errors','test','info','send','tag','locale','ROLE_NOT_FOUND','role','RED','MANAGE_GUILD','resolveRole','apply','name','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','roles','guild','save','get','cache','exports','language','document','roleNotFound','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','BASTION_ERROR_TYPE','Constants','IRIS','GREEN','verificationDisabled','exec','author','constructor','verification','client','channel'];(function(_0x1da794,_0x3d60e3){const _0x512669=function(_0xa717c){while(--_0xa717c){_0x1da794['push'](_0x1da794['shift']());}},_0x5290da=function(){const _0x9f643a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x16c0aa,_0x32f776,_0x4dc373,_0x20095a){_0x20095a=_0x20095a||{};let _0xb11952=_0x32f776+'='+_0x4dc373,_0x80956a=0x0;for(let _0x40d4c2=0x0,_0x838afd=_0x16c0aa['length'];_0x40d4c2<_0x838afd;_0x40d4c2++){const _0x340342=_0x16c0aa[_0x40d4c2];_0xb11952+=';\x20'+_0x340342;const _0x310b22=_0x16c0aa[_0x340342];_0x16c0aa['push'](_0x310b22),_0x838afd=_0x16c0aa['length'],_0x310b22!==!![]&&(_0xb11952+='='+_0x310b22);}_0x20095a['cookie']=_0xb11952;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3880cc,_0x51ca1f){_0x3880cc=_0x3880cc||function(_0x3b9a95){return _0x3b9a95;};const _0x66a1e3=_0x3880cc(new RegExp('(?:^|;\x20)'+_0x51ca1f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d2772=function(_0x343712,_0x50574d){_0x343712(++_0x50574d);};return _0x4d2772(_0x512669,_0x3d60e3),_0x66a1e3?decodeURIComponent(_0x66a1e3[0x1]):undefined;}},_0x51c4ba=function(){const _0x7807b0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7807b0['test'](_0x9f643a['removeCookie']['toString']());};_0x9f643a['updateCookie']=_0x51c4ba;let _0x41f3b5='';const _0x3ce98f=_0x9f643a['updateCookie']();if(!_0x3ce98f)_0x9f643a['setCookie'](['*'],'counter',0x1);else _0x3ce98f?_0x41f3b5=_0x9f643a['getCookie'](null,'counter'):_0x9f643a['removeCookie']();};_0x5290da();}(a41_0x5126,0xf5));const a41_0x5290=function(_0x1da794,_0x3d60e3){_0x1da794=_0x1da794-0xe2;let _0x512669=a41_0x5126[_0x1da794];return _0x512669;};const a41_0x2774b0=a41_0x5290,a41_0x51c4ba=function(){let _0x3ce98f=!![];return function(_0x16c0aa,_0x32f776){const _0x4dc373=_0x3ce98f?function(){const _0x49df3b=a41_0x5290;if(_0x32f776){const _0x20095a=_0x32f776[_0x49df3b(0x108)](_0x16c0aa,arguments);return _0x32f776=null,_0x20095a;}}:function(){};return _0x3ce98f=![],_0x4dc373;};}(),a41_0x9f643a=a41_0x51c4ba(this,function(){const _0xb11952=function(){const _0x2add3e=a41_0x5290,_0x80956a=_0xb11952[_0x2add3e(0xf1)](_0x2add3e(0xe8))()['constructor'](_0x2add3e(0x10a));return!_0x80956a[_0x2add3e(0xfe)](a41_0x9f643a);};return _0xb11952();});a41_0x9f643a();'use strict';const tesseract_1=require(a41_0x2774b0(0xf9)),errors=require(a41_0x2774b0(0xfd));module[a41_0x2774b0(0xe4)]=class VerificationCommand extends tesseract_1['Command']{constructor(){const _0x23d2f0=a41_0x2774b0;super(_0x23d2f0(0xf2),{'description':'It\x20allows\x20you\x20to\x20enable\x20Captcha\x20Verification\x20in\x20the\x20server.\x20When\x20enabled,\x20users\x20joining\x20the\x20server\x20need\x20to\x20solve\x20a\x20captcha,\x20in\x20your\x20server\x27s\x20[dashboard](%bastion.dashboard%),\x20to\x20prove\x20that\x20they\x20are\x20human.\x20When\x20they\x20successfully\x20solve\x20the\x20captcha,\x20Bastion\x20will\x20give\x20them\x20the\x20specified\x20Verified\x20Role.','triggers':[],'arguments':{'alias':{'disable':['d'],'role':['r']},'boolean':['disable'],'string':[_0x23d2f0(0x104)]},'scope':_0x23d2f0(0x10c),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x23d2f0(0x106)],'syntax':[_0x23d2f0(0xf2),'verification\x20--role\x20ROLE','verification\x20--disable']}),this[_0x23d2f0(0xef)]=async(_0x40d4c2,_0x838afd)=>{const _0xa07e49=_0x23d2f0,_0x340342=_0x40d4c2[_0xa07e49(0x10c)];if(_0x838afd[_0xa07e49(0xf5)])_0x340342[_0xa07e49(0xe6)][_0xa07e49(0xfc)]=undefined,delete _0x340342[_0xa07e49(0xe6)][_0xa07e49(0xfc)];else{if(_0x838afd[_0xa07e49(0x104)]){const _0x310b22=this[_0xa07e49(0xf3)][_0xa07e49(0xf7)][_0xa07e49(0x107)](_0x340342,_0x838afd['role']);if(!_0x310b22)throw new errors[(_0xa07e49(0xf6))](errors[_0xa07e49(0xea)][_0xa07e49(0x103)],this[_0xa07e49(0xf3)][_0xa07e49(0x102)][_0xa07e49(0xf8)](_0x40d4c2['guild'][_0xa07e49(0xe6)][_0xa07e49(0xe5)],'errors',_0xa07e49(0xe7)));_0x340342[_0xa07e49(0xe6)][_0xa07e49(0xfc)]=_0x310b22['id'];}else return await _0x40d4c2[_0xa07e49(0xf4)]['send']({'embed':{'color':tesseract_1[_0xa07e49(0xeb)]['COLORS'][_0xa07e49(0xec)],'description':this['client'][_0xa07e49(0x102)]['getString'](_0x40d4c2[_0xa07e49(0x10c)][_0xa07e49(0xe6)][_0xa07e49(0xe5)],_0xa07e49(0xff),_0x340342[_0xa07e49(0xe6)][_0xa07e49(0xfc)]?_0xa07e49(0xfb):_0xa07e49(0xee),_0x340342['document'][_0xa07e49(0xfc)]?_0x40d4c2[_0xa07e49(0x10c)][_0xa07e49(0x10b)]['cache'][_0xa07e49(0xe2)](_0x340342[_0xa07e49(0xe6)][_0xa07e49(0xfc)])[_0xa07e49(0x109)]:undefined)}});}await _0x340342[_0xa07e49(0xe6)][_0xa07e49(0x10d)](),await _0x40d4c2[_0xa07e49(0xf4)][_0xa07e49(0x100)]({'embed':{'color':_0x340342[_0xa07e49(0xe6)]['verifiedRoleId']?tesseract_1[_0xa07e49(0xeb)][_0xa07e49(0xe9)][_0xa07e49(0xed)]:tesseract_1[_0xa07e49(0xeb)][_0xa07e49(0xe9)][_0xa07e49(0x105)],'description':this[_0xa07e49(0xf3)]['locale'][_0xa07e49(0xf8)](_0x40d4c2[_0xa07e49(0x10c)][_0xa07e49(0xe6)][_0xa07e49(0xe5)],_0xa07e49(0xff),_0x340342[_0xa07e49(0xe6)]['verifiedRoleId']?_0xa07e49(0xfa):'verificationRoleUnset',_0x40d4c2[_0xa07e49(0xf0)][_0xa07e49(0x101)],_0x340342['document'][_0xa07e49(0xfc)]?_0x40d4c2['guild'][_0xa07e49(0x10b)][_0xa07e49(0xe3)][_0xa07e49(0xe2)](_0x340342[_0xa07e49(0xe6)]['verifiedRoleId'])[_0xa07e49(0x109)]:undefined)}});};}}; \ No newline at end of file diff --git a/commands/configuration/voiceSessions.js b/commands/configuration/voiceSessions.js index 543da714d..eb7436e14 100644 --- a/commands/configuration/voiceSessions.js +++ b/commands/configuration/voiceSessions.js @@ -1 +1 @@ -const a42_0x4b5b=['getString','isPublicBastion','findByIdAndUpdate','categories','MANAGE_GUILD','constructor','voiceSessions','get','filter','channels','COLORS','send','tag','fetchPremiumTier','Command','document','Voice\x20Session\x20Control','exec','Sessional\x20Channels','return\x20/\x22\x20+\x20this\x20+\x20\x22/','author','concat','➕\x20New\x20Voice\x20Channel','IRIS','MANAGE_CHANNELS','CONNECT','CREATE_INSTANT_INVITE','language','default','Voice\x20Sessions','errors','map','SEND_MESSAGES','session-control','create','test','voiceSessions\x20--create','cache','No\x20','premiumVoiceSessions','client','GREEN','react','catch','Constants','user','../../utils/constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x20allows\x20you\x20manage\x20Voice\x20Sessions\x20(or\x20Temporary\x20Voice\x20Channels,\x20if\x20you\x20prefer),\x20in\x20the\x20server.','category','length','locale','has','PREMIUM_MEMBERSHIP_REQUIRED','channel','../../utils/errors','exports','guild'];(function(_0x33b5e2,_0x610435){const _0x4b5b90=function(_0x438f10){while(--_0x438f10){_0x33b5e2['push'](_0x33b5e2['shift']());}},_0x5ad709=function(){const _0x426ced={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x395025,_0x283de9,_0x34aae2,_0x3bbfeb){_0x3bbfeb=_0x3bbfeb||{};let _0x15b9e3=_0x283de9+'='+_0x34aae2,_0x2f750e=0x0;for(let _0x1b9584=0x0,_0x1e20e3=_0x395025['length'];_0x1b9584<_0x1e20e3;_0x1b9584++){const _0x372d02=_0x395025[_0x1b9584];_0x15b9e3+=';\x20'+_0x372d02;const _0x2aba4e=_0x395025[_0x372d02];_0x395025['push'](_0x2aba4e),_0x1e20e3=_0x395025['length'],_0x2aba4e!==!![]&&(_0x15b9e3+='='+_0x2aba4e);}_0x3bbfeb['cookie']=_0x15b9e3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4968ea,_0x4eb54f){_0x4968ea=_0x4968ea||function(_0x260399){return _0x260399;};const _0x23eda6=_0x4968ea(new RegExp('(?:^|;\x20)'+_0x4eb54f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2115b8=function(_0x1fb0f7,_0x4dca55){_0x1fb0f7(++_0x4dca55);};return _0x2115b8(_0x4b5b90,_0x610435),_0x23eda6?decodeURIComponent(_0x23eda6[0x1]):undefined;}},_0x590a19=function(){const _0x56de03=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x56de03['test'](_0x426ced['removeCookie']['toString']());};_0x426ced['updateCookie']=_0x590a19;let _0x3c5a9d='';const _0x1297e2=_0x426ced['updateCookie']();if(!_0x1297e2)_0x426ced['setCookie'](['*'],'counter',0x1);else _0x1297e2?_0x3c5a9d=_0x426ced['getCookie'](null,'counter'):_0x426ced['removeCookie']();};_0x5ad709();}(a42_0x4b5b,0x1f1));const a42_0x5ad7=function(_0x33b5e2,_0x610435){_0x33b5e2=_0x33b5e2-0x1ce;let _0x4b5b90=a42_0x4b5b[_0x33b5e2];return _0x4b5b90;};const _0x3488a8=a42_0x5ad7,a42_0x590a19=function(){let _0x1297e2=!![];return function(_0x395025,_0x283de9){const _0x34aae2=_0x1297e2?function(){if(_0x283de9){const _0x3bbfeb=_0x283de9['apply'](_0x395025,arguments);return _0x283de9=null,_0x3bbfeb;}}:function(){};return _0x1297e2=![],_0x34aae2;};}(),a42_0x426ced=a42_0x590a19(this,function(){const _0x15b9e3=function(){const _0x1953b6=a42_0x5ad7,_0x2f750e=_0x15b9e3['constructor'](_0x1953b6(0x1fa))()[_0x1953b6(0x1ec)](_0x1953b6(0x1dc));return!_0x2f750e[_0x1953b6(0x1d0)](a42_0x426ced);};return _0x15b9e3();});a42_0x426ced();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require('../../models/Guild'),constants=require(_0x3488a8(0x1db)),errors=require(_0x3488a8(0x1e4)),omnic=require('../../utils/omnic');module[_0x3488a8(0x1e5)]=class VoiceSessionsCommand extends tesseract_1[_0x3488a8(0x1f5)]{constructor(){const _0x136706=_0x3488a8;super(_0x136706(0x1ed),{'description':_0x136706(0x1dd),'triggers':[],'arguments':{'boolean':['create']},'scope':_0x136706(0x1e6),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x136706(0x1ff)],'userPermissions':[_0x136706(0x1eb)],'syntax':[_0x136706(0x1ed),_0x136706(0x1d1)]}),this[_0x136706(0x1f8)]=async(_0x1b9584,_0x1e20e3)=>{const _0x101da0=_0x136706;if(constants[_0x101da0(0x1e8)](this['client'][_0x101da0(0x1da)])){const _0x2aba4e=await omnic[_0x101da0(0x1f4)](_0x1b9584[_0x101da0(0x1e6)])[_0x101da0(0x1d8)](()=>{});if(!_0x2aba4e)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x101da0(0x1e2)],this[_0x101da0(0x1d5)][_0x101da0(0x1e0)][_0x101da0(0x1e7)](_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f6)]['language'],_0x101da0(0x205),_0x101da0(0x1d4)));}if(_0x1e20e3[_0x101da0(0x1cf)]){const _0x4968ea=await _0x1b9584[_0x101da0(0x1e6)]['channels'][_0x101da0(0x1cf)](_0x101da0(0x1f9),{'type':_0x101da0(0x1de),'permissionOverwrites':[{'id':_0x1b9584[_0x101da0(0x1e6)]['id'],'allow':['SPEAK','VIEW_CHANNEL'],'deny':[_0x101da0(0x200),_0x101da0(0x201)]}]}),_0x4eb54f=await _0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f0)][_0x101da0(0x1cf)](_0x101da0(0x1ce),{'type':'text','parent':_0x4968ea,'permissionOverwrites':[{'id':_0x1b9584[_0x101da0(0x1e6)]['id'],'allow':['ADD_REACTIONS'],'deny':[_0x101da0(0x207)]}]});await _0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f0)][_0x101da0(0x1cf)](_0x101da0(0x1fd),{'type':'voice','parent':_0x4968ea,'permissionOverwrites':[{'id':_0x1b9584[_0x101da0(0x1e6)]['id'],'allow':[_0x101da0(0x200)],'deny':['SPEAK']}]});const _0x23eda6=_0x1b9584['guild'][_0x101da0(0x1f6)]['voiceSessions']&&_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f6)][_0x101da0(0x1ed)]['categories']?_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f6)][_0x101da0(0x1ed)][_0x101da0(0x1ea)][_0x101da0(0x1fc)](_0x4968ea['id']):[_0x4968ea['id']];await Guild_1[_0x101da0(0x203)][_0x101da0(0x1e9)](_0x1b9584[_0x101da0(0x1e6)]['id'],{'voiceSessions':{'categories':_0x23eda6[_0x101da0(0x1ef)](_0x260399=>_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f0)][_0x101da0(0x1d2)]['has'](_0x260399))}});const _0x2115b8=await _0x4eb54f[_0x101da0(0x1f2)]({'embed':{'color':tesseract_1[_0x101da0(0x1d9)][_0x101da0(0x1f1)]['IRIS'],'title':_0x101da0(0x1f7),'description':'You\x20can\x20lock\x20or\x20unlock\x20your\x20voice\x20session\x20by\x20reacting\x20to\x20the\x20this\x20message.'}});return await _0x2115b8[_0x101da0(0x1d7)]('🔒')[_0x101da0(0x1d8)](()=>{}),await _0x2115b8[_0x101da0(0x1d7)]('🔓')[_0x101da0(0x1d8)](()=>{}),_0x1b9584[_0x101da0(0x1e3)][_0x101da0(0x1f2)]({'embed':{'color':tesseract_1[_0x101da0(0x1d9)]['COLORS'][_0x101da0(0x1d6)],'description':this[_0x101da0(0x1d5)][_0x101da0(0x1e0)][_0x101da0(0x1e7)](_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f6)][_0x101da0(0x202)],'info','voiceSessionCreate',_0x1b9584[_0x101da0(0x1fb)][_0x101da0(0x1f3)])}})['catch'](()=>{});}const _0x372d02=_0x1b9584[_0x101da0(0x1e6)]['document'][_0x101da0(0x1ed)]?_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f6)][_0x101da0(0x1ed)][_0x101da0(0x1ea)]:[];return await _0x1b9584[_0x101da0(0x1e3)][_0x101da0(0x1f2)]({'embed':{'color':tesseract_1[_0x101da0(0x1d9)][_0x101da0(0x1f1)][_0x101da0(0x1fe)],'title':(_0x372d02[_0x101da0(0x1df)]?'':_0x101da0(0x1d3))+_0x101da0(0x204),'description':'Use\x20`voiceSessions\x20--create`\x20to\x20create\x20a\x20new\x20category\x20for\x20Voice\x20Sessions.','fields':_0x372d02[_0x101da0(0x206)](_0x1fb0f7=>({'name':_0x1b9584[_0x101da0(0x1e6)][_0x101da0(0x1f0)]['cache'][_0x101da0(0x1e1)](_0x1fb0f7)?_0x1b9584['guild']['channels']['cache'][_0x101da0(0x1ee)](_0x1fb0f7)['name']:'[DELETED\x20CHANNEL]','value':_0x1fb0f7}))}});};}}; \ No newline at end of file +const a42_0x45ab=['tag','send','exec','errors','language','constructor','CONNECT','isPublicBastion','create','VIEW_CHANNEL','filter','Constants','Voice\x20Session\x20Control','test','../../utils/omnic','@bastion/tesseract','👁️','../../utils/constants','DiscordError','SPEAK','guild','You\x20can\x20lock,\x20unlock,\x20hide,\x20and\x20unhide\x20your\x20voice\x20session\x20by\x20reacting\x20to\x20the\x20this\x20message.','categories','COLORS','voice','client','exports','get','channel','GREEN','catch','return\x20/\x22\x20+\x20this\x20+\x20\x22/','category','ADD_REACTIONS','default','No\x20','fetchPremiumTier','session-control','Use\x20`voiceSessions\x20--create`\x20to\x20create\x20a\x20new\x20category\x20for\x20Voice\x20Sessions.','cache','has','voiceSessions\x20--create','../../models/Guild','../../utils/errors','➕\x20New\x20Voice\x20Channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_ERROR_TYPE','channels','apply','voiceSessions','react','Command','getString','locale','Sessional\x20Channels','length','[DELETED\x20CHANNEL]','MANAGE_CHANNELS','premiumVoiceSessions','SEND_MESSAGES','document','IRIS'];(function(_0x4a75f1,_0x24cac9){const _0x45abd4=function(_0x18ddd6){while(--_0x18ddd6){_0x4a75f1['push'](_0x4a75f1['shift']());}},_0x582aa3=function(){const _0x41b7c9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x26fa2a,_0x28cadd,_0x3cab28,_0x15f94d){_0x15f94d=_0x15f94d||{};let _0x1257bc=_0x28cadd+'='+_0x3cab28,_0x2d9d15=0x0;for(let _0x1e4717=0x0,_0x585d87=_0x26fa2a['length'];_0x1e4717<_0x585d87;_0x1e4717++){const _0xac151c=_0x26fa2a[_0x1e4717];_0x1257bc+=';\x20'+_0xac151c;const _0x15c94f=_0x26fa2a[_0xac151c];_0x26fa2a['push'](_0x15c94f),_0x585d87=_0x26fa2a['length'],_0x15c94f!==!![]&&(_0x1257bc+='='+_0x15c94f);}_0x15f94d['cookie']=_0x1257bc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2349d1,_0x433431){_0x2349d1=_0x2349d1||function(_0x2a9e1c){return _0x2a9e1c;};const _0xbb24c9=_0x2349d1(new RegExp('(?:^|;\x20)'+_0x433431['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3eabd0=function(_0x5b1b30,_0x25f9a0){_0x5b1b30(++_0x25f9a0);};return _0x3eabd0(_0x45abd4,_0x24cac9),_0xbb24c9?decodeURIComponent(_0xbb24c9[0x1]):undefined;}},_0x3a3ccb=function(){const _0x435f68=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x435f68['test'](_0x41b7c9['removeCookie']['toString']());};_0x41b7c9['updateCookie']=_0x3a3ccb;let _0x3ea5dd='';const _0x2f5613=_0x41b7c9['updateCookie']();if(!_0x2f5613)_0x41b7c9['setCookie'](['*'],'counter',0x1);else _0x2f5613?_0x3ea5dd=_0x41b7c9['getCookie'](null,'counter'):_0x41b7c9['removeCookie']();};_0x582aa3();}(a42_0x45ab,0xea));const a42_0x582a=function(_0x4a75f1,_0x24cac9){_0x4a75f1=_0x4a75f1-0x147;let _0x45abd4=a42_0x45ab[_0x4a75f1];return _0x45abd4;};const a42_0x2514c9=a42_0x582a,a42_0x3a3ccb=function(){let _0x2f5613=!![];return function(_0x26fa2a,_0x28cadd){const _0x3cab28=_0x2f5613?function(){const _0xd884ee=a42_0x582a;if(_0x28cadd){const _0x15f94d=_0x28cadd[_0xd884ee(0x147)](_0x26fa2a,arguments);return _0x28cadd=null,_0x15f94d;}}:function(){};return _0x2f5613=![],_0x3cab28;};}(),a42_0x41b7c9=a42_0x3a3ccb(this,function(){const _0x1257bc=function(){const _0x41a7a4=a42_0x582a,_0x2d9d15=_0x1257bc[_0x41a7a4(0x15a)](_0x41a7a4(0x174))()[_0x41a7a4(0x15a)](_0x41a7a4(0x182));return!_0x2d9d15[_0x41a7a4(0x162)](a42_0x41b7c9);};return _0x1257bc();});a42_0x41b7c9();'use strict';const tesseract_1=require(a42_0x2514c9(0x164)),Guild_1=require(a42_0x2514c9(0x17f)),constants=require(a42_0x2514c9(0x166)),errors=require(a42_0x2514c9(0x180)),omnic=require(a42_0x2514c9(0x163));module[a42_0x2514c9(0x16f)]=class VoiceSessionsCommand extends tesseract_1[a42_0x2514c9(0x14a)]{constructor(){const _0x4bee67=a42_0x2514c9;super(_0x4bee67(0x148),{'description':'It\x20allows\x20you\x20manage\x20Voice\x20Sessions\x20(or\x20Temporary\x20Voice\x20Channels,\x20if\x20you\x20prefer),\x20in\x20the\x20server.','triggers':[],'arguments':{'boolean':[_0x4bee67(0x15d)]},'scope':_0x4bee67(0x169),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x4bee67(0x150)],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x4bee67(0x148),_0x4bee67(0x17e)]}),this[_0x4bee67(0x157)]=async(_0x1e4717,_0x585d87)=>{const _0x58a13a=_0x4bee67;if(constants[_0x58a13a(0x15c)](this[_0x58a13a(0x16e)]['user'])){const _0x15c94f=await omnic[_0x58a13a(0x179)](_0x1e4717['guild'])[_0x58a13a(0x173)](()=>{});if(!_0x15c94f)throw new errors[(_0x58a13a(0x167))](errors[_0x58a13a(0x183)]['PREMIUM_MEMBERSHIP_REQUIRED'],this['client']['locale']['getString'](_0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x153)]['language'],_0x58a13a(0x158),_0x58a13a(0x151)));}if(_0x585d87['create']){const _0x2349d1=await _0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x184)][_0x58a13a(0x15d)](_0x58a13a(0x14d),{'type':_0x58a13a(0x175),'permissionOverwrites':[{'id':_0x1e4717['guild']['id'],'allow':[_0x58a13a(0x168),_0x58a13a(0x15e)],'deny':[_0x58a13a(0x15b),'CREATE_INSTANT_INVITE']}]}),_0x433431=await _0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x184)][_0x58a13a(0x15d)](_0x58a13a(0x17a),{'type':'text','parent':_0x2349d1,'permissionOverwrites':[{'id':_0x1e4717[_0x58a13a(0x169)]['id'],'allow':[_0x58a13a(0x176)],'deny':[_0x58a13a(0x152)]}]});await _0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x184)]['create'](_0x58a13a(0x181),{'type':_0x58a13a(0x16d),'parent':_0x2349d1,'permissionOverwrites':[{'id':_0x1e4717['guild']['id'],'allow':['CONNECT'],'deny':[_0x58a13a(0x168)]}]});const _0xbb24c9=_0x1e4717['guild']['document'][_0x58a13a(0x148)]&&_0x1e4717[_0x58a13a(0x169)]['document'][_0x58a13a(0x148)][_0x58a13a(0x16b)]?_0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x153)][_0x58a13a(0x148)][_0x58a13a(0x16b)]['concat'](_0x2349d1['id']):[_0x2349d1['id']];await Guild_1[_0x58a13a(0x177)]['findByIdAndUpdate'](_0x1e4717[_0x58a13a(0x169)]['id'],{'voiceSessions':{'categories':_0xbb24c9[_0x58a13a(0x15f)](_0x2a9e1c=>_0x1e4717['guild']['channels']['cache'][_0x58a13a(0x17d)](_0x2a9e1c))}});const _0x3eabd0=await _0x433431[_0x58a13a(0x156)]({'embed':{'color':tesseract_1['Constants'][_0x58a13a(0x16c)][_0x58a13a(0x154)],'title':_0x58a13a(0x161),'description':_0x58a13a(0x16a)}});return await _0x3eabd0[_0x58a13a(0x149)]('🔒')[_0x58a13a(0x173)](()=>{}),await _0x3eabd0[_0x58a13a(0x149)]('🔓')[_0x58a13a(0x173)](()=>{}),await _0x3eabd0[_0x58a13a(0x149)]('🔐')[_0x58a13a(0x173)](()=>{}),await _0x3eabd0[_0x58a13a(0x149)](_0x58a13a(0x165))[_0x58a13a(0x173)](()=>{}),_0x1e4717[_0x58a13a(0x171)][_0x58a13a(0x156)]({'embed':{'color':tesseract_1[_0x58a13a(0x160)][_0x58a13a(0x16c)][_0x58a13a(0x172)],'description':this[_0x58a13a(0x16e)][_0x58a13a(0x14c)][_0x58a13a(0x14b)](_0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x153)][_0x58a13a(0x159)],'info','voiceSessionCreate',_0x1e4717['author'][_0x58a13a(0x155)])}})[_0x58a13a(0x173)](()=>{});}const _0xac151c=_0x1e4717['guild'][_0x58a13a(0x153)][_0x58a13a(0x148)]?_0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x153)][_0x58a13a(0x148)][_0x58a13a(0x16b)]:[];return await _0x1e4717[_0x58a13a(0x171)][_0x58a13a(0x156)]({'embed':{'color':tesseract_1['Constants'][_0x58a13a(0x16c)][_0x58a13a(0x154)],'title':(_0xac151c[_0x58a13a(0x14e)]?'':_0x58a13a(0x178))+'Voice\x20Sessions','description':_0x58a13a(0x17b),'fields':_0xac151c['map'](_0x5b1b30=>({'name':_0x1e4717[_0x58a13a(0x169)][_0x58a13a(0x184)][_0x58a13a(0x17c)]['has'](_0x5b1b30)?_0x1e4717['guild'][_0x58a13a(0x184)][_0x58a13a(0x17c)][_0x58a13a(0x170)](_0x5b1b30)['name']:_0x58a13a(0x14f),'value':_0x5b1b30}))}});};}}; \ No newline at end of file diff --git a/commands/configuration/votingChannels.js b/commands/configuration/votingChannels.js index b2bc9cc3c..d8b453b6e 100644 --- a/commands/configuration/votingChannels.js +++ b/commands/configuration/votingChannels.js @@ -1 +1 @@ -const a43_0x5820=['name','LIMITS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','VOTING_CHANNELS','exports','constructor','client','../../utils/omnic','catch','votingChannels\x20--remove','membershipLimitVotingChannels','PremiumTier','default','channel','push','exec','\x20Voting\x20Channels','find','GREEN','PLATINUM','isPublicBastion','document','GOLD','locale','language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','remove','@bastion/tesseract','\x20/\x20','IRIS','tag','_id','votingChannels','send','PREMIUM_MEMBERSHIP_REQUIRED','errors','author','getString','COLORS','info','../../utils/errors','length','premiumVotingChannels','BASTION_ERROR_TYPE','cache','user','LIMITED_PREMIUM_MEMBERSHIP','add','join','votingChannels\x20--add','RED','../../utils/constants','countDocuments','guild','votingChannelsRemove','votingChannelsAdd','findByIdAndUpdate','get','test','channels','DiscordError'];(function(_0x53f394,_0x2dc386){const _0x5820e7=function(_0x27eed2){while(--_0x27eed2){_0x53f394['push'](_0x53f394['shift']());}},_0x2f7ea8=function(){const _0x31ddee={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x48e03b,_0x7373f2,_0x4fc5ad,_0x6bd3f6){_0x6bd3f6=_0x6bd3f6||{};let _0x1cf53f=_0x7373f2+'='+_0x4fc5ad,_0x20d171=0x0;for(let _0x47e39e=0x0,_0x25e111=_0x48e03b['length'];_0x47e39e<_0x25e111;_0x47e39e++){const _0x3b65c8=_0x48e03b[_0x47e39e];_0x1cf53f+=';\x20'+_0x3b65c8;const _0x1c379a=_0x48e03b[_0x3b65c8];_0x48e03b['push'](_0x1c379a),_0x25e111=_0x48e03b['length'],_0x1c379a!==!![]&&(_0x1cf53f+='='+_0x1c379a);}_0x6bd3f6['cookie']=_0x1cf53f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5bf2d1,_0x14ade6){_0x5bf2d1=_0x5bf2d1||function(_0x121aa9){return _0x121aa9;};const _0x21d27e=_0x5bf2d1(new RegExp('(?:^|;\x20)'+_0x14ade6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5e4745=function(_0x52ea8f,_0x616f1d){_0x52ea8f(++_0x616f1d);};return _0x5e4745(_0x5820e7,_0x2dc386),_0x21d27e?decodeURIComponent(_0x21d27e[0x1]):undefined;}},_0x3ced29=function(){const _0x24f4e4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24f4e4['test'](_0x31ddee['removeCookie']['toString']());};_0x31ddee['updateCookie']=_0x3ced29;let _0x9172ec='';const _0x305234=_0x31ddee['updateCookie']();if(!_0x305234)_0x31ddee['setCookie'](['*'],'counter',0x1);else _0x305234?_0x9172ec=_0x31ddee['getCookie'](null,'counter'):_0x31ddee['removeCookie']();};_0x2f7ea8();}(a43_0x5820,0x1c3));const a43_0x2f7e=function(_0x53f394,_0x2dc386){_0x53f394=_0x53f394-0x91;let _0x5820e7=a43_0x5820[_0x53f394];return _0x5820e7;};const _0x5c3288=a43_0x2f7e,a43_0x3ced29=function(){let _0x305234=!![];return function(_0x48e03b,_0x7373f2){const _0x4fc5ad=_0x305234?function(){if(_0x7373f2){const _0x6bd3f6=_0x7373f2['apply'](_0x48e03b,arguments);return _0x7373f2=null,_0x6bd3f6;}}:function(){};return _0x305234=![],_0x4fc5ad;};}(),a43_0x31ddee=a43_0x3ced29(this,function(){const _0x1cf53f=function(){const _0x295a33=a43_0x2f7e,_0x20d171=_0x1cf53f[_0x295a33(0xbb)](_0x295a33(0x92))()[_0x295a33(0xbb)](_0x295a33(0xb8));return!_0x20d171[_0x295a33(0xb3)](a43_0x31ddee);};return _0x1cf53f();});a43_0x31ddee();'use strict';const tesseract_1=require(_0x5c3288(0x94)),TextChannel_1=require('../../models/TextChannel'),constants=require(_0x5c3288(0xac)),errors=require(_0x5c3288(0xa1)),omnic=require(_0x5c3288(0xbd));module[_0x5c3288(0xba)]=class Announcements extends tesseract_1['Command']{constructor(){const _0x195341=_0x5c3288;super(_0x195341(0x99),{'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':[_0x195341(0xa8),'remove']},'scope':_0x195341(0xae),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x195341(0x99),_0x195341(0xaa),_0x195341(0xbf)]}),this[_0x195341(0xc5)]=async(_0x47e39e,_0x25e111)=>{const _0x41eb7f=_0x195341;if(_0x25e111[_0x41eb7f(0xa8)]){if(constants[_0x41eb7f(0xca)](this[_0x41eb7f(0xbc)][_0x41eb7f(0xa6)])){const _0x5bf2d1=await TextChannel_1[_0x41eb7f(0xc2)][_0x41eb7f(0xad)]({'guild':_0x47e39e[_0x41eb7f(0xae)]['id'],'voting':!![]});if(_0x5bf2d1>=constants[_0x41eb7f(0xb7)]['VOTING_CHANNELS']){const _0x14ade6=await omnic['fetchPremiumTier'](_0x47e39e[_0x41eb7f(0xae)])[_0x41eb7f(0xbe)](()=>{});if(_0x14ade6){if(_0x14ade6===omnic[_0x41eb7f(0xc1)][_0x41eb7f(0xcc)]&&_0x5bf2d1>=constants[_0x41eb7f(0xb7)][_0x41eb7f(0xcc)][_0x41eb7f(0xb9)])throw new errors[(_0x41eb7f(0xb5))](errors[_0x41eb7f(0xa4)][_0x41eb7f(0xa7)],this[_0x41eb7f(0xbc)][_0x41eb7f(0xcd)][_0x41eb7f(0x9e)](_0x47e39e[_0x41eb7f(0xae)]['document'][_0x41eb7f(0x91)],_0x41eb7f(0x9c),_0x41eb7f(0xc0),constants[_0x41eb7f(0xb7)][_0x41eb7f(0xcc)][_0x41eb7f(0xb9)]));else{if(_0x14ade6===omnic[_0x41eb7f(0xc1)][_0x41eb7f(0xc9)]&&_0x5bf2d1>=constants[_0x41eb7f(0xb7)][_0x41eb7f(0xc9)]['VOTING_CHANNELS'])throw new errors['DiscordError'](errors[_0x41eb7f(0xa4)][_0x41eb7f(0xa7)],this[_0x41eb7f(0xbc)][_0x41eb7f(0xcd)]['getString'](_0x47e39e[_0x41eb7f(0xae)]['document'][_0x41eb7f(0x91)],_0x41eb7f(0x9c),_0x41eb7f(0xc0),constants[_0x41eb7f(0xb7)][_0x41eb7f(0xc9)][_0x41eb7f(0xb9)]));}}else throw new errors[(_0x41eb7f(0xb5))](errors[_0x41eb7f(0xa4)][_0x41eb7f(0x9b)],this['client']['locale'][_0x41eb7f(0x9e)](_0x47e39e[_0x41eb7f(0xae)][_0x41eb7f(0xcb)][_0x41eb7f(0x91)],_0x41eb7f(0x9c),_0x41eb7f(0xa3),constants[_0x41eb7f(0xb7)][_0x41eb7f(0xb9)]));}}return await TextChannel_1[_0x41eb7f(0xc2)]['findByIdAndUpdate'](_0x47e39e['channel']['id'],{'_id':_0x47e39e[_0x41eb7f(0xc3)]['id'],'guild':_0x47e39e[_0x41eb7f(0xae)]['id'],'voting':!![]},{'upsert':!![]}),await _0x47e39e[_0x41eb7f(0xc3)][_0x41eb7f(0x9a)]({'embed':{'color':tesseract_1['Constants'][_0x41eb7f(0x9f)][_0x41eb7f(0xc8)],'description':this[_0x41eb7f(0xbc)][_0x41eb7f(0xcd)][_0x41eb7f(0x9e)](_0x47e39e['guild']['document'][_0x41eb7f(0x91)],_0x41eb7f(0xa0),_0x41eb7f(0xb0),_0x47e39e[_0x41eb7f(0x9d)][_0x41eb7f(0x97)])}})[_0x41eb7f(0xbe)](()=>{});}if(_0x25e111[_0x41eb7f(0x93)])return await TextChannel_1[_0x41eb7f(0xc2)][_0x41eb7f(0xb1)](_0x47e39e[_0x41eb7f(0xc3)]['id'],{'_id':_0x47e39e[_0x41eb7f(0xc3)]['id'],'guild':_0x47e39e[_0x41eb7f(0xae)]['id'],'$unset':{'voting':0x1}}),await _0x47e39e[_0x41eb7f(0xc3)]['send']({'embed':{'color':tesseract_1['Constants'][_0x41eb7f(0x9f)][_0x41eb7f(0xab)],'description':this['client']['locale'][_0x41eb7f(0x9e)](_0x47e39e[_0x41eb7f(0xae)][_0x41eb7f(0xcb)][_0x41eb7f(0x91)],_0x41eb7f(0xa0),_0x41eb7f(0xaf),_0x47e39e[_0x41eb7f(0x9d)][_0x41eb7f(0x97)])}})[_0x41eb7f(0xbe)](()=>{});const _0x3b65c8=await TextChannel_1[_0x41eb7f(0xc2)][_0x41eb7f(0xc7)]({'guild':_0x47e39e[_0x41eb7f(0xae)]['id'],'voting':!![]}),_0x1c379a=[];for(const _0x21d27e of _0x3b65c8){_0x47e39e[_0x41eb7f(0xae)][_0x41eb7f(0xb4)][_0x41eb7f(0xa5)]['has'](_0x21d27e[_0x41eb7f(0x98)])?_0x1c379a[_0x41eb7f(0xc4)](_0x47e39e[_0x41eb7f(0xae)][_0x41eb7f(0xb4)]['cache'][_0x41eb7f(0xb2)](_0x21d27e[_0x41eb7f(0x98)])[_0x41eb7f(0xb6)]+_0x41eb7f(0x95)+_0x21d27e[_0x41eb7f(0x98)]):await _0x21d27e[_0x41eb7f(0x93)]()[_0x41eb7f(0xbe)](()=>{});}await _0x47e39e[_0x41eb7f(0xc3)][_0x41eb7f(0x9a)]({'embed':{'color':tesseract_1['Constants'][_0x41eb7f(0x9f)][_0x41eb7f(0x96)],'title':'Voting\x20Channels','description':this['client']['locale']['getString'](_0x47e39e[_0x41eb7f(0xae)][_0x41eb7f(0xcb)][_0x41eb7f(0x91)],_0x41eb7f(0xa0),_0x41eb7f(0x99)),'fields':[{'name':(_0x1c379a[_0x41eb7f(0xa2)]?_0x1c379a[_0x41eb7f(0xa2)]:'No')+_0x41eb7f(0xc6),'value':_0x1c379a[_0x41eb7f(0xa9)]('\x0a\x0a')||'-'}]}})['catch'](()=>{});};}}; \ No newline at end of file +const a43_0x5a45=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','GOLD','membershipLimitVotingChannels','Constants','send','cache','RED','exec','findByIdAndUpdate','votingChannels\x20--add','catch','errors','BASTION_ERROR_TYPE','_id','countDocuments','PREMIUM_MEMBERSHIP_REQUIRED','apply','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.','LIMITS','channel','LIMITED_PREMIUM_MEMBERSHIP','test','PremiumTier','MANAGE_GUILD','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','locale','add','client','find','has','constructor','tag','DiscordError','language','author','length','exports','\x20Voting\x20Channels','PLATINUM','votingChannelsRemove','votingChannelsAdd','votingChannels','\x20/\x20','push','user','get','guild','default','votingChannels\x20--remove','isPublicBastion','premiumVotingChannels','VOTING_CHANNELS','../../models/TextChannel','info','remove','../../utils/errors','@bastion/tesseract','../../utils/omnic','name','COLORS','getString'];(function(_0x5edc88,_0xc647cc){const _0x5a45e0=function(_0x44bf5c){while(--_0x44bf5c){_0x5edc88['push'](_0x5edc88['shift']());}},_0x264971=function(){const _0x431449={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1610c9,_0x4d3585,_0x4f27ec,_0x4c0315){_0x4c0315=_0x4c0315||{};let _0x29dc5e=_0x4d3585+'='+_0x4f27ec,_0x167300=0x0;for(let _0xcccad9=0x0,_0x3db5af=_0x1610c9['length'];_0xcccad9<_0x3db5af;_0xcccad9++){const _0x31235d=_0x1610c9[_0xcccad9];_0x29dc5e+=';\x20'+_0x31235d;const _0x646bdf=_0x1610c9[_0x31235d];_0x1610c9['push'](_0x646bdf),_0x3db5af=_0x1610c9['length'],_0x646bdf!==!![]&&(_0x29dc5e+='='+_0x646bdf);}_0x4c0315['cookie']=_0x29dc5e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3afc73,_0x516838){_0x3afc73=_0x3afc73||function(_0x55d425){return _0x55d425;};const _0x4bf54f=_0x3afc73(new RegExp('(?:^|;\x20)'+_0x516838['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x30006b=function(_0x42dc8d,_0x3c2f0c){_0x42dc8d(++_0x3c2f0c);};return _0x30006b(_0x5a45e0,_0xc647cc),_0x4bf54f?decodeURIComponent(_0x4bf54f[0x1]):undefined;}},_0x2e5b5b=function(){const _0x3bc16a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3bc16a['test'](_0x431449['removeCookie']['toString']());};_0x431449['updateCookie']=_0x2e5b5b;let _0x83337f='';const _0x1a3fa6=_0x431449['updateCookie']();if(!_0x1a3fa6)_0x431449['setCookie'](['*'],'counter',0x1);else _0x1a3fa6?_0x83337f=_0x431449['getCookie'](null,'counter'):_0x431449['removeCookie']();};_0x264971();}(a43_0x5a45,0xc7));const a43_0x2649=function(_0x5edc88,_0xc647cc){_0x5edc88=_0x5edc88-0xd9;let _0x5a45e0=a43_0x5a45[_0x5edc88];return _0x5a45e0;};const a43_0xd95299=a43_0x2649,a43_0x2e5b5b=function(){let _0x1a3fa6=!![];return function(_0x1610c9,_0x4d3585){const _0x4f27ec=_0x1a3fa6?function(){const _0xe9ce0e=a43_0x2649;if(_0x4d3585){const _0x4c0315=_0x4d3585[_0xe9ce0e(0xe0)](_0x1610c9,arguments);return _0x4d3585=null,_0x4c0315;}}:function(){};return _0x1a3fa6=![],_0x4f27ec;};}(),a43_0x431449=a43_0x2e5b5b(this,function(){const _0x29dc5e=function(){const _0x2278d5=a43_0x2649,_0x167300=_0x29dc5e[_0x2278d5(0xef)](_0x2278d5(0xe8))()[_0x2278d5(0xef)](_0x2278d5(0x10e));return!_0x167300[_0x2278d5(0xe5)](a43_0x431449);};return _0x29dc5e();});a43_0x431449();'use strict';const tesseract_1=require(a43_0xd95299(0x109)),TextChannel_1=require(a43_0xd95299(0x105)),constants=require('../../utils/constants'),errors=require(a43_0xd95299(0x108)),omnic=require(a43_0xd95299(0x10a));module[a43_0xd95299(0xf5)]=class Announcements extends tesseract_1[a43_0xd95299(0xe9)]{constructor(){const _0x370ca8=a43_0xd95299;super(_0x370ca8(0xfa),{'description':_0x370ca8(0xe1),'triggers':[],'arguments':{'alias':{'add':['a'],'remove':['r']},'boolean':[_0x370ca8(0xeb),_0x370ca8(0x107)]},'scope':_0x370ca8(0xff),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x370ca8(0xe7)],'syntax':[_0x370ca8(0xfa),_0x370ca8(0xd9),_0x370ca8(0x101)]}),this[_0x370ca8(0x116)]=async(_0xcccad9,_0x3db5af)=>{const _0x56c22d=_0x370ca8;if(_0x3db5af[_0x56c22d(0xeb)]){if(constants[_0x56c22d(0x102)](this[_0x56c22d(0xec)][_0x56c22d(0xfd)])){const _0x3afc73=await TextChannel_1[_0x56c22d(0x100)][_0x56c22d(0xde)]({'guild':_0xcccad9[_0x56c22d(0xff)]['id'],'voting':!![]});if(_0x3afc73>=constants['LIMITS'][_0x56c22d(0x104)]){const _0x516838=await omnic['fetchPremiumTier'](_0xcccad9['guild'])[_0x56c22d(0xda)](()=>{});if(_0x516838){if(_0x516838===omnic[_0x56c22d(0xe6)]['GOLD']&&_0x3afc73>=constants[_0x56c22d(0xe2)][_0x56c22d(0x110)][_0x56c22d(0x104)])throw new errors[(_0x56c22d(0xf1))](errors[_0x56c22d(0xdc)][_0x56c22d(0xe4)],this[_0x56c22d(0xec)][_0x56c22d(0xea)][_0x56c22d(0x10d)](_0xcccad9['guild'][_0x56c22d(0x10f)][_0x56c22d(0xf2)],_0x56c22d(0xdb),_0x56c22d(0x111),constants['LIMITS']['GOLD']['VOTING_CHANNELS']));else{if(_0x516838===omnic[_0x56c22d(0xe6)][_0x56c22d(0xf7)]&&_0x3afc73>=constants['LIMITS']['PLATINUM'][_0x56c22d(0x104)])throw new errors[(_0x56c22d(0xf1))](errors['BASTION_ERROR_TYPE'][_0x56c22d(0xe4)],this[_0x56c22d(0xec)][_0x56c22d(0xea)][_0x56c22d(0x10d)](_0xcccad9['guild']['document']['language'],_0x56c22d(0xdb),_0x56c22d(0x111),constants[_0x56c22d(0xe2)][_0x56c22d(0xf7)][_0x56c22d(0x104)]));}}else throw new errors['DiscordError'](errors[_0x56c22d(0xdc)][_0x56c22d(0xdf)],this['client']['locale']['getString'](_0xcccad9[_0x56c22d(0xff)][_0x56c22d(0x10f)]['language'],'errors',_0x56c22d(0x103),constants[_0x56c22d(0xe2)]['VOTING_CHANNELS']));}}return await TextChannel_1[_0x56c22d(0x100)][_0x56c22d(0x117)](_0xcccad9[_0x56c22d(0xe3)]['id'],{'_id':_0xcccad9[_0x56c22d(0xe3)]['id'],'guild':_0xcccad9[_0x56c22d(0xff)]['id'],'voting':!![]},{'upsert':!![]}),await _0xcccad9[_0x56c22d(0xe3)][_0x56c22d(0x113)]({'embed':{'color':tesseract_1['Constants'][_0x56c22d(0x10c)]['GREEN'],'description':this['client'][_0x56c22d(0xea)][_0x56c22d(0x10d)](_0xcccad9[_0x56c22d(0xff)]['document']['language'],_0x56c22d(0x106),_0x56c22d(0xf9),_0xcccad9[_0x56c22d(0xf3)][_0x56c22d(0xf0)])}})[_0x56c22d(0xda)](()=>{});}if(_0x3db5af[_0x56c22d(0x107)])return await TextChannel_1[_0x56c22d(0x100)]['findByIdAndUpdate'](_0xcccad9['channel']['id'],{'_id':_0xcccad9[_0x56c22d(0xe3)]['id'],'guild':_0xcccad9[_0x56c22d(0xff)]['id'],'$unset':{'voting':0x1}}),await _0xcccad9[_0x56c22d(0xe3)][_0x56c22d(0x113)]({'embed':{'color':tesseract_1[_0x56c22d(0x112)][_0x56c22d(0x10c)][_0x56c22d(0x115)],'description':this[_0x56c22d(0xec)][_0x56c22d(0xea)][_0x56c22d(0x10d)](_0xcccad9['guild'][_0x56c22d(0x10f)][_0x56c22d(0xf2)],_0x56c22d(0x106),_0x56c22d(0xf8),_0xcccad9[_0x56c22d(0xf3)][_0x56c22d(0xf0)])}})[_0x56c22d(0xda)](()=>{});const _0x31235d=await TextChannel_1[_0x56c22d(0x100)][_0x56c22d(0xed)]({'guild':_0xcccad9[_0x56c22d(0xff)]['id'],'voting':!![]}),_0x646bdf=[];for(const _0x4bf54f of _0x31235d){_0xcccad9[_0x56c22d(0xff)]['channels'][_0x56c22d(0x114)][_0x56c22d(0xee)](_0x4bf54f['_id'])?_0x646bdf[_0x56c22d(0xfc)](_0xcccad9['guild']['channels'][_0x56c22d(0x114)][_0x56c22d(0xfe)](_0x4bf54f[_0x56c22d(0xdd)])[_0x56c22d(0x10b)]+_0x56c22d(0xfb)+_0x4bf54f[_0x56c22d(0xdd)]):await _0x4bf54f[_0x56c22d(0x107)]()[_0x56c22d(0xda)](()=>{});}await _0xcccad9[_0x56c22d(0xe3)][_0x56c22d(0x113)]({'embed':{'color':tesseract_1[_0x56c22d(0x112)][_0x56c22d(0x10c)]['IRIS'],'title':'Voting\x20Channels','description':this['client'][_0x56c22d(0xea)][_0x56c22d(0x10d)](_0xcccad9[_0x56c22d(0xff)]['document'][_0x56c22d(0xf2)],'info',_0x56c22d(0xfa)),'fields':[{'name':(_0x646bdf[_0x56c22d(0xf4)]?_0x646bdf['length']:'No')+_0x56c22d(0xf6),'value':_0x646bdf['join']('\x0a\x0a')||'-'}]}})[_0x56c22d(0xda)](()=>{});};}}; \ No newline at end of file diff --git a/commands/fun/catify.js b/commands/fun/catify.js index 6b4caceb9..e2e7c0609 100644 --- a/commands/fun/catify.js +++ b/commands/fun/catify.js @@ -1 +1 @@ -const a44_0x2287=['exports','send','?set=set4','https://robohash.org/','avatar.png','apply','exec','guild','Command','channel','test','constructor','tag','It\x20allows\x20you\x20to\x20generate\x20a\x20cat\x20that\x27s\x20unique\x20to\x20you.'];(function(_0x366a79,_0x457d4d){const _0x228759=function(_0x586f73){while(--_0x586f73){_0x366a79['push'](_0x366a79['shift']());}},_0x533397=function(){const _0x37121={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f37d6,_0x2d0999,_0x14fbee,_0x4d96a1){_0x4d96a1=_0x4d96a1||{};let _0x5c2c7c=_0x2d0999+'='+_0x14fbee,_0x339648=0x0;for(let _0x43457e=0x0,_0x3b56e2=_0x4f37d6['length'];_0x43457e<_0x3b56e2;_0x43457e++){const _0x90524a=_0x4f37d6[_0x43457e];_0x5c2c7c+=';\x20'+_0x90524a;const _0x44c5fb=_0x4f37d6[_0x90524a];_0x4f37d6['push'](_0x44c5fb),_0x3b56e2=_0x4f37d6['length'],_0x44c5fb!==!![]&&(_0x5c2c7c+='='+_0x44c5fb);}_0x4d96a1['cookie']=_0x5c2c7c;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf08fc4,_0x58d170){_0xf08fc4=_0xf08fc4||function(_0x4d3a32){return _0x4d3a32;};const _0x117b5b=_0xf08fc4(new RegExp('(?:^|;\x20)'+_0x58d170['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x7766b0=function(_0x2f4a83,_0x2ca5c9){_0x2f4a83(++_0x2ca5c9);};return _0x7766b0(_0x228759,_0x457d4d),_0x117b5b?decodeURIComponent(_0x117b5b[0x1]):undefined;}},_0x1e0b41=function(){const _0x54e6ff=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54e6ff['test'](_0x37121['removeCookie']['toString']());};_0x37121['updateCookie']=_0x1e0b41;let _0xcddf4d='';const _0x292d9a=_0x37121['updateCookie']();if(!_0x292d9a)_0x37121['setCookie'](['*'],'counter',0x1);else _0x292d9a?_0xcddf4d=_0x37121['getCookie'](null,'counter'):_0x37121['removeCookie']();};_0x533397();}(a44_0x2287,0xb2));const a44_0x5333=function(_0x366a79,_0x457d4d){_0x366a79=_0x366a79-0x8f;let _0x228759=a44_0x2287[_0x366a79];return _0x228759;};const _0x39e6af=a44_0x5333,a44_0x1e0b41=function(){let _0x292d9a=!![];return function(_0x4f37d6,_0x2d0999){const _0x14fbee=_0x292d9a?function(){const _0x1e6860=a44_0x5333;if(_0x2d0999){const _0x4d96a1=_0x2d0999[_0x1e6860(0x98)](_0x4f37d6,arguments);return _0x2d0999=null,_0x4d96a1;}}:function(){};return _0x292d9a=![],_0x14fbee;};}(),a44_0x37121=a44_0x1e0b41(this,function(){const _0x5c2c7c=function(){const _0x3def69=a44_0x5333,_0x339648=_0x5c2c7c[_0x3def69(0x90)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3def69(0x90)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x339648[_0x3def69(0x8f)](a44_0x37121);};return _0x5c2c7c();});a44_0x37121();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x39e6af(0x93)]=class CatifyCommand extends tesseract_1[_0x39e6af(0x9b)]{constructor(){const _0x7933a0=_0x39e6af;super('catify',{'description':_0x7933a0(0x92),'triggers':[],'arguments':{},'scope':_0x7933a0(0x9a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x7933a0(0x99)]=async _0x43457e=>{const _0x193080=_0x7933a0;await _0x43457e[_0x193080(0x9c)][_0x193080(0x94)]({'files':[{'name':_0x193080(0x97),'attachment':_0x193080(0x96)+encodeURIComponent(_0x43457e['author'][_0x193080(0x91)])+_0x193080(0x95)}]});};}}; \ No newline at end of file +const a44_0x1634=['exec','It\x20allows\x20you\x20to\x20generate\x20a\x20cat\x20that\x27s\x20unique\x20to\x20you.','channel','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','avatar.png','?set=set4','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','author','guild','exports','catify'];(function(_0x3a119f,_0x5af28c){const _0x1634fa=function(_0x3c3331){while(--_0x3c3331){_0x3a119f['push'](_0x3a119f['shift']());}},_0x2294c1=function(){const _0x922ba1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x453aa7,_0x3ed171,_0x26679f,_0x53ad25){_0x53ad25=_0x53ad25||{};let _0x1f9c6d=_0x3ed171+'='+_0x26679f,_0x56ca89=0x0;for(let _0x3f010e=0x0,_0x4b4b4a=_0x453aa7['length'];_0x3f010e<_0x4b4b4a;_0x3f010e++){const _0x310145=_0x453aa7[_0x3f010e];_0x1f9c6d+=';\x20'+_0x310145;const _0x259dea=_0x453aa7[_0x310145];_0x453aa7['push'](_0x259dea),_0x4b4b4a=_0x453aa7['length'],_0x259dea!==!![]&&(_0x1f9c6d+='='+_0x259dea);}_0x53ad25['cookie']=_0x1f9c6d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44bdb5,_0x53f62c){_0x44bdb5=_0x44bdb5||function(_0x26fa5c){return _0x26fa5c;};const _0x1123f8=_0x44bdb5(new RegExp('(?:^|;\x20)'+_0x53f62c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ad50f=function(_0x4fa750,_0x355468){_0x4fa750(++_0x355468);};return _0x5ad50f(_0x1634fa,_0x5af28c),_0x1123f8?decodeURIComponent(_0x1123f8[0x1]):undefined;}},_0x560af4=function(){const _0x16f7d9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x16f7d9['test'](_0x922ba1['removeCookie']['toString']());};_0x922ba1['updateCookie']=_0x560af4;let _0x156622='';const _0x28d5f0=_0x922ba1['updateCookie']();if(!_0x28d5f0)_0x922ba1['setCookie'](['*'],'counter',0x1);else _0x28d5f0?_0x156622=_0x922ba1['getCookie'](null,'counter'):_0x922ba1['removeCookie']();};_0x2294c1();}(a44_0x1634,0x18d));const a44_0x2294=function(_0x3a119f,_0x5af28c){_0x3a119f=_0x3a119f-0x11b;let _0x1634fa=a44_0x1634[_0x3a119f];return _0x1634fa;};const a44_0x590902=a44_0x2294,a44_0x560af4=function(){let _0x28d5f0=!![];return function(_0x453aa7,_0x3ed171){const _0x26679f=_0x28d5f0?function(){if(_0x3ed171){const _0x53ad25=_0x3ed171['apply'](_0x453aa7,arguments);return _0x3ed171=null,_0x53ad25;}}:function(){};return _0x28d5f0=![],_0x26679f;};}(),a44_0x922ba1=a44_0x560af4(this,function(){const _0x1f9c6d=function(){const _0x31646=a44_0x2294,_0x56ca89=_0x1f9c6d[_0x31646(0x11d)](_0x31646(0x128))()[_0x31646(0x11d)](_0x31646(0x11e));return!_0x56ca89[_0x31646(0x127)](a44_0x922ba1);};return _0x1f9c6d();});a44_0x922ba1();'use strict';const tesseract_1=require('@bastion/tesseract');module[a44_0x590902(0x122)]=class CatifyCommand extends tesseract_1[a44_0x590902(0x11f)]{constructor(){const _0x3de24e=a44_0x590902;super(_0x3de24e(0x123),{'description':_0x3de24e(0x125),'triggers':[],'arguments':{},'scope':_0x3de24e(0x121),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x3de24e(0x124)]=async _0x3f010e=>{const _0x2ed9ba=_0x3de24e;await _0x3f010e[_0x2ed9ba(0x126)]['send']({'files':[{'name':_0x2ed9ba(0x11b),'attachment':'https://robohash.org/'+encodeURIComponent(_0x3f010e[_0x2ed9ba(0x120)]['tag'])+_0x2ed9ba(0x11c)}]});};}}; \ No newline at end of file diff --git a/commands/fun/dankmeme.js b/commands/fun/dankmeme.js new file mode 100644 index 000000000..19ced3947 --- /dev/null +++ b/commands/fun/dankmeme.js @@ -0,0 +1 @@ +const a45_0x5cee=['COLORS','/reddit/dankmemes/random','../../utils/omnic','length','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','https://reddit.com','url','dankmemes','Posts\x20a\x20random\x20dank\x20meme\x20collected\x20from\x20the\x20r/dankmemes\x20subreddit.','exports','guild','Command','IRIS','permalink','exec','send','makeRequest','children','data','@bastion/tesseract','title','channel','slice'];(function(_0x59883e,_0x592080){const _0x5ceeee=function(_0x571a32){while(--_0x571a32){_0x59883e['push'](_0x59883e['shift']());}},_0x59b0ca=function(){const _0x414495={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x40838e,_0x556731,_0x1a9d19,_0x5446b8){_0x5446b8=_0x5446b8||{};let _0x591d1c=_0x556731+'='+_0x1a9d19,_0x4a66ce=0x0;for(let _0xa7a4b7=0x0,_0x2e864c=_0x40838e['length'];_0xa7a4b7<_0x2e864c;_0xa7a4b7++){const _0x166405=_0x40838e[_0xa7a4b7];_0x591d1c+=';\x20'+_0x166405;const _0x5d3cf7=_0x40838e[_0x166405];_0x40838e['push'](_0x5d3cf7),_0x2e864c=_0x40838e['length'],_0x5d3cf7!==!![]&&(_0x591d1c+='='+_0x5d3cf7);}_0x5446b8['cookie']=_0x591d1c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4edbe6,_0x384c59){_0x4edbe6=_0x4edbe6||function(_0x4646e8){return _0x4646e8;};const _0x4df8b9=_0x4edbe6(new RegExp('(?:^|;\x20)'+_0x384c59['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x594d5a=function(_0x552143,_0x111847){_0x552143(++_0x111847);};return _0x594d5a(_0x5ceeee,_0x592080),_0x4df8b9?decodeURIComponent(_0x4df8b9[0x1]):undefined;}},_0x1bb8ba=function(){const _0x4de297=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4de297['test'](_0x414495['removeCookie']['toString']());};_0x414495['updateCookie']=_0x1bb8ba;let _0x482ff8='';const _0x1b613a=_0x414495['updateCookie']();if(!_0x1b613a)_0x414495['setCookie'](['*'],'counter',0x1);else _0x1b613a?_0x482ff8=_0x414495['getCookie'](null,'counter'):_0x414495['removeCookie']();};_0x59b0ca();}(a45_0x5cee,0x1d5));const a45_0x59b0=function(_0x59883e,_0x592080){_0x59883e=_0x59883e-0x1bf;let _0x5ceeee=a45_0x5cee[_0x59883e];return _0x5ceeee;};const a45_0x5b56bc=a45_0x59b0,a45_0x1bb8ba=function(){let _0x1b613a=!![];return function(_0x40838e,_0x556731){const _0x1a9d19=_0x1b613a?function(){if(_0x556731){const _0x5446b8=_0x556731['apply'](_0x40838e,arguments);return _0x556731=null,_0x5446b8;}}:function(){};return _0x1b613a=![],_0x1a9d19;};}(),a45_0x414495=a45_0x1bb8ba(this,function(){const _0x591d1c=function(){const _0x927118=a45_0x59b0,_0x4a66ce=_0x591d1c['constructor'](_0x927118(0x1ca))()['constructor'](_0x927118(0x1c9));return!_0x4a66ce[_0x927118(0x1cb)](a45_0x414495);};return _0x591d1c();});a45_0x414495();'use strict';const tesseract_1=require(a45_0x5b56bc(0x1c1)),omnic=require(a45_0x5b56bc(0x1c7));module[a45_0x5b56bc(0x1d0)]=class DankMemeCommand extends tesseract_1[a45_0x5b56bc(0x1d2)]{constructor(){const _0x5dd47c=a45_0x5b56bc;super('dankmeme',{'description':_0x5dd47c(0x1cf),'triggers':[_0x5dd47c(0x1ce)],'arguments':{},'scope':_0x5dd47c(0x1d1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x5dd47c(0x1d5)]=async _0xa7a4b7=>{const _0x39d4ee=_0x5dd47c,_0x2e864c=await omnic[_0x39d4ee(0x1d7)](_0x39d4ee(0x1c6)),[_0x166405]=await _0x2e864c['json']();if(!_0x166405||!_0x166405['data']||!_0x166405[_0x39d4ee(0x1c0)]['children']||!_0x166405[_0x39d4ee(0x1c0)][_0x39d4ee(0x1bf)][_0x39d4ee(0x1c8)]||!_0x166405['data'][_0x39d4ee(0x1bf)][0x0]['data'])return;await _0xa7a4b7[_0x39d4ee(0x1c3)][_0x39d4ee(0x1d6)]({'embed':{'color':tesseract_1['Constants'][_0x39d4ee(0x1c5)][_0x39d4ee(0x1d3)],'title':_0x166405[_0x39d4ee(0x1c0)][_0x39d4ee(0x1bf)][0x0][_0x39d4ee(0x1c0)][_0x39d4ee(0x1c2)][_0x39d4ee(0x1c4)](0x0,0x100),'url':_0x39d4ee(0x1cc)+_0x166405[_0x39d4ee(0x1c0)]['children'][0x0]['data'][_0x39d4ee(0x1d4)],'image':{'url':_0x166405[_0x39d4ee(0x1c0)][_0x39d4ee(0x1bf)][0x0][_0x39d4ee(0x1c0)][_0x39d4ee(0x1cd)]},'footer':{'text':'Powered\x20by\x20r/dankmemes'}}});};}}; \ No newline at end of file diff --git a/commands/fun/joke.js b/commands/fun/joke.js index 266e5db88..6b6149302 100644 --- a/commands/fun/joke.js +++ b/commands/fun/joke.js @@ -1 +1 @@ -const a45_0x4171=['makeRequest','slice','IRIS','send','guild','Posts\x20a\x20random\x20joke\x20collected\x20from\x20the\x20r/jokes\x20subreddit.','title','joke','children','selftext','COLORS','data','url','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','constructor','../../utils/omnic','apply','channel','/reddit/jokes/random'];(function(_0xbc7812,_0xaf6578){const _0x4171b6=function(_0x44e19f){while(--_0x44e19f){_0xbc7812['push'](_0xbc7812['shift']());}},_0x3d7046=function(){const _0x13bc67={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xa8e278,_0x2cfc26,_0x2db641,_0x3301d3){_0x3301d3=_0x3301d3||{};let _0xa8cee3=_0x2cfc26+'='+_0x2db641,_0x3f8ed4=0x0;for(let _0x553cb1=0x0,_0x40d287=_0xa8e278['length'];_0x553cb1<_0x40d287;_0x553cb1++){const _0x370481=_0xa8e278[_0x553cb1];_0xa8cee3+=';\x20'+_0x370481;const _0x17cfe8=_0xa8e278[_0x370481];_0xa8e278['push'](_0x17cfe8),_0x40d287=_0xa8e278['length'],_0x17cfe8!==!![]&&(_0xa8cee3+='='+_0x17cfe8);}_0x3301d3['cookie']=_0xa8cee3;},'removeCookie':function(){return'dev';},'getCookie':function(_0xec06cc,_0x4387d5){_0xec06cc=_0xec06cc||function(_0x118cf6){return _0x118cf6;};const _0x36a90b=_0xec06cc(new RegExp('(?:^|;\x20)'+_0x4387d5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31f2b4=function(_0x2c07a5,_0x24c8c4){_0x2c07a5(++_0x24c8c4);};return _0x31f2b4(_0x4171b6,_0xaf6578),_0x36a90b?decodeURIComponent(_0x36a90b[0x1]):undefined;}},_0x280310=function(){const _0x4c70d9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c70d9['test'](_0x13bc67['removeCookie']['toString']());};_0x13bc67['updateCookie']=_0x280310;let _0x126855='';const _0x10ad71=_0x13bc67['updateCookie']();if(!_0x10ad71)_0x13bc67['setCookie'](['*'],'counter',0x1);else _0x10ad71?_0x126855=_0x13bc67['getCookie'](null,'counter'):_0x13bc67['removeCookie']();};_0x3d7046();}(a45_0x4171,0xd6));const a45_0x3d70=function(_0xbc7812,_0xaf6578){_0xbc7812=_0xbc7812-0xd3;let _0x4171b6=a45_0x4171[_0xbc7812];return _0x4171b6;};const _0x264815=a45_0x3d70,a45_0x280310=function(){let _0x10ad71=!![];return function(_0xa8e278,_0x2cfc26){const _0x2db641=_0x10ad71?function(){const _0x4a651d=a45_0x3d70;if(_0x2cfc26){const _0x3301d3=_0x2cfc26[_0x4a651d(0xd6)](_0xa8e278,arguments);return _0x2cfc26=null,_0x3301d3;}}:function(){};return _0x10ad71=![],_0x2db641;};}(),a45_0x13bc67=a45_0x280310(this,function(){const _0xa8cee3=function(){const _0x4c0ac0=a45_0x3d70,_0x3f8ed4=_0xa8cee3[_0x4c0ac0(0xd4)](_0x4c0ac0(0xe6))()[_0x4c0ac0(0xd4)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3f8ed4['test'](a45_0x13bc67);};return _0xa8cee3();});a45_0x13bc67();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(_0x264815(0xd5));module[_0x264815(0xd3)]=class JokeCommand extends tesseract_1['Command']{constructor(){const _0xbe4cf9=_0x264815;super(_0xbe4cf9(0xe0),{'description':_0xbe4cf9(0xde),'triggers':['jokes'],'arguments':{},'scope':_0xbe4cf9(0xdd),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x553cb1=>{const _0x4128a2=_0xbe4cf9,_0x40d287=await omnic[_0x4128a2(0xd9)](_0x4128a2(0xd8)),[_0x370481]=await _0x40d287['json']();if(!_0x370481||!_0x370481[_0x4128a2(0xe4)]||!_0x370481[_0x4128a2(0xe4)][_0x4128a2(0xe1)]||!_0x370481[_0x4128a2(0xe4)]['children']['length']||!_0x370481[_0x4128a2(0xe4)][_0x4128a2(0xe1)][0x0]['data'])return;await _0x553cb1[_0x4128a2(0xd7)][_0x4128a2(0xdc)]({'embed':{'color':tesseract_1['Constants'][_0x4128a2(0xe3)][_0x4128a2(0xdb)],'title':_0x370481[_0x4128a2(0xe4)]['children'][0x0][_0x4128a2(0xe4)][_0x4128a2(0xdf)][_0x4128a2(0xda)](0x0,0x100),'url':_0x370481[_0x4128a2(0xe4)][_0x4128a2(0xe1)][0x0]['data'][_0x4128a2(0xe5)],..._0x370481[_0x4128a2(0xe4)][_0x4128a2(0xe1)][0x0]['data'][_0x4128a2(0xe2)]?{'description':_0x370481[_0x4128a2(0xe4)][_0x4128a2(0xe1)][0x0][_0x4128a2(0xe4)][_0x4128a2(0xe2)][_0x4128a2(0xda)](0x0,0x400)}:{},'footer':{'text':'Powered\x20by\x20r/jokes'}}});};}}; \ No newline at end of file +const a46_0x3450=['exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','joke','children','Command','IRIS','constructor','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','selftext','send','Constants','@bastion/tesseract','COLORS','guild','apply','length','slice','makeRequest','data','/reddit/jokes/random','url','exec','test','title','jokes'];(function(_0xbb481b,_0x2e0bc0){const _0x3450f8=function(_0x509e1c){while(--_0x509e1c){_0xbb481b['push'](_0xbb481b['shift']());}},_0x1d9677=function(){const _0xd918c4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x30dad6,_0x1377af,_0xee8c2d,_0x186140){_0x186140=_0x186140||{};let _0x18dfe7=_0x1377af+'='+_0xee8c2d,_0x983a32=0x0;for(let _0x13df85=0x0,_0x330b54=_0x30dad6['length'];_0x13df85<_0x330b54;_0x13df85++){const _0x5583a=_0x30dad6[_0x13df85];_0x18dfe7+=';\x20'+_0x5583a;const _0x1a46d7=_0x30dad6[_0x5583a];_0x30dad6['push'](_0x1a46d7),_0x330b54=_0x30dad6['length'],_0x1a46d7!==!![]&&(_0x18dfe7+='='+_0x1a46d7);}_0x186140['cookie']=_0x18dfe7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x48da0d,_0x2abef2){_0x48da0d=_0x48da0d||function(_0x1d866a){return _0x1d866a;};const _0x2fd435=_0x48da0d(new RegExp('(?:^|;\x20)'+_0x2abef2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a3e97=function(_0x4575aa,_0x17621e){_0x4575aa(++_0x17621e);};return _0x2a3e97(_0x3450f8,_0x2e0bc0),_0x2fd435?decodeURIComponent(_0x2fd435[0x1]):undefined;}},_0x2b0f44=function(){const _0x23dbc2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x23dbc2['test'](_0xd918c4['removeCookie']['toString']());};_0xd918c4['updateCookie']=_0x2b0f44;let _0x4e5131='';const _0x358f8f=_0xd918c4['updateCookie']();if(!_0x358f8f)_0xd918c4['setCookie'](['*'],'counter',0x1);else _0x358f8f?_0x4e5131=_0xd918c4['getCookie'](null,'counter'):_0xd918c4['removeCookie']();};_0x1d9677();}(a46_0x3450,0x8e));const a46_0x1d96=function(_0xbb481b,_0x2e0bc0){_0xbb481b=_0xbb481b-0x11e;let _0x3450f8=a46_0x3450[_0xbb481b];return _0x3450f8;};const a46_0xf67aa6=a46_0x1d96,a46_0x2b0f44=function(){let _0x358f8f=!![];return function(_0x30dad6,_0x1377af){const _0xee8c2d=_0x358f8f?function(){const _0xb5b5ef=a46_0x1d96;if(_0x1377af){const _0x186140=_0x1377af[_0xb5b5ef(0x121)](_0x30dad6,arguments);return _0x1377af=null,_0x186140;}}:function(){};return _0x358f8f=![],_0xee8c2d;};}(),a46_0xd918c4=a46_0x2b0f44(this,function(){const _0x18dfe7=function(){const _0x243f33=a46_0x1d96,_0x983a32=_0x18dfe7[_0x243f33(0x132)](_0x243f33(0x134))()[_0x243f33(0x132)](_0x243f33(0x12d));return!_0x983a32[_0x243f33(0x129)](a46_0xd918c4);};return _0x18dfe7();});a46_0xd918c4();'use strict';const tesseract_1=require(a46_0xf67aa6(0x11e)),omnic=require('../../utils/omnic');module[a46_0xf67aa6(0x12c)]=class JokeCommand extends tesseract_1[a46_0xf67aa6(0x130)]{constructor(){const _0x72a966=a46_0xf67aa6;super(_0x72a966(0x12e),{'description':'Posts\x20a\x20random\x20joke\x20collected\x20from\x20the\x20r/jokes\x20subreddit.','triggers':[_0x72a966(0x12b)],'arguments':{},'scope':_0x72a966(0x120),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x72a966(0x128)]=async _0x13df85=>{const _0x578a1a=_0x72a966,_0x330b54=await omnic[_0x578a1a(0x124)](_0x578a1a(0x126)),[_0x5583a]=await _0x330b54['json']();if(!_0x5583a||!_0x5583a[_0x578a1a(0x125)]||!_0x5583a[_0x578a1a(0x125)]['children']||!_0x5583a[_0x578a1a(0x125)]['children'][_0x578a1a(0x122)]||!_0x5583a['data'][_0x578a1a(0x12f)][0x0]['data'])return;await _0x13df85[_0x578a1a(0x133)][_0x578a1a(0x136)]({'embed':{'color':tesseract_1[_0x578a1a(0x137)][_0x578a1a(0x11f)][_0x578a1a(0x131)],'title':_0x5583a['data'][_0x578a1a(0x12f)][0x0][_0x578a1a(0x125)][_0x578a1a(0x12a)][_0x578a1a(0x123)](0x0,0x100),'url':_0x5583a[_0x578a1a(0x125)][_0x578a1a(0x12f)][0x0][_0x578a1a(0x125)][_0x578a1a(0x127)],..._0x5583a[_0x578a1a(0x125)]['children'][0x0][_0x578a1a(0x125)][_0x578a1a(0x135)]?{'description':_0x5583a['data'][_0x578a1a(0x12f)][0x0][_0x578a1a(0x125)][_0x578a1a(0x135)][_0x578a1a(0x123)](0x0,0x400)}:{},'footer':{'text':'Powered\x20by\x20r/jokes'}}});};}}; \ No newline at end of file diff --git a/commands/fun/lifeProTips.js b/commands/fun/lifeProTips.js index b533e0c47..cca191394 100644 --- a/commands/fun/lifeProTips.js +++ b/commands/fun/lifeProTips.js @@ -1 +1 @@ -const a46_0x28d9=['url','selftext','apply','test','exec','title','@bastion/tesseract','Powered\x20by\x20r/LifeProTips','json','lifeProTips','Command','data','exports','children','guild','constructor','slice','length','send','Posts\x20a\x20random\x20life\x20pro\x20tip\x20collected\x20from\x20the\x20r/LifeProTips\x20subreddit.','../../utils/omnic','channel'];(function(_0x5401fe,_0x1cd1d1){const _0x28d9ec=function(_0x4da6b0){while(--_0x4da6b0){_0x5401fe['push'](_0x5401fe['shift']());}},_0x4b9090=function(){const _0x5c1058={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x203b76,_0x5c704e,_0x207e25,_0x397bd1){_0x397bd1=_0x397bd1||{};let _0x1a3b7c=_0x5c704e+'='+_0x207e25,_0x5638db=0x0;for(let _0x55f5b0=0x0,_0x4e1787=_0x203b76['length'];_0x55f5b0<_0x4e1787;_0x55f5b0++){const _0x189916=_0x203b76[_0x55f5b0];_0x1a3b7c+=';\x20'+_0x189916;const _0x330c83=_0x203b76[_0x189916];_0x203b76['push'](_0x330c83),_0x4e1787=_0x203b76['length'],_0x330c83!==!![]&&(_0x1a3b7c+='='+_0x330c83);}_0x397bd1['cookie']=_0x1a3b7c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5df8af,_0x39c829){_0x5df8af=_0x5df8af||function(_0x292e4a){return _0x292e4a;};const _0x32ea89=_0x5df8af(new RegExp('(?:^|;\x20)'+_0x39c829['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x490b51=function(_0x4db84d,_0x526039){_0x4db84d(++_0x526039);};return _0x490b51(_0x28d9ec,_0x1cd1d1),_0x32ea89?decodeURIComponent(_0x32ea89[0x1]):undefined;}},_0x177823=function(){const _0x1de1ab=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1de1ab['test'](_0x5c1058['removeCookie']['toString']());};_0x5c1058['updateCookie']=_0x177823;let _0x47b4f3='';const _0x254273=_0x5c1058['updateCookie']();if(!_0x254273)_0x5c1058['setCookie'](['*'],'counter',0x1);else _0x254273?_0x47b4f3=_0x5c1058['getCookie'](null,'counter'):_0x5c1058['removeCookie']();};_0x4b9090();}(a46_0x28d9,0x138));const a46_0x4b90=function(_0x5401fe,_0x1cd1d1){_0x5401fe=_0x5401fe-0x12b;let _0x28d9ec=a46_0x28d9[_0x5401fe];return _0x28d9ec;};const _0x353bdd=a46_0x4b90,a46_0x177823=function(){let _0x254273=!![];return function(_0x203b76,_0x5c704e){const _0x207e25=_0x254273?function(){const _0x3eed6b=a46_0x4b90;if(_0x5c704e){const _0x397bd1=_0x5c704e[_0x3eed6b(0x13f)](_0x203b76,arguments);return _0x5c704e=null,_0x397bd1;}}:function(){};return _0x254273=![],_0x207e25;};}(),a46_0x5c1058=a46_0x177823(this,function(){const _0x1a3b7c=function(){const _0x30052f=a46_0x4b90,_0x5638db=_0x1a3b7c[_0x30052f(0x136)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x30052f(0x136)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5638db[_0x30052f(0x140)](a46_0x5c1058);};return _0x1a3b7c();});a46_0x5c1058();'use strict';const tesseract_1=require(_0x353bdd(0x12d)),omnic=require(_0x353bdd(0x13b));module[_0x353bdd(0x133)]=class LifeProTipCommand extends tesseract_1[_0x353bdd(0x131)]{constructor(){const _0x487369=_0x353bdd;super('lifeProTip',{'description':_0x487369(0x13a),'triggers':[_0x487369(0x130),'LPT'],'arguments':{},'scope':_0x487369(0x135),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x487369(0x12b)]=async _0x55f5b0=>{const _0x582d04=_0x487369,_0x4e1787=await omnic['makeRequest']('/reddit/lifeprotips/random'),[_0x189916]=await _0x4e1787[_0x582d04(0x12f)]();if(!_0x189916||!_0x189916[_0x582d04(0x132)]||!_0x189916[_0x582d04(0x132)]['children']||!_0x189916[_0x582d04(0x132)]['children'][_0x582d04(0x138)]||!_0x189916[_0x582d04(0x132)]['children'][0x0]['data'])return;await _0x55f5b0[_0x582d04(0x13c)][_0x582d04(0x139)]({'embed':{'color':tesseract_1['Constants']['COLORS']['IRIS'],'title':_0x189916[_0x582d04(0x132)]['children'][0x0]['data'][_0x582d04(0x12c)][_0x582d04(0x137)](0x0,0x100),'url':_0x189916[_0x582d04(0x132)][_0x582d04(0x134)][0x0][_0x582d04(0x132)][_0x582d04(0x13d)],..._0x189916[_0x582d04(0x132)][_0x582d04(0x134)][0x0]['data'][_0x582d04(0x13e)]?{'description':_0x189916[_0x582d04(0x132)][_0x582d04(0x134)][0x0][_0x582d04(0x132)][_0x582d04(0x13e)][_0x582d04(0x137)](0x0,0x400)}:{},'footer':{'text':_0x582d04(0x12e)}}});};}}; \ No newline at end of file +const a47_0x16b6=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','json','children','test','Command','Posts\x20a\x20random\x20life\x20pro\x20tip\x20collected\x20from\x20the\x20r/LifeProTips\x20subreddit.','selftext','length','../../utils/omnic','Constants','lifeProTips','constructor','url','lifeProTip','exec','COLORS','guild','title','send','/reddit/lifeprotips/random','data','makeRequest','slice','exports','LPT'];(function(_0x17f69a,_0x471ca8){const _0x16b60f=function(_0x199cb5){while(--_0x199cb5){_0x17f69a['push'](_0x17f69a['shift']());}},_0x4dcb22=function(){const _0x4e288a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1f951a,_0x3b3131,_0x2c6969,_0x5b4127){_0x5b4127=_0x5b4127||{};let _0x22f9b7=_0x3b3131+'='+_0x2c6969,_0x106349=0x0;for(let _0x595a7e=0x0,_0xf688e3=_0x1f951a['length'];_0x595a7e<_0xf688e3;_0x595a7e++){const _0x2c24c1=_0x1f951a[_0x595a7e];_0x22f9b7+=';\x20'+_0x2c24c1;const _0x57e334=_0x1f951a[_0x2c24c1];_0x1f951a['push'](_0x57e334),_0xf688e3=_0x1f951a['length'],_0x57e334!==!![]&&(_0x22f9b7+='='+_0x57e334);}_0x5b4127['cookie']=_0x22f9b7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x280474,_0x21957d){_0x280474=_0x280474||function(_0x4e0c66){return _0x4e0c66;};const _0x31e75c=_0x280474(new RegExp('(?:^|;\x20)'+_0x21957d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x7b3040=function(_0x511deb,_0x405ce6){_0x511deb(++_0x405ce6);};return _0x7b3040(_0x16b60f,_0x471ca8),_0x31e75c?decodeURIComponent(_0x31e75c[0x1]):undefined;}},_0x5c30d3=function(){const _0x29f36c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x29f36c['test'](_0x4e288a['removeCookie']['toString']());};_0x4e288a['updateCookie']=_0x5c30d3;let _0x15f6a2='';const _0x5c1c28=_0x4e288a['updateCookie']();if(!_0x5c1c28)_0x4e288a['setCookie'](['*'],'counter',0x1);else _0x5c1c28?_0x15f6a2=_0x4e288a['getCookie'](null,'counter'):_0x4e288a['removeCookie']();};_0x4dcb22();}(a47_0x16b6,0x197));const a47_0x4dcb=function(_0x17f69a,_0x471ca8){_0x17f69a=_0x17f69a-0x16e;let _0x16b60f=a47_0x16b6[_0x17f69a];return _0x16b60f;};const a47_0x5eb50b=a47_0x4dcb,a47_0x5c30d3=function(){let _0x5c1c28=!![];return function(_0x1f951a,_0x3b3131){const _0x2c6969=_0x5c1c28?function(){if(_0x3b3131){const _0x5b4127=_0x3b3131['apply'](_0x1f951a,arguments);return _0x3b3131=null,_0x5b4127;}}:function(){};return _0x5c1c28=![],_0x2c6969;};}(),a47_0x4e288a=a47_0x5c30d3(this,function(){const _0x22f9b7=function(){const _0x46a740=a47_0x4dcb,_0x106349=_0x22f9b7[_0x46a740(0x172)](_0x46a740(0x180))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x106349[_0x46a740(0x183)](a47_0x4e288a);};return _0x22f9b7();});a47_0x4e288a();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a47_0x5eb50b(0x16f));module[a47_0x5eb50b(0x17e)]=class LifeProTipCommand extends tesseract_1[a47_0x5eb50b(0x184)]{constructor(){const _0x5493b0=a47_0x5eb50b;super(_0x5493b0(0x174),{'description':_0x5493b0(0x185),'triggers':[_0x5493b0(0x171),_0x5493b0(0x17f)],'arguments':{},'scope':_0x5493b0(0x177),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x5493b0(0x175)]=async _0x595a7e=>{const _0x1078a6=_0x5493b0,_0xf688e3=await omnic[_0x1078a6(0x17c)](_0x1078a6(0x17a)),[_0x2c24c1]=await _0xf688e3[_0x1078a6(0x181)]();if(!_0x2c24c1||!_0x2c24c1[_0x1078a6(0x17b)]||!_0x2c24c1[_0x1078a6(0x17b)][_0x1078a6(0x182)]||!_0x2c24c1[_0x1078a6(0x17b)][_0x1078a6(0x182)][_0x1078a6(0x16e)]||!_0x2c24c1[_0x1078a6(0x17b)]['children'][0x0][_0x1078a6(0x17b)])return;await _0x595a7e['channel'][_0x1078a6(0x179)]({'embed':{'color':tesseract_1[_0x1078a6(0x170)][_0x1078a6(0x176)]['IRIS'],'title':_0x2c24c1['data'][_0x1078a6(0x182)][0x0][_0x1078a6(0x17b)][_0x1078a6(0x178)][_0x1078a6(0x17d)](0x0,0x100),'url':_0x2c24c1['data']['children'][0x0][_0x1078a6(0x17b)][_0x1078a6(0x173)],..._0x2c24c1[_0x1078a6(0x17b)]['children'][0x0][_0x1078a6(0x17b)][_0x1078a6(0x186)]?{'description':_0x2c24c1[_0x1078a6(0x17b)]['children'][0x0][_0x1078a6(0x17b)][_0x1078a6(0x186)][_0x1078a6(0x17d)](0x0,0x400)}:{},'footer':{'text':'Powered\x20by\x20r/LifeProTips'}}});};}}; \ No newline at end of file diff --git a/commands/fun/meme.js b/commands/fun/meme.js index aec831c9a..ff927a497 100644 --- a/commands/fun/meme.js +++ b/commands/fun/meme.js @@ -1 +1 @@ -const a47_0x3652=['@bastion/tesseract','slice','constructor','Constants','apply','makeRequest','exports','Command','guild','json','Posts\x20a\x20random\x20meme\x20collected\x20from\x20the\x20r/memes\x20subreddit.','data','length','title','exec','memes','meme','/reddit/memes/random','return\x20/\x22\x20+\x20this\x20+\x20\x22/','children','send'];(function(_0x1308a9,_0x84f6dc){const _0x365291=function(_0x5719fc){while(--_0x5719fc){_0x1308a9['push'](_0x1308a9['shift']());}},_0x5d7d8d=function(){const _0x38c5c8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25fa85,_0x4e6c97,_0x5d4d38,_0x3aad95){_0x3aad95=_0x3aad95||{};let _0x20fc9d=_0x4e6c97+'='+_0x5d4d38,_0x498c59=0x0;for(let _0x40eb60=0x0,_0x4b61af=_0x25fa85['length'];_0x40eb60<_0x4b61af;_0x40eb60++){const _0x2f1fd0=_0x25fa85[_0x40eb60];_0x20fc9d+=';\x20'+_0x2f1fd0;const _0x2c6c03=_0x25fa85[_0x2f1fd0];_0x25fa85['push'](_0x2c6c03),_0x4b61af=_0x25fa85['length'],_0x2c6c03!==!![]&&(_0x20fc9d+='='+_0x2c6c03);}_0x3aad95['cookie']=_0x20fc9d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ab4d6,_0xace409){_0x2ab4d6=_0x2ab4d6||function(_0x4203c8){return _0x4203c8;};const _0x2cce7f=_0x2ab4d6(new RegExp('(?:^|;\x20)'+_0xace409['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f1d22=function(_0x3c86a4,_0x286cdd){_0x3c86a4(++_0x286cdd);};return _0x1f1d22(_0x365291,_0x84f6dc),_0x2cce7f?decodeURIComponent(_0x2cce7f[0x1]):undefined;}},_0x3f0627=function(){const _0x4fc8e6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4fc8e6['test'](_0x38c5c8['removeCookie']['toString']());};_0x38c5c8['updateCookie']=_0x3f0627;let _0x46f5c3='';const _0x352400=_0x38c5c8['updateCookie']();if(!_0x352400)_0x38c5c8['setCookie'](['*'],'counter',0x1);else _0x352400?_0x46f5c3=_0x38c5c8['getCookie'](null,'counter'):_0x38c5c8['removeCookie']();};_0x5d7d8d();}(a47_0x3652,0x155));const a47_0x5d7d=function(_0x1308a9,_0x84f6dc){_0x1308a9=_0x1308a9-0x120;let _0x365291=a47_0x3652[_0x1308a9];return _0x365291;};const _0x4f70e4=a47_0x5d7d,a47_0x3f0627=function(){let _0x352400=!![];return function(_0x25fa85,_0x4e6c97){const _0x5d4d38=_0x352400?function(){const _0x192f9a=a47_0x5d7d;if(_0x4e6c97){const _0x3aad95=_0x4e6c97[_0x192f9a(0x134)](_0x25fa85,arguments);return _0x4e6c97=null,_0x3aad95;}}:function(){};return _0x352400=![],_0x5d4d38;};}(),a47_0x38c5c8=a47_0x3f0627(this,function(){const _0x20fc9d=function(){const _0x7d7ad9=a47_0x5d7d,_0x498c59=_0x20fc9d[_0x7d7ad9(0x132)](_0x7d7ad9(0x12d))()[_0x7d7ad9(0x132)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x498c59['test'](a47_0x38c5c8);};return _0x20fc9d();});a47_0x38c5c8();'use strict';const tesseract_1=require(_0x4f70e4(0x130)),omnic=require('../../utils/omnic');module[_0x4f70e4(0x121)]=class MemeCommand extends tesseract_1[_0x4f70e4(0x122)]{constructor(){const _0xc5f8c7=_0x4f70e4;super(_0xc5f8c7(0x12b),{'description':_0xc5f8c7(0x125),'triggers':[_0xc5f8c7(0x12a)],'arguments':{},'scope':_0xc5f8c7(0x123),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0xc5f8c7(0x129)]=async _0x40eb60=>{const _0x129238=_0xc5f8c7,_0x4b61af=await omnic[_0x129238(0x120)](_0x129238(0x12c)),[_0x2f1fd0]=await _0x4b61af[_0x129238(0x124)]();if(!_0x2f1fd0||!_0x2f1fd0[_0x129238(0x126)]||!_0x2f1fd0['data'][_0x129238(0x12e)]||!_0x2f1fd0[_0x129238(0x126)]['children'][_0x129238(0x127)]||!_0x2f1fd0['data'][_0x129238(0x12e)][0x0]['data'])return;await _0x40eb60['channel'][_0x129238(0x12f)]({'embed':{'color':tesseract_1[_0x129238(0x133)]['COLORS']['IRIS'],'title':_0x2f1fd0[_0x129238(0x126)][_0x129238(0x12e)][0x0][_0x129238(0x126)][_0x129238(0x128)][_0x129238(0x131)](0x0,0x100),'url':'https://reddit.com'+_0x2f1fd0[_0x129238(0x126)]['children'][0x0]['data']['permalink'],'image':{'url':_0x2f1fd0['data'][_0x129238(0x12e)][0x0][_0x129238(0x126)]['url']},'footer':{'text':'Powered\x20by\x20r/memes'}}});};}}; \ No newline at end of file +const a48_0xd843=['title','/reddit/memes/random','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','Posts\x20a\x20random\x20meme\x20collected\x20from\x20the\x20r/memes\x20subreddit.','apply','permalink','exec','IRIS','../../utils/omnic','data','https://reddit.com','meme','COLORS','Powered\x20by\x20r/memes','length','slice','constructor','children','memes','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','json','test'];(function(_0x10431c,_0x32a502){const _0xd8431e=function(_0x3ab148){while(--_0x3ab148){_0x10431c['push'](_0x10431c['shift']());}},_0x33a4f2=function(){const _0x4701d5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x551cbb,_0x4af09f,_0x4e971a,_0xd963d6){_0xd963d6=_0xd963d6||{};let _0x5d6646=_0x4af09f+'='+_0x4e971a,_0x13b459=0x0;for(let _0x1d7a79=0x0,_0x4d94c8=_0x551cbb['length'];_0x1d7a79<_0x4d94c8;_0x1d7a79++){const _0x35f9fe=_0x551cbb[_0x1d7a79];_0x5d6646+=';\x20'+_0x35f9fe;const _0x1573ed=_0x551cbb[_0x35f9fe];_0x551cbb['push'](_0x1573ed),_0x4d94c8=_0x551cbb['length'],_0x1573ed!==!![]&&(_0x5d6646+='='+_0x1573ed);}_0xd963d6['cookie']=_0x5d6646;},'removeCookie':function(){return'dev';},'getCookie':function(_0x278c4c,_0x8a6511){_0x278c4c=_0x278c4c||function(_0x177b94){return _0x177b94;};const _0x23c8f2=_0x278c4c(new RegExp('(?:^|;\x20)'+_0x8a6511['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x33f4e6=function(_0x2fbf3f,_0x565c96){_0x2fbf3f(++_0x565c96);};return _0x33f4e6(_0xd8431e,_0x32a502),_0x23c8f2?decodeURIComponent(_0x23c8f2[0x1]):undefined;}},_0x176088=function(){const _0x453ccf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x453ccf['test'](_0x4701d5['removeCookie']['toString']());};_0x4701d5['updateCookie']=_0x176088;let _0x4990b9='';const _0x43b7ea=_0x4701d5['updateCookie']();if(!_0x43b7ea)_0x4701d5['setCookie'](['*'],'counter',0x1);else _0x43b7ea?_0x4990b9=_0x4701d5['getCookie'](null,'counter'):_0x4701d5['removeCookie']();};_0x33a4f2();}(a48_0xd843,0x13b));const a48_0x33a4=function(_0x10431c,_0x32a502){_0x10431c=_0x10431c-0x126;let _0xd8431e=a48_0xd843[_0x10431c];return _0xd8431e;};const a48_0xb4a396=a48_0x33a4,a48_0x176088=function(){let _0x43b7ea=!![];return function(_0x551cbb,_0x4af09f){const _0x4e971a=_0x43b7ea?function(){const _0x15b064=a48_0x33a4;if(_0x4af09f){const _0xd963d6=_0x4af09f[_0x15b064(0x128)](_0x551cbb,arguments);return _0x4af09f=null,_0xd963d6;}}:function(){};return _0x43b7ea=![],_0x4e971a;};}(),a48_0x4701d5=a48_0x176088(this,function(){const _0x5d6646=function(){const _0x503cfb=a48_0x33a4,_0x13b459=_0x5d6646[_0x503cfb(0x134)](_0x503cfb(0x13d))()[_0x503cfb(0x134)](_0x503cfb(0x138));return!_0x13b459[_0x503cfb(0x13a)](a48_0x4701d5);};return _0x5d6646();});a48_0x4701d5();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a48_0xb4a396(0x12c));module['exports']=class MemeCommand extends tesseract_1['Command']{constructor(){const _0x537051=a48_0xb4a396;super(_0x537051(0x12f),{'description':_0x537051(0x127),'triggers':[_0x537051(0x136)],'arguments':{},'scope':_0x537051(0x126),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x537051(0x12a)]=async _0x1d7a79=>{const _0x3b2558=_0x537051,_0x4d94c8=await omnic['makeRequest'](_0x3b2558(0x13c)),[_0x35f9fe]=await _0x4d94c8[_0x3b2558(0x139)]();if(!_0x35f9fe||!_0x35f9fe[_0x3b2558(0x12d)]||!_0x35f9fe['data'][_0x3b2558(0x135)]||!_0x35f9fe['data'][_0x3b2558(0x135)][_0x3b2558(0x132)]||!_0x35f9fe[_0x3b2558(0x12d)][_0x3b2558(0x135)][0x0]['data'])return;await _0x1d7a79['channel']['send']({'embed':{'color':tesseract_1[_0x3b2558(0x137)][_0x3b2558(0x130)][_0x3b2558(0x12b)],'title':_0x35f9fe[_0x3b2558(0x12d)][_0x3b2558(0x135)][0x0][_0x3b2558(0x12d)][_0x3b2558(0x13b)][_0x3b2558(0x133)](0x0,0x100),'url':_0x3b2558(0x12e)+_0x35f9fe[_0x3b2558(0x12d)][_0x3b2558(0x135)][0x0][_0x3b2558(0x12d)][_0x3b2558(0x129)],'image':{'url':_0x35f9fe[_0x3b2558(0x12d)]['children'][0x0]['data']['url']},'footer':{'text':_0x3b2558(0x131)}}});};}}; \ No newline at end of file diff --git a/commands/fun/pickupLine.js b/commands/fun/pickupLine.js index 1053dd453..fc2797d05 100644 --- a/commands/fun/pickupLine.js +++ b/commands/fun/pickupLine.js @@ -1 +1 @@ -const a48_0x5b17=['Powered\x20by\x20r/pickuplines','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','Command','exec','../../utils/omnic','send','length','Posts\x20a\x20random\x20pickup\x20line\x20collected\x20from\x20the\x20r/pickuplines\x20subreddit.','IRIS','**\x0a','constructor','guild','children','/reddit/pickuplines/random','selftext','Constants','makeRequest','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','@bastion/tesseract','data','title'];(function(_0x109acb,_0x5bec94){const _0x5b17e3=function(_0x27fe45){while(--_0x27fe45){_0x109acb['push'](_0x109acb['shift']());}},_0xbc264d=function(){const _0x508296={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1cc50c,_0x18c1fd,_0x6a42aa,_0xe261ac){_0xe261ac=_0xe261ac||{};let _0x1dd13d=_0x18c1fd+'='+_0x6a42aa,_0x4d9460=0x0;for(let _0x36034b=0x0,_0x845afb=_0x1cc50c['length'];_0x36034b<_0x845afb;_0x36034b++){const _0x5bdf81=_0x1cc50c[_0x36034b];_0x1dd13d+=';\x20'+_0x5bdf81;const _0x1027a0=_0x1cc50c[_0x5bdf81];_0x1cc50c['push'](_0x1027a0),_0x845afb=_0x1cc50c['length'],_0x1027a0!==!![]&&(_0x1dd13d+='='+_0x1027a0);}_0xe261ac['cookie']=_0x1dd13d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42f01a,_0x1f9d69){_0x42f01a=_0x42f01a||function(_0x507414){return _0x507414;};const _0x43496c=_0x42f01a(new RegExp('(?:^|;\x20)'+_0x1f9d69['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25e3f1=function(_0x190410,_0x46d85e){_0x190410(++_0x46d85e);};return _0x25e3f1(_0x5b17e3,_0x5bec94),_0x43496c?decodeURIComponent(_0x43496c[0x1]):undefined;}},_0x43aba0=function(){const _0x64db41=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x64db41['test'](_0x508296['removeCookie']['toString']());};_0x508296['updateCookie']=_0x43aba0;let _0x20230e='';const _0x25257a=_0x508296['updateCookie']();if(!_0x25257a)_0x508296['setCookie'](['*'],'counter',0x1);else _0x25257a?_0x20230e=_0x508296['getCookie'](null,'counter'):_0x508296['removeCookie']();};_0xbc264d();}(a48_0x5b17,0x192));const a48_0xbc26=function(_0x109acb,_0x5bec94){_0x109acb=_0x109acb-0x1ce;let _0x5b17e3=a48_0x5b17[_0x109acb];return _0x5b17e3;};const _0x287e16=a48_0xbc26,a48_0x43aba0=function(){let _0x25257a=!![];return function(_0x1cc50c,_0x18c1fd){const _0x6a42aa=_0x25257a?function(){const _0x49f0ea=a48_0xbc26;if(_0x18c1fd){const _0xe261ac=_0x18c1fd[_0x49f0ea(0x1dc)](_0x1cc50c,arguments);return _0x18c1fd=null,_0xe261ac;}}:function(){};return _0x25257a=![],_0x6a42aa;};}(),a48_0x508296=a48_0x43aba0(this,function(){const _0x1dd13d=function(){const _0x332817=a48_0xbc26,_0x4d9460=_0x1dd13d[_0x332817(0x1ce)](_0x332817(0x1d5))()[_0x332817(0x1ce)](_0x332817(0x1db));return!_0x4d9460[_0x332817(0x1d6)](a48_0x508296);};return _0x1dd13d();});a48_0x508296();'use strict';const tesseract_1=require(_0x287e16(0x1d7)),omnic=require(_0x287e16(0x1df));module['exports']=class PickupLineCommand extends tesseract_1[_0x287e16(0x1dd)]{constructor(){const _0x278ccc=_0x287e16;super('pickupLine',{'description':_0x278ccc(0x1e2),'triggers':['pickup'],'arguments':{},'scope':_0x278ccc(0x1cf),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x278ccc(0x1de)]=async _0x36034b=>{const _0x4f529b=_0x278ccc,_0x845afb=await omnic[_0x4f529b(0x1d4)](_0x4f529b(0x1d1)),[_0x5bdf81]=await _0x845afb['json']();if(!_0x5bdf81||!_0x5bdf81[_0x4f529b(0x1d8)]||!_0x5bdf81[_0x4f529b(0x1d8)]['children']||!_0x5bdf81['data']['children'][_0x4f529b(0x1e1)]||!_0x5bdf81['data'][_0x4f529b(0x1d0)][0x0][_0x4f529b(0x1d8)])return;await _0x36034b['channel'][_0x4f529b(0x1e0)]({'embed':{'color':tesseract_1[_0x4f529b(0x1d3)]['COLORS'][_0x4f529b(0x1e3)],'description':'**'+_0x5bdf81['data'][_0x4f529b(0x1d0)][0x0]['data'][_0x4f529b(0x1d9)]+_0x4f529b(0x1e4)+(_0x5bdf81[_0x4f529b(0x1d8)][_0x4f529b(0x1d0)][0x0][_0x4f529b(0x1d8)][_0x4f529b(0x1d2)]||''),'footer':{'text':_0x4f529b(0x1da)}}});};}}; \ No newline at end of file +const a49_0x1782=['IRIS','pickup','send','children','title','**\x0a','selftext','constructor','channel','exec','json','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','/reddit/pickuplines/random','Posts\x20a\x20random\x20pickup\x20line\x20collected\x20from\x20the\x20r/pickuplines\x20subreddit.','length','exports','makeRequest','Constants','../../utils/omnic','apply','Command','data','@bastion/tesseract','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x82fa8d,_0x14c255){const _0x178262=function(_0x2a99c8){while(--_0x2a99c8){_0x82fa8d['push'](_0x82fa8d['shift']());}},_0xbf63d3=function(){const _0x2500f2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x116101,_0x55eb93,_0x516a28,_0x342a16){_0x342a16=_0x342a16||{};let _0x4f0d16=_0x55eb93+'='+_0x516a28,_0x1a1f6e=0x0;for(let _0x1283c5=0x0,_0x1f9b7d=_0x116101['length'];_0x1283c5<_0x1f9b7d;_0x1283c5++){const _0x619b49=_0x116101[_0x1283c5];_0x4f0d16+=';\x20'+_0x619b49;const _0x1022c5=_0x116101[_0x619b49];_0x116101['push'](_0x1022c5),_0x1f9b7d=_0x116101['length'],_0x1022c5!==!![]&&(_0x4f0d16+='='+_0x1022c5);}_0x342a16['cookie']=_0x4f0d16;},'removeCookie':function(){return'dev';},'getCookie':function(_0x264dc4,_0x49d683){_0x264dc4=_0x264dc4||function(_0xa7ebaa){return _0xa7ebaa;};const _0x460762=_0x264dc4(new RegExp('(?:^|;\x20)'+_0x49d683['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x50dd51=function(_0x12c26f,_0x3b31f7){_0x12c26f(++_0x3b31f7);};return _0x50dd51(_0x178262,_0x14c255),_0x460762?decodeURIComponent(_0x460762[0x1]):undefined;}},_0x2e13f7=function(){const _0x5741e2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5741e2['test'](_0x2500f2['removeCookie']['toString']());};_0x2500f2['updateCookie']=_0x2e13f7;let _0x444679='';const _0x379186=_0x2500f2['updateCookie']();if(!_0x379186)_0x2500f2['setCookie'](['*'],'counter',0x1);else _0x379186?_0x444679=_0x2500f2['getCookie'](null,'counter'):_0x2500f2['removeCookie']();};_0xbf63d3();}(a49_0x1782,0x111));const a49_0xbf63=function(_0x82fa8d,_0x14c255){_0x82fa8d=_0x82fa8d-0x14c;let _0x178262=a49_0x1782[_0x82fa8d];return _0x178262;};const a49_0x162366=a49_0xbf63,a49_0x2e13f7=function(){let _0x379186=!![];return function(_0x116101,_0x55eb93){const _0x516a28=_0x379186?function(){const _0x3a4c8a=a49_0xbf63;if(_0x55eb93){const _0x342a16=_0x55eb93[_0x3a4c8a(0x161)](_0x116101,arguments);return _0x55eb93=null,_0x342a16;}}:function(){};return _0x379186=![],_0x516a28;};}(),a49_0x2500f2=a49_0x2e13f7(this,function(){const _0x4f0d16=function(){const _0x156801=a49_0xbf63,_0x1a1f6e=_0x4f0d16['constructor'](_0x156801(0x14d))()[_0x156801(0x155)](_0x156801(0x159));return!_0x1a1f6e['test'](a49_0x2500f2);};return _0x4f0d16();});a49_0x2500f2();'use strict';const tesseract_1=require(a49_0x162366(0x164)),omnic=require(a49_0x162366(0x160));module[a49_0x162366(0x15d)]=class PickupLineCommand extends tesseract_1[a49_0x162366(0x162)]{constructor(){const _0x3e6bce=a49_0x162366;super('pickupLine',{'description':_0x3e6bce(0x15b),'triggers':[_0x3e6bce(0x14f)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x3e6bce(0x157)]=async _0x1283c5=>{const _0x4792b5=_0x3e6bce,_0x1f9b7d=await omnic[_0x4792b5(0x15e)](_0x4792b5(0x15a)),[_0x619b49]=await _0x1f9b7d[_0x4792b5(0x158)]();if(!_0x619b49||!_0x619b49['data']||!_0x619b49[_0x4792b5(0x163)][_0x4792b5(0x151)]||!_0x619b49['data'][_0x4792b5(0x151)][_0x4792b5(0x15c)]||!_0x619b49[_0x4792b5(0x163)]['children'][0x0][_0x4792b5(0x163)])return;await _0x1283c5[_0x4792b5(0x156)][_0x4792b5(0x150)]({'embed':{'color':tesseract_1[_0x4792b5(0x15f)][_0x4792b5(0x14c)][_0x4792b5(0x14e)],'description':'**'+_0x619b49[_0x4792b5(0x163)][_0x4792b5(0x151)][0x0][_0x4792b5(0x163)][_0x4792b5(0x152)]+_0x4792b5(0x153)+(_0x619b49[_0x4792b5(0x163)][_0x4792b5(0x151)][0x0][_0x4792b5(0x163)][_0x4792b5(0x154)]||''),'footer':{'text':'Powered\x20by\x20r/pickuplines'}}});};}}; \ No newline at end of file diff --git a/commands/fun/pun.js b/commands/fun/pun.js index bc22b83a9..1df6325ec 100644 --- a/commands/fun/pun.js +++ b/commands/fun/pun.js @@ -1 +1 @@ -const a49_0x3f64=['exports','permalink','https://reddit.com','children','Posts\x20a\x20random\x20pun\x20collected\x20from\x20the\x20r/puns\x20subreddit.','test','title','length','COLORS','IRIS','Constants','constructor','@bastion/tesseract','json','slice','pun','selftext','exec','url','puns','Powered\x20by\x20r/puns','data','Command','makeRequest','/reddit/puns/random'];(function(_0x4e96d9,_0x286b5a){const _0x3f644f=function(_0x1e9b75){while(--_0x1e9b75){_0x4e96d9['push'](_0x4e96d9['shift']());}},_0x4400e5=function(){const _0x31729c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3066b2,_0xb961ce,_0x402b20,_0x1aa8da){_0x1aa8da=_0x1aa8da||{};let _0x32d03f=_0xb961ce+'='+_0x402b20,_0x382118=0x0;for(let _0x4b7e15=0x0,_0x5bcab6=_0x3066b2['length'];_0x4b7e15<_0x5bcab6;_0x4b7e15++){const _0x41abb7=_0x3066b2[_0x4b7e15];_0x32d03f+=';\x20'+_0x41abb7;const _0x4bc5ba=_0x3066b2[_0x41abb7];_0x3066b2['push'](_0x4bc5ba),_0x5bcab6=_0x3066b2['length'],_0x4bc5ba!==!![]&&(_0x32d03f+='='+_0x4bc5ba);}_0x1aa8da['cookie']=_0x32d03f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x482f4b,_0x589ab9){_0x482f4b=_0x482f4b||function(_0x4db9fb){return _0x4db9fb;};const _0x7fb5d3=_0x482f4b(new RegExp('(?:^|;\x20)'+_0x589ab9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2795bc=function(_0x14df57,_0x41262f){_0x14df57(++_0x41262f);};return _0x2795bc(_0x3f644f,_0x286b5a),_0x7fb5d3?decodeURIComponent(_0x7fb5d3[0x1]):undefined;}},_0x190f74=function(){const _0x461732=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x461732['test'](_0x31729c['removeCookie']['toString']());};_0x31729c['updateCookie']=_0x190f74;let _0x47e398='';const _0xb062b9=_0x31729c['updateCookie']();if(!_0xb062b9)_0x31729c['setCookie'](['*'],'counter',0x1);else _0xb062b9?_0x47e398=_0x31729c['getCookie'](null,'counter'):_0x31729c['removeCookie']();};_0x4400e5();}(a49_0x3f64,0x1bb));const a49_0x4400=function(_0x4e96d9,_0x286b5a){_0x4e96d9=_0x4e96d9-0x18d;let _0x3f644f=a49_0x3f64[_0x4e96d9];return _0x3f644f;};const _0x8a88cd=a49_0x4400,a49_0x190f74=function(){let _0xb062b9=!![];return function(_0x3066b2,_0xb961ce){const _0x402b20=_0xb062b9?function(){if(_0xb961ce){const _0x1aa8da=_0xb961ce['apply'](_0x3066b2,arguments);return _0xb961ce=null,_0x1aa8da;}}:function(){};return _0xb062b9=![],_0x402b20;};}(),a49_0x31729c=a49_0x190f74(this,function(){const _0x32d03f=function(){const _0x3a9699=a49_0x4400,_0x382118=_0x32d03f['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3a9699(0x19f)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x382118[_0x3a9699(0x199)](a49_0x31729c);};return _0x32d03f();});a49_0x31729c();'use strict';const tesseract_1=require(_0x8a88cd(0x1a0)),omnic=require('../../utils/omnic');module[_0x8a88cd(0x194)]=class PunCommand extends tesseract_1[_0x8a88cd(0x191)]{constructor(){const _0x146e30=_0x8a88cd;super(_0x146e30(0x1a3),{'description':_0x146e30(0x198),'triggers':[_0x146e30(0x18e)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x146e30(0x1a5)]=async _0x4b7e15=>{const _0x55dd53=_0x146e30,_0x5bcab6=await omnic[_0x55dd53(0x192)](_0x55dd53(0x193)),[_0x41abb7]=await _0x5bcab6[_0x55dd53(0x1a1)]();if(!_0x41abb7||!_0x41abb7[_0x55dd53(0x190)]||!_0x41abb7['data'][_0x55dd53(0x197)]||!_0x41abb7[_0x55dd53(0x190)][_0x55dd53(0x197)][_0x55dd53(0x19b)]||!_0x41abb7[_0x55dd53(0x190)][_0x55dd53(0x197)][0x0][_0x55dd53(0x190)])return;await _0x4b7e15['channel']['send']({'embed':{'color':tesseract_1[_0x55dd53(0x19e)][_0x55dd53(0x19c)][_0x55dd53(0x19d)],'title':_0x41abb7[_0x55dd53(0x190)]['children'][0x0][_0x55dd53(0x190)][_0x55dd53(0x19a)][_0x55dd53(0x1a2)](0x0,0x100),'url':_0x55dd53(0x196)+_0x41abb7[_0x55dd53(0x190)]['children'][0x0][_0x55dd53(0x190)][_0x55dd53(0x195)],..._0x41abb7[_0x55dd53(0x190)][_0x55dd53(0x197)][0x0][_0x55dd53(0x190)][_0x55dd53(0x1a4)]?{'description':_0x41abb7[_0x55dd53(0x190)][_0x55dd53(0x197)][0x0][_0x55dd53(0x190)]['selftext'][_0x55dd53(0x1a2)](0x0,0x400)}:{},'image':{'url':_0x41abb7[_0x55dd53(0x190)]['children'][0x0][_0x55dd53(0x190)][_0x55dd53(0x18d)]},'footer':{'text':_0x55dd53(0x18f)}}});};}}; \ No newline at end of file +const a50_0x2854=['children','selftext','IRIS','exports','https://reddit.com','test','puns','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','../../utils/omnic','data','apply','guild','title','Constants','pun','slice','Command','Posts\x20a\x20random\x20pun\x20collected\x20from\x20the\x20r/puns\x20subreddit.','/reddit/puns/random','Powered\x20by\x20r/puns','send','channel','json','length'];(function(_0x7b1100,_0x47305a){const _0x2854ef=function(_0x37084b){while(--_0x37084b){_0x7b1100['push'](_0x7b1100['shift']());}},_0x145365=function(){const _0x411c3e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c7e10,_0x168637,_0x482fc4,_0x5002e3){_0x5002e3=_0x5002e3||{};let _0x225dd6=_0x168637+'='+_0x482fc4,_0x2d5ce7=0x0;for(let _0x5653b8=0x0,_0x341744=_0x3c7e10['length'];_0x5653b8<_0x341744;_0x5653b8++){const _0x37a1a9=_0x3c7e10[_0x5653b8];_0x225dd6+=';\x20'+_0x37a1a9;const _0x12e3be=_0x3c7e10[_0x37a1a9];_0x3c7e10['push'](_0x12e3be),_0x341744=_0x3c7e10['length'],_0x12e3be!==!![]&&(_0x225dd6+='='+_0x12e3be);}_0x5002e3['cookie']=_0x225dd6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x53a148,_0x22711b){_0x53a148=_0x53a148||function(_0x1c1167){return _0x1c1167;};const _0x173979=_0x53a148(new RegExp('(?:^|;\x20)'+_0x22711b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46b2f8=function(_0xbd5510,_0x1054d7){_0xbd5510(++_0x1054d7);};return _0x46b2f8(_0x2854ef,_0x47305a),_0x173979?decodeURIComponent(_0x173979[0x1]):undefined;}},_0x5984e3=function(){const _0x49aaa1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49aaa1['test'](_0x411c3e['removeCookie']['toString']());};_0x411c3e['updateCookie']=_0x5984e3;let _0xc3e9a8='';const _0x20d802=_0x411c3e['updateCookie']();if(!_0x20d802)_0x411c3e['setCookie'](['*'],'counter',0x1);else _0x20d802?_0xc3e9a8=_0x411c3e['getCookie'](null,'counter'):_0x411c3e['removeCookie']();};_0x145365();}(a50_0x2854,0x168));const a50_0x1453=function(_0x7b1100,_0x47305a){_0x7b1100=_0x7b1100-0x155;let _0x2854ef=a50_0x2854[_0x7b1100];return _0x2854ef;};const a50_0x2c82e6=a50_0x1453,a50_0x5984e3=function(){let _0x20d802=!![];return function(_0x3c7e10,_0x168637){const _0x482fc4=_0x20d802?function(){const _0x325209=a50_0x1453;if(_0x168637){const _0x5002e3=_0x168637[_0x325209(0x156)](_0x3c7e10,arguments);return _0x168637=null,_0x5002e3;}}:function(){};return _0x20d802=![],_0x482fc4;};}(),a50_0x411c3e=a50_0x5984e3(this,function(){const _0x225dd6=function(){const _0x34ccf6=a50_0x1453,_0x2d5ce7=_0x225dd6[_0x34ccf6(0x16c)](_0x34ccf6(0x16b))()[_0x34ccf6(0x16c)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2d5ce7[_0x34ccf6(0x169)](a50_0x411c3e);};return _0x225dd6();});a50_0x411c3e();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a50_0x2c82e6(0x16d));module[a50_0x2c82e6(0x167)]=class PunCommand extends tesseract_1[a50_0x2c82e6(0x15c)]{constructor(){const _0x4dcc74=a50_0x2c82e6;super(_0x4dcc74(0x15a),{'description':_0x4dcc74(0x15d),'triggers':[_0x4dcc74(0x16a)],'arguments':{},'scope':_0x4dcc74(0x157),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x5653b8=>{const _0x7cd834=_0x4dcc74,_0x341744=await omnic['makeRequest'](_0x7cd834(0x15e)),[_0x37a1a9]=await _0x341744[_0x7cd834(0x162)]();if(!_0x37a1a9||!_0x37a1a9[_0x7cd834(0x155)]||!_0x37a1a9[_0x7cd834(0x155)]['children']||!_0x37a1a9[_0x7cd834(0x155)][_0x7cd834(0x164)][_0x7cd834(0x163)]||!_0x37a1a9[_0x7cd834(0x155)][_0x7cd834(0x164)][0x0][_0x7cd834(0x155)])return;await _0x5653b8[_0x7cd834(0x161)][_0x7cd834(0x160)]({'embed':{'color':tesseract_1[_0x7cd834(0x159)]['COLORS'][_0x7cd834(0x166)],'title':_0x37a1a9[_0x7cd834(0x155)][_0x7cd834(0x164)][0x0][_0x7cd834(0x155)][_0x7cd834(0x158)][_0x7cd834(0x15b)](0x0,0x100),'url':_0x7cd834(0x168)+_0x37a1a9['data']['children'][0x0][_0x7cd834(0x155)]['permalink'],..._0x37a1a9[_0x7cd834(0x155)][_0x7cd834(0x164)][0x0][_0x7cd834(0x155)][_0x7cd834(0x165)]?{'description':_0x37a1a9[_0x7cd834(0x155)][_0x7cd834(0x164)][0x0][_0x7cd834(0x155)][_0x7cd834(0x165)][_0x7cd834(0x15b)](0x0,0x400)}:{},'image':{'url':_0x37a1a9['data'][_0x7cd834(0x164)][0x0][_0x7cd834(0x155)]['url']},'footer':{'text':_0x7cd834(0x15f)}}});};}}; \ No newline at end of file diff --git a/commands/fun/roast.js b/commands/fun/roast.js index 6b498d90c..8cba971b0 100644 --- a/commands/fun/roast.js +++ b/commands/fun/roast.js @@ -1 +1 @@ -const a50_0x52e5=['guild','roast','exec','test','floor','@bastion/tesseract','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','It\x20allows\x20you\x20to\x20get\x20roasted.\x20The\x20thicker\x20the\x20skin,\x20the\x20better\x20the\x20roast.'];(function(_0x123443,_0x258976){const _0x52e5de=function(_0x24617d){while(--_0x24617d){_0x123443['push'](_0x123443['shift']());}},_0x446ed8=function(){const _0x5b284d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5eb8c0,_0x77baa7,_0x92fb08,_0x282a8c){_0x282a8c=_0x282a8c||{};let _0x2e18fe=_0x77baa7+'='+_0x92fb08,_0x29924f=0x0;for(let _0x4d53ab=0x0,_0x4a9456=_0x5eb8c0['length'];_0x4d53ab<_0x4a9456;_0x4d53ab++){const _0x4e6620=_0x5eb8c0[_0x4d53ab];_0x2e18fe+=';\x20'+_0x4e6620;const _0x3b46a4=_0x5eb8c0[_0x4e6620];_0x5eb8c0['push'](_0x3b46a4),_0x4a9456=_0x5eb8c0['length'],_0x3b46a4!==!![]&&(_0x2e18fe+='='+_0x3b46a4);}_0x282a8c['cookie']=_0x2e18fe;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2181c5,_0x5ce5aa){_0x2181c5=_0x2181c5||function(_0x41b3e1){return _0x41b3e1;};const _0x59244d=_0x2181c5(new RegExp('(?:^|;\x20)'+_0x5ce5aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1a09e1=function(_0x75dd98,_0x5f5b43){_0x75dd98(++_0x5f5b43);};return _0x1a09e1(_0x52e5de,_0x258976),_0x59244d?decodeURIComponent(_0x59244d[0x1]):undefined;}},_0x47ec04=function(){const _0x564558=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x564558['test'](_0x5b284d['removeCookie']['toString']());};_0x5b284d['updateCookie']=_0x47ec04;let _0x25a1dd='';const _0x20020d=_0x5b284d['updateCookie']();if(!_0x20020d)_0x5b284d['setCookie'](['*'],'counter',0x1);else _0x20020d?_0x25a1dd=_0x5b284d['getCookie'](null,'counter'):_0x5b284d['removeCookie']();};_0x446ed8();}(a50_0x52e5,0x1c5));const a50_0x446e=function(_0x123443,_0x258976){_0x123443=_0x123443-0x1e3;let _0x52e5de=a50_0x52e5[_0x123443];return _0x52e5de;};const _0x279674=a50_0x446e,a50_0x47ec04=function(){let _0x20020d=!![];return function(_0x5eb8c0,_0x77baa7){const _0x92fb08=_0x20020d?function(){if(_0x77baa7){const _0x282a8c=_0x77baa7['apply'](_0x5eb8c0,arguments);return _0x77baa7=null,_0x282a8c;}}:function(){};return _0x20020d=![],_0x92fb08;};}(),a50_0x5b284d=a50_0x47ec04(this,function(){const _0x2e18fe=function(){const _0x101717=a50_0x446e,_0x29924f=_0x2e18fe['constructor'](_0x101717(0x1e7))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x29924f[_0x101717(0x1e3)](a50_0x5b284d);};return _0x2e18fe();});a50_0x5b284d();'use strict';const tesseract_1=require(_0x279674(0x1e5)),roasts=require('../../assets/roasts.json');module['exports']=class RoastCommand extends tesseract_1[_0x279674(0x1e8)]{constructor(){const _0x3c0c7d=_0x279674;super(_0x3c0c7d(0x1eb),{'description':_0x3c0c7d(0x1e9),'triggers':[],'arguments':{},'scope':_0x3c0c7d(0x1ea),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x3c0c7d(0x1ec)]=async _0x4d53ab=>{const _0x42b03d=_0x3c0c7d;await _0x4d53ab[_0x42b03d(0x1e6)]['send'](roasts[Math[_0x42b03d(0x1e4)](Math['random']()*roasts['length'])]);};}}; \ No newline at end of file +const a51_0xc3cc=['@bastion/tesseract','exports','It\x20allows\x20you\x20to\x20get\x20roasted.\x20The\x20thicker\x20the\x20skin,\x20the\x20better\x20the\x20roast.','random','../../assets/roasts.json','apply','floor','roast','exec','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channel','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x173d72,_0x20fd78){const _0xc3ccee=function(_0x28b9e1){while(--_0x28b9e1){_0x173d72['push'](_0x173d72['shift']());}},_0x4fead7=function(){const _0x436848={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4327b5,_0x220cb8,_0x1a654e,_0x530b39){_0x530b39=_0x530b39||{};let _0x4618be=_0x220cb8+'='+_0x1a654e,_0x49c61d=0x0;for(let _0x371598=0x0,_0x282277=_0x4327b5['length'];_0x371598<_0x282277;_0x371598++){const _0x2586bb=_0x4327b5[_0x371598];_0x4618be+=';\x20'+_0x2586bb;const _0x420efe=_0x4327b5[_0x2586bb];_0x4327b5['push'](_0x420efe),_0x282277=_0x4327b5['length'],_0x420efe!==!![]&&(_0x4618be+='='+_0x420efe);}_0x530b39['cookie']=_0x4618be;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2beddf,_0x56b4e3){_0x2beddf=_0x2beddf||function(_0x178dbe){return _0x178dbe;};const _0x10bb2f=_0x2beddf(new RegExp('(?:^|;\x20)'+_0x56b4e3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x58b4fa=function(_0xdd15d7,_0x4a5348){_0xdd15d7(++_0x4a5348);};return _0x58b4fa(_0xc3ccee,_0x20fd78),_0x10bb2f?decodeURIComponent(_0x10bb2f[0x1]):undefined;}},_0x363391=function(){const _0x1df882=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1df882['test'](_0x436848['removeCookie']['toString']());};_0x436848['updateCookie']=_0x363391;let _0x7be33a='';const _0x302107=_0x436848['updateCookie']();if(!_0x302107)_0x436848['setCookie'](['*'],'counter',0x1);else _0x302107?_0x7be33a=_0x436848['getCookie'](null,'counter'):_0x436848['removeCookie']();};_0x4fead7();}(a51_0xc3cc,0xb0));const a51_0x4fea=function(_0x173d72,_0x20fd78){_0x173d72=_0x173d72-0x1b7;let _0xc3ccee=a51_0xc3cc[_0x173d72];return _0xc3ccee;};const a51_0xc8a1fd=a51_0x4fea,a51_0x363391=function(){let _0x302107=!![];return function(_0x4327b5,_0x220cb8){const _0x1a654e=_0x302107?function(){const _0x6dd5f2=a51_0x4fea;if(_0x220cb8){const _0x530b39=_0x220cb8[_0x6dd5f2(0x1c2)](_0x4327b5,arguments);return _0x220cb8=null,_0x530b39;}}:function(){};return _0x302107=![],_0x1a654e;};}(),a51_0x436848=a51_0x363391(this,function(){const _0x4618be=function(){const _0x222ba0=a51_0x4fea,_0x49c61d=_0x4618be[_0x222ba0(0x1bb)](_0x222ba0(0x1bc))()['constructor'](_0x222ba0(0x1b9));return!_0x49c61d['test'](a51_0x436848);};return _0x4618be();});a51_0x436848();'use strict';const tesseract_1=require(a51_0xc8a1fd(0x1bd)),roasts=require(a51_0xc8a1fd(0x1c1));module[a51_0xc8a1fd(0x1be)]=class RoastCommand extends tesseract_1['Command']{constructor(){const _0xf4622a=a51_0xc8a1fd;super(_0xf4622a(0x1c4),{'description':_0xf4622a(0x1bf),'triggers':[],'arguments':{},'scope':_0xf4622a(0x1b8),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0xf4622a(0x1b7)]=async _0x371598=>{const _0x8256ee=_0xf4622a;await _0x371598[_0x8256ee(0x1ba)]['send'](roasts[Math[_0x8256ee(0x1c3)](Math[_0x8256ee(0x1c0)]()*roasts['length'])]);};}}; \ No newline at end of file diff --git a/commands/fun/robotify.js b/commands/fun/robotify.js index d0363d667..eed1014a6 100644 --- a/commands/fun/robotify.js +++ b/commands/fun/robotify.js @@ -1 +1 @@ -const a51_0x2e7b=['apply','It\x20allows\x20you\x20to\x20generate\x20a\x20robot\x20avatar\x20that\x27s\x20unique\x20to\x20you.','robotify','avatar.png','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','author','send','guild','https://robohash.org/','?set=set0','Command','tag','test','channel'];(function(_0x2023be,_0x32d31a){const _0x2e7b51=function(_0x581dbc){while(--_0x581dbc){_0x2023be['push'](_0x2023be['shift']());}},_0x53c998=function(){const _0x821e10={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c5624,_0x3e760f,_0x2a13fe,_0x5dd468){_0x5dd468=_0x5dd468||{};let _0x348e04=_0x3e760f+'='+_0x2a13fe,_0x448324=0x0;for(let _0x1d9439=0x0,_0x147eeb=_0x3c5624['length'];_0x1d9439<_0x147eeb;_0x1d9439++){const _0x1f430b=_0x3c5624[_0x1d9439];_0x348e04+=';\x20'+_0x1f430b;const _0x42e088=_0x3c5624[_0x1f430b];_0x3c5624['push'](_0x42e088),_0x147eeb=_0x3c5624['length'],_0x42e088!==!![]&&(_0x348e04+='='+_0x42e088);}_0x5dd468['cookie']=_0x348e04;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a4002,_0x935961){_0x5a4002=_0x5a4002||function(_0x22d01a){return _0x22d01a;};const _0x4108fd=_0x5a4002(new RegExp('(?:^|;\x20)'+_0x935961['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12b49d=function(_0x28adf1,_0x2b2a2b){_0x28adf1(++_0x2b2a2b);};return _0x12b49d(_0x2e7b51,_0x32d31a),_0x4108fd?decodeURIComponent(_0x4108fd[0x1]):undefined;}},_0x31c79d=function(){const _0x3750bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3750bf['test'](_0x821e10['removeCookie']['toString']());};_0x821e10['updateCookie']=_0x31c79d;let _0x4a2024='';const _0xfd4cb9=_0x821e10['updateCookie']();if(!_0xfd4cb9)_0x821e10['setCookie'](['*'],'counter',0x1);else _0xfd4cb9?_0x4a2024=_0x821e10['getCookie'](null,'counter'):_0x821e10['removeCookie']();};_0x53c998();}(a51_0x2e7b,0x102));const a51_0x53c9=function(_0x2023be,_0x32d31a){_0x2023be=_0x2023be-0xa2;let _0x2e7b51=a51_0x2e7b[_0x2023be];return _0x2e7b51;};const _0x216176=a51_0x53c9,a51_0x31c79d=function(){let _0xfd4cb9=!![];return function(_0x3c5624,_0x3e760f){const _0x2a13fe=_0xfd4cb9?function(){const _0x42098b=a51_0x53c9;if(_0x3e760f){const _0x5dd468=_0x3e760f[_0x42098b(0xb0)](_0x3c5624,arguments);return _0x3e760f=null,_0x5dd468;}}:function(){};return _0xfd4cb9=![],_0x2a13fe;};}(),a51_0x821e10=a51_0x31c79d(this,function(){const _0x348e04=function(){const _0x23b2e0=a51_0x53c9,_0x448324=_0x348e04[_0x23b2e0(0xa5)](_0x23b2e0(0xa6))()[_0x23b2e0(0xa5)](_0x23b2e0(0xa4));return!_0x448324[_0x23b2e0(0xae)](a51_0x821e10);};return _0x348e04();});a51_0x821e10();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class RobotifyCommand extends tesseract_1[_0x216176(0xac)]{constructor(){const _0x5c26d9=_0x216176;super(_0x5c26d9(0xb2),{'description':_0x5c26d9(0xb1),'triggers':[],'arguments':{},'scope':_0x5c26d9(0xa9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x5c26d9(0xa3)]=async _0x1d9439=>{const _0x1f4594=_0x5c26d9;await _0x1d9439[_0x1f4594(0xaf)][_0x1f4594(0xa8)]({'files':[{'name':_0x1f4594(0xa2),'attachment':_0x1f4594(0xaa)+encodeURIComponent(_0x1d9439[_0x1f4594(0xa7)][_0x1f4594(0xad)])+_0x1f4594(0xab)}]});};}}; \ No newline at end of file +const a52_0x4c37=['apply','robotify','author','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x20allows\x20you\x20to\x20generate\x20a\x20robot\x20avatar\x20that\x27s\x20unique\x20to\x20you.','send','exec','guild','constructor','https://robohash.org/','@bastion/tesseract','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','?set=set0'];(function(_0xb246fa,_0x20401e){const _0x4c3727=function(_0xdb1113){while(--_0xdb1113){_0xb246fa['push'](_0xb246fa['shift']());}},_0x44dc35=function(){const _0x1d72c0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xce8672,_0x5d08b2,_0xe6bb4f,_0xdcfd86){_0xdcfd86=_0xdcfd86||{};let _0x503c4d=_0x5d08b2+'='+_0xe6bb4f,_0xeaa1e8=0x0;for(let _0x22b537=0x0,_0x43cd46=_0xce8672['length'];_0x22b537<_0x43cd46;_0x22b537++){const _0x544d2f=_0xce8672[_0x22b537];_0x503c4d+=';\x20'+_0x544d2f;const _0x52d883=_0xce8672[_0x544d2f];_0xce8672['push'](_0x52d883),_0x43cd46=_0xce8672['length'],_0x52d883!==!![]&&(_0x503c4d+='='+_0x52d883);}_0xdcfd86['cookie']=_0x503c4d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f510f,_0x382f82){_0x3f510f=_0x3f510f||function(_0x3bba81){return _0x3bba81;};const _0x25322b=_0x3f510f(new RegExp('(?:^|;\x20)'+_0x382f82['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x195f0e=function(_0x47b0bb,_0x4e8e2b){_0x47b0bb(++_0x4e8e2b);};return _0x195f0e(_0x4c3727,_0x20401e),_0x25322b?decodeURIComponent(_0x25322b[0x1]):undefined;}},_0x111ad4=function(){const _0x80ae92=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x80ae92['test'](_0x1d72c0['removeCookie']['toString']());};_0x1d72c0['updateCookie']=_0x111ad4;let _0x51c3a2='';const _0x21451e=_0x1d72c0['updateCookie']();if(!_0x21451e)_0x1d72c0['setCookie'](['*'],'counter',0x1);else _0x21451e?_0x51c3a2=_0x1d72c0['getCookie'](null,'counter'):_0x1d72c0['removeCookie']();};_0x44dc35();}(a52_0x4c37,0x128));const a52_0x44dc=function(_0xb246fa,_0x20401e){_0xb246fa=_0xb246fa-0x1d4;let _0x4c3727=a52_0x4c37[_0xb246fa];return _0x4c3727;};const a52_0x4bc5aa=a52_0x44dc,a52_0x111ad4=function(){let _0x21451e=!![];return function(_0xce8672,_0x5d08b2){const _0xe6bb4f=_0x21451e?function(){const _0x3d975c=a52_0x44dc;if(_0x5d08b2){const _0xdcfd86=_0x5d08b2[_0x3d975c(0x1dc)](_0xce8672,arguments);return _0x5d08b2=null,_0xdcfd86;}}:function(){};return _0x21451e=![],_0xe6bb4f;};}(),a52_0x1d72c0=a52_0x111ad4(this,function(){const _0x503c4d=function(){const _0x3a9848=a52_0x44dc,_0xeaa1e8=_0x503c4d['constructor'](_0x3a9848(0x1d9))()[_0x3a9848(0x1d5)](_0x3a9848(0x1e0));return!_0xeaa1e8['test'](a52_0x1d72c0);};return _0x503c4d();});a52_0x1d72c0();'use strict';const tesseract_1=require(a52_0x4bc5aa(0x1d7));module[a52_0x4bc5aa(0x1da)]=class RobotifyCommand extends tesseract_1[a52_0x4bc5aa(0x1d8)]{constructor(){const _0x18b476=a52_0x4bc5aa;super(_0x18b476(0x1dd),{'description':_0x18b476(0x1e1),'triggers':[],'arguments':{},'scope':_0x18b476(0x1d4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x18b476(0x1e3)]=async _0x22b537=>{const _0x25bcc8=_0x18b476;await _0x22b537[_0x25bcc8(0x1df)][_0x25bcc8(0x1e2)]({'files':[{'name':'avatar.png','attachment':_0x25bcc8(0x1d6)+encodeURIComponent(_0x22b537[_0x25bcc8(0x1de)]['tag'])+_0x25bcc8(0x1db)}]});};}}; \ No newline at end of file diff --git a/commands/fun/ship.js b/commands/fun/ship.js index 8b2676462..94fa23d00 100644 --- a/commands/fun/ship.js +++ b/commands/fun/ship.js @@ -1 +1 @@ -const a52_0x4372=['guild','displayName','parseInt','client','**\x20compatible\x20with\x20each\x20other.','resolveGuildMember','toLowerCase','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','size','length','constructor','**\x20are\x20**','values','channel','@bastion/tesseract','exports','**\x20and\x20**','resolver','DiscordError','IRIS','It\x20allows\x20you\x20to\x20ship\x20two\x20people\x20and\x20see\x20their\x20compatiblity.','INVALID_COMMAND_SYNTAX','join','exec','\x20loves\x20','find','calculate','first','ship','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','send','name','toString','members','apply','\x20❤️\x20','shortString','Command','mentions'];(function(_0x47f3a9,_0x333254){const _0x43729a=function(_0x12e7f9){while(--_0x12e7f9){_0x47f3a9['push'](_0x47f3a9['shift']());}},_0x19b2ae=function(){const _0x4191e1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1923b0,_0x4eabb3,_0x1b0971,_0x4727f9){_0x4727f9=_0x4727f9||{};let _0x447344=_0x4eabb3+'='+_0x1b0971,_0x4bc7e7=0x0;for(let _0x40d868=0x0,_0x178c65=_0x1923b0['length'];_0x40d868<_0x178c65;_0x40d868++){const _0x313c04=_0x1923b0[_0x40d868];_0x447344+=';\x20'+_0x313c04;const _0x309735=_0x1923b0[_0x313c04];_0x1923b0['push'](_0x309735),_0x178c65=_0x1923b0['length'],_0x309735!==!![]&&(_0x447344+='='+_0x309735);}_0x4727f9['cookie']=_0x447344;},'removeCookie':function(){return'dev';},'getCookie':function(_0x21c9cf,_0x22183e){_0x21c9cf=_0x21c9cf||function(_0x1566df){return _0x1566df;};const _0x5dc8c6=_0x21c9cf(new RegExp('(?:^|;\x20)'+_0x22183e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f255c=function(_0x5d3063,_0x13d397){_0x5d3063(++_0x13d397);};return _0x4f255c(_0x43729a,_0x333254),_0x5dc8c6?decodeURIComponent(_0x5dc8c6[0x1]):undefined;}},_0x74d047=function(){const _0x37269a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37269a['test'](_0x4191e1['removeCookie']['toString']());};_0x4191e1['updateCookie']=_0x74d047;let _0x5cb6ba='';const _0x5c3244=_0x4191e1['updateCookie']();if(!_0x5c3244)_0x4191e1['setCookie'](['*'],'counter',0x1);else _0x5c3244?_0x5cb6ba=_0x4191e1['getCookie'](null,'counter'):_0x4191e1['removeCookie']();};_0x19b2ae();}(a52_0x4372,0xba));const a52_0x19b2=function(_0x47f3a9,_0x333254){_0x47f3a9=_0x47f3a9-0x1d5;let _0x43729a=a52_0x4372[_0x47f3a9];return _0x43729a;};const _0x11f6b3=a52_0x19b2,a52_0x74d047=function(){let _0x5c3244=!![];return function(_0x1923b0,_0x4eabb3){const _0x1b0971=_0x5c3244?function(){const _0x1cb416=a52_0x19b2;if(_0x4eabb3){const _0x4727f9=_0x4eabb3[_0x1cb416(0x1e3)](_0x1923b0,arguments);return _0x4eabb3=null,_0x4727f9;}}:function(){};return _0x5c3244=![],_0x1b0971;};}(),a52_0x4191e1=a52_0x74d047(this,function(){const _0x447344=function(){const _0x41a6fb=a52_0x19b2,_0x4bc7e7=_0x447344[_0x41a6fb(0x1f3)](_0x41a6fb(0x1dd))()[_0x41a6fb(0x1f3)](_0x41a6fb(0x1f0));return!_0x4bc7e7['test'](a52_0x4191e1);};return _0x447344();});a52_0x4191e1();'use strict';const tesseract_1=require(_0x11f6b3(0x1f7)),errors=require('../../utils/errors'),strings=require('../../utils/strings');module[_0x11f6b3(0x1f8)]=class ShipCommand extends tesseract_1[_0x11f6b3(0x1e6)]{constructor(){const _0xda9f85=_0x11f6b3;super(_0xda9f85(0x1dc),{'description':_0xda9f85(0x1fd),'triggers':[],'arguments':{},'scope':_0xda9f85(0x1e8),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['ship\x20USER\x20USER']}),this[_0xda9f85(0x1e5)]=_0x40d868=>{const _0x122fda=_0xda9f85;let _0x178c65='';if(_0x40d868[_0x122fda(0x1f2)]>=0x2)_0x178c65=(Number[_0x122fda(0x1ea)](_0x40d868[0x0])+Number[_0x122fda(0x1ea)](_0x40d868[_0x40d868[_0x122fda(0x1f2)]-0x1]))['toString']()+this[_0x122fda(0x1e5)](_0x40d868['substring'](0x1,_0x40d868[_0x122fda(0x1f2)]-0x1));else return _0x40d868;return _0x178c65;},this[_0xda9f85(0x1da)]=_0x313c04=>{const _0x19ce22=_0xda9f85;let _0x309735=_0x313c04;while(_0x309735[_0x19ce22(0x1f2)]>0x2){_0x309735=this[_0x19ce22(0x1e5)](_0x309735);}return _0x309735+'%';},this[_0xda9f85(0x1d7)]=async(_0x21c9cf,_0x22183e)=>{const _0x435060=_0xda9f85;if(_0x22183e['_'][_0x435060(0x1f2)]<0x2)throw new errors[(_0x435060(0x1fb))](errors[_0x435060(0x1ef)][_0x435060(0x1d5)],this[_0x435060(0x1e0)]);const _0x5dc8c6=_0x21c9cf[_0x435060(0x1e7)][_0x435060(0x1e2)][_0x435060(0x1f1)]?_0x21c9cf[_0x435060(0x1e7)][_0x435060(0x1e2)][_0x435060(0x1db)]():_0x21c9cf[_0x435060(0x1eb)][_0x435060(0x1fa)]['resolveGuildMember'](_0x21c9cf['guild'],_0x22183e['_'][0x0]),_0x4f255c=_0x21c9cf['mentions'][_0x435060(0x1e2)][_0x435060(0x1f1)]>0x1?_0x21c9cf[_0x435060(0x1e7)][_0x435060(0x1e2)][_0x435060(0x1d9)](_0x13d397=>_0x13d397['id']!==_0x5dc8c6['id']):_0x21c9cf['client'][_0x435060(0x1fa)][_0x435060(0x1ed)](_0x21c9cf[_0x435060(0x1e8)],_0x22183e['_'][0x1]),_0x1566df=_0x5dc8c6?_0x5dc8c6[_0x435060(0x1e9)]:_0x22183e['_'][0x0],_0x5d3063=_0x4f255c?_0x4f255c[_0x435060(0x1e9)]:_0x22183e['_'][0x1];await _0x21c9cf[_0x435060(0x1f6)][_0x435060(0x1df)]({'embed':{'color':tesseract_1['Constants'][_0x435060(0x1de)][_0x435060(0x1fc)],'title':_0x1566df+_0x435060(0x1e4)+_0x5d3063,'description':'**'+_0x1566df+_0x435060(0x1f9)+_0x5d3063+_0x435060(0x1f4)+this[_0x435060(0x1da)](Object[_0x435060(0x1f5)](strings['frequency'](_0x1566df[_0x435060(0x1e1)]()['toLowerCase']()+_0x435060(0x1d8)+_0x5d3063[_0x435060(0x1e1)]()[_0x435060(0x1ee)]()))[_0x435060(0x1d6)](''))+_0x435060(0x1ec)}});};}}; \ No newline at end of file +const a53_0x30dd=['test','size','parseInt','members','ship\x20USER\x20USER','constructor','guild','../../utils/strings','shortString','Constants','INVALID_COMMAND_SYNTAX','channel','DiscordError','**\x20compatible\x20with\x20each\x20other.','values','toLowerCase','\x20loves\x20','calculate','resolver','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20❤️\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','frequency','client','resolveGuildMember','find','@bastion/tesseract','mentions','displayName','toString','length','substring','name','exports','**\x20and\x20**','It\x20allows\x20you\x20to\x20ship\x20two\x20people\x20and\x20see\x20their\x20compatiblity.'];(function(_0x535f94,_0x35be8a){const _0x30dd3d=function(_0x4c845d){while(--_0x4c845d){_0x535f94['push'](_0x535f94['shift']());}},_0x23c5b5=function(){const _0x4ed10f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a220c,_0xb8f389,_0x56ed13,_0x1133ce){_0x1133ce=_0x1133ce||{};let _0x5907b0=_0xb8f389+'='+_0x56ed13,_0x220499=0x0;for(let _0x4f880b=0x0,_0xe1bc63=_0x2a220c['length'];_0x4f880b<_0xe1bc63;_0x4f880b++){const _0x37895d=_0x2a220c[_0x4f880b];_0x5907b0+=';\x20'+_0x37895d;const _0x1cad35=_0x2a220c[_0x37895d];_0x2a220c['push'](_0x1cad35),_0xe1bc63=_0x2a220c['length'],_0x1cad35!==!![]&&(_0x5907b0+='='+_0x1cad35);}_0x1133ce['cookie']=_0x5907b0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c7262,_0x561efb){_0x5c7262=_0x5c7262||function(_0x168348){return _0x168348;};const _0x2ed1e6=_0x5c7262(new RegExp('(?:^|;\x20)'+_0x561efb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3749c3=function(_0xf9b52c,_0x53c660){_0xf9b52c(++_0x53c660);};return _0x3749c3(_0x30dd3d,_0x35be8a),_0x2ed1e6?decodeURIComponent(_0x2ed1e6[0x1]):undefined;}},_0x207060=function(){const _0x5558ea=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5558ea['test'](_0x4ed10f['removeCookie']['toString']());};_0x4ed10f['updateCookie']=_0x207060;let _0x15b96c='';const _0x358e8d=_0x4ed10f['updateCookie']();if(!_0x358e8d)_0x4ed10f['setCookie'](['*'],'counter',0x1);else _0x358e8d?_0x15b96c=_0x4ed10f['getCookie'](null,'counter'):_0x4ed10f['removeCookie']();};_0x23c5b5();}(a53_0x30dd,0xcc));const a53_0x23c5=function(_0x535f94,_0x35be8a){_0x535f94=_0x535f94-0x123;let _0x30dd3d=a53_0x30dd[_0x535f94];return _0x30dd3d;};const a53_0xaaf634=a53_0x23c5,a53_0x207060=function(){let _0x358e8d=!![];return function(_0x2a220c,_0xb8f389){const _0x56ed13=_0x358e8d?function(){if(_0xb8f389){const _0x1133ce=_0xb8f389['apply'](_0x2a220c,arguments);return _0xb8f389=null,_0x1133ce;}}:function(){};return _0x358e8d=![],_0x56ed13;};}(),a53_0x4ed10f=a53_0x207060(this,function(){const _0x5907b0=function(){const _0x4bca39=a53_0x23c5,_0x220499=_0x5907b0[_0x4bca39(0x13a)](_0x4bca39(0x125))()['constructor'](_0x4bca39(0x123));return!_0x220499[_0x4bca39(0x135)](a53_0x4ed10f);};return _0x5907b0();});a53_0x4ed10f();'use strict';const tesseract_1=require(a53_0xaaf634(0x12b)),errors=require('../../utils/errors'),strings=require(a53_0xaaf634(0x13c));module[a53_0xaaf634(0x132)]=class ShipCommand extends tesseract_1['Command']{constructor(){const _0x54c5e9=a53_0xaaf634;super('ship',{'description':_0x54c5e9(0x134),'triggers':[],'arguments':{},'scope':_0x54c5e9(0x13b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x54c5e9(0x139)]}),this[_0x54c5e9(0x13d)]=_0x4f880b=>{const _0xf5d8bd=_0x54c5e9;let _0xe1bc63='';if(_0x4f880b[_0xf5d8bd(0x12f)]>=0x2)_0xe1bc63=(Number['parseInt'](_0x4f880b[0x0])+Number[_0xf5d8bd(0x137)](_0x4f880b[_0x4f880b[_0xf5d8bd(0x12f)]-0x1]))[_0xf5d8bd(0x12e)]()+this[_0xf5d8bd(0x13d)](_0x4f880b[_0xf5d8bd(0x130)](0x1,_0x4f880b[_0xf5d8bd(0x12f)]-0x1));else return _0x4f880b;return _0xe1bc63;},this[_0x54c5e9(0x146)]=_0x37895d=>{const _0x37d689=_0x54c5e9;let _0x1cad35=_0x37895d;while(_0x1cad35[_0x37d689(0x12f)]>0x2){_0x1cad35=this[_0x37d689(0x13d)](_0x1cad35);}return _0x1cad35+'%';},this[_0x54c5e9(0x126)]=async(_0x5c7262,_0x561efb)=>{const _0x33901e=_0x54c5e9;if(_0x561efb['_']['length']<0x2)throw new errors[(_0x33901e(0x141))](errors['BASTION_ERROR_TYPE'][_0x33901e(0x13f)],this[_0x33901e(0x131)]);const _0x2ed1e6=_0x5c7262[_0x33901e(0x12c)][_0x33901e(0x138)][_0x33901e(0x136)]?_0x5c7262[_0x33901e(0x12c)][_0x33901e(0x138)]['first']():_0x5c7262[_0x33901e(0x128)][_0x33901e(0x147)][_0x33901e(0x129)](_0x5c7262[_0x33901e(0x13b)],_0x561efb['_'][0x0]),_0x3749c3=_0x5c7262[_0x33901e(0x12c)][_0x33901e(0x138)][_0x33901e(0x136)]>0x1?_0x5c7262[_0x33901e(0x12c)][_0x33901e(0x138)][_0x33901e(0x12a)](_0x53c660=>_0x53c660['id']!==_0x2ed1e6['id']):_0x5c7262['client'][_0x33901e(0x147)]['resolveGuildMember'](_0x5c7262[_0x33901e(0x13b)],_0x561efb['_'][0x1]),_0x168348=_0x2ed1e6?_0x2ed1e6['displayName']:_0x561efb['_'][0x0],_0xf9b52c=_0x3749c3?_0x3749c3[_0x33901e(0x12d)]:_0x561efb['_'][0x1];await _0x5c7262[_0x33901e(0x140)]['send']({'embed':{'color':tesseract_1[_0x33901e(0x13e)]['COLORS']['IRIS'],'title':_0x168348+_0x33901e(0x124)+_0xf9b52c,'description':'**'+_0x168348+_0x33901e(0x133)+_0xf9b52c+'**\x20are\x20**'+this[_0x33901e(0x146)](Object[_0x33901e(0x143)](strings[_0x33901e(0x127)](_0x168348[_0x33901e(0x12e)]()[_0x33901e(0x144)]()+_0x33901e(0x145)+_0xf9b52c[_0x33901e(0x12e)]()[_0x33901e(0x144)]()))['join'](''))+_0x33901e(0x142)}});};}}; \ No newline at end of file diff --git a/commands/fun/showerThought.js b/commands/fun/showerThought.js index b7bae764d..03e6d5054 100644 --- a/commands/fun/showerThought.js +++ b/commands/fun/showerThought.js @@ -1 +1 @@ -const a53_0xbae0=['showerThoughts','/reddit/showerthoughts/random','IRIS','selftext','Powered\x20by\x20r/ShowerThoughts','constructor','Posts\x20a\x20random\x20shower\x20thought\x20collected\x20from\x20the\x20r/ShowerThoughts\x20subreddit.','makeRequest','slice','exec','exports','guild','children','title','showerThought','../../utils/omnic','data','test','channel','send','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x2794fd,_0x5a9851){const _0xbae06c=function(_0x18600b){while(--_0x18600b){_0x2794fd['push'](_0x2794fd['shift']());}},_0xce4d45=function(){const _0x56c8ae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23152e,_0x58d4ba,_0x174c3c,_0x1dbcfd){_0x1dbcfd=_0x1dbcfd||{};let _0x5d9504=_0x58d4ba+'='+_0x174c3c,_0xc60c4a=0x0;for(let _0x584826=0x0,_0x2ee1ee=_0x23152e['length'];_0x584826<_0x2ee1ee;_0x584826++){const _0x5635a3=_0x23152e[_0x584826];_0x5d9504+=';\x20'+_0x5635a3;const _0x4a30c2=_0x23152e[_0x5635a3];_0x23152e['push'](_0x4a30c2),_0x2ee1ee=_0x23152e['length'],_0x4a30c2!==!![]&&(_0x5d9504+='='+_0x4a30c2);}_0x1dbcfd['cookie']=_0x5d9504;},'removeCookie':function(){return'dev';},'getCookie':function(_0x256ae6,_0x1ab1da){_0x256ae6=_0x256ae6||function(_0x227530){return _0x227530;};const _0x2a4e3d=_0x256ae6(new RegExp('(?:^|;\x20)'+_0x1ab1da['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3c6806=function(_0x351971,_0x55e14b){_0x351971(++_0x55e14b);};return _0x3c6806(_0xbae06c,_0x5a9851),_0x2a4e3d?decodeURIComponent(_0x2a4e3d[0x1]):undefined;}},_0x348229=function(){const _0x12daa3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12daa3['test'](_0x56c8ae['removeCookie']['toString']());};_0x56c8ae['updateCookie']=_0x348229;let _0x1401eb='';const _0x2e5ead=_0x56c8ae['updateCookie']();if(!_0x2e5ead)_0x56c8ae['setCookie'](['*'],'counter',0x1);else _0x2e5ead?_0x1401eb=_0x56c8ae['getCookie'](null,'counter'):_0x56c8ae['removeCookie']();};_0xce4d45();}(a53_0xbae0,0x1b7));const a53_0xce4d=function(_0x2794fd,_0x5a9851){_0x2794fd=_0x2794fd-0x1ed;let _0xbae06c=a53_0xbae0[_0x2794fd];return _0xbae06c;};const _0x4be1a9=a53_0xce4d,a53_0x348229=function(){let _0x2e5ead=!![];return function(_0x23152e,_0x58d4ba){const _0x174c3c=_0x2e5ead?function(){if(_0x58d4ba){const _0x1dbcfd=_0x58d4ba['apply'](_0x23152e,arguments);return _0x58d4ba=null,_0x1dbcfd;}}:function(){};return _0x2e5ead=![],_0x174c3c;};}(),a53_0x56c8ae=a53_0x348229(this,function(){const _0x5d9504=function(){const _0x437e87=a53_0xce4d,_0xc60c4a=_0x5d9504[_0x437e87(0x1f3)](_0x437e87(0x1ed))()[_0x437e87(0x1f3)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xc60c4a[_0x437e87(0x1ff)](a53_0x56c8ae);};return _0x5d9504();});a53_0x56c8ae();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(_0x4be1a9(0x1fd));module[_0x4be1a9(0x1f8)]=class JokeCommand extends tesseract_1['Command']{constructor(){const _0x4aa077=_0x4be1a9;super(_0x4aa077(0x1fc),{'description':_0x4aa077(0x1f4),'triggers':[_0x4aa077(0x1ee)],'arguments':{},'scope':_0x4aa077(0x1f9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x4aa077(0x1f7)]=async _0x584826=>{const _0x3720e8=_0x4aa077,_0x2ee1ee=await omnic[_0x3720e8(0x1f5)](_0x3720e8(0x1ef)),[_0x5635a3]=await _0x2ee1ee['json']();if(!_0x5635a3||!_0x5635a3['data']||!_0x5635a3[_0x3720e8(0x1fe)][_0x3720e8(0x1fa)]||!_0x5635a3[_0x3720e8(0x1fe)]['children']['length']||!_0x5635a3['data']['children'][0x0]['data'])return;await _0x584826[_0x3720e8(0x200)][_0x3720e8(0x201)]({'embed':{'color':tesseract_1['Constants'][_0x3720e8(0x202)][_0x3720e8(0x1f0)],'title':_0x5635a3[_0x3720e8(0x1fe)]['children'][0x0]['data'][_0x3720e8(0x1fb)][_0x3720e8(0x1f6)](0x0,0x100),'url':_0x5635a3['data'][_0x3720e8(0x1fa)][0x0][_0x3720e8(0x1fe)]['url'],..._0x5635a3[_0x3720e8(0x1fe)][_0x3720e8(0x1fa)][0x0][_0x3720e8(0x1fe)][_0x3720e8(0x1f1)]?{'description':_0x5635a3['data']['children'][0x0][_0x3720e8(0x1fe)][_0x3720e8(0x1f1)][_0x3720e8(0x1f6)](0x0,0x400)}:{},'footer':{'text':_0x3720e8(0x1f2)}}});};}}; \ No newline at end of file +const a54_0x1163=['/reddit/showerthoughts/random','length','Command','../../utils/omnic','Powered\x20by\x20r/ShowerThoughts','slice','makeRequest','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','selftext','showerThought','url','channel','Posts\x20a\x20random\x20shower\x20thought\x20collected\x20from\x20the\x20r/ShowerThoughts\x20subreddit.','exec','Constants','send','data','children','apply','constructor','json','showerThoughts'];(function(_0x56d6af,_0x461d93){const _0x11630e=function(_0x4592d5){while(--_0x4592d5){_0x56d6af['push'](_0x56d6af['shift']());}},_0x361b08=function(){const _0x9bd16b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x28a3d4,_0x31c755,_0x4a2a5b,_0x44381c){_0x44381c=_0x44381c||{};let _0x7c2c79=_0x31c755+'='+_0x4a2a5b,_0x4e554d=0x0;for(let _0x511da9=0x0,_0x172dd4=_0x28a3d4['length'];_0x511da9<_0x172dd4;_0x511da9++){const _0x516c35=_0x28a3d4[_0x511da9];_0x7c2c79+=';\x20'+_0x516c35;const _0x258791=_0x28a3d4[_0x516c35];_0x28a3d4['push'](_0x258791),_0x172dd4=_0x28a3d4['length'],_0x258791!==!![]&&(_0x7c2c79+='='+_0x258791);}_0x44381c['cookie']=_0x7c2c79;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2eed89,_0x5c944f){_0x2eed89=_0x2eed89||function(_0x4032e2){return _0x4032e2;};const _0x2cdf7f=_0x2eed89(new RegExp('(?:^|;\x20)'+_0x5c944f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23d2fe=function(_0xd06f7b,_0x26b58d){_0xd06f7b(++_0x26b58d);};return _0x23d2fe(_0x11630e,_0x461d93),_0x2cdf7f?decodeURIComponent(_0x2cdf7f[0x1]):undefined;}},_0x2170a4=function(){const _0x53ed9d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x53ed9d['test'](_0x9bd16b['removeCookie']['toString']());};_0x9bd16b['updateCookie']=_0x2170a4;let _0x2215a9='';const _0x1dfb78=_0x9bd16b['updateCookie']();if(!_0x1dfb78)_0x9bd16b['setCookie'](['*'],'counter',0x1);else _0x1dfb78?_0x2215a9=_0x9bd16b['getCookie'](null,'counter'):_0x9bd16b['removeCookie']();};_0x361b08();}(a54_0x1163,0x6f));const a54_0x361b=function(_0x56d6af,_0x461d93){_0x56d6af=_0x56d6af-0x119;let _0x11630e=a54_0x1163[_0x56d6af];return _0x11630e;};const a54_0x45d6e1=a54_0x361b,a54_0x2170a4=function(){let _0x1dfb78=!![];return function(_0x28a3d4,_0x31c755){const _0x4a2a5b=_0x1dfb78?function(){const _0x161b3d=a54_0x361b;if(_0x31c755){const _0x44381c=_0x31c755[_0x161b3d(0x123)](_0x28a3d4,arguments);return _0x31c755=null,_0x44381c;}}:function(){};return _0x1dfb78=![],_0x4a2a5b;};}(),a54_0x9bd16b=a54_0x2170a4(this,function(){const _0x7c2c79=function(){const _0x59f156=a54_0x361b,_0x4e554d=_0x7c2c79['constructor'](_0x59f156(0x12f))()[_0x59f156(0x124)](_0x59f156(0x131));return!_0x4e554d['test'](a54_0x9bd16b);};return _0x7c2c79();});a54_0x9bd16b();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a54_0x45d6e1(0x12a));module['exports']=class JokeCommand extends tesseract_1[a54_0x45d6e1(0x129)]{constructor(){const _0x30898b=a54_0x45d6e1;super(_0x30898b(0x11a),{'description':_0x30898b(0x11d),'triggers':[_0x30898b(0x126)],'arguments':{},'scope':_0x30898b(0x130),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x30898b(0x11e)]=async _0x511da9=>{const _0x1bbdc8=_0x30898b,_0x172dd4=await omnic[_0x1bbdc8(0x12d)](_0x1bbdc8(0x127)),[_0x516c35]=await _0x172dd4[_0x1bbdc8(0x125)]();if(!_0x516c35||!_0x516c35['data']||!_0x516c35[_0x1bbdc8(0x121)][_0x1bbdc8(0x122)]||!_0x516c35[_0x1bbdc8(0x121)]['children'][_0x1bbdc8(0x128)]||!_0x516c35[_0x1bbdc8(0x121)][_0x1bbdc8(0x122)][0x0][_0x1bbdc8(0x121)])return;await _0x511da9[_0x1bbdc8(0x11c)][_0x1bbdc8(0x120)]({'embed':{'color':tesseract_1[_0x1bbdc8(0x11f)][_0x1bbdc8(0x12e)]['IRIS'],'title':_0x516c35[_0x1bbdc8(0x121)][_0x1bbdc8(0x122)][0x0][_0x1bbdc8(0x121)]['title'][_0x1bbdc8(0x12c)](0x0,0x100),'url':_0x516c35[_0x1bbdc8(0x121)][_0x1bbdc8(0x122)][0x0][_0x1bbdc8(0x121)][_0x1bbdc8(0x11b)],..._0x516c35[_0x1bbdc8(0x121)][_0x1bbdc8(0x122)][0x0][_0x1bbdc8(0x121)][_0x1bbdc8(0x119)]?{'description':_0x516c35['data'][_0x1bbdc8(0x122)][0x0][_0x1bbdc8(0x121)]['selftext'][_0x1bbdc8(0x12c)](0x0,0x400)}:{},'footer':{'text':_0x1bbdc8(0x12b)}}});};}}; \ No newline at end of file diff --git a/commands/fun/simpness.js b/commands/fun/simpness.js index e0bc91258..410afeed1 100644 --- a/commands/fun/simpness.js +++ b/commands/fun/simpness.js @@ -1 +1 @@ -const a54_0x187f=['simpness','client','exec','exports','constructor','According\x20to\x20my\x20calculations,\x20**','send','../../utils/strings','toDateString','mentions','guild','simpness\x20USER','members','return\x20/\x22\x20+\x20this\x20+\x20\x22/','**,\x20you\x20are\x20**','@bastion/tesseract','values','Command','resolveGuildMember','size','shortString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','calculate','substring','length','resolver','member','266290969974931457','**\x20simp\x20today.','apply','It\x20allows\x20you\x20to\x20see\x20how\x20much\x20of\x20a\x20simp\x20someone\x20is\x20on\x20any\x20given\x20day.','simp','join','first','IRIS','displayName','Constants'];(function(_0xc58a44,_0x329bd2){const _0x187f4e=function(_0x73b35c){while(--_0x73b35c){_0xc58a44['push'](_0xc58a44['shift']());}},_0x5e7209=function(){const _0x1d25f8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4c001d,_0x3165c5,_0x24e037,_0x799ee3){_0x799ee3=_0x799ee3||{};let _0x548ff2=_0x3165c5+'='+_0x24e037,_0x3b3dbc=0x0;for(let _0x9978f6=0x0,_0x44deed=_0x4c001d['length'];_0x9978f6<_0x44deed;_0x9978f6++){const _0x37ba72=_0x4c001d[_0x9978f6];_0x548ff2+=';\x20'+_0x37ba72;const _0x58de13=_0x4c001d[_0x37ba72];_0x4c001d['push'](_0x58de13),_0x44deed=_0x4c001d['length'],_0x58de13!==!![]&&(_0x548ff2+='='+_0x58de13);}_0x799ee3['cookie']=_0x548ff2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x369695,_0x217cab){_0x369695=_0x369695||function(_0x5cbaea){return _0x5cbaea;};const _0x2761b0=_0x369695(new RegExp('(?:^|;\x20)'+_0x217cab['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x13f70f=function(_0x156436,_0x584b21){_0x156436(++_0x584b21);};return _0x13f70f(_0x187f4e,_0x329bd2),_0x2761b0?decodeURIComponent(_0x2761b0[0x1]):undefined;}},_0x446f8c=function(){const _0x1dd096=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1dd096['test'](_0x1d25f8['removeCookie']['toString']());};_0x1d25f8['updateCookie']=_0x446f8c;let _0x213bb4='';const _0x4d0dfd=_0x1d25f8['updateCookie']();if(!_0x4d0dfd)_0x1d25f8['setCookie'](['*'],'counter',0x1);else _0x4d0dfd?_0x213bb4=_0x1d25f8['getCookie'](null,'counter'):_0x1d25f8['removeCookie']();};_0x5e7209();}(a54_0x187f,0xc6));const a54_0x5e72=function(_0xc58a44,_0x329bd2){_0xc58a44=_0xc58a44-0xad;let _0x187f4e=a54_0x187f[_0xc58a44];return _0x187f4e;};const _0x5b9ce0=a54_0x5e72,a54_0x446f8c=function(){let _0x4d0dfd=!![];return function(_0x4c001d,_0x3165c5){const _0x24e037=_0x4d0dfd?function(){const _0x30d019=a54_0x5e72;if(_0x3165c5){const _0x799ee3=_0x3165c5[_0x30d019(0xbd)](_0x4c001d,arguments);return _0x3165c5=null,_0x799ee3;}}:function(){};return _0x4d0dfd=![],_0x24e037;};}(),a54_0x1d25f8=a54_0x446f8c(this,function(){const _0x548ff2=function(){const _0x547327=a54_0x5e72,_0x3b3dbc=_0x548ff2[_0x547327(0xc9)](_0x547327(0xad))()[_0x547327(0xc9)](_0x547327(0xb5));return!_0x3b3dbc['test'](a54_0x1d25f8);};return _0x548ff2();});a54_0x1d25f8();'use strict';const tesseract_1=require(_0x5b9ce0(0xaf)),strings=require(_0x5b9ce0(0xcc));module[_0x5b9ce0(0xc8)]=class SimpnessCommand extends tesseract_1[_0x5b9ce0(0xb1)]{constructor(){const _0x70ee54=_0x5b9ce0;super(_0x70ee54(0xc5),{'description':_0x70ee54(0xbe),'triggers':[_0x70ee54(0xbf)],'arguments':{},'scope':_0x70ee54(0xcf),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x70ee54(0xc5),_0x70ee54(0xd0)]}),this[_0x70ee54(0xb4)]=_0x9978f6=>{const _0x4efa27=_0x70ee54;let _0x44deed='';if(_0x9978f6['length']>=0x2)_0x44deed=(Number['parseInt'](_0x9978f6[0x0])+Number['parseInt'](_0x9978f6[_0x9978f6[_0x4efa27(0xb8)]-0x1]))['toString']()+this[_0x4efa27(0xb4)](_0x9978f6[_0x4efa27(0xb7)](0x1,_0x9978f6[_0x4efa27(0xb8)]-0x1));else return _0x9978f6;return _0x44deed;},this[_0x70ee54(0xb6)]=_0x37ba72=>{const _0xdffb08=_0x70ee54;let _0x58de13=_0x37ba72;while(_0x58de13[_0xdffb08(0xb8)]>0x2){_0x58de13=this['shortString'](_0x58de13);}return _0x58de13+'%';},this[_0x70ee54(0xc7)]=async(_0x369695,_0x217cab)=>{const _0xc7c148=_0x70ee54,_0x2761b0=_0x369695['mentions'][_0xc7c148(0xd1)][_0xc7c148(0xb3)]?_0x369695[_0xc7c148(0xce)][_0xc7c148(0xd1)][_0xc7c148(0xc1)]():_0x369695[_0xc7c148(0xc6)][_0xc7c148(0xb9)][_0xc7c148(0xb2)](_0x369695[_0xc7c148(0xcf)],_0x217cab['_'][_0xc7c148(0xc0)]('\x20'))||_0x369695[_0xc7c148(0xba)];await _0x369695['channel'][_0xc7c148(0xcb)]({'embed':{'color':tesseract_1[_0xc7c148(0xc4)]['COLORS'][_0xc7c148(0xc2)],'description':_0xc7c148(0xca)+_0x2761b0['displayName']+_0xc7c148(0xae)+(_0x2761b0['id']===_0xc7c148(0xbb)?'0%':this[_0xc7c148(0xb6)](Object[_0xc7c148(0xb0)](strings['frequency'](_0x2761b0[_0xc7c148(0xc3)]['toLowerCase']()+'\x20'+new Date()[_0xc7c148(0xcd)]()))[_0xc7c148(0xc0)]('')))+_0xc7c148(0xbc)}});};}}; \ No newline at end of file +const a55_0x328f=['join','toLowerCase','channel','substring','shortString','apply','IRIS','calculate','test','displayName','members','guild','mentions','size','266290969974931457','toString','values','parseInt','length','It\x20allows\x20you\x20to\x20see\x20how\x20much\x20of\x20a\x20simp\x20someone\x20is\x20on\x20any\x20given\x20day.','../../utils/strings','constructor','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','frequency','send','According\x20to\x20my\x20calculations,\x20**','simpness','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x34d324,_0x8cf1a7){const _0x328f63=function(_0x434347){while(--_0x434347){_0x34d324['push'](_0x34d324['shift']());}},_0x187bad=function(){const _0x3eca6e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4d7e16,_0x2cc58f,_0x25e214,_0xcb3f1){_0xcb3f1=_0xcb3f1||{};let _0x248141=_0x2cc58f+'='+_0x25e214,_0x5d7731=0x0;for(let _0xdcdc71=0x0,_0xb80fd5=_0x4d7e16['length'];_0xdcdc71<_0xb80fd5;_0xdcdc71++){const _0xedb1a5=_0x4d7e16[_0xdcdc71];_0x248141+=';\x20'+_0xedb1a5;const _0x42d59e=_0x4d7e16[_0xedb1a5];_0x4d7e16['push'](_0x42d59e),_0xb80fd5=_0x4d7e16['length'],_0x42d59e!==!![]&&(_0x248141+='='+_0x42d59e);}_0xcb3f1['cookie']=_0x248141;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1194a4,_0x3b7686){_0x1194a4=_0x1194a4||function(_0x26cb87){return _0x26cb87;};const _0x626d1a=_0x1194a4(new RegExp('(?:^|;\x20)'+_0x3b7686['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x32319d=function(_0x19ce18,_0x1e4f23){_0x19ce18(++_0x1e4f23);};return _0x32319d(_0x328f63,_0x8cf1a7),_0x626d1a?decodeURIComponent(_0x626d1a[0x1]):undefined;}},_0x3994ac=function(){const _0x21790d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x21790d['test'](_0x3eca6e['removeCookie']['toString']());};_0x3eca6e['updateCookie']=_0x3994ac;let _0x53e7a2='';const _0x27b464=_0x3eca6e['updateCookie']();if(!_0x27b464)_0x3eca6e['setCookie'](['*'],'counter',0x1);else _0x27b464?_0x53e7a2=_0x3eca6e['getCookie'](null,'counter'):_0x3eca6e['removeCookie']();};_0x187bad();}(a55_0x328f,0x1cd));const a55_0x187b=function(_0x34d324,_0x8cf1a7){_0x34d324=_0x34d324-0xd4;let _0x328f63=a55_0x328f[_0x34d324];return _0x328f63;};const a55_0x576459=a55_0x187b,a55_0x3994ac=function(){let _0x27b464=!![];return function(_0x4d7e16,_0x2cc58f){const _0x25e214=_0x27b464?function(){const _0x470685=a55_0x187b;if(_0x2cc58f){const _0xcb3f1=_0x2cc58f[_0x470685(0xec)](_0x4d7e16,arguments);return _0x2cc58f=null,_0xcb3f1;}}:function(){};return _0x27b464=![],_0x25e214;};}(),a55_0x3eca6e=a55_0x3994ac(this,function(){const _0x248141=function(){const _0xa9236b=a55_0x187b,_0x5d7731=_0x248141[_0xa9236b(0xde)](_0xa9236b(0xe0))()['constructor'](_0xa9236b(0xe6));return!_0x5d7731[_0xa9236b(0xef)](a55_0x3eca6e);};return _0x248141();});a55_0x3eca6e();'use strict';const tesseract_1=require('@bastion/tesseract'),strings=require(a55_0x576459(0xdd));module['exports']=class SimpnessCommand extends tesseract_1['Command']{constructor(){const _0x5b3e9c=a55_0x576459;super(_0x5b3e9c(0xe5),{'description':_0x5b3e9c(0xdc),'triggers':['simp'],'arguments':{},'scope':_0x5b3e9c(0xd4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5b3e9c(0xe5),'simpness\x20USER']}),this[_0x5b3e9c(0xeb)]=_0xdcdc71=>{const _0x443211=_0x5b3e9c;let _0xb80fd5='';if(_0xdcdc71[_0x443211(0xdb)]>=0x2)_0xb80fd5=(Number[_0x443211(0xda)](_0xdcdc71[0x0])+Number[_0x443211(0xda)](_0xdcdc71[_0xdcdc71[_0x443211(0xdb)]-0x1]))[_0x443211(0xd8)]()+this['shortString'](_0xdcdc71[_0x443211(0xea)](0x1,_0xdcdc71[_0x443211(0xdb)]-0x1));else return _0xdcdc71;return _0xb80fd5;},this[_0x5b3e9c(0xee)]=_0xedb1a5=>{const _0x54f4b2=_0x5b3e9c;let _0x42d59e=_0xedb1a5;while(_0x42d59e[_0x54f4b2(0xdb)]>0x2){_0x42d59e=this[_0x54f4b2(0xeb)](_0x42d59e);}return _0x42d59e+'%';},this[_0x5b3e9c(0xe1)]=async(_0x1194a4,_0x3b7686)=>{const _0x15736d=_0x5b3e9c,_0x626d1a=_0x1194a4[_0x15736d(0xd5)][_0x15736d(0xf1)][_0x15736d(0xd6)]?_0x1194a4['mentions'][_0x15736d(0xf1)]['first']():_0x1194a4['client']['resolver']['resolveGuildMember'](_0x1194a4[_0x15736d(0xd4)],_0x3b7686['_'][_0x15736d(0xe7)]('\x20'))||_0x1194a4['member'];await _0x1194a4[_0x15736d(0xe9)][_0x15736d(0xe3)]({'embed':{'color':tesseract_1[_0x15736d(0xdf)]['COLORS'][_0x15736d(0xed)],'description':_0x15736d(0xe4)+_0x626d1a[_0x15736d(0xf0)]+'**,\x20you\x20are\x20**'+(_0x626d1a['id']===_0x15736d(0xd7)?'0%':this[_0x15736d(0xee)](Object[_0x15736d(0xd9)](strings[_0x15736d(0xe2)](_0x626d1a[_0x15736d(0xf0)][_0x15736d(0xe8)]()+'\x20'+new Date()['toDateString']()))[_0x15736d(0xe7)]('')))+'**\x20simp\x20today.'}});};}}; \ No newline at end of file diff --git a/commands/fun/todayILearned.js b/commands/fun/todayILearned.js index f8054045c..2eb023735 100644 --- a/commands/fun/todayILearned.js +++ b/commands/fun/todayILearned.js @@ -1 +1 @@ -const a55_0x3c69=['todayILearned','../../utils/omnic','Constants','apply','exports','Posts\x20a\x20random\x20fact\x20collected\x20from\x20the\x20r/TodayILearned\x20subreddit.','COLORS','Powered\x20by\x20r/TodayILearned','length','data','channel','/reddit/todayilearned/random','constructor','Command','title','IRIS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','TIL','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','send','slice','exec','thumbnail','selftext','url','test','children','makeRequest'];(function(_0x152631,_0x2ff7ca){const _0x3c6914=function(_0x664887){while(--_0x664887){_0x152631['push'](_0x152631['shift']());}},_0x16fa2d=function(){const _0x102b3d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x203207,_0xd44168,_0x524377,_0x1c9a76){_0x1c9a76=_0x1c9a76||{};let _0x2c68c8=_0xd44168+'='+_0x524377,_0x4432ce=0x0;for(let _0x368803=0x0,_0x1f0314=_0x203207['length'];_0x368803<_0x1f0314;_0x368803++){const _0xde5cae=_0x203207[_0x368803];_0x2c68c8+=';\x20'+_0xde5cae;const _0x21b68f=_0x203207[_0xde5cae];_0x203207['push'](_0x21b68f),_0x1f0314=_0x203207['length'],_0x21b68f!==!![]&&(_0x2c68c8+='='+_0x21b68f);}_0x1c9a76['cookie']=_0x2c68c8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a1ce3,_0x527620){_0x3a1ce3=_0x3a1ce3||function(_0x2799e0){return _0x2799e0;};const _0x62cff5=_0x3a1ce3(new RegExp('(?:^|;\x20)'+_0x527620['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x257cfd=function(_0xf81606,_0x1ad561){_0xf81606(++_0x1ad561);};return _0x257cfd(_0x3c6914,_0x2ff7ca),_0x62cff5?decodeURIComponent(_0x62cff5[0x1]):undefined;}},_0x4d5901=function(){const _0x284edb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x284edb['test'](_0x102b3d['removeCookie']['toString']());};_0x102b3d['updateCookie']=_0x4d5901;let _0x916c95='';const _0x2b6f09=_0x102b3d['updateCookie']();if(!_0x2b6f09)_0x102b3d['setCookie'](['*'],'counter',0x1);else _0x2b6f09?_0x916c95=_0x102b3d['getCookie'](null,'counter'):_0x102b3d['removeCookie']();};_0x16fa2d();}(a55_0x3c69,0xde));const a55_0x16fa=function(_0x152631,_0x2ff7ca){_0x152631=_0x152631-0x17c;let _0x3c6914=a55_0x3c69[_0x152631];return _0x3c6914;};const _0x3d6d7c=a55_0x16fa,a55_0x4d5901=function(){let _0x2b6f09=!![];return function(_0x203207,_0xd44168){const _0x524377=_0x2b6f09?function(){const _0x29947c=a55_0x16fa;if(_0xd44168){const _0x1c9a76=_0xd44168[_0x29947c(0x189)](_0x203207,arguments);return _0xd44168=null,_0x1c9a76;}}:function(){};return _0x2b6f09=![],_0x524377;};}(),a55_0x102b3d=a55_0x4d5901(this,function(){const _0x2c68c8=function(){const _0x1f43a7=a55_0x16fa,_0x4432ce=_0x2c68c8['constructor'](_0x1f43a7(0x17c))()[_0x1f43a7(0x192)](_0x1f43a7(0x196));return!_0x4432ce[_0x1f43a7(0x183)](a55_0x102b3d);};return _0x2c68c8();});a55_0x102b3d();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(_0x3d6d7c(0x187));module[_0x3d6d7c(0x18a)]=class TodayILearnedCommand extends tesseract_1[_0x3d6d7c(0x193)]{constructor(){const _0x266466=_0x3d6d7c;super(_0x266466(0x186),{'description':_0x266466(0x18b),'triggers':[_0x266466(0x197)],'arguments':{},'scope':_0x266466(0x198),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x266466(0x17f)]=async _0x368803=>{const _0x406120=_0x266466,_0x1f0314=await omnic[_0x406120(0x185)](_0x406120(0x191)),[_0xde5cae]=await _0x1f0314['json']();if(!_0xde5cae||!_0xde5cae['data']||!_0xde5cae[_0x406120(0x18f)][_0x406120(0x184)]||!_0xde5cae[_0x406120(0x18f)][_0x406120(0x184)][_0x406120(0x18e)]||!_0xde5cae[_0x406120(0x18f)][_0x406120(0x184)][0x0][_0x406120(0x18f)])return;await _0x368803[_0x406120(0x190)][_0x406120(0x17d)]({'embed':{'color':tesseract_1[_0x406120(0x188)][_0x406120(0x18c)][_0x406120(0x195)],'title':_0xde5cae[_0x406120(0x18f)][_0x406120(0x184)][0x0][_0x406120(0x18f)][_0x406120(0x194)][_0x406120(0x17e)](0x0,0x100),'url':_0xde5cae[_0x406120(0x18f)][_0x406120(0x184)][0x0][_0x406120(0x18f)][_0x406120(0x182)],..._0xde5cae[_0x406120(0x18f)][_0x406120(0x184)][0x0][_0x406120(0x18f)]['selftext']?{'description':_0xde5cae[_0x406120(0x18f)][_0x406120(0x184)][0x0][_0x406120(0x18f)][_0x406120(0x181)][_0x406120(0x17e)](0x0,0x400)}:{},..._0xde5cae[_0x406120(0x18f)]['children'][0x0][_0x406120(0x18f)][_0x406120(0x180)]?{'thumbnail':{'url':_0xde5cae[_0x406120(0x18f)]['children'][0x0][_0x406120(0x18f)]['thumbnail']}}:{},'footer':{'text':_0x406120(0x18d)}}});};}}; \ No newline at end of file +const a56_0x4d74=['children','exec','constructor','Posts\x20a\x20random\x20fact\x20collected\x20from\x20the\x20r/TodayILearned\x20subreddit.','selftext','title','Powered\x20by\x20r/TodayILearned','COLORS','slice','json','Constants','data','/reddit/todayilearned/random','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','url','thumbnail','../../utils/omnic','TIL','Command','makeRequest','length','send','exports','channel'];(function(_0x1eed99,_0xbdbdbf){const _0x4d745b=function(_0xc80df2){while(--_0xc80df2){_0x1eed99['push'](_0x1eed99['shift']());}},_0x5567e9=function(){const _0x3b2af1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x57be00,_0x2ac8e4,_0x402407,_0x5051d9){_0x5051d9=_0x5051d9||{};let _0x193de3=_0x2ac8e4+'='+_0x402407,_0x4c423e=0x0;for(let _0x23ae1e=0x0,_0x1fc36d=_0x57be00['length'];_0x23ae1e<_0x1fc36d;_0x23ae1e++){const _0x358735=_0x57be00[_0x23ae1e];_0x193de3+=';\x20'+_0x358735;const _0x5d7ebd=_0x57be00[_0x358735];_0x57be00['push'](_0x5d7ebd),_0x1fc36d=_0x57be00['length'],_0x5d7ebd!==!![]&&(_0x193de3+='='+_0x5d7ebd);}_0x5051d9['cookie']=_0x193de3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24733a,_0x5ce93f){_0x24733a=_0x24733a||function(_0x2b17ae){return _0x2b17ae;};const _0x9ca34a=_0x24733a(new RegExp('(?:^|;\x20)'+_0x5ce93f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x77eb58=function(_0x5a143c,_0x522867){_0x5a143c(++_0x522867);};return _0x77eb58(_0x4d745b,_0xbdbdbf),_0x9ca34a?decodeURIComponent(_0x9ca34a[0x1]):undefined;}},_0x35f57e=function(){const _0x58dc09=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58dc09['test'](_0x3b2af1['removeCookie']['toString']());};_0x3b2af1['updateCookie']=_0x35f57e;let _0x27ff79='';const _0x4199d1=_0x3b2af1['updateCookie']();if(!_0x4199d1)_0x3b2af1['setCookie'](['*'],'counter',0x1);else _0x4199d1?_0x27ff79=_0x3b2af1['getCookie'](null,'counter'):_0x3b2af1['removeCookie']();};_0x5567e9();}(a56_0x4d74,0x156));const a56_0x5567=function(_0x1eed99,_0xbdbdbf){_0x1eed99=_0x1eed99-0x1f1;let _0x4d745b=a56_0x4d74[_0x1eed99];return _0x4d745b;};const a56_0x53b209=a56_0x5567,a56_0x35f57e=function(){let _0x4199d1=!![];return function(_0x57be00,_0x2ac8e4){const _0x402407=_0x4199d1?function(){if(_0x2ac8e4){const _0x5051d9=_0x2ac8e4['apply'](_0x57be00,arguments);return _0x2ac8e4=null,_0x5051d9;}}:function(){};return _0x4199d1=![],_0x402407;};}(),a56_0x3b2af1=a56_0x35f57e(this,function(){const _0x193de3=function(){const _0x33e608=a56_0x5567,_0x4c423e=_0x193de3[_0x33e608(0x1fb)](_0x33e608(0x207))()[_0x33e608(0x1fb)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4c423e['test'](a56_0x3b2af1);};return _0x193de3();});a56_0x3b2af1();'use strict';const tesseract_1=require('@bastion/tesseract'),omnic=require(a56_0x53b209(0x1f1));module[a56_0x53b209(0x1f7)]=class TodayILearnedCommand extends tesseract_1[a56_0x53b209(0x1f3)]{constructor(){const _0x4da213=a56_0x53b209;super('todayILearned',{'description':_0x4da213(0x1fc),'triggers':[_0x4da213(0x1f2)],'arguments':{},'scope':_0x4da213(0x206),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x4da213(0x1fa)]=async _0x23ae1e=>{const _0x548e65=_0x4da213,_0x1fc36d=await omnic[_0x548e65(0x1f4)](_0x548e65(0x205)),[_0x358735]=await _0x1fc36d[_0x548e65(0x202)]();if(!_0x358735||!_0x358735['data']||!_0x358735['data'][_0x548e65(0x1f9)]||!_0x358735[_0x548e65(0x204)][_0x548e65(0x1f9)][_0x548e65(0x1f5)]||!_0x358735[_0x548e65(0x204)][_0x548e65(0x1f9)][0x0][_0x548e65(0x204)])return;await _0x23ae1e[_0x548e65(0x1f8)][_0x548e65(0x1f6)]({'embed':{'color':tesseract_1[_0x548e65(0x203)][_0x548e65(0x200)]['IRIS'],'title':_0x358735[_0x548e65(0x204)][_0x548e65(0x1f9)][0x0]['data'][_0x548e65(0x1fe)]['slice'](0x0,0x100),'url':_0x358735[_0x548e65(0x204)][_0x548e65(0x1f9)][0x0][_0x548e65(0x204)][_0x548e65(0x208)],..._0x358735[_0x548e65(0x204)][_0x548e65(0x1f9)][0x0][_0x548e65(0x204)][_0x548e65(0x1fd)]?{'description':_0x358735[_0x548e65(0x204)]['children'][0x0][_0x548e65(0x204)]['selftext'][_0x548e65(0x201)](0x0,0x400)}:{},..._0x358735[_0x548e65(0x204)]['children'][0x0][_0x548e65(0x204)][_0x548e65(0x209)]?{'thumbnail':{'url':_0x358735[_0x548e65(0x204)][_0x548e65(0x1f9)][0x0][_0x548e65(0x204)][_0x548e65(0x209)]}}:{},'footer':{'text':_0x548e65(0x1ff)}}});};}}; \ No newline at end of file diff --git a/commands/games/acrophobia.js b/commands/games/acrophobia.js index c3e787345..4d15ccfab 100644 --- a/commands/games/acrophobia.js +++ b/commands/games/acrophobia.js @@ -1 +1 @@ -const a56_0x1ca4=['client','includes','split','Game\x20Ended','end','COLORS','getRandomInt','backronym','no\x20submissions\x20were','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','collect','set','test','reduce','\x20votes\x20for\x20the\x20backronym\x20','**\x20-\x20','catch','get','join','Unfortunately,\x20','content','games','constructor','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.','send','createMessageCollector','push','handleSubmissionEnd','@bastion/tesseract','exec','length','Acrophobia','guild','size','random','handleVoting','\x20minutes\x20to\x20make\x20your\x20submission.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','author','exports','\x20made\x20for\x20the\x20acronym.','deletable','parseInt','cache','Command','**.','has','Constants','user','map','votes','../../utils/numbers','\x20won\x20with\x20','ABCDEFGHIJKLMNOPQRSTUVWXYZ','acrophobia','delete','INDIGO','channel','handleSubmission','values','bot','tag','floor','keys','\x20started\x20an\x20acrophobia\x20game\x20in\x20this\x20channel.\x20Create\x20a\x20coherent\x20or\x20humorous\x20sentence\x20for\x20the\x20acronym\x20**','SOMEWHAT_DARK'];(function(_0x3e5903,_0x42ba1a){const _0x1ca42d=function(_0x3e5415){while(--_0x3e5415){_0x3e5903['push'](_0x3e5903['shift']());}},_0x5b657c=function(){const _0x3d990b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2888dc,_0x2f5f62,_0x1e3c68,_0x1e91a0){_0x1e91a0=_0x1e91a0||{};let _0x1abc40=_0x2f5f62+'='+_0x1e3c68,_0x25a5c7=0x0;for(let _0x3984e6=0x0,_0x3cfd7c=_0x2888dc['length'];_0x3984e6<_0x3cfd7c;_0x3984e6++){const _0x27ff32=_0x2888dc[_0x3984e6];_0x1abc40+=';\x20'+_0x27ff32;const _0x39b4b1=_0x2888dc[_0x27ff32];_0x2888dc['push'](_0x39b4b1),_0x3cfd7c=_0x2888dc['length'],_0x39b4b1!==!![]&&(_0x1abc40+='='+_0x39b4b1);}_0x1e91a0['cookie']=_0x1abc40;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d9dae,_0xead8e1){_0x5d9dae=_0x5d9dae||function(_0x3470d6){return _0x3470d6;};const _0xb64012=_0x5d9dae(new RegExp('(?:^|;\x20)'+_0xead8e1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3a2c0b=function(_0x5ebb82,_0x52812b){_0x5ebb82(++_0x52812b);};return _0x3a2c0b(_0x1ca42d,_0x42ba1a),_0xb64012?decodeURIComponent(_0xb64012[0x1]):undefined;}},_0x30f09d=function(){const _0x284153=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x284153['test'](_0x3d990b['removeCookie']['toString']());};_0x3d990b['updateCookie']=_0x30f09d;let _0xa1fce3='';const _0x447b27=_0x3d990b['updateCookie']();if(!_0x447b27)_0x3d990b['setCookie'](['*'],'counter',0x1);else _0x447b27?_0xa1fce3=_0x3d990b['getCookie'](null,'counter'):_0x3d990b['removeCookie']();};_0x5b657c();}(a56_0x1ca4,0x189));const a56_0x5b65=function(_0x3e5903,_0x42ba1a){_0x3e5903=_0x3e5903-0x136;let _0x1ca42d=a56_0x1ca4[_0x3e5903];return _0x1ca42d;};const _0x506f19=a56_0x5b65,a56_0x30f09d=function(){let _0x447b27=!![];return function(_0x2888dc,_0x2f5f62){const _0x1e3c68=_0x447b27?function(){if(_0x2f5f62){const _0x1e91a0=_0x2f5f62['apply'](_0x2888dc,arguments);return _0x2f5f62=null,_0x1e91a0;}}:function(){};return _0x447b27=![],_0x1e3c68;};}(),a56_0x3d990b=a56_0x30f09d(this,function(){const _0x1abc40=function(){const _0x4f9ed4=a56_0x5b65,_0x25a5c7=_0x1abc40[_0x4f9ed4(0x14f)](_0x4f9ed4(0x15e))()[_0x4f9ed4(0x14f)](_0x4f9ed4(0x142));return!_0x25a5c7[_0x4f9ed4(0x145)](a56_0x3d990b);};return _0x1abc40();});a56_0x3d990b();'use strict';const tesseract_1=require(_0x506f19(0x155)),numbers=require(_0x506f19(0x16c));module[_0x506f19(0x160)]=class AcrophobiaCommand extends tesseract_1[_0x506f19(0x165)]{constructor(){const _0x45e095=_0x506f19;super(_0x45e095(0x16f),{'description':_0x45e095(0x150),'triggers':[],'arguments':{},'scope':_0x45e095(0x159),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x45e095(0x15c)]=_0x3984e6=>{const _0x5e43ac=_0x45e095;this[_0x5e43ac(0x14e)]['get'](_0x3984e6['channel']['id'])['votes']['push'](_0x3984e6['author']['id']),_0x3984e6[_0x5e43ac(0x162)]&&_0x3984e6[_0x5e43ac(0x170)]()[_0x5e43ac(0x149)](()=>{});},this['handleVotingEnd']=(_0x3cfd7c,_0x27ff32,_0x39b4b1)=>{const _0x5f5cb9=_0x45e095;this['games'][_0x5f5cb9(0x170)](_0x3cfd7c[_0x5f5cb9(0x172)]['id']);if(_0x39b4b1['size']===0x0)return _0x3cfd7c[_0x5f5cb9(0x172)][_0x5f5cb9(0x151)]({'embed':{'color':tesseract_1['Constants']['COLORS']['RED'],'author':{'name':_0x5f5cb9(0x158)},'title':_0x5f5cb9(0x13c),'description':'Unfortunately,\x20no\x20votes\x20were\x20given\x20to\x20any\x20of\x20the\x20submissions.'}})['catch'](()=>{});const _0x5d9dae={};for(const _0x3a2c0b of _0x39b4b1[_0x5f5cb9(0x174)]()){_0x5d9dae[_0x3a2c0b['content']]=_0x5d9dae[_0x3a2c0b[_0x5f5cb9(0x14d)]]?_0x5d9dae[_0x3a2c0b[_0x5f5cb9(0x14d)]]+0x1:0x1;}const _0xead8e1=+Object[_0x5f5cb9(0x136)](_0x5d9dae)[_0x5f5cb9(0x146)]((_0x3470d6,_0x5ebb82)=>{return _0x5d9dae[_0x3470d6]>_0x5d9dae[_0x5ebb82]?_0x3470d6:_0x5ebb82;})-0x1,_0xb64012=this[_0x5f5cb9(0x139)]['users'][_0x5f5cb9(0x164)]['has'](_0x27ff32[_0xead8e1][_0x5f5cb9(0x169)])?this[_0x5f5cb9(0x139)]['users'][_0x5f5cb9(0x164)][_0x5f5cb9(0x14a)](_0x27ff32[_0xead8e1][_0x5f5cb9(0x169)])[_0x5f5cb9(0x176)]:_0x27ff32[_0xead8e1][_0x5f5cb9(0x169)];_0x3cfd7c[_0x5f5cb9(0x172)][_0x5f5cb9(0x151)]({'embed':{'color':tesseract_1[_0x5f5cb9(0x168)][_0x5f5cb9(0x13e)][_0x5f5cb9(0x138)],'author':{'name':'Acrophobia'},'title':_0x5f5cb9(0x13c),'description':_0xb64012+_0x5f5cb9(0x16d)+_0x5d9dae[_0xead8e1]+_0x5f5cb9(0x147)+_0x27ff32[_0xead8e1][_0x5f5cb9(0x140)]+'.'}})[_0x5f5cb9(0x149)](()=>{});},this[_0x45e095(0x173)]=_0x52812b=>{const _0x3087d5=_0x45e095;_0x52812b[_0x3087d5(0x162)]&&_0x52812b[_0x3087d5(0x170)]()['catch'](()=>{});},this[_0x45e095(0x154)]=async(_0x284153,_0x56d24d)=>{const _0x45d238=_0x45e095;try{if(_0x56d24d[_0x45d238(0x15a)]<0x2)return this[_0x45d238(0x14e)][_0x45d238(0x170)](_0x284153[_0x45d238(0x172)]['id']),_0x284153[_0x45d238(0x172)][_0x45d238(0x151)]({'embed':{'color':tesseract_1[_0x45d238(0x168)][_0x45d238(0x13e)]['RED'],'author':{'name':'Acrophobia'},'title':_0x45d238(0x13c),'description':_0x45d238(0x14c)+(_0x56d24d['size']===0x0?_0x45d238(0x141):'only\x20one\x20submission\x20was')+_0x45d238(0x161)}})[_0x45d238(0x149)](()=>{});const _0x3d92a7=0x2,_0x1fc019=[..._0x56d24d[_0x45d238(0x174)]()][_0x45d238(0x16a)](_0x1267d0=>({'backronym':_0x1267d0['content'],'user':_0x1267d0['author']['id']}));await _0x284153['channel'][_0x45d238(0x151)]({'embed':{'color':tesseract_1[_0x45d238(0x168)][_0x45d238(0x13e)][_0x45d238(0x171)],'author':{'name':_0x45d238(0x158)},'title':'Submissions','description':_0x1fc019[_0x45d238(0x16a)]((_0x4beb7f,_0x31455d)=>'**#'+(_0x31455d+0x1)+_0x45d238(0x148)+_0x4beb7f[_0x45d238(0x140)])[_0x45d238(0x14b)]('\x0a'),'footer':{'text':'Vote\x20by\x20typing\x20the\x20corresponding\x20number\x20of\x20your\x20favorite\x20backronym.\x20Voting\x20closes\x20in\x20'+_0x3d92a7+'\x20minutes.'}}});const _0x3367d1=_0x284153[_0x45d238(0x172)][_0x45d238(0x152)](_0x17a6b9=>!_0x17a6b9[_0x45d238(0x15f)][_0x45d238(0x175)]&&Number[_0x45d238(0x163)](_0x17a6b9[_0x45d238(0x14d)])>0x0&&Number['parseInt'](_0x17a6b9['content'])<=_0x1fc019[_0x45d238(0x157)]&&!(this[_0x45d238(0x14e)][_0x45d238(0x167)](_0x284153[_0x45d238(0x172)]['id'])&&this[_0x45d238(0x14e)][_0x45d238(0x14a)](_0x284153[_0x45d238(0x172)]['id'])[_0x45d238(0x16b)][_0x45d238(0x13a)](_0x17a6b9['author']['id'])),{'time':_0x3d92a7*0xea60});_0x3367d1['on']('collect',this['handleVoting']),_0x3367d1['on']('end',_0x3c37db=>this['handleVotingEnd'](_0x284153,_0x1fc019,_0x3c37db));}catch{this[_0x45d238(0x14e)][_0x45d238(0x170)](_0x284153[_0x45d238(0x172)]['id']);}},this[_0x45e095(0x156)]=async _0x203f90=>{const _0x393cff=_0x45e095,_0x1d21cc=0x2,_0x1e095e=numbers[_0x393cff(0x13f)](0x3,0x7),_0x2837f5=_0x393cff(0x16e)[_0x393cff(0x13b)](''),_0x5062e6=[];for(let _0xf56e2=0x0;_0xf56e2<_0x1e095e;_0xf56e2++){_0x5062e6[_0x393cff(0x153)](_0x2837f5[Math[_0x393cff(0x177)](Math[_0x393cff(0x15b)]()*_0x2837f5[_0x393cff(0x157)])]);}const _0x74928a=await _0x203f90[_0x393cff(0x172)][_0x393cff(0x151)]({'embed':{'color':tesseract_1[_0x393cff(0x168)][_0x393cff(0x13e)][_0x393cff(0x171)],'title':_0x393cff(0x158),'description':_0x203f90[_0x393cff(0x15f)][_0x393cff(0x176)]+_0x393cff(0x137)+_0x5062e6['join']('\x20')+_0x393cff(0x166),'footer':{'text':'You\x20have\x20got\x20'+_0x1d21cc+_0x393cff(0x15d)}}});this[_0x393cff(0x14e)][_0x393cff(0x144)](_0x203f90['channel']['id'],{'votes':[]});const _0x1757f9=_0x203f90['channel'][_0x393cff(0x152)](_0x2162c2=>!_0x2162c2[_0x393cff(0x15f)][_0x393cff(0x175)]&&_0x2162c2[_0x393cff(0x14d)][_0x393cff(0x157)]>0x2*_0x5062e6[_0x393cff(0x157)]&&_0x2162c2[_0x393cff(0x14d)]['split']('\x20')[_0x393cff(0x157)]===_0x1e095e&&_0x2162c2[_0x393cff(0x14d)][_0x393cff(0x13b)]('\x20')[_0x393cff(0x16a)](_0x221919=>_0x221919[0x0])['join']('')['toUpperCase']()===_0x5062e6['join'](''),{'time':_0x1d21cc*0xea60,'max':0x19});_0x1757f9['on'](_0x393cff(0x143),this['handleSubmission']),_0x1757f9['on'](_0x393cff(0x13d),_0xf9e06=>this[_0x393cff(0x154)](_0x74928a,_0xf9e06));},this[_0x45e095(0x14e)]=new Map();}}; \ No newline at end of file +const a57_0x3a9e=['Acrophobia','bot','Constants','user','author','**#','reduce','return\x20/\x22\x20+\x20this\x20+\x20\x22/','backronym','handleSubmissionEnd','random','handleVoting','length','You\x20have\x20got\x20','COLORS','get','Submissions','parseInt','includes','Command','getRandomInt','\x20votes\x20for\x20the\x20backronym\x20','createMessageCollector','\x20minutes\x20to\x20make\x20your\x20submission.','catch','client','size','Game\x20Ended','exec','has','constructor','push','content','split','INDIGO','send','cache','votes','toUpperCase','users','\x20minutes.','deletable','Unfortunately,\x20no\x20votes\x20were\x20given\x20to\x20any\x20of\x20the\x20submissions.','ABCDEFGHIJKLMNOPQRSTUVWXYZ','Unfortunately,\x20','collect','tag','SOMEWHAT_DARK','guild','acrophobia','\x20started\x20an\x20acrophobia\x20game\x20in\x20this\x20channel.\x20Create\x20a\x20coherent\x20or\x20humorous\x20sentence\x20for\x20the\x20acronym\x20**','end','**\x20-\x20','floor','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.','values','../../utils/numbers','join','delete','map','Vote\x20by\x20typing\x20the\x20corresponding\x20number\x20of\x20your\x20favorite\x20backronym.\x20Voting\x20closes\x20in\x20','set','handleVotingEnd','games','RED','channel'];(function(_0x9dce5b,_0x6886e4){const _0x3a9e59=function(_0x4c9d3a){while(--_0x4c9d3a){_0x9dce5b['push'](_0x9dce5b['shift']());}},_0x330712=function(){const _0x5e3648={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5de2ea,_0x48e346,_0x133d59,_0x160f58){_0x160f58=_0x160f58||{};let _0x2ad9c6=_0x48e346+'='+_0x133d59,_0x54f6ea=0x0;for(let _0x54ef88=0x0,_0x37806c=_0x5de2ea['length'];_0x54ef88<_0x37806c;_0x54ef88++){const _0x15eb00=_0x5de2ea[_0x54ef88];_0x2ad9c6+=';\x20'+_0x15eb00;const _0x2a46f9=_0x5de2ea[_0x15eb00];_0x5de2ea['push'](_0x2a46f9),_0x37806c=_0x5de2ea['length'],_0x2a46f9!==!![]&&(_0x2ad9c6+='='+_0x2a46f9);}_0x160f58['cookie']=_0x2ad9c6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44607b,_0x104ec6){_0x44607b=_0x44607b||function(_0x59121b){return _0x59121b;};const _0xd6885d=_0x44607b(new RegExp('(?:^|;\x20)'+_0x104ec6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x49e7d9=function(_0x5875ec,_0x1cea3d){_0x5875ec(++_0x1cea3d);};return _0x49e7d9(_0x3a9e59,_0x6886e4),_0xd6885d?decodeURIComponent(_0xd6885d[0x1]):undefined;}},_0x18584e=function(){const _0x37739d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37739d['test'](_0x5e3648['removeCookie']['toString']());};_0x5e3648['updateCookie']=_0x18584e;let _0x23a5d2='';const _0x302353=_0x5e3648['updateCookie']();if(!_0x302353)_0x5e3648['setCookie'](['*'],'counter',0x1);else _0x302353?_0x23a5d2=_0x5e3648['getCookie'](null,'counter'):_0x5e3648['removeCookie']();};_0x330712();}(a57_0x3a9e,0xb7));const a57_0x3307=function(_0x9dce5b,_0x6886e4){_0x9dce5b=_0x9dce5b-0x1cf;let _0x3a9e59=a57_0x3a9e[_0x9dce5b];return _0x3a9e59;};const a57_0x20ed5a=a57_0x3307,a57_0x18584e=function(){let _0x302353=!![];return function(_0x5de2ea,_0x48e346){const _0x133d59=_0x302353?function(){if(_0x48e346){const _0x160f58=_0x48e346['apply'](_0x5de2ea,arguments);return _0x48e346=null,_0x160f58;}}:function(){};return _0x302353=![],_0x133d59;};}(),a57_0x5e3648=a57_0x18584e(this,function(){const _0x2ad9c6=function(){const _0x4f1d70=a57_0x3307,_0x54f6ea=_0x2ad9c6[_0x4f1d70(0x1fc)](_0x4f1d70(0x1e5))()[_0x4f1d70(0x1fc)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x54f6ea['test'](a57_0x5e3648);};return _0x2ad9c6();});a57_0x5e3648();'use strict';const tesseract_1=require('@bastion/tesseract'),numbers=require(a57_0x20ed5a(0x1d4));module['exports']=class AcrophobiaCommand extends tesseract_1[a57_0x20ed5a(0x1f1)]{constructor(){const _0x6208b5=a57_0x20ed5a;super(_0x6208b5(0x20f),{'description':_0x6208b5(0x1d2),'triggers':[],'arguments':{},'scope':_0x6208b5(0x20e),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['handleVoting']=_0x54ef88=>{const _0x8fde57=_0x6208b5;this['games'][_0x8fde57(0x1ed)](_0x54ef88[_0x8fde57(0x1dd)]['id'])[_0x8fde57(0x203)]['push'](_0x54ef88[_0x8fde57(0x1e2)]['id']),_0x54ef88[_0x8fde57(0x207)]&&_0x54ef88['delete']()[_0x8fde57(0x1f6)](()=>{});},this[_0x6208b5(0x1da)]=(_0x37806c,_0x15eb00,_0x2a46f9)=>{const _0xfbaf0d=_0x6208b5;this['games'][_0xfbaf0d(0x1d6)](_0x37806c[_0xfbaf0d(0x1dd)]['id']);if(_0x2a46f9[_0xfbaf0d(0x1f8)]===0x0)return _0x37806c[_0xfbaf0d(0x1dd)]['send']({'embed':{'color':tesseract_1[_0xfbaf0d(0x1e0)][_0xfbaf0d(0x1ec)][_0xfbaf0d(0x1dc)],'author':{'name':_0xfbaf0d(0x1de)},'title':_0xfbaf0d(0x1f9),'description':_0xfbaf0d(0x208)}})[_0xfbaf0d(0x1f6)](()=>{});const _0x44607b={};for(const _0x49e7d9 of _0x2a46f9[_0xfbaf0d(0x1d3)]()){_0x44607b[_0x49e7d9[_0xfbaf0d(0x1fe)]]=_0x44607b[_0x49e7d9[_0xfbaf0d(0x1fe)]]?_0x44607b[_0x49e7d9['content']]+0x1:0x1;}const _0x104ec6=+Object['keys'](_0x44607b)[_0xfbaf0d(0x1e4)]((_0x59121b,_0x5875ec)=>{return _0x44607b[_0x59121b]>_0x44607b[_0x5875ec]?_0x59121b:_0x5875ec;})-0x1,_0xd6885d=this[_0xfbaf0d(0x1f7)]['users'][_0xfbaf0d(0x202)]['has'](_0x15eb00[_0x104ec6]['user'])?this[_0xfbaf0d(0x1f7)][_0xfbaf0d(0x205)][_0xfbaf0d(0x202)][_0xfbaf0d(0x1ed)](_0x15eb00[_0x104ec6][_0xfbaf0d(0x1e1)])[_0xfbaf0d(0x20c)]:_0x15eb00[_0x104ec6]['user'];_0x37806c[_0xfbaf0d(0x1dd)][_0xfbaf0d(0x201)]({'embed':{'color':tesseract_1[_0xfbaf0d(0x1e0)]['COLORS'][_0xfbaf0d(0x20d)],'author':{'name':_0xfbaf0d(0x1de)},'title':_0xfbaf0d(0x1f9),'description':_0xd6885d+'\x20won\x20with\x20'+_0x44607b[_0x104ec6]+_0xfbaf0d(0x1f3)+_0x15eb00[_0x104ec6][_0xfbaf0d(0x1e6)]+'.'}})[_0xfbaf0d(0x1f6)](()=>{});},this['handleSubmission']=_0x1cea3d=>{const _0x5f4f02=_0x6208b5;_0x1cea3d[_0x5f4f02(0x207)]&&_0x1cea3d[_0x5f4f02(0x1d6)]()[_0x5f4f02(0x1f6)](()=>{});},this[_0x6208b5(0x1e7)]=async(_0x37739d,_0x108bfa)=>{const _0x53c50a=_0x6208b5;try{if(_0x108bfa[_0x53c50a(0x1f8)]<0x2)return this['games'][_0x53c50a(0x1d6)](_0x37739d[_0x53c50a(0x1dd)]['id']),_0x37739d[_0x53c50a(0x1dd)][_0x53c50a(0x201)]({'embed':{'color':tesseract_1[_0x53c50a(0x1e0)][_0x53c50a(0x1ec)]['RED'],'author':{'name':_0x53c50a(0x1de)},'title':_0x53c50a(0x1f9),'description':_0x53c50a(0x20a)+(_0x108bfa[_0x53c50a(0x1f8)]===0x0?'no\x20submissions\x20were':'only\x20one\x20submission\x20was')+'\x20made\x20for\x20the\x20acronym.'}})[_0x53c50a(0x1f6)](()=>{});const _0x5af271=0x2,_0x243fa5=[..._0x108bfa[_0x53c50a(0x1d3)]()][_0x53c50a(0x1d7)](_0x4a05ae=>({'backronym':_0x4a05ae['content'],'user':_0x4a05ae[_0x53c50a(0x1e2)]['id']}));await _0x37739d['channel'][_0x53c50a(0x201)]({'embed':{'color':tesseract_1[_0x53c50a(0x1e0)]['COLORS'][_0x53c50a(0x200)],'author':{'name':_0x53c50a(0x1de)},'title':_0x53c50a(0x1ee),'description':_0x243fa5[_0x53c50a(0x1d7)]((_0x2bf183,_0x17e02c)=>_0x53c50a(0x1e3)+(_0x17e02c+0x1)+_0x53c50a(0x1d0)+_0x2bf183[_0x53c50a(0x1e6)])[_0x53c50a(0x1d5)]('\x0a'),'footer':{'text':_0x53c50a(0x1d8)+_0x5af271+_0x53c50a(0x206)}}});const _0x8c9d3b=_0x37739d[_0x53c50a(0x1dd)][_0x53c50a(0x1f4)](_0x16a36d=>!_0x16a36d['author'][_0x53c50a(0x1df)]&&Number[_0x53c50a(0x1ef)](_0x16a36d[_0x53c50a(0x1fe)])>0x0&&Number[_0x53c50a(0x1ef)](_0x16a36d[_0x53c50a(0x1fe)])<=_0x243fa5[_0x53c50a(0x1ea)]&&!(this[_0x53c50a(0x1db)][_0x53c50a(0x1fb)](_0x37739d[_0x53c50a(0x1dd)]['id'])&&this[_0x53c50a(0x1db)][_0x53c50a(0x1ed)](_0x37739d[_0x53c50a(0x1dd)]['id'])[_0x53c50a(0x203)][_0x53c50a(0x1f0)](_0x16a36d[_0x53c50a(0x1e2)]['id'])),{'time':_0x5af271*0xea60});_0x8c9d3b['on'](_0x53c50a(0x20b),this[_0x53c50a(0x1e9)]),_0x8c9d3b['on'](_0x53c50a(0x1cf),_0xb3ba98=>this[_0x53c50a(0x1da)](_0x37739d,_0x243fa5,_0xb3ba98));}catch{this['games'][_0x53c50a(0x1d6)](_0x37739d[_0x53c50a(0x1dd)]['id']);}},this[_0x6208b5(0x1fa)]=async _0x4f892a=>{const _0x1e6da6=_0x6208b5,_0x50477a=0x2,_0x4f8957=numbers[_0x1e6da6(0x1f2)](0x3,0x7),_0x3128ce=_0x1e6da6(0x209)[_0x1e6da6(0x1ff)](''),_0x2bacd7=[];for(let _0x50923f=0x0;_0x50923f<_0x4f8957;_0x50923f++){_0x2bacd7[_0x1e6da6(0x1fd)](_0x3128ce[Math[_0x1e6da6(0x1d1)](Math[_0x1e6da6(0x1e8)]()*_0x3128ce['length'])]);}const _0x4ff623=await _0x4f892a['channel'][_0x1e6da6(0x201)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x1e6da6(0x200)],'title':'Acrophobia','description':_0x4f892a['author'][_0x1e6da6(0x20c)]+_0x1e6da6(0x210)+_0x2bacd7[_0x1e6da6(0x1d5)]('\x20')+'**.','footer':{'text':_0x1e6da6(0x1eb)+_0x50477a+_0x1e6da6(0x1f5)}}});this[_0x1e6da6(0x1db)][_0x1e6da6(0x1d9)](_0x4f892a[_0x1e6da6(0x1dd)]['id'],{'votes':[]});const _0x2213bd=_0x4f892a['channel'][_0x1e6da6(0x1f4)](_0x58bcdf=>!_0x58bcdf[_0x1e6da6(0x1e2)]['bot']&&_0x58bcdf[_0x1e6da6(0x1fe)]['length']>0x2*_0x2bacd7[_0x1e6da6(0x1ea)]&&_0x58bcdf[_0x1e6da6(0x1fe)][_0x1e6da6(0x1ff)]('\x20')[_0x1e6da6(0x1ea)]===_0x4f8957&&_0x58bcdf[_0x1e6da6(0x1fe)]['split']('\x20')['map'](_0x376498=>_0x376498[0x0])[_0x1e6da6(0x1d5)]('')[_0x1e6da6(0x204)]()===_0x2bacd7[_0x1e6da6(0x1d5)](''),{'time':_0x50477a*0xea60,'max':0x19});_0x2213bd['on']('collect',this['handleSubmission']),_0x2213bd['on'](_0x1e6da6(0x1cf),_0x27ac60=>this[_0x1e6da6(0x1e7)](_0x4ff623,_0x27ac60));},this[_0x6208b5(0x1db)]=new Map();}}; \ No newline at end of file diff --git a/commands/games/amongus.js b/commands/games/amongus.js index dde88c637..b190f7f40 100644 --- a/commands/games/amongus.js +++ b/commands/games/amongus.js @@ -1 +1 @@ -const a57_0x18af=['Game\x20Code','exports','values','getString','channels','category','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','join','error','topic','@bastion/tesseract','\x20/\x20','send','Constants','filter','channel','VIEW_CHANNEL','Command','mentions','displayName','Your\x20Among\x20Us\x20lobby\x20is\x20ready.\x20Go\x20to\x20<#','MANAGE_CHANNELS','test','name','members','\x0a**Players\x27\x20Actions**\x0a\x0a-\x20🔈\x20Use\x20this\x20to\x20get\x20access\x20to\x20join\x20the\x20**Discussion**\x20Voice\x20Channel.\x0a-\x20👻\x20Use\x20this\x20when\x20you\x27re\x20dead\x20to\x20mute\x20yourself.\x0a\x0a**Lobby\x20Host\x27s\x20Actions**\x0a\x0a-\x20🖐🏻\x20Call\x20Meeting\x20and\x20move\x20Muted\x20players\x20to\x20the\x20Discussion\x20channel.\x0a-\x20🔇\x20End\x20meeting\x20and\x20move\x20players\x20to\x20Muted\x20channel.\x0a-\x20🔓\x20Make\x20the\x20lobby\x20public\x20and\x20let\x20everyone\x20can\x20join\x20the\x20lobby.\x0a-\x20❌\x20End\x20game\x20and\x20close\x20the\x20lobby.\x0a\x0a**It\x27s\x20dangerous\x20to\x20play\x20alone.**\x20Allow\x20others\x20to\x20join\x20your\x20lobby\x20using\x20the\x20`amongUs\x20--allow\x20@mentions...`\x20command\x20in\x20this\x20channel.\x0a\x0a','startsWith','document','client','Lobby\x20Host','locale','allow','exec','DiscordError','text','CONNECT','🖐🏻','USE_VAD','>\x20to\x20join\x20the\x20party.','IRIS','COLORS','commands','noAmongUsChannel','language','ADD_REACTIONS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','type','guild','../../utils/errors','cache','errors','author','SEND_MESSAGES','catch','amongUsChannel','amongus\x20--allow\x20USERS...','size','Discussion','Among\x20Us\x20Lobby\x20','slice','premiumTier','react','constructor','ERROR','Muted','updateOverwrite','SPEAK','create','It\x20allows\x20you\x20create\x20Among\x20Us\x20lobbies\x20with\x20necessary\x20channels\x20for\x20Discussion\x20and\x20Muted\x20users,\x20and\x20gives\x20the\x20lobby\x20host\x20easy\x20ways\x20to\x20manage\x20them\x20automatically.'];(function(_0x5aef20,_0x35686a){const _0x18af61=function(_0x15d4c7){while(--_0x15d4c7){_0x5aef20['push'](_0x5aef20['shift']());}},_0x4f318b=function(){const _0xa95a52={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5032ba,_0x3e73b6,_0x3d0288,_0x36a5cb){_0x36a5cb=_0x36a5cb||{};let _0x19b7c7=_0x3e73b6+'='+_0x3d0288,_0x60c289=0x0;for(let _0x3d6e68=0x0,_0x3af315=_0x5032ba['length'];_0x3d6e68<_0x3af315;_0x3d6e68++){const _0x3e2818=_0x5032ba[_0x3d6e68];_0x19b7c7+=';\x20'+_0x3e2818;const _0x1639c4=_0x5032ba[_0x3e2818];_0x5032ba['push'](_0x1639c4),_0x3af315=_0x5032ba['length'],_0x1639c4!==!![]&&(_0x19b7c7+='='+_0x1639c4);}_0x36a5cb['cookie']=_0x19b7c7;},'removeCookie':function(){return'dev';},'getCookie':function(_0xb53fca,_0xe1156b){_0xb53fca=_0xb53fca||function(_0x35e3f0){return _0x35e3f0;};const _0x19de23=_0xb53fca(new RegExp('(?:^|;\x20)'+_0xe1156b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ab84b=function(_0x32229d,_0x47a2ed){_0x32229d(++_0x47a2ed);};return _0x3ab84b(_0x18af61,_0x35686a),_0x19de23?decodeURIComponent(_0x19de23[0x1]):undefined;}},_0xbe5e99=function(){const _0x59d52=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x59d52['test'](_0xa95a52['removeCookie']['toString']());};_0xa95a52['updateCookie']=_0xbe5e99;let _0x363b35='';const _0x477080=_0xa95a52['updateCookie']();if(!_0x477080)_0xa95a52['setCookie'](['*'],'counter',0x1);else _0x477080?_0x363b35=_0xa95a52['getCookie'](null,'counter'):_0xa95a52['removeCookie']();};_0x4f318b();}(a57_0x18af,0x1b2));const a57_0x4f31=function(_0x5aef20,_0x35686a){_0x5aef20=_0x5aef20-0x6e;let _0x18af61=a57_0x18af[_0x5aef20];return _0x18af61;};const _0x53d08c=a57_0x4f31,a57_0xbe5e99=function(){let _0x477080=!![];return function(_0x5032ba,_0x3e73b6){const _0x3d0288=_0x477080?function(){if(_0x3e73b6){const _0x36a5cb=_0x3e73b6['apply'](_0x5032ba,arguments);return _0x3e73b6=null,_0x36a5cb;}}:function(){};return _0x477080=![],_0x3d0288;};}(),a57_0xa95a52=a57_0xbe5e99(this,function(){const _0x19b7c7=function(){const _0x469fda=a57_0x4f31,_0x60c289=_0x19b7c7[_0x469fda(0xa6)](_0x469fda(0x95))()[_0x469fda(0xa6)](_0x469fda(0xb4));return!_0x60c289[_0x469fda(0x7e)](a57_0xa95a52);};return _0x19b7c7();});a57_0xa95a52();'use strict';const tesseract_1=require(_0x53d08c(0x72)),errors=require(_0x53d08c(0x98));module[_0x53d08c(0xae)]=class AmongUsCommand extends tesseract_1[_0x53d08c(0x79)]{constructor(){const _0x249855=_0x53d08c;super('amongus',{'description':_0x249855(0xac),'triggers':[],'arguments':{'boolean':[_0x249855(0x87)]},'scope':_0x249855(0x97),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x249855(0x7d),'MANAGE_ROLES','MOVE_MEMBERS','MUTE_MEMBERS'],'userPermissions':[],'syntax':['amongus\x20CODE',_0x249855(0x9f)]}),this[_0x249855(0x88)]=async(_0x3d6e68,_0x3af315)=>{const _0x5bf2bb=_0x249855;if(_0x3af315[_0x5bf2bb(0x87)]){if(_0x3d6e68['channel'][_0x5bf2bb(0x7f)]===_0x5bf2bb(0x91)&&_0x3d6e68[_0x5bf2bb(0x77)][_0x5bf2bb(0x71)]===_0x3d6e68['author']['id'])for(const _0x35e3f0 of Array['from'](_0x3d6e68[_0x5bf2bb(0x7a)][_0x5bf2bb(0x80)][_0x5bf2bb(0xaf)]())[_0x5bf2bb(0xa3)](0x0,0xa)){await _0x3d6e68[_0x5bf2bb(0x77)][_0x5bf2bb(0xa9)](_0x35e3f0,{'ADD_REACTIONS':!![]});}return;}if(!_0x3d6e68['guild'][_0x5bf2bb(0x83)][_0x5bf2bb(0x9e)])throw new errors[(_0x5bf2bb(0x89))](errors[_0x5bf2bb(0xb3)][_0x5bf2bb(0xa7)],this[_0x5bf2bb(0x84)][_0x5bf2bb(0x86)][_0x5bf2bb(0xb0)](_0x3d6e68[_0x5bf2bb(0x97)]['document'][_0x5bf2bb(0x93)],_0x5bf2bb(0x9a),_0x5bf2bb(0x92)));if(_0x3d6e68[_0x5bf2bb(0x97)][_0x5bf2bb(0x83)][_0x5bf2bb(0x9e)]!==_0x3d6e68[_0x5bf2bb(0x77)]['id'])throw new errors[(_0x5bf2bb(0x89))](errors[_0x5bf2bb(0xb3)][_0x5bf2bb(0xa7)],this[_0x5bf2bb(0x84)][_0x5bf2bb(0x86)][_0x5bf2bb(0xb0)](_0x3d6e68[_0x5bf2bb(0x97)]['document']['language'],_0x5bf2bb(0x9a),'notAmongUsChannel',_0x3d6e68[_0x5bf2bb(0x97)][_0x5bf2bb(0x83)]['amongUsChannel']));const _0x3e2818=_0x3d6e68[_0x5bf2bb(0x97)]['channels'][_0x5bf2bb(0x99)]['filter'](_0x32229d=>_0x32229d[_0x5bf2bb(0x96)]===_0x5bf2bb(0xb2))[_0x5bf2bb(0x76)](_0x47a2ed=>_0x47a2ed['name'][_0x5bf2bb(0x82)](_0x5bf2bb(0xa2)))[_0x5bf2bb(0xa0)]+0x1,_0x1639c4=_0x5bf2bb(0xa2)+(_0x3af315['_'][_0x5bf2bb(0x6e)]?_0x3af315['_'][_0x5bf2bb(0x6f)](''):'#'+_0x3e2818),_0xb53fca=await _0x3d6e68[_0x5bf2bb(0x97)][_0x5bf2bb(0xb1)][_0x5bf2bb(0xab)](_0x1639c4,{'type':_0x5bf2bb(0xb2),'permissionOverwrites':[{'id':_0x3d6e68['author']['id'],'allow':[_0x5bf2bb(0x94),_0x5bf2bb(0x8b),'SEND_MESSAGES']},{'id':_0x3d6e68['guild']['id'],'allow':[_0x5bf2bb(0x8d),_0x5bf2bb(0x78)],'deny':['ADD_REACTIONS',_0x5bf2bb(0x8b),_0x5bf2bb(0x9c)]}]}),_0xe1156b=await _0x3d6e68['guild']['channels'][_0x5bf2bb(0xab)](_0x5bf2bb(0x91),{'type':_0x5bf2bb(0x8a),'parent':_0xb53fca,'topic':_0x3d6e68[_0x5bf2bb(0x9b)]['id'],'permissionOverwrites':[{'id':_0x3d6e68[_0x5bf2bb(0x9b)]['id'],'allow':[_0x5bf2bb(0x94),_0x5bf2bb(0x9c)]},{'id':_0x3d6e68[_0x5bf2bb(0x97)]['id'],'allow':[_0x5bf2bb(0x78)],'deny':[_0x5bf2bb(0x94),_0x5bf2bb(0x9c)]}]});await _0x3d6e68[_0x5bf2bb(0x97)]['channels'][_0x5bf2bb(0xab)](_0x5bf2bb(0xa1),{'type':'voice','bitrate':_0x3d6e68[_0x5bf2bb(0x97)]['premiumTier']*0x1f400||0x17700,'parent':_0xb53fca,'userLimit':0xa,'permissionOverwrites':[{'id':_0x3d6e68[_0x5bf2bb(0x9b)]['id'],'allow':[_0x5bf2bb(0x8b)]},{'id':_0x3d6e68['guild']['id'],'allow':[_0x5bf2bb(0xaa),_0x5bf2bb(0x8d),_0x5bf2bb(0x78)],'deny':['CONNECT']}]}),await _0x3d6e68['guild'][_0x5bf2bb(0xb1)][_0x5bf2bb(0xab)](_0x5bf2bb(0xa8),{'type':'voice','bitrate':_0x3d6e68[_0x5bf2bb(0x97)][_0x5bf2bb(0xa4)]*0x1f400||0x17700,'parent':_0xb53fca,'userLimit':0xa,'permissionOverwrites':[{'id':_0x3d6e68[_0x5bf2bb(0x97)]['id'],'allow':[_0x5bf2bb(0x78)],'deny':[_0x5bf2bb(0x8b),_0x5bf2bb(0xaa)]}]}),_0x3d6e68['channel'][_0x5bf2bb(0x74)]({'embed':{'color':tesseract_1[_0x5bf2bb(0x75)]['COLORS'][_0x5bf2bb(0x8f)],'title':'Among\x20Us\x20Lobby','description':_0x5bf2bb(0x7c)+_0xe1156b['id']+_0x5bf2bb(0x8e)}})[_0x5bf2bb(0x9d)](tesseract_1['Logger'][_0x5bf2bb(0x70)]);const _0x19de23=await _0xe1156b[_0x5bf2bb(0x74)]({'embed':{'color':tesseract_1[_0x5bf2bb(0x75)][_0x5bf2bb(0x90)][_0x5bf2bb(0x8f)],'title':_0x1639c4,'description':_0x5bf2bb(0x81),'fields':[{'name':_0x5bf2bb(0x85),'value':_0x3d6e68['member'][_0x5bf2bb(0x7b)]+_0x5bf2bb(0x73)+_0x3d6e68[_0x5bf2bb(0x9b)]['id']},{'name':_0x5bf2bb(0xad),'value':_0x3af315['_']['length']?_0x3af315['_']['join'](''):'-','inline':!![]}]}}),_0x3ab84b=['🔈','👻',_0x5bf2bb(0x8c),'🔇','🔓','❌'];for(const _0x59d52 of _0x3ab84b){await _0x19de23[_0x5bf2bb(0xa5)](_0x59d52);}};}}; \ No newline at end of file +const a58_0x496a=['Among\x20Us\x20Lobby','SPEAK','updateOverwrite','channels','voice','COLORS','ADD_REACTIONS','premiumTier','MOVE_MEMBERS','amongUsChannel','allow','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','send','members','Game\x20Code','apply','Your\x20Among\x20Us\x20lobby\x20is\x20ready.\x20Go\x20to\x20<#','client','notAmongUsChannel','MANAGE_CHANNELS','locale','author','Constants','CONNECT','BASTION_ERROR_TYPE','category','startsWith','filter','MANAGE_ROLES','mentions','error','topic','ERROR','amongus\x20CODE','constructor','guild','name','\x0a**Players\x27\x20Actions**\x0a\x0a-\x20🔈\x20Use\x20this\x20to\x20get\x20access\x20to\x20join\x20the\x20**Discussion**\x20Voice\x20Channel.\x0a-\x20👻\x20Use\x20this\x20when\x20you\x27re\x20dead\x20to\x20mute\x20yourself.\x0a\x0a**Lobby\x20Host\x27s\x20Actions**\x0a\x0a-\x20🖐🏻\x20Call\x20Meeting\x20and\x20move\x20Muted\x20players\x20to\x20the\x20Discussion\x20channel.\x0a-\x20🔇\x20End\x20meeting\x20and\x20move\x20players\x20to\x20Muted\x20channel.\x0a-\x20🔓\x20Make\x20the\x20lobby\x20public\x20and\x20let\x20everyone\x20can\x20join\x20the\x20lobby.\x0a-\x20❌\x20End\x20game\x20and\x20close\x20the\x20lobby.\x0a\x0a**It\x27s\x20dangerous\x20to\x20play\x20alone.**\x20Allow\x20others\x20to\x20join\x20your\x20lobby\x20using\x20the\x20`amongUs\x20--allow\x20@mentions...`\x20command\x20in\x20this\x20channel.\x0a\x0a','@bastion/tesseract','Muted','getString','commands','displayName','USE_VAD','Among\x20Us\x20Lobby\x20','text','catch','MUTE_MEMBERS','join','\x20/\x20','slice','IRIS','DiscordError','channel','errors','language','../../utils/errors','create','length','exports','SEND_MESSAGES','react','exec','document','cache','VIEW_CHANNEL','Lobby\x20Host','Discussion','🖐🏻'];(function(_0x2153e2,_0x2f25cc){const _0x496a2c=function(_0xc96fda){while(--_0xc96fda){_0x2153e2['push'](_0x2153e2['shift']());}},_0x5b1cd8=function(){const _0x5b1c81={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x210ef5,_0x57f096,_0x4d9e8a,_0x1ed1d9){_0x1ed1d9=_0x1ed1d9||{};let _0x49d259=_0x57f096+'='+_0x4d9e8a,_0x8644b1=0x0;for(let _0x3f637e=0x0,_0x209be6=_0x210ef5['length'];_0x3f637e<_0x209be6;_0x3f637e++){const _0x4e2435=_0x210ef5[_0x3f637e];_0x49d259+=';\x20'+_0x4e2435;const _0x3058a6=_0x210ef5[_0x4e2435];_0x210ef5['push'](_0x3058a6),_0x209be6=_0x210ef5['length'],_0x3058a6!==!![]&&(_0x49d259+='='+_0x3058a6);}_0x1ed1d9['cookie']=_0x49d259;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44ddcd,_0x3ae0f3){_0x44ddcd=_0x44ddcd||function(_0x41ab0f){return _0x41ab0f;};const _0x5533ac=_0x44ddcd(new RegExp('(?:^|;\x20)'+_0x3ae0f3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x215717=function(_0x30d5d1,_0x150b46){_0x30d5d1(++_0x150b46);};return _0x215717(_0x496a2c,_0x2f25cc),_0x5533ac?decodeURIComponent(_0x5533ac[0x1]):undefined;}},_0xe3117d=function(){const _0x1916dd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1916dd['test'](_0x5b1c81['removeCookie']['toString']());};_0x5b1c81['updateCookie']=_0xe3117d;let _0x1b5d31='';const _0x1948be=_0x5b1c81['updateCookie']();if(!_0x1948be)_0x5b1c81['setCookie'](['*'],'counter',0x1);else _0x1948be?_0x1b5d31=_0x5b1c81['getCookie'](null,'counter'):_0x5b1c81['removeCookie']();};_0x5b1cd8();}(a58_0x496a,0x1d4));const a58_0x5b1c=function(_0x2153e2,_0x2f25cc){_0x2153e2=_0x2153e2-0xb1;let _0x496a2c=a58_0x496a[_0x2153e2];return _0x496a2c;};const a58_0x5ac224=a58_0x5b1c,a58_0xe3117d=function(){let _0x1948be=!![];return function(_0x210ef5,_0x57f096){const _0x4d9e8a=_0x1948be?function(){const _0x3f1a86=a58_0x5b1c;if(_0x57f096){const _0x1ed1d9=_0x57f096[_0x3f1a86(0xd7)](_0x210ef5,arguments);return _0x57f096=null,_0x1ed1d9;}}:function(){};return _0x1948be=![],_0x4d9e8a;};}(),a58_0x5b1c81=a58_0xe3117d(this,function(){const _0x49d259=function(){const _0x55a532=a58_0x5b1c,_0x8644b1=_0x49d259[_0x55a532(0xea)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x55a532(0xea)](_0x55a532(0xd2));return!_0x8644b1['test'](a58_0x5b1c81);};return _0x49d259();});a58_0x5b1c81();'use strict';const tesseract_1=require(a58_0x5ac224(0xee)),errors=require(a58_0x5ac224(0xba));module[a58_0x5ac224(0xbd)]=class AmongUsCommand extends tesseract_1[a58_0x5ac224(0xd3)]{constructor(){const _0x3ac155=a58_0x5ac224;super('amongus',{'description':'It\x20allows\x20you\x20create\x20Among\x20Us\x20lobbies\x20with\x20necessary\x20channels\x20for\x20Discussion\x20and\x20Muted\x20users,\x20and\x20gives\x20the\x20lobby\x20host\x20easy\x20ways\x20to\x20manage\x20them\x20automatically.','triggers':[],'arguments':{'boolean':[_0x3ac155(0xd1)]},'scope':_0x3ac155(0xeb),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x3ac155(0xdb),_0x3ac155(0xe4),_0x3ac155(0xcf),_0x3ac155(0xb1)],'userPermissions':[],'syntax':[_0x3ac155(0xe9),'amongus\x20--allow\x20USERS...']}),this[_0x3ac155(0xc0)]=async(_0x3f637e,_0x209be6)=>{const _0x2d29d7=_0x3ac155;if(_0x209be6['allow']){if(_0x3f637e[_0x2d29d7(0xb7)][_0x2d29d7(0xec)]===_0x2d29d7(0xf1)&&_0x3f637e[_0x2d29d7(0xb7)][_0x2d29d7(0xe7)]===_0x3f637e[_0x2d29d7(0xdd)]['id'])for(const _0x41ab0f of Array['from'](_0x3f637e[_0x2d29d7(0xe5)][_0x2d29d7(0xd5)]['values']())[_0x2d29d7(0xb4)](0x0,0xa)){await _0x3f637e['channel'][_0x2d29d7(0xc9)](_0x41ab0f,{'ADD_REACTIONS':!![]});}return;}if(!_0x3f637e[_0x2d29d7(0xeb)]['document'][_0x2d29d7(0xd0)])throw new errors[(_0x2d29d7(0xb6))](errors[_0x2d29d7(0xe0)][_0x2d29d7(0xe8)],this[_0x2d29d7(0xd9)][_0x2d29d7(0xdc)][_0x2d29d7(0xf0)](_0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xc1)][_0x2d29d7(0xb9)],'errors','noAmongUsChannel'));if(_0x3f637e['guild'][_0x2d29d7(0xc1)][_0x2d29d7(0xd0)]!==_0x3f637e['channel']['id'])throw new errors[(_0x2d29d7(0xb6))](errors[_0x2d29d7(0xe0)][_0x2d29d7(0xe8)],this[_0x2d29d7(0xd9)][_0x2d29d7(0xdc)]['getString'](_0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xc1)][_0x2d29d7(0xb9)],_0x2d29d7(0xb8),_0x2d29d7(0xda),_0x3f637e['guild'][_0x2d29d7(0xc1)]['amongUsChannel']));const _0x4e2435=_0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xca)][_0x2d29d7(0xc2)][_0x2d29d7(0xe3)](_0x30d5d1=>_0x30d5d1['type']===_0x2d29d7(0xe1))['filter'](_0x150b46=>_0x150b46[_0x2d29d7(0xec)][_0x2d29d7(0xe2)]('Among\x20Us\x20Lobby\x20'))['size']+0x1,_0x3058a6=_0x2d29d7(0xf4)+(_0x209be6['_'][_0x2d29d7(0xbc)]?_0x209be6['_'][_0x2d29d7(0xb2)](''):'#'+_0x4e2435),_0x44ddcd=await _0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xca)][_0x2d29d7(0xbb)](_0x3058a6,{'type':_0x2d29d7(0xe1),'permissionOverwrites':[{'id':_0x3f637e[_0x2d29d7(0xdd)]['id'],'allow':['ADD_REACTIONS',_0x2d29d7(0xdf),_0x2d29d7(0xbe)]},{'id':_0x3f637e[_0x2d29d7(0xeb)]['id'],'allow':['USE_VAD',_0x2d29d7(0xc3)],'deny':[_0x2d29d7(0xcd),_0x2d29d7(0xdf),'SEND_MESSAGES']}]}),_0x3ae0f3=await _0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xca)][_0x2d29d7(0xbb)](_0x2d29d7(0xf1),{'type':_0x2d29d7(0xf5),'parent':_0x44ddcd,'topic':_0x3f637e[_0x2d29d7(0xdd)]['id'],'permissionOverwrites':[{'id':_0x3f637e[_0x2d29d7(0xdd)]['id'],'allow':[_0x2d29d7(0xcd),_0x2d29d7(0xbe)]},{'id':_0x3f637e[_0x2d29d7(0xeb)]['id'],'allow':[_0x2d29d7(0xc3)],'deny':[_0x2d29d7(0xcd),_0x2d29d7(0xbe)]}]});await _0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xca)][_0x2d29d7(0xbb)](_0x2d29d7(0xc5),{'type':_0x2d29d7(0xcb),'bitrate':_0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xce)]*0x1f400||0x17700,'parent':_0x44ddcd,'userLimit':0xa,'permissionOverwrites':[{'id':_0x3f637e[_0x2d29d7(0xdd)]['id'],'allow':['CONNECT']},{'id':_0x3f637e[_0x2d29d7(0xeb)]['id'],'allow':[_0x2d29d7(0xc8),_0x2d29d7(0xf3),_0x2d29d7(0xc3)],'deny':['CONNECT']}]}),await _0x3f637e['guild']['channels'][_0x2d29d7(0xbb)](_0x2d29d7(0xef),{'type':_0x2d29d7(0xcb),'bitrate':_0x3f637e[_0x2d29d7(0xeb)][_0x2d29d7(0xce)]*0x1f400||0x17700,'parent':_0x44ddcd,'userLimit':0xa,'permissionOverwrites':[{'id':_0x3f637e[_0x2d29d7(0xeb)]['id'],'allow':[_0x2d29d7(0xc3)],'deny':[_0x2d29d7(0xdf),_0x2d29d7(0xc8)]}]}),_0x3f637e[_0x2d29d7(0xb7)][_0x2d29d7(0xd4)]({'embed':{'color':tesseract_1[_0x2d29d7(0xde)][_0x2d29d7(0xcc)]['IRIS'],'title':_0x2d29d7(0xc7),'description':_0x2d29d7(0xd8)+_0x3ae0f3['id']+'>\x20to\x20join\x20the\x20party.'}})[_0x2d29d7(0xf6)](tesseract_1['Logger'][_0x2d29d7(0xe6)]);const _0x5533ac=await _0x3ae0f3['send']({'embed':{'color':tesseract_1[_0x2d29d7(0xde)][_0x2d29d7(0xcc)][_0x2d29d7(0xb5)],'title':_0x3058a6,'description':_0x2d29d7(0xed),'fields':[{'name':_0x2d29d7(0xc4),'value':_0x3f637e['member'][_0x2d29d7(0xf2)]+_0x2d29d7(0xb3)+_0x3f637e[_0x2d29d7(0xdd)]['id']},{'name':_0x2d29d7(0xd6),'value':_0x209be6['_'][_0x2d29d7(0xbc)]?_0x209be6['_'][_0x2d29d7(0xb2)](''):'-','inline':!![]}]}}),_0x215717=['🔈','👻',_0x2d29d7(0xc6),'🔇','🔓','❌'];for(const _0x1916dd of _0x215717){await _0x5533ac[_0x2d29d7(0xbf)](_0x1916dd);}};}}; \ No newline at end of file diff --git a/commands/games/flip.js b/commands/games/flip.js index c356ed3ad..5b176ca1b 100644 --- a/commands/games/flip.js +++ b/commands/games/flip.js @@ -1 +1 @@ -const a58_0x31b8=['join','multiplier','coins','guild','random','Constants','credit','It\x20allows\x20you\x20to\x20flip\x20any\x20number\x20of\x20coins\x20and\x20see\x20the\x20result.\x20It\x20also\x20supports\x20gambling.','flip\x20--coins\x20NUMBER','bet','floor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Coin\x20Flip','member','clamp','HEADS','COLORS','TAILS','GAMBLING_DISABLED','apply','document','exec','Command','channel','flip\x20--bet\x20OUTCOME','outcomes','gambling','IRIS','debit','constructor','enabled','length','Won\x20the\x20bet\x20in\x20Flip.','\x20/\x20'];(function(_0x43ebcf,_0x4db6cc){const _0x31b80d=function(_0x4a0a84){while(--_0x4a0a84){_0x43ebcf['push'](_0x43ebcf['shift']());}},_0x1d1ee7=function(){const _0x2fc815={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ff7f5,_0x17f4c2,_0x21498d,_0x5a63c4){_0x5a63c4=_0x5a63c4||{};let _0x1c8c36=_0x17f4c2+'='+_0x21498d,_0x4d1b74=0x0;for(let _0x26dd07=0x0,_0x284495=_0x2ff7f5['length'];_0x26dd07<_0x284495;_0x26dd07++){const _0x52551f=_0x2ff7f5[_0x26dd07];_0x1c8c36+=';\x20'+_0x52551f;const _0x9597ac=_0x2ff7f5[_0x52551f];_0x2ff7f5['push'](_0x9597ac),_0x284495=_0x2ff7f5['length'],_0x9597ac!==!![]&&(_0x1c8c36+='='+_0x9597ac);}_0x5a63c4['cookie']=_0x1c8c36;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1f0c82,_0x420c2a){_0x1f0c82=_0x1f0c82||function(_0x25ed3c){return _0x25ed3c;};const _0x161a70=_0x1f0c82(new RegExp('(?:^|;\x20)'+_0x420c2a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2fca46=function(_0x3bcd2f,_0x4c7c44){_0x3bcd2f(++_0x4c7c44);};return _0x2fca46(_0x31b80d,_0x4db6cc),_0x161a70?decodeURIComponent(_0x161a70[0x1]):undefined;}},_0x2bc43e=function(){const _0x468b6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x468b6['test'](_0x2fc815['removeCookie']['toString']());};_0x2fc815['updateCookie']=_0x2bc43e;let _0x1f6b56='';const _0x295658=_0x2fc815['updateCookie']();if(!_0x295658)_0x2fc815['setCookie'](['*'],'counter',0x1);else _0x295658?_0x1f6b56=_0x2fc815['getCookie'](null,'counter'):_0x2fc815['removeCookie']();};_0x1d1ee7();}(a58_0x31b8,0x1e4));const a58_0x1d1e=function(_0x43ebcf,_0x4db6cc){_0x43ebcf=_0x43ebcf-0x118;let _0x31b80d=a58_0x31b8[_0x43ebcf];return _0x31b80d;};const _0x54bb00=a58_0x1d1e,a58_0x2bc43e=function(){let _0x295658=!![];return function(_0x2ff7f5,_0x17f4c2){const _0x21498d=_0x295658?function(){const _0x314f4c=a58_0x1d1e;if(_0x17f4c2){const _0x5a63c4=_0x17f4c2[_0x314f4c(0x123)](_0x2ff7f5,arguments);return _0x17f4c2=null,_0x5a63c4;}}:function(){};return _0x295658=![],_0x21498d;};}(),a58_0x2fc815=a58_0x2bc43e(this,function(){const _0x1c8c36=function(){const _0x22a13a=a58_0x1d1e,_0x4d1b74=_0x1c8c36[_0x22a13a(0x12d)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x22a13a(0x12d)](_0x22a13a(0x11b));return!_0x4d1b74['test'](a58_0x2fc815);};return _0x1c8c36();});a58_0x2fc815();'use strict';const tesseract_1=require('@bastion/tesseract'),numbers=require('../../utils/numbers');module['exports']=class FlipCommand extends tesseract_1[_0x54bb00(0x126)]{constructor(){const _0x5b36e3=_0x54bb00;super('flip',{'description':_0x5b36e3(0x139),'triggers':[],'arguments':{'alias':{'coins':['c']},'array':[_0x5b36e3(0x119)],'number':['coins'],'string':['bet'],'coerce':{'coins':_0x26dd07=>Math[_0x5b36e3(0x11a)](numbers[_0x5b36e3(0x11e)](_0x26dd07,0x1,0x100))},'default':{'coins':0x1}},'scope':_0x5b36e3(0x135),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['flip',_0x5b36e3(0x118),_0x5b36e3(0x128)]}),this[_0x5b36e3(0x125)]=async(_0x284495,_0x52551f)=>{const _0x2937c2=_0x5b36e3,_0x9597ac=_0x52551f[_0x2937c2(0x134)]||0x1,_0x1f0c82=[];for(let _0x420c2a=0x0;_0x420c2a<_0x9597ac;_0x420c2a++){_0x1f0c82['push'](this['outcomes'][Math[_0x2937c2(0x11a)](Math[_0x2937c2(0x136)]()*this[_0x2937c2(0x129)][_0x2937c2(0x12f)])]);}if(_0x52551f[_0x2937c2(0x119)]&&_0x52551f['bet'][_0x2937c2(0x12f)]){if(_0x284495['guild']['document'][_0x2937c2(0x12a)]&&_0x284495[_0x2937c2(0x135)][_0x2937c2(0x124)]['gambling'][_0x2937c2(0x12e)])_0x52551f['bet'][_0x2937c2(0x132)](_0x2937c2(0x131))['toLowerCase']()===_0x1f0c82[_0x2937c2(0x132)](_0x2937c2(0x131))['toLowerCase']()?_0x284495[_0x2937c2(0x11d)][_0x2937c2(0x138)](0xd*(_0x284495['guild'][_0x2937c2(0x124)][_0x2937c2(0x12a)]['multiplier']||0x1),_0x2937c2(0x130)):_0x284495[_0x2937c2(0x11d)][_0x2937c2(0x12c)](0xd*(_0x284495[_0x2937c2(0x135)]['document'][_0x2937c2(0x12a)][_0x2937c2(0x133)]||0x1),'Lost\x20the\x20bet\x20in\x20Flip.');else throw new Error(_0x2937c2(0x122));}await _0x284495[_0x2937c2(0x127)]['send']({'embed':{'color':tesseract_1[_0x2937c2(0x137)][_0x2937c2(0x120)][_0x2937c2(0x12b)],'title':_0x2937c2(0x11c),'description':_0x1f0c82[_0x2937c2(0x132)]('\x20/\x20')}});},this[_0x5b36e3(0x129)]=[_0x5b36e3(0x11f),_0x5b36e3(0x121)];}}; \ No newline at end of file +const a59_0x2522=['\x20/\x20','COLORS','IRIS','multiplier','debit','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','enabled','GAMBLING_DISABLED','flip','../../utils/numbers','Won\x20the\x20bet\x20in\x20Flip.','clamp','send','coins','random','exec','bet','TAILS','channel','apply','Coin\x20Flip','flip\x20--bet\x20OUTCOME','HEADS','flip\x20--coins\x20NUMBER','document','length','@bastion/tesseract','gambling','outcomes','floor','guild','constructor','toLowerCase','push','Lost\x20the\x20bet\x20in\x20Flip.','It\x20allows\x20you\x20to\x20flip\x20any\x20number\x20of\x20coins\x20and\x20see\x20the\x20result.\x20It\x20also\x20supports\x20gambling.','member','Command','join'];(function(_0x19417b,_0x57c3ca){const _0x252293=function(_0x1435eb){while(--_0x1435eb){_0x19417b['push'](_0x19417b['shift']());}},_0x37b094=function(){const _0x119e5d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xc678c0,_0xd6c33c,_0x106801,_0x5e701d){_0x5e701d=_0x5e701d||{};let _0x36689b=_0xd6c33c+'='+_0x106801,_0x5b870b=0x0;for(let _0x121068=0x0,_0x4da1e1=_0xc678c0['length'];_0x121068<_0x4da1e1;_0x121068++){const _0x124796=_0xc678c0[_0x121068];_0x36689b+=';\x20'+_0x124796;const _0x17eb96=_0xc678c0[_0x124796];_0xc678c0['push'](_0x17eb96),_0x4da1e1=_0xc678c0['length'],_0x17eb96!==!![]&&(_0x36689b+='='+_0x17eb96);}_0x5e701d['cookie']=_0x36689b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x9237d0,_0x1d0d35){_0x9237d0=_0x9237d0||function(_0x1a0099){return _0x1a0099;};const _0x474cb8=_0x9237d0(new RegExp('(?:^|;\x20)'+_0x1d0d35['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d172c=function(_0x39a14d,_0x349a60){_0x39a14d(++_0x349a60);};return _0x4d172c(_0x252293,_0x57c3ca),_0x474cb8?decodeURIComponent(_0x474cb8[0x1]):undefined;}},_0x247ddd=function(){const _0x5cb601=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5cb601['test'](_0x119e5d['removeCookie']['toString']());};_0x119e5d['updateCookie']=_0x247ddd;let _0x3bf33c='';const _0x23c27a=_0x119e5d['updateCookie']();if(!_0x23c27a)_0x119e5d['setCookie'](['*'],'counter',0x1);else _0x23c27a?_0x3bf33c=_0x119e5d['getCookie'](null,'counter'):_0x119e5d['removeCookie']();};_0x37b094();}(a59_0x2522,0xed));const a59_0x37b0=function(_0x19417b,_0x57c3ca){_0x19417b=_0x19417b-0x1a7;let _0x252293=a59_0x2522[_0x19417b];return _0x252293;};const a59_0x20bfce=a59_0x37b0,a59_0x247ddd=function(){let _0x23c27a=!![];return function(_0xc678c0,_0xd6c33c){const _0x106801=_0x23c27a?function(){const _0x84048d=a59_0x37b0;if(_0xd6c33c){const _0x5e701d=_0xd6c33c[_0x84048d(0x1c5)](_0xc678c0,arguments);return _0xd6c33c=null,_0x5e701d;}}:function(){};return _0x23c27a=![],_0x106801;};}(),a59_0x119e5d=a59_0x247ddd(this,function(){const _0x36689b=function(){const _0x1af819=a59_0x37b0,_0x5b870b=_0x36689b[_0x1af819(0x1a8)](_0x1af819(0x1b6))()[_0x1af819(0x1a8)](_0x1af819(0x1b5));return!_0x5b870b['test'](a59_0x119e5d);};return _0x36689b();});a59_0x119e5d();'use strict';const tesseract_1=require(a59_0x20bfce(0x1cc)),numbers=require(a59_0x20bfce(0x1bb));module[a59_0x20bfce(0x1b7)]=class FlipCommand extends tesseract_1[a59_0x20bfce(0x1ae)]{constructor(){const _0x76ad8b=a59_0x20bfce;super('flip',{'description':_0x76ad8b(0x1ac),'triggers':[],'arguments':{'alias':{'coins':['c']},'array':[_0x76ad8b(0x1c2)],'number':[_0x76ad8b(0x1bf)],'string':[_0x76ad8b(0x1c2)],'coerce':{'coins':_0x121068=>Math[_0x76ad8b(0x1cf)](numbers[_0x76ad8b(0x1bd)](_0x121068,0x1,0x100))},'default':{'coins':0x1}},'scope':_0x76ad8b(0x1a7),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x76ad8b(0x1ba),_0x76ad8b(0x1c9),_0x76ad8b(0x1c7)]}),this[_0x76ad8b(0x1c1)]=async(_0x4da1e1,_0x124796)=>{const _0x586655=_0x76ad8b,_0x17eb96=_0x124796[_0x586655(0x1bf)]||0x1,_0x9237d0=[];for(let _0x1d0d35=0x0;_0x1d0d35<_0x17eb96;_0x1d0d35++){_0x9237d0[_0x586655(0x1aa)](this['outcomes'][Math[_0x586655(0x1cf)](Math[_0x586655(0x1c0)]()*this[_0x586655(0x1ce)]['length'])]);}if(_0x124796[_0x586655(0x1c2)]&&_0x124796[_0x586655(0x1c2)][_0x586655(0x1cb)]){if(_0x4da1e1[_0x586655(0x1a7)][_0x586655(0x1ca)]['gambling']&&_0x4da1e1['guild'][_0x586655(0x1ca)]['gambling'][_0x586655(0x1b8)])_0x124796['bet'][_0x586655(0x1af)]('\x20/\x20')[_0x586655(0x1a9)]()===_0x9237d0[_0x586655(0x1af)](_0x586655(0x1b0))[_0x586655(0x1a9)]()?_0x4da1e1[_0x586655(0x1ad)]['credit'](0xd*(_0x4da1e1[_0x586655(0x1a7)]['document'][_0x586655(0x1cd)][_0x586655(0x1b3)]||0x1),_0x586655(0x1bc)):_0x4da1e1[_0x586655(0x1ad)][_0x586655(0x1b4)](0xd*(_0x4da1e1[_0x586655(0x1a7)][_0x586655(0x1ca)][_0x586655(0x1cd)]['multiplier']||0x1),_0x586655(0x1ab));else throw new Error(_0x586655(0x1b9));}await _0x4da1e1[_0x586655(0x1c4)][_0x586655(0x1be)]({'embed':{'color':tesseract_1['Constants'][_0x586655(0x1b1)][_0x586655(0x1b2)],'title':_0x586655(0x1c6),'description':_0x9237d0[_0x586655(0x1af)]('\x20/\x20')}});},this['outcomes']=[_0x76ad8b(0x1c8),_0x76ad8b(0x1c3)];}}; \ No newline at end of file diff --git a/commands/games/gameServer.js b/commands/games/gameServer.js index ef94c44af..17fab9b23 100644 --- a/commands/games/gameServer.js +++ b/commands/games/gameServer.js @@ -1 +1 @@ -const a59_0x3dc9=['map','\x20minutes','IRIS','send','password','```','guild','port','json','Constants','time','/server/','BASTION_ERROR_TYPE','/games/','slice','\x20•\x20Password\x20Protected','\x09PING\x20','score','bots','Players','host','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Map','makeRequest','ping','sort','\x20/\x20','constructor','../../utils/errors','exports','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','connect','maxplayers','\x20•\x20Powered\x20by\x20Omnic','COLORS','INVALID_COMMAND_SYNTAX','test','exec','It\x20allows\x20you\x20to\x20fetch\x20information\x20from\x20nearly\x20any\x20game\x20server\x20that\x20makes\x20its\x20status\x20publicly\x20available.','apply','gameServer','name','players','team','concat'];(function(_0x461cc1,_0x2dc579){const _0x3dc910=function(_0x34136b){while(--_0x34136b){_0x461cc1['push'](_0x461cc1['shift']());}},_0x37a520=function(){const _0x5001c2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf0e771,_0xde00ef,_0x507c06,_0x212c69){_0x212c69=_0x212c69||{};let _0x1efa83=_0xde00ef+'='+_0x507c06,_0x413c4b=0x0;for(let _0x180409=0x0,_0x3ea527=_0xf0e771['length'];_0x180409<_0x3ea527;_0x180409++){const _0xd4c588=_0xf0e771[_0x180409];_0x1efa83+=';\x20'+_0xd4c588;const _0x23fed7=_0xf0e771[_0xd4c588];_0xf0e771['push'](_0x23fed7),_0x3ea527=_0xf0e771['length'],_0x23fed7!==!![]&&(_0x1efa83+='='+_0x23fed7);}_0x212c69['cookie']=_0x1efa83;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a7676,_0x1fd42a){_0x2a7676=_0x2a7676||function(_0x1bfa2a){return _0x1bfa2a;};const _0x408100=_0x2a7676(new RegExp('(?:^|;\x20)'+_0x1fd42a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x13038c=function(_0x141816,_0x2704df){_0x141816(++_0x2704df);};return _0x13038c(_0x3dc910,_0x2dc579),_0x408100?decodeURIComponent(_0x408100[0x1]):undefined;}},_0x2f98dd=function(){const _0xc332de=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xc332de['test'](_0x5001c2['removeCookie']['toString']());};_0x5001c2['updateCookie']=_0x2f98dd;let _0x35dc2d='';const _0x15772b=_0x5001c2['updateCookie']();if(!_0x15772b)_0x5001c2['setCookie'](['*'],'counter',0x1);else _0x15772b?_0x35dc2d=_0x5001c2['getCookie'](null,'counter'):_0x5001c2['removeCookie']();};_0x37a520();}(a59_0x3dc9,0x1f0));const a59_0x37a5=function(_0x461cc1,_0x2dc579){_0x461cc1=_0x461cc1-0xfd;let _0x3dc910=a59_0x3dc9[_0x461cc1];return _0x3dc910;};const _0xba7067=a59_0x37a5,a59_0x2f98dd=function(){let _0x15772b=!![];return function(_0xf0e771,_0xde00ef){const _0x507c06=_0x15772b?function(){const _0x4b6fc7=a59_0x37a5;if(_0xde00ef){const _0x212c69=_0xde00ef[_0x4b6fc7(0x101)](_0xf0e771,arguments);return _0xde00ef=null,_0x212c69;}}:function(){};return _0x15772b=![],_0x507c06;};}(),a59_0x5001c2=a59_0x2f98dd(this,function(){const _0x1efa83=function(){const _0x4c8ef7=a59_0x37a5,_0x413c4b=_0x1efa83[_0x4c8ef7(0x122)](_0x4c8ef7(0x126))()['constructor'](_0x4c8ef7(0x11c));return!_0x413c4b[_0x4c8ef7(0xfe)](a59_0x5001c2);};return _0x1efa83();});a59_0x5001c2();'use strict';const tesseract_1=require(_0xba7067(0x125)),errors=require(_0xba7067(0x123)),omnic=require('../../utils/omnic');module[_0xba7067(0x124)]=class GameServerCommand extends tesseract_1['Command']{constructor(){const _0xf146d6=_0xba7067;super(_0xf146d6(0x102),{'description':_0xf146d6(0x100),'triggers':[],'arguments':{'alias':{'host':['h'],'port':['p']},'string':[_0xf146d6(0x11b),_0xf146d6(0x10e)]},'scope':_0xf146d6(0x10d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['gameServer\x20GAME\x20--host\x20HOSTNAME\x20--port\x20PORT']}),this[_0xf146d6(0xff)]=async(_0x180409,_0x3ea527)=>{const _0xc24e7=_0xf146d6;if(!_0x3ea527['_']['length'])throw new errors['DiscordError'](errors[_0xc24e7(0x113)][_0xc24e7(0xfd)],this[_0xc24e7(0x103)]);const _0xd4c588=_0x3ea527['_']['join'](''),_0x23fed7=await omnic[_0xc24e7(0x11e)](_0xc24e7(0x114)+_0xd4c588+_0xc24e7(0x112)+_0x3ea527[_0xc24e7(0x11b)]+'/'+_0x3ea527['port']),_0x2a7676=await _0x23fed7[_0xc24e7(0x10f)]();await _0x180409['channel'][_0xc24e7(0x10a)]({'embed':{'color':tesseract_1[_0xc24e7(0x110)][_0xc24e7(0x12a)][_0xc24e7(0x109)],'author':{'name':'Game\x20Server\x20Stats'},'title':_0x2a7676[_0xc24e7(0x103)],'description':'','fields':[{'name':_0xc24e7(0x11d),'value':_0x2a7676[_0xc24e7(0x107)],'inline':!![]},{'name':_0xc24e7(0x11a),'value':(_0x2a7676['players']?_0x2a7676['players']['length']:0x0)+(_0x2a7676[_0xc24e7(0x119)]?_0x2a7676['bots']['length']:0x0)+_0xc24e7(0x121)+_0x2a7676[_0xc24e7(0x128)],'inline':!![]},{'name':'Connect','value':'`'+_0x2a7676[_0xc24e7(0x127)]+'`','inline':!![]}][_0xc24e7(0x106)](_0x2a7676[_0xc24e7(0x104)]?_0x2a7676[_0xc24e7(0x104)]['filter'](_0x1fd42a=>_0x1fd42a[_0xc24e7(0x103)])['sort']((_0x408100,_0x13038c)=>_0x13038c[_0xc24e7(0x111)]-_0x408100[_0xc24e7(0x111)])[_0xc24e7(0x120)]((_0x1bfa2a,_0x141816)=>_0x141816[_0xc24e7(0x118)]-_0x1bfa2a[_0xc24e7(0x118)])[_0xc24e7(0x107)](_0x2704df=>({'name':(_0x2704df[_0xc24e7(0x105)]?'['+_0x2704df[_0xc24e7(0x105)]+']':'')+_0x2704df[_0xc24e7(0x103)],'value':'```\x0aSCORE\x20'+(_0x2704df[_0xc24e7(0x118)]||0x0)+(_0x2704df[_0xc24e7(0x11f)]?_0xc24e7(0x117)+_0x2704df[_0xc24e7(0x11f)]+'ms':'')+(_0x2704df['time']?'\x09'+(_0x2704df[_0xc24e7(0x111)]/0x3c)['toFixed'](0x2)+_0xc24e7(0x108):'')+_0xc24e7(0x10c)}))[_0xc24e7(0x115)](0x0,0xa):[]),'footer':{'text':_0x2a7676[_0xc24e7(0x11f)]+'ms'+(_0x2a7676[_0xc24e7(0x10b)]?_0xc24e7(0x116):'')+_0xc24e7(0x129)}}});};}}; \ No newline at end of file +const a60_0xa03b=['team','players','/server/','map','join','```','name','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','test','connect','DiscordError','Constants','sort','INVALID_COMMAND_SYNTAX','It\x20allows\x20you\x20to\x20fetch\x20information\x20from\x20nearly\x20any\x20game\x20server\x20that\x20makes\x20its\x20status\x20publicly\x20available.','gameServer\x20GAME\x20--host\x20HOSTNAME\x20--port\x20PORT','../../utils/omnic','password','IRIS','slice','makeRequest','length','ping','\x09PING\x20','Command','Map','return\x20/\x22\x20+\x20this\x20+\x20\x22/','bots','port','BASTION_ERROR_TYPE','constructor','score','COLORS','```\x0aSCORE\x20','json','filter','host','/games/','gameServer','maxplayers','Game\x20Server\x20Stats','channel','guild','Connect','time'];(function(_0x4616fc,_0x390e6b){const _0xa03bec=function(_0x4bc92c){while(--_0x4bc92c){_0x4616fc['push'](_0x4616fc['shift']());}},_0x3885f8=function(){const _0x2594ef={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ed229,_0x146227,_0x25d168,_0x5a936b){_0x5a936b=_0x5a936b||{};let _0x501784=_0x146227+'='+_0x25d168,_0x47d76e=0x0;for(let _0x3ba1db=0x0,_0x5d5986=_0x1ed229['length'];_0x3ba1db<_0x5d5986;_0x3ba1db++){const _0x104a37=_0x1ed229[_0x3ba1db];_0x501784+=';\x20'+_0x104a37;const _0x1b772e=_0x1ed229[_0x104a37];_0x1ed229['push'](_0x1b772e),_0x5d5986=_0x1ed229['length'],_0x1b772e!==!![]&&(_0x501784+='='+_0x1b772e);}_0x5a936b['cookie']=_0x501784;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4a5e63,_0xb9cc){_0x4a5e63=_0x4a5e63||function(_0x362291){return _0x362291;};const _0x480f15=_0x4a5e63(new RegExp('(?:^|;\x20)'+_0xb9cc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe52165=function(_0x2a2936,_0x43ea50){_0x2a2936(++_0x43ea50);};return _0xe52165(_0xa03bec,_0x390e6b),_0x480f15?decodeURIComponent(_0x480f15[0x1]):undefined;}},_0x2f9569=function(){const _0x4bd02e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4bd02e['test'](_0x2594ef['removeCookie']['toString']());};_0x2594ef['updateCookie']=_0x2f9569;let _0x264f72='';const _0x183435=_0x2594ef['updateCookie']();if(!_0x183435)_0x2594ef['setCookie'](['*'],'counter',0x1);else _0x183435?_0x264f72=_0x2594ef['getCookie'](null,'counter'):_0x2594ef['removeCookie']();};_0x3885f8();}(a60_0xa03b,0x1af));const a60_0x3885=function(_0x4616fc,_0x390e6b){_0x4616fc=_0x4616fc-0x171;let _0xa03bec=a60_0xa03b[_0x4616fc];return _0xa03bec;};const a60_0x113850=a60_0x3885,a60_0x2f9569=function(){let _0x183435=!![];return function(_0x1ed229,_0x146227){const _0x25d168=_0x183435?function(){if(_0x146227){const _0x5a936b=_0x146227['apply'](_0x1ed229,arguments);return _0x146227=null,_0x5a936b;}}:function(){};return _0x183435=![],_0x25d168;};}(),a60_0x2594ef=a60_0x2f9569(this,function(){const _0x501784=function(){const _0x570045=a60_0x3885,_0x47d76e=_0x501784[_0x570045(0x17f)](_0x570045(0x17b))()[_0x570045(0x17f)](_0x570045(0x195));return!_0x47d76e[_0x570045(0x197)](a60_0x2594ef);};return _0x501784();});a60_0x2594ef();'use strict';const tesseract_1=require(a60_0x113850(0x196)),errors=require('../../utils/errors'),omnic=require(a60_0x113850(0x171));module['exports']=class GameServerCommand extends tesseract_1[a60_0x113850(0x179)]{constructor(){const _0x51cb84=a60_0x113850;super(_0x51cb84(0x187),{'description':_0x51cb84(0x19d),'triggers':[],'arguments':{'alias':{'host':['h'],'port':['p']},'string':[_0x51cb84(0x185),_0x51cb84(0x17d)]},'scope':_0x51cb84(0x18b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x51cb84(0x19e)]}),this['exec']=async(_0x3ba1db,_0x5d5986)=>{const _0x568df1=_0x51cb84;if(!_0x5d5986['_'][_0x568df1(0x176)])throw new errors[(_0x568df1(0x199))](errors[_0x568df1(0x17e)][_0x568df1(0x19c)],this[_0x568df1(0x194)]);const _0x104a37=_0x5d5986['_'][_0x568df1(0x192)](''),_0x1b772e=await omnic[_0x568df1(0x175)](_0x568df1(0x186)+_0x104a37+_0x568df1(0x190)+_0x5d5986[_0x568df1(0x185)]+'/'+_0x5d5986[_0x568df1(0x17d)]),_0x4a5e63=await _0x1b772e[_0x568df1(0x183)]();await _0x3ba1db[_0x568df1(0x18a)]['send']({'embed':{'color':tesseract_1[_0x568df1(0x19a)][_0x568df1(0x181)][_0x568df1(0x173)],'author':{'name':_0x568df1(0x189)},'title':_0x4a5e63[_0x568df1(0x194)],'description':'','fields':[{'name':_0x568df1(0x17a),'value':_0x4a5e63[_0x568df1(0x191)],'inline':!![]},{'name':'Players','value':(_0x4a5e63['players']?_0x4a5e63[_0x568df1(0x18f)][_0x568df1(0x176)]:0x0)+(_0x4a5e63[_0x568df1(0x17c)]?_0x4a5e63[_0x568df1(0x17c)][_0x568df1(0x176)]:0x0)+'\x20/\x20'+_0x4a5e63[_0x568df1(0x188)],'inline':!![]},{'name':_0x568df1(0x18c),'value':'`'+_0x4a5e63[_0x568df1(0x198)]+'`','inline':!![]}]['concat'](_0x4a5e63['players']?_0x4a5e63['players'][_0x568df1(0x184)](_0xb9cc=>_0xb9cc['name'])['sort']((_0x480f15,_0xe52165)=>_0xe52165[_0x568df1(0x18d)]-_0x480f15[_0x568df1(0x18d)])[_0x568df1(0x19b)]((_0x362291,_0x2a2936)=>_0x2a2936[_0x568df1(0x180)]-_0x362291['score'])[_0x568df1(0x191)](_0x43ea50=>({'name':(_0x43ea50[_0x568df1(0x18e)]?'['+_0x43ea50[_0x568df1(0x18e)]+']':'')+_0x43ea50[_0x568df1(0x194)],'value':_0x568df1(0x182)+(_0x43ea50[_0x568df1(0x180)]||0x0)+(_0x43ea50[_0x568df1(0x177)]?_0x568df1(0x178)+_0x43ea50[_0x568df1(0x177)]+'ms':'')+(_0x43ea50[_0x568df1(0x18d)]?'\x09'+(_0x43ea50[_0x568df1(0x18d)]/0x3c)['toFixed'](0x2)+'\x20minutes':'')+_0x568df1(0x193)}))[_0x568df1(0x174)](0x0,0xa):[]),'footer':{'text':_0x4a5e63['ping']+'ms'+(_0x4a5e63[_0x568df1(0x172)]?'\x20•\x20Password\x20Protected':'')+'\x20•\x20Powered\x20by\x20Omnic'}}});};}}; \ No newline at end of file diff --git a/commands/games/magic8ball.js b/commands/games/magic8ball.js index 38b8e9090..404f30419 100644 --- a/commands/games/magic8ball.js +++ b/commands/games/magic8ball.js @@ -1 +1 @@ -const a60_0x20d9=['Command','join','Signs\x20point\x20to\x20yes','exec','Better\x20not\x20tell\x20you\x20now','My\x20reply\x20is\x20no','tag','Yes','DiscordError','It\x27s\x20decidedly\x20so','Very\x20doubtful','COLORS','As\x20I\x20see\x20it,\x20yes','BASTION_ERROR_TYPE','Reply\x20hazy\x20try\x20again','INVALID_COMMAND_SYNTAX','Cannot\x20predict\x20now','Outlook\x20not\x20so\x20good','send','Most\x20likely','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','It\x27s\x20certain','constructor','test','random','\x20asked\x20\x27','Yes\x20definitely','Without\x20a\x20doubt','🎱\x20','Don\x27t\x20count\x20on\x20it','channel','magic8ball\x20QUESTION','8ball','exports','length','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','choices','Outlook\x20good','It\x20allows\x20you\x20to\x20get\x20answers\x20to\x20your\x20polar\x20questions\x20from\x20the\x20Magic\x208\x20Ball.','INDIGO','My\x20sources\x20say\x20no','author','Ask\x20again\x20later','Concentrate\x20and\x20ask\x20again','Magic\x208-ball\x20says...'];(function(_0x4c9be8,_0x2ca577){const _0x20d92e=function(_0x52a2c1){while(--_0x52a2c1){_0x4c9be8['push'](_0x4c9be8['shift']());}},_0x2310ff=function(){const _0x25a073={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2cf421,_0x48972a,_0x19d83c,_0x16ea08){_0x16ea08=_0x16ea08||{};let _0x2e578b=_0x48972a+'='+_0x19d83c,_0x585aa6=0x0;for(let _0x494fe0=0x0,_0x3a33b5=_0x2cf421['length'];_0x494fe0<_0x3a33b5;_0x494fe0++){const _0x56b754=_0x2cf421[_0x494fe0];_0x2e578b+=';\x20'+_0x56b754;const _0x419391=_0x2cf421[_0x56b754];_0x2cf421['push'](_0x419391),_0x3a33b5=_0x2cf421['length'],_0x419391!==!![]&&(_0x2e578b+='='+_0x419391);}_0x16ea08['cookie']=_0x2e578b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d6327,_0x30daad){_0x2d6327=_0x2d6327||function(_0x1f07d7){return _0x1f07d7;};const _0x586e7d=_0x2d6327(new RegExp('(?:^|;\x20)'+_0x30daad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4fffd2=function(_0x3e697a,_0x1c6c2f){_0x3e697a(++_0x1c6c2f);};return _0x4fffd2(_0x20d92e,_0x2ca577),_0x586e7d?decodeURIComponent(_0x586e7d[0x1]):undefined;}},_0x5ad78f=function(){const _0x39ba52=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39ba52['test'](_0x25a073['removeCookie']['toString']());};_0x25a073['updateCookie']=_0x5ad78f;let _0x265078='';const _0x52167d=_0x25a073['updateCookie']();if(!_0x52167d)_0x25a073['setCookie'](['*'],'counter',0x1);else _0x52167d?_0x265078=_0x25a073['getCookie'](null,'counter'):_0x25a073['removeCookie']();};_0x2310ff();}(a60_0x20d9,0x12d));const a60_0x2310=function(_0x4c9be8,_0x2ca577){_0x4c9be8=_0x4c9be8-0x1ed;let _0x20d92e=a60_0x20d9[_0x4c9be8];return _0x20d92e;};const _0x1aec3a=a60_0x2310,a60_0x5ad78f=function(){let _0x52167d=!![];return function(_0x2cf421,_0x48972a){const _0x19d83c=_0x52167d?function(){if(_0x48972a){const _0x16ea08=_0x48972a['apply'](_0x2cf421,arguments);return _0x48972a=null,_0x16ea08;}}:function(){};return _0x52167d=![],_0x19d83c;};}(),a60_0x25a073=a60_0x5ad78f(this,function(){const _0x2e578b=function(){const _0x16b860=a60_0x2310,_0x585aa6=_0x2e578b[_0x16b860(0x219)](_0x16b860(0x216))()['constructor'](_0x16b860(0x1f8));return!_0x585aa6[_0x16b860(0x21a)](a60_0x25a073);};return _0x2e578b();});a60_0x25a073();'use strict';const tesseract_1=require(_0x1aec3a(0x217)),errors=require('../../utils/errors');module[_0x1aec3a(0x1f6)]=class RockPaperScissorCommand extends tesseract_1[_0x1aec3a(0x202)]{constructor(){const _0x4a72ad=_0x1aec3a;super('magic8ball',{'description':_0x4a72ad(0x1fb),'triggers':[_0x4a72ad(0x1f5)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4a72ad(0x1f4)]}),this[_0x4a72ad(0x205)]=async(_0x494fe0,_0x3a33b5)=>{const _0x1806fe=_0x4a72ad;if(!_0x3a33b5['_']['length'])throw new errors[(_0x1806fe(0x20a))](errors[_0x1806fe(0x20f)][_0x1806fe(0x211)],this['name']);await _0x494fe0[_0x1806fe(0x1f3)][_0x1806fe(0x214)]({'embed':{'color':tesseract_1['Constants'][_0x1806fe(0x20d)][_0x1806fe(0x1fc)],'title':_0x1806fe(0x201),'description':_0x1806fe(0x1f1)+this['choices'][Math['floor'](Math[_0x1806fe(0x1ed)]()*this[_0x1806fe(0x1f9)][_0x1806fe(0x1f7)])],'footer':{'text':_0x494fe0[_0x1806fe(0x1fe)][_0x1806fe(0x208)]+_0x1806fe(0x1ee)+_0x3a33b5['_'][_0x1806fe(0x203)]('\x20')+'\x27.'}}});},this[_0x4a72ad(0x1f9)]=[_0x4a72ad(0x218),_0x4a72ad(0x20b),_0x4a72ad(0x1f0),_0x4a72ad(0x1ef),'You\x20may\x20rely\x20on\x20it',_0x4a72ad(0x20e),_0x4a72ad(0x215),_0x4a72ad(0x1fa),_0x4a72ad(0x209),_0x4a72ad(0x204),_0x4a72ad(0x210),_0x4a72ad(0x1ff),_0x4a72ad(0x206),_0x4a72ad(0x212),_0x4a72ad(0x200),_0x4a72ad(0x1f2),_0x4a72ad(0x207),_0x4a72ad(0x1fd),_0x4a72ad(0x213),_0x4a72ad(0x20c)];}}; \ No newline at end of file +const a61_0x96dd=['Concentrate\x20and\x20ask\x20again','Magic\x208-ball\x20says...','COLORS','Outlook\x20good','Command','Without\x20a\x20doubt','magic8ball\x20QUESTION','exec','My\x20reply\x20is\x20no','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Outlook\x20not\x20so\x20good','BASTION_ERROR_TYPE','exports','../../utils/errors','Don\x27t\x20count\x20on\x20it','name','apply','join','floor','🎱\x20','It\x20allows\x20you\x20to\x20get\x20answers\x20to\x20your\x20polar\x20questions\x20from\x20the\x20Magic\x208\x20Ball.','send','You\x20may\x20rely\x20on\x20it','Constants','\x20asked\x20\x27','guild','Yes\x20definitely','Cannot\x20predict\x20now','8ball','It\x27s\x20certain','test','random','Better\x20not\x20tell\x20you\x20now','It\x27s\x20decidedly\x20so','choices','Reply\x20hazy\x20try\x20again','length','tag','channel','Most\x20likely','My\x20sources\x20say\x20no','constructor'];(function(_0x1723b7,_0x187e56){const _0x96dd9b=function(_0x67ba1d){while(--_0x67ba1d){_0x1723b7['push'](_0x1723b7['shift']());}},_0x1c49ba=function(){const _0x43d003={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x383638,_0x435476,_0x49e887,_0x2da223){_0x2da223=_0x2da223||{};let _0x3bffd8=_0x435476+'='+_0x49e887,_0x21f999=0x0;for(let _0x3abdc2=0x0,_0x5de514=_0x383638['length'];_0x3abdc2<_0x5de514;_0x3abdc2++){const _0x123aca=_0x383638[_0x3abdc2];_0x3bffd8+=';\x20'+_0x123aca;const _0x3684af=_0x383638[_0x123aca];_0x383638['push'](_0x3684af),_0x5de514=_0x383638['length'],_0x3684af!==!![]&&(_0x3bffd8+='='+_0x3684af);}_0x2da223['cookie']=_0x3bffd8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x6f6b6f,_0x249091){_0x6f6b6f=_0x6f6b6f||function(_0x5c1f24){return _0x5c1f24;};const _0x2d18f4=_0x6f6b6f(new RegExp('(?:^|;\x20)'+_0x249091['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x36c15e=function(_0x4a4e1c,_0x1cfc85){_0x4a4e1c(++_0x1cfc85);};return _0x36c15e(_0x96dd9b,_0x187e56),_0x2d18f4?decodeURIComponent(_0x2d18f4[0x1]):undefined;}},_0x2164ee=function(){const _0x4f5dc7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4f5dc7['test'](_0x43d003['removeCookie']['toString']());};_0x43d003['updateCookie']=_0x2164ee;let _0x3d2594='';const _0x10e0db=_0x43d003['updateCookie']();if(!_0x10e0db)_0x43d003['setCookie'](['*'],'counter',0x1);else _0x10e0db?_0x3d2594=_0x43d003['getCookie'](null,'counter'):_0x43d003['removeCookie']();};_0x1c49ba();}(a61_0x96dd,0xe8));const a61_0x1c49=function(_0x1723b7,_0x187e56){_0x1723b7=_0x1723b7-0x1e9;let _0x96dd9b=a61_0x96dd[_0x1723b7];return _0x96dd9b;};const a61_0x348de2=a61_0x1c49,a61_0x2164ee=function(){let _0x10e0db=!![];return function(_0x383638,_0x435476){const _0x49e887=_0x10e0db?function(){const _0x4cd6f0=a61_0x1c49;if(_0x435476){const _0x2da223=_0x435476[_0x4cd6f0(0x20d)](_0x383638,arguments);return _0x435476=null,_0x2da223;}}:function(){};return _0x10e0db=![],_0x49e887;};}(),a61_0x43d003=a61_0x2164ee(this,function(){const _0x3bffd8=function(){const _0x14afd0=a61_0x1c49,_0x21f999=_0x3bffd8[_0x14afd0(0x1fc)](_0x14afd0(0x206))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x21f999[_0x14afd0(0x1f1)](a61_0x43d003);};return _0x3bffd8();});a61_0x43d003();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a61_0x348de2(0x20a));module[a61_0x348de2(0x209)]=class RockPaperScissorCommand extends tesseract_1[a61_0x348de2(0x201)]{constructor(){const _0x295ca3=a61_0x348de2;super('magic8ball',{'description':_0x295ca3(0x211),'triggers':[_0x295ca3(0x1ef)],'arguments':{},'scope':_0x295ca3(0x1ec),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x295ca3(0x203)]}),this[_0x295ca3(0x204)]=async(_0x3abdc2,_0x5de514)=>{const _0x9072c=_0x295ca3;if(!_0x5de514['_'][_0x9072c(0x1f7)])throw new errors['DiscordError'](errors[_0x9072c(0x208)]['INVALID_COMMAND_SYNTAX'],this[_0x9072c(0x20c)]);await _0x3abdc2[_0x9072c(0x1f9)][_0x9072c(0x212)]({'embed':{'color':tesseract_1[_0x9072c(0x1ea)][_0x9072c(0x1ff)]['INDIGO'],'title':_0x9072c(0x1fe),'description':_0x9072c(0x210)+this[_0x9072c(0x1f5)][Math[_0x9072c(0x20f)](Math[_0x9072c(0x1f2)]()*this['choices']['length'])],'footer':{'text':_0x3abdc2['author'][_0x9072c(0x1f8)]+_0x9072c(0x1eb)+_0x5de514['_'][_0x9072c(0x20e)]('\x20')+'\x27.'}}});},this['choices']=[_0x295ca3(0x1f0),_0x295ca3(0x1f4),_0x295ca3(0x202),_0x295ca3(0x1ed),_0x295ca3(0x1e9),'As\x20I\x20see\x20it,\x20yes',_0x295ca3(0x1fa),_0x295ca3(0x200),'Yes','Signs\x20point\x20to\x20yes',_0x295ca3(0x1f6),'Ask\x20again\x20later',_0x295ca3(0x1f3),_0x295ca3(0x1ee),_0x295ca3(0x1fd),_0x295ca3(0x20b),_0x295ca3(0x205),_0x295ca3(0x1fb),_0x295ca3(0x207),'Very\x20doubtful'];}}; \ No newline at end of file diff --git a/commands/games/numberNash.js b/commands/games/numberNash.js index 43db63bc9..eea61c453 100644 --- a/commands/games/numberNash.js +++ b/commands/games/numberNash.js @@ -1 +1 @@ -const a61_0x5457=['Game\x20Ended','values','find','test','only\x20one\x20submission\x20was','toString','min','DiscordError','Unfortunately,\x20','COLORS','filter','end','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','delete','apply','parseInt','send','deletable','content','catch','bot','createMessageCollector','Constants','Everyone\x20has\x20one\x20minute\x20to\x20post\x20a\x20natural\x20number\x20between\x201\x20and\x20100\x20in\x20the\x20channel.\x20After\x20the\x20timer\x20ends,\x20the\x20member\x20who\x20posted\x20the\x20smallest\x20number\x20that\x20wasn\x27t\x20also\x20posted\x20by\x20anyone\x20else\x20wins\x20the\x20game.','games','BASTION_ERROR_TYPE','Number\x20Nash','size','You\x20have\x20got\x201\x20minute\x20to\x20make\x20your\x20submission.','ERROR','no\x20submissions\x20were','constructor','RED','A\x20game\x20is\x20already\x20running\x20in\x20this\x20channel.\x20Wait\x20for\x20it\x20to\x20end\x20before\x20starting\x20another.','**.','channel','has','author','from','numberNash','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Number\x20Nash\x20is\x20a\x20multiplayer\x20game\x20of\x20numbers\x20played\x20with\x20multiple\x20members\x20of\x20the\x20server.\x20When\x20started,\x20everyone\x20can\x20post\x20a\x20natural\x20number\x20between\x201\x20and\x20100\x20in\x20the\x20channel.\x20The\x20game\x20ends\x20in\x20a\x20minute\x20and\x20the\x20member\x20who\x20posted\x20the\x20smallest\x20number\x20that\x20wasn\x27t\x20also\x20posted\x20by\x20anyone\x20else\x20wins.'];(function(_0x45c788,_0x578f64){const _0x5457bf=function(_0x1cd71f){while(--_0x1cd71f){_0x45c788['push'](_0x45c788['shift']());}},_0x1305f3=function(){const _0x52aad5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x434fe2,_0x14bf02,_0x3dc835,_0xd58fb0){_0xd58fb0=_0xd58fb0||{};let _0x1f3199=_0x14bf02+'='+_0x3dc835,_0x5af5fd=0x0;for(let _0x3dafb0=0x0,_0x2e45c1=_0x434fe2['length'];_0x3dafb0<_0x2e45c1;_0x3dafb0++){const _0x279fd8=_0x434fe2[_0x3dafb0];_0x1f3199+=';\x20'+_0x279fd8;const _0x38defb=_0x434fe2[_0x279fd8];_0x434fe2['push'](_0x38defb),_0x2e45c1=_0x434fe2['length'],_0x38defb!==!![]&&(_0x1f3199+='='+_0x38defb);}_0xd58fb0['cookie']=_0x1f3199;},'removeCookie':function(){return'dev';},'getCookie':function(_0x187056,_0x2e2630){_0x187056=_0x187056||function(_0x5e2af0){return _0x5e2af0;};const _0x22b74f=_0x187056(new RegExp('(?:^|;\x20)'+_0x2e2630['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2d6961=function(_0x4fb41a,_0x5517ed){_0x4fb41a(++_0x5517ed);};return _0x2d6961(_0x5457bf,_0x578f64),_0x22b74f?decodeURIComponent(_0x22b74f[0x1]):undefined;}},_0x3a979b=function(){const _0x5ad993=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ad993['test'](_0x52aad5['removeCookie']['toString']());};_0x52aad5['updateCookie']=_0x3a979b;let _0x41dc38='';const _0x14a53f=_0x52aad5['updateCookie']();if(!_0x14a53f)_0x52aad5['setCookie'](['*'],'counter',0x1);else _0x14a53f?_0x41dc38=_0x52aad5['getCookie'](null,'counter'):_0x52aad5['removeCookie']();};_0x1305f3();}(a61_0x5457,0x96));const a61_0x1305=function(_0x45c788,_0x578f64){_0x45c788=_0x45c788-0xdb;let _0x5457bf=a61_0x5457[_0x45c788];return _0x5457bf;};const _0x859513=a61_0x1305,a61_0x3a979b=function(){let _0x14a53f=!![];return function(_0x434fe2,_0x14bf02){const _0x3dc835=_0x14a53f?function(){const _0x23d809=a61_0x1305;if(_0x14bf02){const _0xd58fb0=_0x14bf02[_0x23d809(0x100)](_0x434fe2,arguments);return _0x14bf02=null,_0xd58fb0;}}:function(){};return _0x14a53f=![],_0x3dc835;};}(),a61_0x52aad5=a61_0x3a979b(this,function(){const _0x1f3199=function(){const _0x51e22f=a61_0x1305,_0x5af5fd=_0x1f3199[_0x51e22f(0xe6)](_0x51e22f(0xef))()[_0x51e22f(0xe6)](_0x51e22f(0xfe));return!_0x5af5fd[_0x51e22f(0xf4)](a61_0x52aad5);};return _0x1f3199();});a61_0x52aad5();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module[_0x859513(0xfd)]=class NumberNashCommand extends tesseract_1['Command']{constructor(){const _0x124a16=_0x859513;super(_0x124a16(0xee),{'description':_0x124a16(0xf0),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x3dafb0=>{const _0x5e006e=_0x124a16;if(this[_0x5e006e(0xdf)][_0x5e006e(0xeb)](_0x3dafb0[_0x5e006e(0xea)]['id']))throw new errors[(_0x5e006e(0xf8))](errors[_0x5e006e(0xe0)][_0x5e006e(0xe4)],_0x5e006e(0xe8));await _0x3dafb0['channel'][_0x5e006e(0x102)]({'embed':{'color':tesseract_1[_0x5e006e(0xdd)][_0x5e006e(0xfa)]['INDIGO'],'title':_0x5e006e(0xe1),'description':_0x5e006e(0xde),'footer':{'text':_0x5e006e(0xe3)}}}),this[_0x5e006e(0xdf)]['set'](_0x3dafb0[_0x5e006e(0xea)]['id'],!![]);const _0x2e45c1=_0x3dafb0[_0x5e006e(0xea)][_0x5e006e(0xdc)](_0x279fd8=>!_0x279fd8[_0x5e006e(0xec)][_0x5e006e(0xdb)]&&Number[_0x5e006e(0x101)](_0x279fd8[_0x5e006e(0x104)])>0x0&&Number[_0x5e006e(0x101)](_0x279fd8[_0x5e006e(0x104)])<=0x64,{'time':0xea60});_0x2e45c1['on']('collect',_0x38defb=>{const _0x12bc0d=_0x5e006e;_0x38defb[_0x12bc0d(0x103)]&&_0x38defb['delete']()[_0x12bc0d(0x105)](()=>{});}),_0x2e45c1['on'](_0x5e006e(0xfc),_0x187056=>{const _0x1b5929=_0x5e006e;if(_0x187056[_0x1b5929(0xe2)]>0x1){const _0x2e2630=Array[_0x1b5929(0xed)](_0x187056['mapValues'](_0x4fb41a=>Number['parseInt'](_0x4fb41a['content']))[_0x1b5929(0xf2)]()),_0x22b74f=_0x2e2630[_0x1b5929(0xfb)](_0x5517ed=>_0x2e2630['indexOf'](_0x5517ed)===_0x2e2630['lastIndexOf'](_0x5517ed)),_0x2d6961=Math[_0x1b5929(0xf7)](..._0x22b74f),_0x5e2af0=_0x187056[_0x1b5929(0xf3)](_0x5ad993=>_0x5ad993[_0x1b5929(0x104)]===_0x2d6961[_0x1b5929(0xf6)]());_0x5e2af0&&_0x3dafb0['channel'][_0x1b5929(0x102)]({'embed':{'color':tesseract_1[_0x1b5929(0xdd)][_0x1b5929(0xfa)]['SOMEWHAT_DARK'],'author':{'name':_0x1b5929(0xe1)},'title':_0x1b5929(0xf1),'description':'**'+_0x5e2af0[_0x1b5929(0xec)]['username']+'**\x20made\x20the\x20winning\x20submission\x20**'+_0x2d6961+_0x1b5929(0xe9)}})[_0x1b5929(0x105)](()=>{});}else _0x3dafb0[_0x1b5929(0xea)][_0x1b5929(0x102)]({'embed':{'color':tesseract_1['Constants'][_0x1b5929(0xfa)][_0x1b5929(0xe7)],'author':{'name':'Number\x20Nash'},'title':_0x1b5929(0xf1),'description':_0x1b5929(0xf9)+(_0x187056[_0x1b5929(0xe2)]===0x0?_0x1b5929(0xe5):_0x1b5929(0xf5))+'\x20made.'}})[_0x1b5929(0x105)](()=>{});this['games'][_0x1b5929(0xff)](_0x3dafb0['channel']['id']);});},this[_0x124a16(0xdf)]=new Map();}}; \ No newline at end of file +const a62_0x3701=['You\x20have\x20got\x201\x20minute\x20to\x20make\x20your\x20submission.','channel','find','createMessageCollector','Command','parseInt','Number\x20Nash\x20is\x20a\x20multiplayer\x20game\x20of\x20numbers\x20played\x20with\x20multiple\x20members\x20of\x20the\x20server.\x20When\x20started,\x20everyone\x20can\x20post\x20a\x20natural\x20number\x20between\x201\x20and\x20100\x20in\x20the\x20channel.\x20The\x20game\x20ends\x20in\x20a\x20minute\x20and\x20the\x20member\x20who\x20posted\x20the\x20smallest\x20number\x20that\x20wasn\x27t\x20also\x20posted\x20by\x20anyone\x20else\x20wins.','Everyone\x20has\x20one\x20minute\x20to\x20post\x20a\x20natural\x20number\x20between\x201\x20and\x20100\x20in\x20the\x20channel.\x20After\x20the\x20timer\x20ends,\x20the\x20member\x20who\x20posted\x20the\x20smallest\x20number\x20that\x20wasn\x27t\x20also\x20posted\x20by\x20anyone\x20else\x20wins\x20the\x20game.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','content','size','min','DiscordError','COLORS','set','constructor','exec','games','send','mapValues','A\x20game\x20is\x20already\x20running\x20in\x20this\x20channel.\x20Wait\x20for\x20it\x20to\x20end\x20before\x20starting\x20another.','only\x20one\x20submission\x20was','username','end','ERROR','catch','author','values','**\x20made\x20the\x20winning\x20submission\x20**','apply','lastIndexOf','guild','deletable','Number\x20Nash','**.','delete','SOMEWHAT_DARK','test','Constants','Unfortunately,\x20','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','from','Game\x20Ended','INDIGO','RED','has','exports'];(function(_0x2247ef,_0x49ff7e){const _0x370127=function(_0x485eb8){while(--_0x485eb8){_0x2247ef['push'](_0x2247ef['shift']());}},_0x1db16a=function(){const _0x2a522f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x42f88d,_0x18fec4,_0x5db520,_0x85b78c){_0x85b78c=_0x85b78c||{};let _0x267a2e=_0x18fec4+'='+_0x5db520,_0xc89bd9=0x0;for(let _0x2771ec=0x0,_0x47e9d1=_0x42f88d['length'];_0x2771ec<_0x47e9d1;_0x2771ec++){const _0x252ec5=_0x42f88d[_0x2771ec];_0x267a2e+=';\x20'+_0x252ec5;const _0x5db29c=_0x42f88d[_0x252ec5];_0x42f88d['push'](_0x5db29c),_0x47e9d1=_0x42f88d['length'],_0x5db29c!==!![]&&(_0x267a2e+='='+_0x5db29c);}_0x85b78c['cookie']=_0x267a2e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ed10e,_0x1451d8){_0x4ed10e=_0x4ed10e||function(_0x1552a6){return _0x1552a6;};const _0x599795=_0x4ed10e(new RegExp('(?:^|;\x20)'+_0x1451d8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x534699=function(_0xa8204d,_0x294769){_0xa8204d(++_0x294769);};return _0x534699(_0x370127,_0x49ff7e),_0x599795?decodeURIComponent(_0x599795[0x1]):undefined;}},_0x5b467d=function(){const _0xb01f82=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xb01f82['test'](_0x2a522f['removeCookie']['toString']());};_0x2a522f['updateCookie']=_0x5b467d;let _0xdbe16b='';const _0x452afa=_0x2a522f['updateCookie']();if(!_0x452afa)_0x2a522f['setCookie'](['*'],'counter',0x1);else _0x452afa?_0xdbe16b=_0x2a522f['getCookie'](null,'counter'):_0x2a522f['removeCookie']();};_0x1db16a();}(a62_0x3701,0x86));const a62_0x1db1=function(_0x2247ef,_0x49ff7e){_0x2247ef=_0x2247ef-0x1ee;let _0x370127=a62_0x3701[_0x2247ef];return _0x370127;};const a62_0x1e9801=a62_0x1db1,a62_0x5b467d=function(){let _0x452afa=!![];return function(_0x42f88d,_0x18fec4){const _0x5db520=_0x452afa?function(){const _0x4c2617=a62_0x1db1;if(_0x18fec4){const _0x85b78c=_0x18fec4[_0x4c2617(0x215)](_0x42f88d,arguments);return _0x18fec4=null,_0x85b78c;}}:function(){};return _0x452afa=![],_0x5db520;};}(),a62_0x2a522f=a62_0x5b467d(this,function(){const _0x267a2e=function(){const _0xdb21b7=a62_0x1db1,_0xc89bd9=_0x267a2e['constructor'](_0xdb21b7(0x200))()[_0xdb21b7(0x207)](_0xdb21b7(0x1f1));return!_0xc89bd9[_0xdb21b7(0x21d)](a62_0x2a522f);};return _0x267a2e();});a62_0x2a522f();'use strict';const tesseract_1=require(a62_0x1e9801(0x1f0)),errors=require('../../utils/errors');module[a62_0x1e9801(0x1f7)]=class NumberNashCommand extends tesseract_1[a62_0x1e9801(0x1fc)]{constructor(){const _0x4bc236=a62_0x1e9801;super('numberNash',{'description':_0x4bc236(0x1fe),'triggers':[],'arguments':{},'scope':_0x4bc236(0x217),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x4bc236(0x208)]=async _0x2771ec=>{const _0x5e65ed=_0x4bc236;if(this[_0x5e65ed(0x209)][_0x5e65ed(0x1f6)](_0x2771ec[_0x5e65ed(0x1f9)]['id']))throw new errors[(_0x5e65ed(0x204))](errors['BASTION_ERROR_TYPE'][_0x5e65ed(0x210)],_0x5e65ed(0x20c));await _0x2771ec[_0x5e65ed(0x1f9)][_0x5e65ed(0x20a)]({'embed':{'color':tesseract_1[_0x5e65ed(0x1ee)][_0x5e65ed(0x205)][_0x5e65ed(0x1f4)],'title':'Number\x20Nash','description':_0x5e65ed(0x1ff),'footer':{'text':_0x5e65ed(0x1f8)}}}),this[_0x5e65ed(0x209)][_0x5e65ed(0x206)](_0x2771ec[_0x5e65ed(0x1f9)]['id'],!![]);const _0x47e9d1=_0x2771ec[_0x5e65ed(0x1f9)][_0x5e65ed(0x1fb)](_0x252ec5=>!_0x252ec5['author']['bot']&&Number[_0x5e65ed(0x1fd)](_0x252ec5[_0x5e65ed(0x201)])>0x0&&Number[_0x5e65ed(0x1fd)](_0x252ec5['content'])<=0x64,{'time':0xea60});_0x47e9d1['on']('collect',_0x5db29c=>{const _0x2ebd5e=_0x5e65ed;_0x5db29c[_0x2ebd5e(0x218)]&&_0x5db29c['delete']()['catch'](()=>{});}),_0x47e9d1['on'](_0x5e65ed(0x20f),_0x4ed10e=>{const _0x5ef9a0=_0x5e65ed;if(_0x4ed10e[_0x5ef9a0(0x202)]>0x1){const _0x1451d8=Array[_0x5ef9a0(0x1f2)](_0x4ed10e[_0x5ef9a0(0x20b)](_0xa8204d=>Number[_0x5ef9a0(0x1fd)](_0xa8204d[_0x5ef9a0(0x201)]))[_0x5ef9a0(0x213)]()),_0x599795=_0x1451d8['filter'](_0x294769=>_0x1451d8['indexOf'](_0x294769)===_0x1451d8[_0x5ef9a0(0x216)](_0x294769)),_0x534699=Math[_0x5ef9a0(0x203)](..._0x599795),_0x1552a6=_0x4ed10e[_0x5ef9a0(0x1fa)](_0xb01f82=>_0xb01f82['content']===_0x534699['toString']());_0x1552a6&&_0x2771ec[_0x5ef9a0(0x1f9)][_0x5ef9a0(0x20a)]({'embed':{'color':tesseract_1[_0x5ef9a0(0x1ee)]['COLORS'][_0x5ef9a0(0x21c)],'author':{'name':_0x5ef9a0(0x219)},'title':'Game\x20Ended','description':'**'+_0x1552a6[_0x5ef9a0(0x212)][_0x5ef9a0(0x20e)]+_0x5ef9a0(0x214)+_0x534699+_0x5ef9a0(0x21a)}})[_0x5ef9a0(0x211)](()=>{});}else _0x2771ec['channel'][_0x5ef9a0(0x20a)]({'embed':{'color':tesseract_1['Constants'][_0x5ef9a0(0x205)][_0x5ef9a0(0x1f5)],'author':{'name':_0x5ef9a0(0x219)},'title':_0x5ef9a0(0x1f3),'description':_0x5ef9a0(0x1ef)+(_0x4ed10e[_0x5ef9a0(0x202)]===0x0?'no\x20submissions\x20were':_0x5ef9a0(0x20d))+'\x20made.'}})[_0x5ef9a0(0x211)](()=>{});this[_0x5ef9a0(0x209)][_0x5ef9a0(0x21b)](_0x2771ec['channel']['id']);});},this['games']=new Map();}}; \ No newline at end of file diff --git a/commands/games/roll.js b/commands/games/roll.js index d61212641..c2365e7d1 100644 --- a/commands/games/roll.js +++ b/commands/games/roll.js @@ -1 +1 @@ -const a62_0x243d=['member','filter','applyModifier','roll\x20NOTATION','bet','exec','gambling','Won\x20the\x20bet\x20in\x20Roll.','\x20/\x20','toLowerCase','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','modifierPattern','debit','Lost\x20the\x20bet\x20in\x20Roll.','It\x20allows\x20you\x20to\x20roll\x20dice\x20and\x20see\x20the\x20result.\x20It\x20supports\x20dice\x20notation.\x20It\x20also\x20supports\x20gambling.','parseInt','guild','IRIS','applyModifiers','multiplier','Command','../../utils/numbers','send','match','pattern','length','document','@bastion/tesseract','join','push','enabled','roll\x20--bet\x20RESULT','Constants','test','COLORS','roll'];(function(_0x523805,_0x40050c){const _0x243df0=function(_0x5ab9a4){while(--_0x5ab9a4){_0x523805['push'](_0x523805['shift']());}},_0x19eb4c=function(){const _0x17f2c9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x589016,_0x3ad661,_0x1c33d3,_0x3a48fb){_0x3a48fb=_0x3a48fb||{};let _0x207c00=_0x3ad661+'='+_0x1c33d3,_0x22c11e=0x0;for(let _0x4463c7=0x0,_0x5d4912=_0x589016['length'];_0x4463c7<_0x5d4912;_0x4463c7++){const _0x208bf5=_0x589016[_0x4463c7];_0x207c00+=';\x20'+_0x208bf5;const _0x55c061=_0x589016[_0x208bf5];_0x589016['push'](_0x55c061),_0x5d4912=_0x589016['length'],_0x55c061!==!![]&&(_0x207c00+='='+_0x55c061);}_0x3a48fb['cookie']=_0x207c00;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ac1eb,_0x5c50b4){_0x4ac1eb=_0x4ac1eb||function(_0x200401){return _0x200401;};const _0x1cdd90=_0x4ac1eb(new RegExp('(?:^|;\x20)'+_0x5c50b4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x266356=function(_0x3ff5cd,_0x9ac43a){_0x3ff5cd(++_0x9ac43a);};return _0x266356(_0x243df0,_0x40050c),_0x1cdd90?decodeURIComponent(_0x1cdd90[0x1]):undefined;}},_0x39341f=function(){const _0x1d827a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1d827a['test'](_0x17f2c9['removeCookie']['toString']());};_0x17f2c9['updateCookie']=_0x39341f;let _0x251646='';const _0x5072a6=_0x17f2c9['updateCookie']();if(!_0x5072a6)_0x17f2c9['setCookie'](['*'],'counter',0x1);else _0x5072a6?_0x251646=_0x17f2c9['getCookie'](null,'counter'):_0x17f2c9['removeCookie']();};_0x19eb4c();}(a62_0x243d,0x176));const a62_0x19eb=function(_0x523805,_0x40050c){_0x523805=_0x523805-0xf9;let _0x243df0=a62_0x243d[_0x523805];return _0x243df0;};const _0x2c68c6=a62_0x19eb,a62_0x39341f=function(){let _0x5072a6=!![];return function(_0x589016,_0x3ad661){const _0x1c33d3=_0x5072a6?function(){if(_0x3ad661){const _0x3a48fb=_0x3ad661['apply'](_0x589016,arguments);return _0x3ad661=null,_0x3a48fb;}}:function(){};return _0x5072a6=![],_0x1c33d3;};}(),a62_0x17f2c9=a62_0x39341f(this,function(){const _0x207c00=function(){const _0x41cbef=a62_0x19eb,_0x22c11e=_0x207c00[_0x41cbef(0x109)](_0x41cbef(0x10a))()[_0x41cbef(0x109)](_0x41cbef(0x10b));return!_0x22c11e[_0x41cbef(0xfc)](a62_0x17f2c9);};return _0x207c00();});a62_0x17f2c9();'use strict';const tesseract_1=require(_0x2c68c6(0x11c)),numbers=require(_0x2c68c6(0x116));module['exports']=class RollCommand extends tesseract_1[_0x2c68c6(0x115)]{constructor(){const _0x2aa1f1=_0x2c68c6;super(_0x2aa1f1(0xfe),{'description':_0x2aa1f1(0x10f),'triggers':[],'arguments':{'number':[_0x2aa1f1(0x103)]},'scope':_0x2aa1f1(0x111),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2aa1f1(0xfe),_0x2aa1f1(0x102),_0x2aa1f1(0xfa)]}),this['applyModifier']=(_0x4463c7,_0x5d4912)=>{const _0xd2f336=_0x2aa1f1,[,_0x208bf5,_0x55c061]=_0x5d4912[_0xd2f336(0x118)](this['modifierPattern']);switch(_0x208bf5[_0xd2f336(0x108)]()){case'+':return _0x4463c7+Number['parseInt'](_0x55c061);case'-':return _0x4463c7-Number[_0xd2f336(0x110)](_0x55c061);case'/':return _0x4463c7/Number[_0xd2f336(0x110)](_0x55c061);case'*':case'x':return _0x4463c7*Number[_0xd2f336(0x110)](_0x55c061);default:return _0x4463c7;}},this[_0x2aa1f1(0x113)]=(_0x4ac1eb,_0x5c50b4)=>{const _0x477af7=_0x2aa1f1;for(const _0x1cdd90 of _0x5c50b4){_0x4ac1eb=this[_0x477af7(0x101)](_0x4ac1eb,_0x1cdd90);}return _0x4ac1eb;},this[_0x2aa1f1(0x104)]=async(_0x266356,_0x200401)=>{const _0x4f41c0=_0x2aa1f1,[,_0x3ff5cd,_0x9ac43a,..._0x1d827a]=_0x200401['_'][_0x4f41c0(0x11d)]('')[_0x4f41c0(0x118)](this['pattern']),_0x3b2552=_0x3ff5cd?Number['parseInt'](_0x3ff5cd):0x1,_0x7bda0b=_0x9ac43a?Number[_0x4f41c0(0x110)](_0x9ac43a):0x6,_0x2358d7=[];for(let _0x1531b3=0x0;_0x1531b3<_0x3b2552;_0x1531b3++){_0x2358d7[_0x4f41c0(0x11e)](numbers['getRandomInt'](0x1,_0x7bda0b));}let _0x5492e3=_0x2358d7['reduce']((_0x3be863,_0x66c692)=>_0x3be863+_0x66c692,0x0);const _0x4029a5=[];_0x1d827a[_0x4f41c0(0x100)](_0x198db1=>_0x198db1)[_0x4f41c0(0x11a)]&&(_0x4029a5[_0x4f41c0(0x11e)]({'name':'Modifiers','value':_0x1d827a[_0x4f41c0(0x11d)]('\x20'),'inline':!![]}),_0x5492e3=this[_0x4f41c0(0x113)](_0x5492e3,_0x1d827a[_0x4f41c0(0x100)](_0x138d31=>_0x138d31)));if(_0x200401[_0x4f41c0(0x103)]){if(_0x266356[_0x4f41c0(0x111)][_0x4f41c0(0x11b)]['gambling']&&_0x266356[_0x4f41c0(0x111)][_0x4f41c0(0x11b)][_0x4f41c0(0x105)][_0x4f41c0(0xf9)])_0x5492e3===_0x200401[_0x4f41c0(0x103)]?_0x266356['member']['credit'](0x64*(_0x266356[_0x4f41c0(0x111)][_0x4f41c0(0x11b)][_0x4f41c0(0x105)][_0x4f41c0(0x114)]||0x1),_0x4f41c0(0x106)):_0x266356[_0x4f41c0(0xff)][_0x4f41c0(0x10d)](0x64*(_0x266356[_0x4f41c0(0x111)]['document'][_0x4f41c0(0x105)]['multiplier']||0x1),_0x4f41c0(0x10e));else throw new Error('GAMBLING_DISABLED');}_0x4029a5[_0x4f41c0(0x11e)]({'name':'Result','value':_0x5492e3,'inline':!![]}),await _0x266356['channel'][_0x4f41c0(0x117)]({'embed':{'color':tesseract_1[_0x4f41c0(0xfb)][_0x4f41c0(0xfd)][_0x4f41c0(0x112)],'title':'Dice\x20Roll','description':_0x2358d7['join'](_0x4f41c0(0x107)),'fields':_0x4029a5}});},this[_0x2aa1f1(0x119)]=/^(\d+)?(?:d(\d*))?([-+x*/]\d+)?([-+x*/]\d+)?$/i,this[_0x2aa1f1(0x10c)]=/^([-+x*/])(\d+)$/i;}}; \ No newline at end of file +const a63_0x500e=['Dice\x20Roll','apply','match','exports','enabled','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','length','\x20/\x20','channel','test','join','member','pattern','It\x20allows\x20you\x20to\x20roll\x20dice\x20and\x20see\x20the\x20result.\x20It\x20supports\x20dice\x20notation.\x20It\x20also\x20supports\x20gambling.','IRIS','exec','toLowerCase','gambling','roll','bet','filter','Modifiers','debit','roll\x20--bet\x20RESULT','../../utils/numbers','modifierPattern','credit','parseInt','getRandomInt','Lost\x20the\x20bet\x20in\x20Roll.','reduce','GAMBLING_DISABLED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','roll\x20NOTATION','document','applyModifiers','constructor','@bastion/tesseract','push','multiplier','Result'];(function(_0x1ca50c,_0x26f0f4){const _0x500ebe=function(_0x1f7815){while(--_0x1f7815){_0x1ca50c['push'](_0x1ca50c['shift']());}},_0x5965aa=function(){const _0x3d79ce={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xfb5301,_0x12b8ce,_0xd4cf3e,_0x284d3c){_0x284d3c=_0x284d3c||{};let _0x4bf451=_0x12b8ce+'='+_0xd4cf3e,_0x362a4d=0x0;for(let _0x2e3613=0x0,_0x2fc4c2=_0xfb5301['length'];_0x2e3613<_0x2fc4c2;_0x2e3613++){const _0x54a673=_0xfb5301[_0x2e3613];_0x4bf451+=';\x20'+_0x54a673;const _0x2038a1=_0xfb5301[_0x54a673];_0xfb5301['push'](_0x2038a1),_0x2fc4c2=_0xfb5301['length'],_0x2038a1!==!![]&&(_0x4bf451+='='+_0x2038a1);}_0x284d3c['cookie']=_0x4bf451;},'removeCookie':function(){return'dev';},'getCookie':function(_0x44405a,_0x2acfb9){_0x44405a=_0x44405a||function(_0x5b90c6){return _0x5b90c6;};const _0x45e93f=_0x44405a(new RegExp('(?:^|;\x20)'+_0x2acfb9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1c482b=function(_0x48aed1,_0x530bd9){_0x48aed1(++_0x530bd9);};return _0x1c482b(_0x500ebe,_0x26f0f4),_0x45e93f?decodeURIComponent(_0x45e93f[0x1]):undefined;}},_0x5a1113=function(){const _0x12a62e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12a62e['test'](_0x3d79ce['removeCookie']['toString']());};_0x3d79ce['updateCookie']=_0x5a1113;let _0x328650='';const _0x2b6406=_0x3d79ce['updateCookie']();if(!_0x2b6406)_0x3d79ce['setCookie'](['*'],'counter',0x1);else _0x2b6406?_0x328650=_0x3d79ce['getCookie'](null,'counter'):_0x3d79ce['removeCookie']();};_0x5965aa();}(a63_0x500e,0x123));const a63_0x5965=function(_0x1ca50c,_0x26f0f4){_0x1ca50c=_0x1ca50c-0x1b1;let _0x500ebe=a63_0x500e[_0x1ca50c];return _0x500ebe;};const a63_0x4a8b7a=a63_0x5965,a63_0x5a1113=function(){let _0x2b6406=!![];return function(_0xfb5301,_0x12b8ce){const _0xd4cf3e=_0x2b6406?function(){const _0x35e985=a63_0x5965;if(_0x12b8ce){const _0x284d3c=_0x12b8ce[_0x35e985(0x1b5)](_0xfb5301,arguments);return _0x12b8ce=null,_0x284d3c;}}:function(){};return _0x2b6406=![],_0xd4cf3e;};}(),a63_0x3d79ce=a63_0x5a1113(this,function(){const _0x4bf451=function(){const _0x349263=a63_0x5965,_0x362a4d=_0x4bf451[_0x349263(0x1d9)](_0x349263(0x1b9))()['constructor'](_0x349263(0x1d5));return!_0x362a4d[_0x349263(0x1be)](a63_0x3d79ce);};return _0x4bf451();});a63_0x3d79ce();'use strict';const tesseract_1=require(a63_0x4a8b7a(0x1da)),numbers=require(a63_0x4a8b7a(0x1cd));module[a63_0x4a8b7a(0x1b7)]=class RollCommand extends tesseract_1['Command']{constructor(){const _0x378f8f=a63_0x4a8b7a;super(_0x378f8f(0x1c7),{'description':_0x378f8f(0x1c2),'triggers':[],'arguments':{'number':[_0x378f8f(0x1c8)]},'scope':_0x378f8f(0x1ba),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x378f8f(0x1c7),_0x378f8f(0x1d6),_0x378f8f(0x1cc)]}),this['applyModifier']=(_0x2e3613,_0x2fc4c2)=>{const _0x3f0f6e=_0x378f8f,[,_0x54a673,_0x2038a1]=_0x2fc4c2[_0x3f0f6e(0x1b6)](this[_0x3f0f6e(0x1ce)]);switch(_0x54a673[_0x3f0f6e(0x1c5)]()){case'+':return _0x2e3613+Number[_0x3f0f6e(0x1d0)](_0x2038a1);case'-':return _0x2e3613-Number[_0x3f0f6e(0x1d0)](_0x2038a1);case'/':return _0x2e3613/Number[_0x3f0f6e(0x1d0)](_0x2038a1);case'*':case'x':return _0x2e3613*Number[_0x3f0f6e(0x1d0)](_0x2038a1);default:return _0x2e3613;}},this[_0x378f8f(0x1d8)]=(_0x44405a,_0x2acfb9)=>{for(const _0x45e93f of _0x2acfb9){_0x44405a=this['applyModifier'](_0x44405a,_0x45e93f);}return _0x44405a;},this[_0x378f8f(0x1c4)]=async(_0x1c482b,_0x5b90c6)=>{const _0x3e6a2e=_0x378f8f,[,_0x48aed1,_0x530bd9,..._0x12a62e]=_0x5b90c6['_']['join']('')[_0x3e6a2e(0x1b6)](this[_0x3e6a2e(0x1c1)]),_0x10b1a8=_0x48aed1?Number['parseInt'](_0x48aed1):0x1,_0x598912=_0x530bd9?Number[_0x3e6a2e(0x1d0)](_0x530bd9):0x6,_0x18db7f=[];for(let _0x26b151=0x0;_0x26b151<_0x10b1a8;_0x26b151++){_0x18db7f[_0x3e6a2e(0x1b1)](numbers[_0x3e6a2e(0x1d1)](0x1,_0x598912));}let _0x30df39=_0x18db7f[_0x3e6a2e(0x1d3)]((_0x3a045d,_0x4dec77)=>_0x3a045d+_0x4dec77,0x0);const _0x491521=[];_0x12a62e[_0x3e6a2e(0x1c9)](_0x867b21=>_0x867b21)[_0x3e6a2e(0x1bb)]&&(_0x491521[_0x3e6a2e(0x1b1)]({'name':_0x3e6a2e(0x1ca),'value':_0x12a62e[_0x3e6a2e(0x1bf)]('\x20'),'inline':!![]}),_0x30df39=this[_0x3e6a2e(0x1d8)](_0x30df39,_0x12a62e[_0x3e6a2e(0x1c9)](_0x2b9cbf=>_0x2b9cbf)));if(_0x5b90c6[_0x3e6a2e(0x1c8)]){if(_0x1c482b[_0x3e6a2e(0x1ba)][_0x3e6a2e(0x1d7)][_0x3e6a2e(0x1c6)]&&_0x1c482b[_0x3e6a2e(0x1ba)][_0x3e6a2e(0x1d7)][_0x3e6a2e(0x1c6)][_0x3e6a2e(0x1b8)])_0x30df39===_0x5b90c6[_0x3e6a2e(0x1c8)]?_0x1c482b['member'][_0x3e6a2e(0x1cf)](0x64*(_0x1c482b['guild'][_0x3e6a2e(0x1d7)][_0x3e6a2e(0x1c6)]['multiplier']||0x1),'Won\x20the\x20bet\x20in\x20Roll.'):_0x1c482b[_0x3e6a2e(0x1c0)][_0x3e6a2e(0x1cb)](0x64*(_0x1c482b[_0x3e6a2e(0x1ba)]['document'][_0x3e6a2e(0x1c6)][_0x3e6a2e(0x1b2)]||0x1),_0x3e6a2e(0x1d2));else throw new Error(_0x3e6a2e(0x1d4));}_0x491521[_0x3e6a2e(0x1b1)]({'name':_0x3e6a2e(0x1b3),'value':_0x30df39,'inline':!![]}),await _0x1c482b[_0x3e6a2e(0x1bd)]['send']({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x3e6a2e(0x1c3)],'title':_0x3e6a2e(0x1b4),'description':_0x18db7f['join'](_0x3e6a2e(0x1bc)),'fields':_0x491521}});},this[_0x378f8f(0x1c1)]=/^(\d+)?(?:d(\d*))?([-+x*/]\d+)?([-+x*/]\d+)?$/i,this[_0x378f8f(0x1ce)]=/^([-+x*/])(\d+)$/i;}}; \ No newline at end of file diff --git a/commands/games/rps.js b/commands/games/rps.js index 9ce2289ce..a3f4ad44d 100644 --- a/commands/games/rps.js +++ b/commands/games/rps.js @@ -1 +1 @@ -const a63_0x473b=['PAPER','constructor','rps\x20CHOICE','You\x20win,\x20human.','exports','includes','I\x20chose\x20**','test','getDate','It\x20allows\x20you\x20to\x20play\x20Rock\x20Paper\x20Scissor\x20with\x20Bastion.\x20It\x20also\x20supports\x20gambling.','Damn!\x20It\x27s\x20a\x20draw,\x20mate.','bet','COLORS','member','Won\x20the\x20bet\x20in\x20RPS.','send','apply','GAMBLING_DISABLED','INVALID_COMMAND_SYNTAX','I\x20understand\x20that\x20scissors\x20can\x20beat\x20paper.\x20And\x20I\x20get\x20how\x20rock\x20can\x20beat\x20scissors.\x20But\x20there\x27s\x20no\x20way\x20paper\x20can\x20beat\x20rock.\x20Paper\x20is\x20supposed\x20to\x20magically\x20wrap\x20around\x20rock\x20leaving\x20it\x20immobile?\x20Why\x20can\x27t\x20paper\x20do\x20this\x20to\x20scissors?\x20Forget\x20scissors,\x20why\x20can\x27t\x20paper\x20do\x20this\x20to\x20people?\x20Why\x20aren\x27t\x20sheets\x20of\x20notebook\x20constantly\x20suffocating\x20students\x20as\x20they\x20attempt\x20to\x20take\x20notes\x20in\x20class?\x20I\x27ll\x20tell\x20you\x20why.\x20Because\x20paper\x20can\x27t\x20beat\x20anybody.\x20A\x20rock\x20would\x20tear\x20it\x20up\x20in\x20seconds.\x20When\x20I\x20play\x20rock\x20paper\x20scissor,\x20I\x20always\x20choose\x20rock.\x20And\x20if\x20you\x20claim\x20to\x20have\x20beaten\x20me\x20with\x20your\x20paper\x20I\x20will\x20punch\x20you\x20in\x20the\x20face\x20with\x20my\x20already\x20chenched\x20fist\x20and\x20say,\x20\x22oh\x20sorry,\x20i\x20thought\x20paper\x20would\x20protect\x20you.\x22','name','../../utils/errors','**.\x20','@bastion/tesseract','channel','ROCK','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','SCISSOR','gambling','rps\x20CHOICE\x20--bet','document','toUpperCase','getMonth','IRIS','exec','choices','credit','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','Lost\x20the\x20bet\x20in\x20RPS.','length','enabled','Rock\x20Paper\x20Scrissor'];(function(_0x1406c9,_0x24c336){const _0x473bcb=function(_0x330352){while(--_0x330352){_0x1406c9['push'](_0x1406c9['shift']());}},_0x162123=function(){const _0x43b639={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xdaa6ed,_0x371567,_0x29a832,_0x2e07b6){_0x2e07b6=_0x2e07b6||{};let _0x593fca=_0x371567+'='+_0x29a832,_0xee01c1=0x0;for(let _0xfe80e2=0x0,_0x2ca889=_0xdaa6ed['length'];_0xfe80e2<_0x2ca889;_0xfe80e2++){const _0x378828=_0xdaa6ed[_0xfe80e2];_0x593fca+=';\x20'+_0x378828;const _0x1393cb=_0xdaa6ed[_0x378828];_0xdaa6ed['push'](_0x1393cb),_0x2ca889=_0xdaa6ed['length'],_0x1393cb!==!![]&&(_0x593fca+='='+_0x1393cb);}_0x2e07b6['cookie']=_0x593fca;},'removeCookie':function(){return'dev';},'getCookie':function(_0x15206d,_0x1e44ae){_0x15206d=_0x15206d||function(_0x4f3d95){return _0x4f3d95;};const _0x284c9c=_0x15206d(new RegExp('(?:^|;\x20)'+_0x1e44ae['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4860b8=function(_0x3545e6,_0x34d873){_0x3545e6(++_0x34d873);};return _0x4860b8(_0x473bcb,_0x24c336),_0x284c9c?decodeURIComponent(_0x284c9c[0x1]):undefined;}},_0x36aeb8=function(){const _0x1aa70e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1aa70e['test'](_0x43b639['removeCookie']['toString']());};_0x43b639['updateCookie']=_0x36aeb8;let _0x27c627='';const _0x40acd7=_0x43b639['updateCookie']();if(!_0x40acd7)_0x43b639['setCookie'](['*'],'counter',0x1);else _0x40acd7?_0x27c627=_0x43b639['getCookie'](null,'counter'):_0x43b639['removeCookie']();};_0x162123();}(a63_0x473b,0xf8));const a63_0x1621=function(_0x1406c9,_0x24c336){_0x1406c9=_0x1406c9-0x150;let _0x473bcb=a63_0x473b[_0x1406c9];return _0x473bcb;};const _0x4f8592=a63_0x1621,a63_0x36aeb8=function(){let _0x40acd7=!![];return function(_0xdaa6ed,_0x371567){const _0x29a832=_0x40acd7?function(){const _0x2e4fd4=a63_0x1621;if(_0x371567){const _0x2e07b6=_0x371567[_0x2e4fd4(0x176)](_0xdaa6ed,arguments);return _0x371567=null,_0x2e07b6;}}:function(){};return _0x40acd7=![],_0x29a832;};}(),a63_0x43b639=a63_0x36aeb8(this,function(){const _0x593fca=function(){const _0x8c323f=a63_0x1621,_0xee01c1=_0x593fca['constructor'](_0x8c323f(0x154))()[_0x8c323f(0x167)](_0x8c323f(0x160));return!_0xee01c1[_0x8c323f(0x16d)](a63_0x43b639);};return _0x593fca();});a63_0x43b639();'use strict';const tesseract_1=require(_0x4f8592(0x150)),errors=require(_0x4f8592(0x17b));module[_0x4f8592(0x16a)]=class RockPaperScissorCommand extends tesseract_1['Command']{constructor(){const _0x531425=_0x4f8592;super('rps',{'description':_0x531425(0x16f),'triggers':['rockPaperScissor'],'arguments':{'boolean':[_0x531425(0x171)]},'scope':_0x531425(0x161),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x531425(0x168),_0x531425(0x157)]}),this[_0x531425(0x15c)]=async(_0xfe80e2,_0x2ca889)=>{const _0x16bb68=_0x531425,_0x378828=_0x2ca889['_'][_0x16bb68(0x15f)]('')[_0x16bb68(0x159)]();if(!this[_0x16bb68(0x15d)][_0x16bb68(0x16b)](_0x378828))throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x16bb68(0x178)],this[_0x16bb68(0x17a)]);const _0x1393cb=new Date()[_0x16bb68(0x15a)]()===0x3&&new Date()[_0x16bb68(0x16e)]()===0x1,_0x15206d=_0x1393cb?_0x16bb68(0x152):this['choices'][Math['floor'](Math['random']()*this[_0x16bb68(0x15d)][_0x16bb68(0x163)])],_0x1e44ae=_0x378828===_0x15206d?_0x16bb68(0x170):_0x378828===_0x16bb68(0x152)&&_0x15206d==='SCISSOR'?_0x16bb68(0x169):_0x378828==='PAPER'&&_0x15206d===_0x16bb68(0x152)?_0x1393cb?_0x16bb68(0x179):_0x16bb68(0x169):_0x378828==='SCISSOR'&&_0x15206d===_0x16bb68(0x166)?'You\x20win,\x20human.':'I\x20win!\x20Sorry,\x20human.\x20:yum:';if(_0x2ca889['bet']){if(_0xfe80e2[_0x16bb68(0x161)][_0x16bb68(0x158)][_0x16bb68(0x156)]&&_0xfe80e2[_0x16bb68(0x161)][_0x16bb68(0x158)][_0x16bb68(0x156)][_0x16bb68(0x164)])_0x1e44ae===_0x16bb68(0x169)?_0xfe80e2[_0x16bb68(0x173)][_0x16bb68(0x15e)](0x2a*(_0xfe80e2['guild']['document']['gambling']['multiplier']||0x1),_0x16bb68(0x174)):_0xfe80e2[_0x16bb68(0x173)]['debit'](0x2a*(_0xfe80e2[_0x16bb68(0x161)]['document'][_0x16bb68(0x156)]['multiplier']||0x1),_0x16bb68(0x162));else throw new Error(_0x16bb68(0x177));}await _0xfe80e2[_0x16bb68(0x151)][_0x16bb68(0x175)]({'embed':{'color':tesseract_1[_0x16bb68(0x153)][_0x16bb68(0x172)][_0x16bb68(0x15b)],'title':_0x16bb68(0x165),'description':_0x16bb68(0x16c)+_0x15206d+'**,\x20You\x20chose\x20**'+_0x378828+_0x16bb68(0x17c)+_0x1e44ae}});},this[_0x531425(0x15d)]=[_0x531425(0x152),_0x531425(0x166),_0x531425(0x155)];}}; \ No newline at end of file +const a64_0x27b5=['credit','test','Won\x20the\x20bet\x20in\x20RPS.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','SCISSOR','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','floor','exports','rockPaperScissor','Command','BASTION_ERROR_TYPE','random','../../utils/errors','rps\x20CHOICE\x20--bet','Damn!\x20It\x27s\x20a\x20draw,\x20mate.','send','constructor','GAMBLING_DISABLED','getMonth','multiplier','toUpperCase','choices','I\x20understand\x20that\x20scissors\x20can\x20beat\x20paper.\x20And\x20I\x20get\x20how\x20rock\x20can\x20beat\x20scissors.\x20But\x20there\x27s\x20no\x20way\x20paper\x20can\x20beat\x20rock.\x20Paper\x20is\x20supposed\x20to\x20magically\x20wrap\x20around\x20rock\x20leaving\x20it\x20immobile?\x20Why\x20can\x27t\x20paper\x20do\x20this\x20to\x20scissors?\x20Forget\x20scissors,\x20why\x20can\x27t\x20paper\x20do\x20this\x20to\x20people?\x20Why\x20aren\x27t\x20sheets\x20of\x20notebook\x20constantly\x20suffocating\x20students\x20as\x20they\x20attempt\x20to\x20take\x20notes\x20in\x20class?\x20I\x27ll\x20tell\x20you\x20why.\x20Because\x20paper\x20can\x27t\x20beat\x20anybody.\x20A\x20rock\x20would\x20tear\x20it\x20up\x20in\x20seconds.\x20When\x20I\x20play\x20rock\x20paper\x20scissor,\x20I\x20always\x20choose\x20rock.\x20And\x20if\x20you\x20claim\x20to\x20have\x20beaten\x20me\x20with\x20your\x20paper\x20I\x20will\x20punch\x20you\x20in\x20the\x20face\x20with\x20my\x20already\x20chenched\x20fist\x20and\x20say,\x20\x22oh\x20sorry,\x20i\x20thought\x20paper\x20would\x20protect\x20you.\x22','Rock\x20Paper\x20Scrissor','name','enabled','rps\x20CHOICE','I\x20win!\x20Sorry,\x20human.\x20:yum:','join','PAPER','length','includes','bet','guild','ROCK','COLORS','IRIS','member','**.\x20','exec','gambling','You\x20win,\x20human.','channel','document','**,\x20You\x20chose\x20**'];(function(_0x400ec3,_0x1e483f){const _0x27b537=function(_0x3d17c8){while(--_0x3d17c8){_0x400ec3['push'](_0x400ec3['shift']());}},_0x12e5c4=function(){const _0x1e5f70={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b66c5,_0x85fa2d,_0x43e30a,_0x3990e3){_0x3990e3=_0x3990e3||{};let _0x5902a3=_0x85fa2d+'='+_0x43e30a,_0xc3b0cd=0x0;for(let _0x57fba3=0x0,_0x36ef6b=_0x3b66c5['length'];_0x57fba3<_0x36ef6b;_0x57fba3++){const _0x5e74b5=_0x3b66c5[_0x57fba3];_0x5902a3+=';\x20'+_0x5e74b5;const _0x34d774=_0x3b66c5[_0x5e74b5];_0x3b66c5['push'](_0x34d774),_0x36ef6b=_0x3b66c5['length'],_0x34d774!==!![]&&(_0x5902a3+='='+_0x34d774);}_0x3990e3['cookie']=_0x5902a3;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd4f41f,_0x227489){_0xd4f41f=_0xd4f41f||function(_0x1060cc){return _0x1060cc;};const _0x52ade5=_0xd4f41f(new RegExp('(?:^|;\x20)'+_0x227489['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x536312=function(_0xe101a8,_0x46e08f){_0xe101a8(++_0x46e08f);};return _0x536312(_0x27b537,_0x1e483f),_0x52ade5?decodeURIComponent(_0x52ade5[0x1]):undefined;}},_0x6876bd=function(){const _0x26bc03=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x26bc03['test'](_0x1e5f70['removeCookie']['toString']());};_0x1e5f70['updateCookie']=_0x6876bd;let _0x2694be='';const _0x4640d6=_0x1e5f70['updateCookie']();if(!_0x4640d6)_0x1e5f70['setCookie'](['*'],'counter',0x1);else _0x4640d6?_0x2694be=_0x1e5f70['getCookie'](null,'counter'):_0x1e5f70['removeCookie']();};_0x12e5c4();}(a64_0x27b5,0x10a));const a64_0x12e5=function(_0x400ec3,_0x1e483f){_0x400ec3=_0x400ec3-0x158;let _0x27b537=a64_0x27b5[_0x400ec3];return _0x27b537;};const a64_0x3101a2=a64_0x12e5,a64_0x6876bd=function(){let _0x4640d6=!![];return function(_0x3b66c5,_0x85fa2d){const _0x43e30a=_0x4640d6?function(){if(_0x85fa2d){const _0x3990e3=_0x85fa2d['apply'](_0x3b66c5,arguments);return _0x85fa2d=null,_0x3990e3;}}:function(){};return _0x4640d6=![],_0x43e30a;};}(),a64_0x1e5f70=a64_0x6876bd(this,function(){const _0x5902a3=function(){const _0x348633=a64_0x12e5,_0xc3b0cd=_0x5902a3['constructor'](_0x348633(0x15f))()[_0x348633(0x16c)](_0x348633(0x161));return!_0xc3b0cd[_0x348633(0x15d)](a64_0x1e5f70);};return _0x5902a3();});a64_0x1e5f70();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a64_0x3101a2(0x168));module[a64_0x3101a2(0x163)]=class RockPaperScissorCommand extends tesseract_1[a64_0x3101a2(0x165)]{constructor(){const _0x54e9ac=a64_0x3101a2;super('rps',{'description':'It\x20allows\x20you\x20to\x20play\x20Rock\x20Paper\x20Scissor\x20with\x20Bastion.\x20It\x20also\x20supports\x20gambling.','triggers':[_0x54e9ac(0x164)],'arguments':{'boolean':[_0x54e9ac(0x17c)]},'scope':_0x54e9ac(0x17d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x54e9ac(0x176),_0x54e9ac(0x169)]}),this[_0x54e9ac(0x183)]=async(_0x57fba3,_0x36ef6b)=>{const _0x1f7f3a=_0x54e9ac,_0x5e74b5=_0x36ef6b['_'][_0x1f7f3a(0x178)]('')[_0x1f7f3a(0x170)]();if(!this['choices'][_0x1f7f3a(0x17b)](_0x5e74b5))throw new errors['DiscordError'](errors[_0x1f7f3a(0x166)]['INVALID_COMMAND_SYNTAX'],this[_0x1f7f3a(0x174)]);const _0x34d774=new Date()[_0x1f7f3a(0x16e)]()===0x3&&new Date()['getDate']()===0x1,_0xd4f41f=_0x34d774?_0x1f7f3a(0x17e):this[_0x1f7f3a(0x171)][Math[_0x1f7f3a(0x162)](Math[_0x1f7f3a(0x167)]()*this['choices'][_0x1f7f3a(0x17a)])],_0x227489=_0x5e74b5===_0xd4f41f?_0x1f7f3a(0x16a):_0x5e74b5==='ROCK'&&_0xd4f41f==='SCISSOR'?'You\x20win,\x20human.':_0x5e74b5===_0x1f7f3a(0x179)&&_0xd4f41f===_0x1f7f3a(0x17e)?_0x34d774?_0x1f7f3a(0x172):_0x1f7f3a(0x158):_0x5e74b5===_0x1f7f3a(0x160)&&_0xd4f41f===_0x1f7f3a(0x179)?_0x1f7f3a(0x158):_0x1f7f3a(0x177);if(_0x36ef6b[_0x1f7f3a(0x17c)]){if(_0x57fba3[_0x1f7f3a(0x17d)][_0x1f7f3a(0x15a)][_0x1f7f3a(0x184)]&&_0x57fba3['guild'][_0x1f7f3a(0x15a)]['gambling'][_0x1f7f3a(0x175)])_0x227489===_0x1f7f3a(0x158)?_0x57fba3[_0x1f7f3a(0x181)][_0x1f7f3a(0x15c)](0x2a*(_0x57fba3['guild'][_0x1f7f3a(0x15a)]['gambling']['multiplier']||0x1),_0x1f7f3a(0x15e)):_0x57fba3[_0x1f7f3a(0x181)]['debit'](0x2a*(_0x57fba3[_0x1f7f3a(0x17d)][_0x1f7f3a(0x15a)]['gambling'][_0x1f7f3a(0x16f)]||0x1),'Lost\x20the\x20bet\x20in\x20RPS.');else throw new Error(_0x1f7f3a(0x16d));}await _0x57fba3[_0x1f7f3a(0x159)][_0x1f7f3a(0x16b)]({'embed':{'color':tesseract_1['Constants'][_0x1f7f3a(0x17f)][_0x1f7f3a(0x180)],'title':_0x1f7f3a(0x173),'description':'I\x20chose\x20**'+_0xd4f41f+_0x1f7f3a(0x15b)+_0x5e74b5+_0x1f7f3a(0x182)+_0x227489}});},this[_0x54e9ac(0x171)]=[_0x54e9ac(0x17e),'PAPER',_0x54e9ac(0x160)];}}; \ No newline at end of file diff --git a/commands/games/russianRoulette.js b/commands/games/russianRoulette.js index a184b9588..2d5d4bf52 100644 --- a/commands/games/russianRoulette.js +++ b/commands/games/russianRoulette.js @@ -1 +1 @@ -const a64_0x4009=['random','outcomes','It\x20allows\x20you\x20to\x20play\x20Russian\x20Roulette.\x20Let\x27s\x20see\x20if\x20you\x20can\x20last\x20all\x20the\x207\x20rounds.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','send','constructor','BANG','rockPaperScissor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','russianRoulette','length','rps\x20--rounds\x20ROUNDS','floor','You\x20got\x20lucky,\x20human.','Constants','guild','🔫\x20BANG!\x20It\x27s\x20over,\x20buddy.','@bastion/tesseract','rounds','clamp','Russian\x20Roulette','COLORS','exec','apply','../../utils/numbers','includes','Command'];(function(_0x5257bd,_0x1b1ce6){const _0x400939=function(_0x285130){while(--_0x285130){_0x5257bd['push'](_0x5257bd['shift']());}},_0x5c1a6b=function(){const _0x5f2062={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5dce2a,_0x156128,_0x4f80ef,_0x199bee){_0x199bee=_0x199bee||{};let _0x554f52=_0x156128+'='+_0x4f80ef,_0x4f04b7=0x0;for(let _0x28f842=0x0,_0x55a970=_0x5dce2a['length'];_0x28f842<_0x55a970;_0x28f842++){const _0x3f1026=_0x5dce2a[_0x28f842];_0x554f52+=';\x20'+_0x3f1026;const _0x1b7db5=_0x5dce2a[_0x3f1026];_0x5dce2a['push'](_0x1b7db5),_0x55a970=_0x5dce2a['length'],_0x1b7db5!==!![]&&(_0x554f52+='='+_0x1b7db5);}_0x199bee['cookie']=_0x554f52;},'removeCookie':function(){return'dev';},'getCookie':function(_0x45d52d,_0x488c3e){_0x45d52d=_0x45d52d||function(_0x2a864c){return _0x2a864c;};const _0x457150=_0x45d52d(new RegExp('(?:^|;\x20)'+_0x488c3e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f2604=function(_0x5bfa0b,_0x948a1c){_0x5bfa0b(++_0x948a1c);};return _0x5f2604(_0x400939,_0x1b1ce6),_0x457150?decodeURIComponent(_0x457150[0x1]):undefined;}},_0x461d97=function(){const _0x239632=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x239632['test'](_0x5f2062['removeCookie']['toString']());};_0x5f2062['updateCookie']=_0x461d97;let _0xfde4c='';const _0x3e1a23=_0x5f2062['updateCookie']();if(!_0x3e1a23)_0x5f2062['setCookie'](['*'],'counter',0x1);else _0x3e1a23?_0xfde4c=_0x5f2062['getCookie'](null,'counter'):_0x5f2062['removeCookie']();};_0x5c1a6b();}(a64_0x4009,0x135));const a64_0x5c1a=function(_0x5257bd,_0x1b1ce6){_0x5257bd=_0x5257bd-0x1e8;let _0x400939=a64_0x4009[_0x5257bd];return _0x400939;};const _0xf37fab=a64_0x5c1a,a64_0x461d97=function(){let _0x3e1a23=!![];return function(_0x5dce2a,_0x156128){const _0x4f80ef=_0x3e1a23?function(){const _0x45a165=a64_0x5c1a;if(_0x156128){const _0x199bee=_0x156128[_0x45a165(0x1ff)](_0x5dce2a,arguments);return _0x156128=null,_0x199bee;}}:function(){};return _0x3e1a23=![],_0x4f80ef;};}(),a64_0x5f2062=a64_0x461d97(this,function(){const _0x554f52=function(){const _0x1bc633=a64_0x5c1a,_0x4f04b7=_0x554f52[_0x1bc633(0x1ed)](_0x1bc633(0x1ea))()['constructor'](_0x1bc633(0x1f0));return!_0x4f04b7[_0x1bc633(0x1eb)](a64_0x5f2062);};return _0x554f52();});a64_0x5f2062();'use strict';const tesseract_1=require(_0xf37fab(0x1f9)),numbers=require(_0xf37fab(0x200));module['exports']=class RussianRouletteCommand extends tesseract_1[_0xf37fab(0x202)]{constructor(){const _0x41aae5=_0xf37fab;super(_0x41aae5(0x1f1),{'description':_0x41aae5(0x1e9),'triggers':[_0x41aae5(0x1ef)],'arguments':{'alias':{'rounds':['r']},'number':['rounds'],'coerce':{'rounds':_0x28f842=>Math[_0x41aae5(0x1f4)](numbers[_0x41aae5(0x1fb)](_0x28f842,0x1,0x7))||0x1},'default':{'rounds':0x1}},'scope':_0x41aae5(0x1f7),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['rps',_0x41aae5(0x1f3)]}),this[_0x41aae5(0x1fe)]=async(_0x55a970,_0x3f1026)=>{const _0xd4d9dd=_0x41aae5;for(let _0x1b7db5=0x1;_0x1b7db5<=_0x3f1026[_0xd4d9dd(0x1fa)];_0x1b7db5++){const _0x45d52d=this[_0xd4d9dd(0x1e8)][Math[_0xd4d9dd(0x1f4)](Math[_0xd4d9dd(0x203)]()*this[_0xd4d9dd(0x1e8)][_0xd4d9dd(0x1f2)])],_0x488c3e=_0x45d52d[_0xd4d9dd(0x201)](_0xd4d9dd(0x1ee));await _0x55a970['channel'][_0xd4d9dd(0x1ec)]({'embed':{'color':_0x488c3e?tesseract_1[_0xd4d9dd(0x1f6)][_0xd4d9dd(0x1fd)]['RED']:tesseract_1[_0xd4d9dd(0x1f6)][_0xd4d9dd(0x1fd)]['IRIS'],'title':_0xd4d9dd(0x1fc),'description':_0x45d52d}});if(_0x488c3e)break;}},this[_0x41aae5(0x1e8)]=[_0x41aae5(0x1f8),_0x41aae5(0x1f5)];}}; \ No newline at end of file +const a65_0x50d7=['You\x20got\x20lucky,\x20human.','channel','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','RED','../../utils/numbers','COLORS','Command','rockPaperScissor','exports','Russian\x20Roulette','floor','random','length','send','rounds','outcomes','rps','clamp','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','includes','@bastion/tesseract','🔫\x20BANG!\x20It\x27s\x20over,\x20buddy.'];(function(_0x38aef8,_0x19e2e0){const _0x50d73e=function(_0x8ea549){while(--_0x8ea549){_0x38aef8['push'](_0x38aef8['shift']());}},_0x5af1a8=function(){const _0x491694={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a96a1,_0x124bd9,_0x779622,_0x4da220){_0x4da220=_0x4da220||{};let _0x298741=_0x124bd9+'='+_0x779622,_0x2049f0=0x0;for(let _0x29422d=0x0,_0x9f831=_0x5a96a1['length'];_0x29422d<_0x9f831;_0x29422d++){const _0x1b93b6=_0x5a96a1[_0x29422d];_0x298741+=';\x20'+_0x1b93b6;const _0x4f6637=_0x5a96a1[_0x1b93b6];_0x5a96a1['push'](_0x4f6637),_0x9f831=_0x5a96a1['length'],_0x4f6637!==!![]&&(_0x298741+='='+_0x4f6637);}_0x4da220['cookie']=_0x298741;},'removeCookie':function(){return'dev';},'getCookie':function(_0x25fdeb,_0x54ba9f){_0x25fdeb=_0x25fdeb||function(_0x4ef939){return _0x4ef939;};const _0x561f8d=_0x25fdeb(new RegExp('(?:^|;\x20)'+_0x54ba9f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x277977=function(_0xf9b951,_0x412b5d){_0xf9b951(++_0x412b5d);};return _0x277977(_0x50d73e,_0x19e2e0),_0x561f8d?decodeURIComponent(_0x561f8d[0x1]):undefined;}},_0x3655f0=function(){const _0x190034=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x190034['test'](_0x491694['removeCookie']['toString']());};_0x491694['updateCookie']=_0x3655f0;let _0x5e101c='';const _0x5320e7=_0x491694['updateCookie']();if(!_0x5320e7)_0x491694['setCookie'](['*'],'counter',0x1);else _0x5320e7?_0x5e101c=_0x491694['getCookie'](null,'counter'):_0x491694['removeCookie']();};_0x5af1a8();}(a65_0x50d7,0x125));const a65_0x5af1=function(_0x38aef8,_0x19e2e0){_0x38aef8=_0x38aef8-0x143;let _0x50d73e=a65_0x50d7[_0x38aef8];return _0x50d73e;};const a65_0x2473ec=a65_0x5af1,a65_0x3655f0=function(){let _0x5320e7=!![];return function(_0x5a96a1,_0x124bd9){const _0x779622=_0x5320e7?function(){if(_0x124bd9){const _0x4da220=_0x124bd9['apply'](_0x5a96a1,arguments);return _0x124bd9=null,_0x4da220;}}:function(){};return _0x5320e7=![],_0x779622;};}(),a65_0x491694=a65_0x3655f0(this,function(){const _0x298741=function(){const _0x4f81b9=a65_0x5af1,_0x2049f0=_0x298741[_0x4f81b9(0x151)](_0x4f81b9(0x152))()[_0x4f81b9(0x151)](_0x4f81b9(0x159));return!_0x2049f0['test'](a65_0x491694);};return _0x298741();});a65_0x491694();'use strict';const tesseract_1=require(a65_0x2473ec(0x154)),numbers=require(a65_0x2473ec(0x143));module[a65_0x2473ec(0x147)]=class RussianRouletteCommand extends tesseract_1[a65_0x2473ec(0x145)]{constructor(){const _0x5f080b=a65_0x2473ec;super('russianRoulette',{'description':'It\x20allows\x20you\x20to\x20play\x20Russian\x20Roulette.\x20Let\x27s\x20see\x20if\x20you\x20can\x20last\x20all\x20the\x207\x20rounds.','triggers':[_0x5f080b(0x146)],'arguments':{'alias':{'rounds':['r']},'number':['rounds'],'coerce':{'rounds':_0x29422d=>Math[_0x5f080b(0x149)](numbers[_0x5f080b(0x150)](_0x29422d,0x1,0x7))||0x1},'default':{'rounds':0x1}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5f080b(0x14f),'rps\x20--rounds\x20ROUNDS']}),this['exec']=async(_0x9f831,_0x1b93b6)=>{const _0x543133=_0x5f080b;for(let _0x4f6637=0x1;_0x4f6637<=_0x1b93b6[_0x543133(0x14d)];_0x4f6637++){const _0x25fdeb=this['outcomes'][Math[_0x543133(0x149)](Math[_0x543133(0x14a)]()*this[_0x543133(0x14e)][_0x543133(0x14b)])],_0x54ba9f=_0x25fdeb[_0x543133(0x153)]('BANG');await _0x9f831[_0x543133(0x157)][_0x543133(0x14c)]({'embed':{'color':_0x54ba9f?tesseract_1[_0x543133(0x158)]['COLORS'][_0x543133(0x15a)]:tesseract_1[_0x543133(0x158)][_0x543133(0x144)]['IRIS'],'title':_0x543133(0x148),'description':_0x25fdeb}});if(_0x54ba9f)break;}},this['outcomes']=[_0x5f080b(0x155),_0x5f080b(0x156)];}}; \ No newline at end of file diff --git a/commands/games/tictactoe.js b/commands/games/tictactoe.js index 650ea9fb5..d736c9213 100644 --- a/commands/games/tictactoe.js +++ b/commands/games/tictactoe.js @@ -1 +1 @@ -const a65_0x37f2=['message','playerOne','INVALID_COMMAND_SYNTAX','number','seven','author','constructor','size','COLORS','**\x20and\x20**','delete','Board','🇽\x20Player\x20One','collectMove','Constants','BASTION_ERROR_TYPE','../../utils/errors','edit','fields','eight','getState','getPositionString','embeds','checkWinner','nine','guild','member','two','catch','Tic\x20Tac\x20Toe','SOMEWHAT_DARK','get','fill','six','moves','name','first','displayName','DiscordError','five',':one:\u2003:two:\u2003:three:\x0a\x0a:four:\u2003:five:\u2003:six:\x0a\x0a:seven:\u2003:eight:\u2003:nine:','A\x20game\x20is\x20already\x20running\x20in\x20this\x20channel.\x20Wait\x20for\x20it\x20to\x20end\x20before\x20starting\x20another.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','members','playerTwo','Players\x20can\x20type\x20the\x20position\x20number\x20to\x20make\x20their\x20moves.','games','Game\x20Ended','apply','**.','length','send','parseInt','exports','@bastion/tesseract','Command','ticTacToe','board','mentions','channel','**\x20won\x20against\x20**','content','awaitMessages','four','ERROR','ttt'];(function(_0x2fa252,_0x5a83e3){const _0x37f242=function(_0x57f729){while(--_0x57f729){_0x2fa252['push'](_0x2fa252['shift']());}},_0x2bcf2d=function(){const _0xffa7a6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x37e676,_0x26deec,_0x14ec6b,_0x10416b){_0x10416b=_0x10416b||{};let _0x38965e=_0x26deec+'='+_0x14ec6b,_0x34a97b=0x0;for(let _0xe21286=0x0,_0x4aaf75=_0x37e676['length'];_0xe21286<_0x4aaf75;_0xe21286++){const _0x363eac=_0x37e676[_0xe21286];_0x38965e+=';\x20'+_0x363eac;const _0x4fb896=_0x37e676[_0x363eac];_0x37e676['push'](_0x4fb896),_0x4aaf75=_0x37e676['length'],_0x4fb896!==!![]&&(_0x38965e+='='+_0x4fb896);}_0x10416b['cookie']=_0x38965e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2be3f8,_0x30dde4){_0x2be3f8=_0x2be3f8||function(_0x5ece72){return _0x5ece72;};const _0x485600=_0x2be3f8(new RegExp('(?:^|;\x20)'+_0x30dde4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x97a55b=function(_0x272fff,_0x826b92){_0x272fff(++_0x826b92);};return _0x97a55b(_0x37f242,_0x5a83e3),_0x485600?decodeURIComponent(_0x485600[0x1]):undefined;}},_0x4978f6=function(){const _0x11fa39=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x11fa39['test'](_0xffa7a6['removeCookie']['toString']());};_0xffa7a6['updateCookie']=_0x4978f6;let _0x5004c7='';const _0x5ad8ee=_0xffa7a6['updateCookie']();if(!_0x5ad8ee)_0xffa7a6['setCookie'](['*'],'counter',0x1);else _0x5ad8ee?_0x5004c7=_0xffa7a6['getCookie'](null,'counter'):_0xffa7a6['removeCookie']();};_0x2bcf2d();}(a65_0x37f2,0xd6));const a65_0x2bcf=function(_0x2fa252,_0x5a83e3){_0x2fa252=_0x2fa252-0xcd;let _0x37f242=a65_0x37f2[_0x2fa252];return _0x37f242;};const _0x210d13=a65_0x2bcf,a65_0x4978f6=function(){let _0x5ad8ee=!![];return function(_0x37e676,_0x26deec){const _0x14ec6b=_0x5ad8ee?function(){const _0x559ef0=a65_0x2bcf;if(_0x26deec){const _0x10416b=_0x26deec[_0x559ef0(0xed)](_0x37e676,arguments);return _0x26deec=null,_0x10416b;}}:function(){};return _0x5ad8ee=![],_0x14ec6b;};}(),a65_0xffa7a6=a65_0x4978f6(this,function(){const _0x38965e=function(){const _0x219f3b=a65_0x2bcf,_0x34a97b=_0x38965e[_0x219f3b(0x105)](_0x219f3b(0xe7))()[_0x219f3b(0x105)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x34a97b['test'](a65_0xffa7a6);};return _0x38965e();});a65_0xffa7a6();'use strict';const tesseract_1=require(_0x210d13(0xf3)),errors=require(_0x210d13(0xcd));module[_0x210d13(0xf2)]=class TicTacToeCommand extends tesseract_1[_0x210d13(0xf4)]{constructor(){const _0x108bd8=_0x210d13;super(_0x108bd8(0xf5),{'description':'It\x20allows\x20you\x20to\x20play\x20a\x20game\x20of\x20Tic\x20Tac\x20Toe\x20with\x20another\x20member\x20of\x20the\x20server.','triggers':[_0x108bd8(0xfe)],'arguments':{},'scope':_0x108bd8(0xd6),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['ticTacToe\x20@USER']}),this[_0x108bd8(0xd2)]=_0xe21286=>{const _0x562e3c=_0x108bd8;if(_0xe21286===0x0)return'one';if(_0xe21286===0x1)return _0x562e3c(0xd8);if(_0xe21286===0x2)return'three';if(_0xe21286===0x3)return _0x562e3c(0xfc);if(_0xe21286===0x4)return _0x562e3c(0xe4);if(_0xe21286===0x5)return _0x562e3c(0xde);if(_0xe21286===0x6)return _0x562e3c(0x103);if(_0xe21286===0x7)return _0x562e3c(0xd0);if(_0xe21286===0x8)return _0x562e3c(0xd5);},this[_0x108bd8(0xd1)]=(_0x4aaf75,_0x363eac)=>{const _0x1b280f=_0x108bd8;if(_0x4aaf75[_0x363eac]===-0x1)return':'+this[_0x1b280f(0xd2)](_0x363eac)+':';if(_0x4aaf75[_0x363eac]===0x0)return'🇴';if(_0x4aaf75[_0x363eac]===0x1)return'🇽';},this[_0x108bd8(0xd4)]=_0x4fb896=>{if(_0x4fb896[0x0]!==-0x1&&_0x4fb896[0x1]===_0x4fb896[0x0]&&_0x4fb896[0x2]===_0x4fb896[0x0])return _0x4fb896[0x0];if(_0x4fb896[0x3]!==-0x1&&_0x4fb896[0x4]===_0x4fb896[0x3]&&_0x4fb896[0x5]===_0x4fb896[0x3])return _0x4fb896[0x3];if(_0x4fb896[0x6]!==-0x1&&_0x4fb896[0x7]===_0x4fb896[0x6]&&_0x4fb896[0x8]===_0x4fb896[0x6])return _0x4fb896[0x6];if(_0x4fb896[0x0]!==-0x1&&_0x4fb896[0x3]===_0x4fb896[0x0]&&_0x4fb896[0x6]===_0x4fb896[0x0])return _0x4fb896[0x0];if(_0x4fb896[0x1]!==-0x1&&_0x4fb896[0x4]===_0x4fb896[0x1]&&_0x4fb896[0x7]===_0x4fb896[0x1])return _0x4fb896[0x1];if(_0x4fb896[0x2]!==-0x1&&_0x4fb896[0x5]===_0x4fb896[0x2]&&_0x4fb896[0x8]===_0x4fb896[0x2])return _0x4fb896[0x2];if(_0x4fb896[0x0]!==-0x1&&_0x4fb896[0x4]===_0x4fb896[0x0]&&_0x4fb896[0x8]===_0x4fb896[0x0])return _0x4fb896[0x0];if(_0x4fb896[0x2]!==-0x1&&_0x4fb896[0x4]===_0x4fb896[0x2]&&_0x4fb896[0x6]===_0x4fb896[0x2])return _0x4fb896[0x2];return null;},this['collectMove']=async _0x2be3f8=>{const _0x519b08=_0x108bd8,_0x30dde4=this['games'][_0x519b08(0xdc)](_0x2be3f8),_0x485600=await _0x30dde4[_0x519b08(0xff)]['channel'][_0x519b08(0xfb)](_0x97a55b=>!_0x97a55b[_0x519b08(0x104)]['bot']&&_0x97a55b['content'][_0x519b08(0xef)]===0x1&&Number[_0x519b08(0xf1)](_0x97a55b['content'])>0x0&&Number[_0x519b08(0xf1)](_0x97a55b[_0x519b08(0xfa)])<0xa&&_0x30dde4['board'][Number['parseInt'](_0x97a55b[_0x519b08(0xfa)])-0x1]===-0x1&&(_0x30dde4[_0x519b08(0xdf)]%0x2===0x0?_0x97a55b[_0x519b08(0xd7)]['id']===_0x30dde4[_0x519b08(0x100)]['id']:_0x97a55b[_0x519b08(0xd7)]['id']===_0x30dde4['playerTwo']['id']),{'time':0x3a98,'max':0x1});if(_0x485600[_0x519b08(0x106)]!==0x1){this[_0x519b08(0xeb)][_0x519b08(0x109)](_0x2be3f8);throw new Error((_0x30dde4[_0x519b08(0xdf)]%0x2===0x0?_0x30dde4[_0x519b08(0x100)]:_0x30dde4[_0x519b08(0xe9)])[_0x519b08(0xe2)]+'\x20didn\x27t\x20make\x20a\x20move.\x20Game\x20terminated.');}_0x30dde4[_0x519b08(0xf6)][Number[_0x519b08(0xf1)](_0x485600[_0x519b08(0xe1)]()['content'])-0x1]=_0x30dde4[_0x519b08(0xdf)]%0x2===0x0?0x1:0x0,_0x30dde4[_0x519b08(0xdf)]+=0x1,this[_0x519b08(0xeb)]['set'](_0x2be3f8,_0x30dde4),await _0x30dde4['message'][_0x519b08(0xce)]({'embed':{..._0x30dde4[_0x519b08(0xff)][_0x519b08(0xd3)][0x0],'fields':[_0x30dde4[_0x519b08(0xff)][_0x519b08(0xd3)][0x0][_0x519b08(0xcf)][0x0],_0x30dde4[_0x519b08(0xff)]['embeds'][0x0]['fields'][0x1],{'name':_0x519b08(0x10a),'value':this[_0x519b08(0xd1)](_0x30dde4[_0x519b08(0xf6)],0x0)+'\u2003'+this[_0x519b08(0xd1)](_0x30dde4['board'],0x1)+'\u2003'+this[_0x519b08(0xd1)](_0x30dde4[_0x519b08(0xf6)],0x2)+'\x0a\x0a'+this['getState'](_0x30dde4[_0x519b08(0xf6)],0x3)+'\u2003'+this[_0x519b08(0xd1)](_0x30dde4[_0x519b08(0xf6)],0x4)+'\u2003'+this[_0x519b08(0xd1)](_0x30dde4[_0x519b08(0xf6)],0x5)+'\x0a\x0a'+this[_0x519b08(0xd1)](_0x30dde4['board'],0x6)+'\u2003'+this['getState'](_0x30dde4[_0x519b08(0xf6)],0x7)+'\u2003'+this[_0x519b08(0xd1)](_0x30dde4[_0x519b08(0xf6)],0x8)}]}});},this['exec']=async _0x5ece72=>{const _0x230dc9=_0x108bd8;if(!_0x5ece72[_0x230dc9(0xf7)][_0x230dc9(0xe8)][_0x230dc9(0x106)])throw new errors[(_0x230dc9(0xe3))](errors[_0x230dc9(0x10e)][_0x230dc9(0x101)],this[_0x230dc9(0xe0)]);if(this[_0x230dc9(0xeb)]['has'](_0x5ece72[_0x230dc9(0xf8)]['id']))throw new errors['DiscordError'](errors[_0x230dc9(0x10e)][_0x230dc9(0xfd)],_0x230dc9(0xe6));const _0x272fff=await _0x5ece72['channel']['send']({'embed':{'color':tesseract_1[_0x230dc9(0x10d)]['COLORS']['INDIGO'],'title':_0x230dc9(0xda),'description':_0x230dc9(0xea),'fields':[{'name':_0x230dc9(0x10b),'value':_0x5ece72[_0x230dc9(0xd7)][_0x230dc9(0xe2)],'inline':!![]},{'name':'🇴\x20Player\x20Two','value':_0x5ece72[_0x230dc9(0xf7)][_0x230dc9(0xe8)]['first']()[_0x230dc9(0xe2)],'inline':!![]},{'name':_0x230dc9(0x10a),'value':_0x230dc9(0xe5)}],'footer':{'text':'You\x20have\x2015\x20seconds\x20to\x20make\x20each\x20move.'}}});this[_0x230dc9(0xeb)]['set'](_0x5ece72[_0x230dc9(0xf8)]['id'],{'playerOne':_0x5ece72['member'],'playerTwo':_0x5ece72[_0x230dc9(0xf7)][_0x230dc9(0xe8)][_0x230dc9(0xe1)](),'message':_0x272fff,'board':new Array(0x9)[_0x230dc9(0xdd)](-0x1),'moves':0x0});while(!![]){await this[_0x230dc9(0x10c)](_0x5ece72[_0x230dc9(0xf8)]['id']);const _0x826b92=this[_0x230dc9(0xeb)][_0x230dc9(0xdc)](_0x5ece72['channel']['id']);if(!_0x826b92)break;const _0x11fa39=this['checkWinner'](_0x826b92[_0x230dc9(0xf6)]);if(typeof _0x11fa39===_0x230dc9(0x102)){this['games'][_0x230dc9(0x109)](_0x5ece72[_0x230dc9(0xf8)]['id']),_0x5ece72[_0x230dc9(0xf8)][_0x230dc9(0xf0)]({'embed':{'color':tesseract_1[_0x230dc9(0x10d)][_0x230dc9(0x107)][_0x230dc9(0xdb)],'author':{'name':'Tic\x20Tac\x20Toe'},'title':'Game\x20Ended','description':'**'+(_0x11fa39?_0x826b92[_0x230dc9(0x100)]:_0x826b92[_0x230dc9(0xe9)])['displayName']+_0x230dc9(0xf9)+(_0x11fa39?_0x826b92[_0x230dc9(0xe9)]:_0x826b92['playerOne'])['displayName']+_0x230dc9(0xee)}})[_0x230dc9(0xd9)](()=>{});break;}if(_0x826b92[_0x230dc9(0xdf)]===0x9){this[_0x230dc9(0xeb)][_0x230dc9(0x109)](_0x5ece72[_0x230dc9(0xf8)]['id']),_0x5ece72[_0x230dc9(0xf8)][_0x230dc9(0xf0)]({'embed':{'color':tesseract_1[_0x230dc9(0x10d)][_0x230dc9(0x107)]['SOMEWHAT_DARK'],'author':{'name':'Tic\x20Tac\x20Toe'},'title':_0x230dc9(0xec),'description':'The\x20game\x20ended\x20in\x20a\x20tie\x20between\x20**'+_0x826b92[_0x230dc9(0x100)][_0x230dc9(0xe2)]+_0x230dc9(0x108)+_0x826b92[_0x230dc9(0xe9)][_0x230dc9(0xe2)]+'**.'}})['catch'](()=>{});break;}}},this[_0x108bd8(0xeb)]=new Map();}}; \ No newline at end of file +const a66_0x1677=['Board','🇴\x20Player\x20Two','channel','Command','set','exports','get','fields','../../utils/errors','\x20didn\x27t\x20make\x20a\x20move.\x20Game\x20terminated.','test','games','eight','checkWinner','moves','embeds','ERROR','**\x20and\x20**','first','INVALID_COMMAND_SYNTAX','The\x20game\x20ended\x20in\x20a\x20tie\x20between\x20**','length','delete','member','Players\x20can\x20type\x20the\x20position\x20number\x20to\x20make\x20their\x20moves.','guild','content','🇽\x20Player\x20One','Game\x20Ended','three','ticTacToe\x20@USER','collectMove','playerTwo','You\x20have\x2015\x20seconds\x20to\x20make\x20each\x20move.','message','has','It\x20allows\x20you\x20to\x20play\x20a\x20game\x20of\x20Tic\x20Tac\x20Toe\x20with\x20another\x20member\x20of\x20the\x20server.','send','getState','BASTION_ERROR_TYPE','number','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getPositionString','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','**\x20won\x20against\x20**','four','six','exec','mentions','bot','fill','author','SOMEWHAT_DARK','name','board','playerOne','awaitMessages','catch','displayName','COLORS','apply','parseInt','seven','size','@bastion/tesseract','ttt','members',':one:\u2003:two:\u2003:three:\x0a\x0a:four:\u2003:five:\u2003:six:\x0a\x0a:seven:\u2003:eight:\u2003:nine:','Tic\x20Tac\x20Toe','Constants','two','**.','edit'];(function(_0x5960d5,_0xe951be){const _0x16779e=function(_0x3e1e9f){while(--_0x3e1e9f){_0x5960d5['push'](_0x5960d5['shift']());}},_0x58a418=function(){const _0x509f55={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f46d9,_0x14453e,_0x41411b,_0x5a43d1){_0x5a43d1=_0x5a43d1||{};let _0x1f75d5=_0x14453e+'='+_0x41411b,_0x1e252a=0x0;for(let _0x3c2cdc=0x0,_0x30826d=_0x4f46d9['length'];_0x3c2cdc<_0x30826d;_0x3c2cdc++){const _0x30417b=_0x4f46d9[_0x3c2cdc];_0x1f75d5+=';\x20'+_0x30417b;const _0x13c427=_0x4f46d9[_0x30417b];_0x4f46d9['push'](_0x13c427),_0x30826d=_0x4f46d9['length'],_0x13c427!==!![]&&(_0x1f75d5+='='+_0x13c427);}_0x5a43d1['cookie']=_0x1f75d5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x59cfb5,_0x14a53){_0x59cfb5=_0x59cfb5||function(_0x4a2795){return _0x4a2795;};const _0x8a43fc=_0x59cfb5(new RegExp('(?:^|;\x20)'+_0x14a53['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xadbb94=function(_0x363b60,_0x2b62d0){_0x363b60(++_0x2b62d0);};return _0xadbb94(_0x16779e,_0xe951be),_0x8a43fc?decodeURIComponent(_0x8a43fc[0x1]):undefined;}},_0x168e74=function(){const _0x33c271=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x33c271['test'](_0x509f55['removeCookie']['toString']());};_0x509f55['updateCookie']=_0x168e74;let _0x238b0a='';const _0x10ae34=_0x509f55['updateCookie']();if(!_0x10ae34)_0x509f55['setCookie'](['*'],'counter',0x1);else _0x10ae34?_0x238b0a=_0x509f55['getCookie'](null,'counter'):_0x509f55['removeCookie']();};_0x58a418();}(a66_0x1677,0x1a2));const a66_0x58a4=function(_0x5960d5,_0xe951be){_0x5960d5=_0x5960d5-0x185;let _0x16779e=a66_0x1677[_0x5960d5];return _0x16779e;};const a66_0x19cf99=a66_0x58a4,a66_0x168e74=function(){let _0x10ae34=!![];return function(_0x4f46d9,_0x14453e){const _0x41411b=_0x10ae34?function(){const _0x22b74e=a66_0x58a4;if(_0x14453e){const _0x5a43d1=_0x14453e[_0x22b74e(0x192)](_0x4f46d9,arguments);return _0x14453e=null,_0x5a43d1;}}:function(){};return _0x10ae34=![],_0x41411b;};}(),a66_0x509f55=a66_0x168e74(this,function(){const _0x1f75d5=function(){const _0x35c204=a66_0x58a4,_0x1e252a=_0x1f75d5[_0x35c204(0x1ca)](_0x35c204(0x1c8))()[_0x35c204(0x1ca)](_0x35c204(0x1cb));return!_0x1e252a[_0x35c204(0x1a9)](a66_0x509f55);};return _0x1f75d5();});a66_0x509f55();'use strict';const tesseract_1=require(a66_0x19cf99(0x196)),errors=require(a66_0x19cf99(0x1a7));module[a66_0x19cf99(0x1a4)]=class TicTacToeCommand extends tesseract_1[a66_0x19cf99(0x1a2)]{constructor(){const _0x297856=a66_0x19cf99;super('ticTacToe',{'description':_0x297856(0x1c3),'triggers':[_0x297856(0x197)],'arguments':{},'scope':_0x297856(0x1b8),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x297856(0x1bd)]}),this[_0x297856(0x1c9)]=_0x3c2cdc=>{const _0x3ddafc=_0x297856;if(_0x3c2cdc===0x0)return'one';if(_0x3c2cdc===0x1)return _0x3ddafc(0x19c);if(_0x3c2cdc===0x2)return _0x3ddafc(0x1bc);if(_0x3c2cdc===0x3)return _0x3ddafc(0x1cd);if(_0x3c2cdc===0x4)return'five';if(_0x3c2cdc===0x5)return _0x3ddafc(0x1ce);if(_0x3c2cdc===0x6)return _0x3ddafc(0x194);if(_0x3c2cdc===0x7)return _0x3ddafc(0x1ab);if(_0x3c2cdc===0x8)return'nine';},this[_0x297856(0x1c5)]=(_0x30826d,_0x30417b)=>{const _0x492594=_0x297856;if(_0x30826d[_0x30417b]===-0x1)return':'+this[_0x492594(0x1c9)](_0x30417b)+':';if(_0x30826d[_0x30417b]===0x0)return'🇴';if(_0x30826d[_0x30417b]===0x1)return'🇽';},this['checkWinner']=_0x13c427=>{if(_0x13c427[0x0]!==-0x1&&_0x13c427[0x1]===_0x13c427[0x0]&&_0x13c427[0x2]===_0x13c427[0x0])return _0x13c427[0x0];if(_0x13c427[0x3]!==-0x1&&_0x13c427[0x4]===_0x13c427[0x3]&&_0x13c427[0x5]===_0x13c427[0x3])return _0x13c427[0x3];if(_0x13c427[0x6]!==-0x1&&_0x13c427[0x7]===_0x13c427[0x6]&&_0x13c427[0x8]===_0x13c427[0x6])return _0x13c427[0x6];if(_0x13c427[0x0]!==-0x1&&_0x13c427[0x3]===_0x13c427[0x0]&&_0x13c427[0x6]===_0x13c427[0x0])return _0x13c427[0x0];if(_0x13c427[0x1]!==-0x1&&_0x13c427[0x4]===_0x13c427[0x1]&&_0x13c427[0x7]===_0x13c427[0x1])return _0x13c427[0x1];if(_0x13c427[0x2]!==-0x1&&_0x13c427[0x5]===_0x13c427[0x2]&&_0x13c427[0x8]===_0x13c427[0x2])return _0x13c427[0x2];if(_0x13c427[0x0]!==-0x1&&_0x13c427[0x4]===_0x13c427[0x0]&&_0x13c427[0x8]===_0x13c427[0x0])return _0x13c427[0x0];if(_0x13c427[0x2]!==-0x1&&_0x13c427[0x4]===_0x13c427[0x2]&&_0x13c427[0x6]===_0x13c427[0x2])return _0x13c427[0x2];return null;},this[_0x297856(0x1be)]=async _0x59cfb5=>{const _0x204354=_0x297856,_0x14a53=this[_0x204354(0x1aa)][_0x204354(0x1a5)](_0x59cfb5),_0x8a43fc=await _0x14a53[_0x204354(0x1c1)]['channel'][_0x204354(0x18e)](_0xadbb94=>!_0xadbb94[_0x204354(0x189)][_0x204354(0x187)]&&_0xadbb94[_0x204354(0x1b9)][_0x204354(0x1b4)]===0x1&&Number[_0x204354(0x193)](_0xadbb94[_0x204354(0x1b9)])>0x0&&Number['parseInt'](_0xadbb94['content'])<0xa&&_0x14a53[_0x204354(0x18c)][Number[_0x204354(0x193)](_0xadbb94[_0x204354(0x1b9)])-0x1]===-0x1&&(_0x14a53[_0x204354(0x1ad)]%0x2===0x0?_0xadbb94[_0x204354(0x1b6)]['id']===_0x14a53['playerOne']['id']:_0xadbb94[_0x204354(0x1b6)]['id']===_0x14a53[_0x204354(0x1bf)]['id']),{'time':0x3a98,'max':0x1});if(_0x8a43fc['size']!==0x1){this['games'][_0x204354(0x1b5)](_0x59cfb5);throw new Error((_0x14a53[_0x204354(0x1ad)]%0x2===0x0?_0x14a53[_0x204354(0x18d)]:_0x14a53[_0x204354(0x1bf)])[_0x204354(0x190)]+_0x204354(0x1a8));}_0x14a53[_0x204354(0x18c)][Number[_0x204354(0x193)](_0x8a43fc[_0x204354(0x1b1)]()['content'])-0x1]=_0x14a53[_0x204354(0x1ad)]%0x2===0x0?0x1:0x0,_0x14a53[_0x204354(0x1ad)]+=0x1,this['games']['set'](_0x59cfb5,_0x14a53),await _0x14a53[_0x204354(0x1c1)][_0x204354(0x19e)]({'embed':{..._0x14a53[_0x204354(0x1c1)][_0x204354(0x1ae)][0x0],'fields':[_0x14a53[_0x204354(0x1c1)][_0x204354(0x1ae)][0x0][_0x204354(0x1a6)][0x0],_0x14a53[_0x204354(0x1c1)][_0x204354(0x1ae)][0x0][_0x204354(0x1a6)][0x1],{'name':_0x204354(0x19f),'value':this[_0x204354(0x1c5)](_0x14a53[_0x204354(0x18c)],0x0)+'\u2003'+this['getState'](_0x14a53['board'],0x1)+'\u2003'+this[_0x204354(0x1c5)](_0x14a53[_0x204354(0x18c)],0x2)+'\x0a\x0a'+this[_0x204354(0x1c5)](_0x14a53[_0x204354(0x18c)],0x3)+'\u2003'+this['getState'](_0x14a53[_0x204354(0x18c)],0x4)+'\u2003'+this[_0x204354(0x1c5)](_0x14a53[_0x204354(0x18c)],0x5)+'\x0a\x0a'+this['getState'](_0x14a53[_0x204354(0x18c)],0x6)+'\u2003'+this[_0x204354(0x1c5)](_0x14a53[_0x204354(0x18c)],0x7)+'\u2003'+this[_0x204354(0x1c5)](_0x14a53[_0x204354(0x18c)],0x8)}]}});},this[_0x297856(0x185)]=async _0x4a2795=>{const _0x352486=_0x297856;if(!_0x4a2795[_0x352486(0x186)][_0x352486(0x198)][_0x352486(0x195)])throw new errors['DiscordError'](errors[_0x352486(0x1c6)][_0x352486(0x1b2)],this[_0x352486(0x18b)]);if(this[_0x352486(0x1aa)][_0x352486(0x1c2)](_0x4a2795['channel']['id']))throw new errors['DiscordError'](errors[_0x352486(0x1c6)][_0x352486(0x1af)],'A\x20game\x20is\x20already\x20running\x20in\x20this\x20channel.\x20Wait\x20for\x20it\x20to\x20end\x20before\x20starting\x20another.');const _0x363b60=await _0x4a2795[_0x352486(0x1a1)][_0x352486(0x1c4)]({'embed':{'color':tesseract_1[_0x352486(0x19b)][_0x352486(0x191)]['INDIGO'],'title':_0x352486(0x19a),'description':_0x352486(0x1b7),'fields':[{'name':_0x352486(0x1ba),'value':_0x4a2795[_0x352486(0x1b6)][_0x352486(0x190)],'inline':!![]},{'name':_0x352486(0x1a0),'value':_0x4a2795[_0x352486(0x186)]['members'][_0x352486(0x1b1)]()[_0x352486(0x190)],'inline':!![]},{'name':_0x352486(0x19f),'value':_0x352486(0x199)}],'footer':{'text':_0x352486(0x1c0)}}});this['games'][_0x352486(0x1a3)](_0x4a2795['channel']['id'],{'playerOne':_0x4a2795[_0x352486(0x1b6)],'playerTwo':_0x4a2795[_0x352486(0x186)][_0x352486(0x198)][_0x352486(0x1b1)](),'message':_0x363b60,'board':new Array(0x9)[_0x352486(0x188)](-0x1),'moves':0x0});while(!![]){await this['collectMove'](_0x4a2795[_0x352486(0x1a1)]['id']);const _0x2b62d0=this[_0x352486(0x1aa)][_0x352486(0x1a5)](_0x4a2795[_0x352486(0x1a1)]['id']);if(!_0x2b62d0)break;const _0x33c271=this[_0x352486(0x1ac)](_0x2b62d0[_0x352486(0x18c)]);if(typeof _0x33c271===_0x352486(0x1c7)){this[_0x352486(0x1aa)][_0x352486(0x1b5)](_0x4a2795['channel']['id']),_0x4a2795[_0x352486(0x1a1)][_0x352486(0x1c4)]({'embed':{'color':tesseract_1[_0x352486(0x19b)][_0x352486(0x191)][_0x352486(0x18a)],'author':{'name':_0x352486(0x19a)},'title':'Game\x20Ended','description':'**'+(_0x33c271?_0x2b62d0['playerOne']:_0x2b62d0[_0x352486(0x1bf)])[_0x352486(0x190)]+_0x352486(0x1cc)+(_0x33c271?_0x2b62d0[_0x352486(0x1bf)]:_0x2b62d0[_0x352486(0x18d)])[_0x352486(0x190)]+'**.'}})[_0x352486(0x18f)](()=>{});break;}if(_0x2b62d0['moves']===0x9){this[_0x352486(0x1aa)][_0x352486(0x1b5)](_0x4a2795[_0x352486(0x1a1)]['id']),_0x4a2795['channel']['send']({'embed':{'color':tesseract_1[_0x352486(0x19b)][_0x352486(0x191)][_0x352486(0x18a)],'author':{'name':_0x352486(0x19a)},'title':_0x352486(0x1bb),'description':_0x352486(0x1b3)+_0x2b62d0[_0x352486(0x18d)][_0x352486(0x190)]+_0x352486(0x1b0)+_0x2b62d0[_0x352486(0x1bf)][_0x352486(0x190)]+_0x352486(0x19d)}})[_0x352486(0x18f)](()=>{});break;}}},this[_0x297856(0x1aa)]=new Map();}}; \ No newline at end of file diff --git a/commands/games/trivia.js b/commands/games/trivia.js index 09a093dd1..02da3a0db 100644 --- a/commands/games/trivia.js +++ b/commands/games/trivia.js @@ -1 +1 @@ -const a66_0x4ce2=['size','COLORS','Play\x20a\x20game\x20of\x20trivia\x20and\x20see\x20if\x20you\x20can\x20answer\x20the\x20questions\x20of\x20various\x20difficulty\x20across\x20multiple\x20categories.','content','trivia','RED','parseInt','!\x2020\x20seconds\x20isn\x27t\x20enough\x20for\x20you?','!\x20That\x20was\x20the\x20correct\x20answer.','test','exec','!\x20The\x20correct\x20answer\x20is\x20**','Difficulty','@bastion/tesseract','first','member','Hey,\x20','displayName','Constants','correct_answer','You\x20have\x2020\x20seconds\x20to\x20answer\x20the\x20question.','Category','incorrect_answers','Trivia\x20Question\x20for\x20','results','category','difficulty','You\x27re\x20absolutely\x20right\x20','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','getQuestions','trivia-api','send','shuffle','../../utils/arrays','question','You\x27re\x20wrong,\x20','Command','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','**\x0a\x0a','author','channel','map'];(function(_0x510012,_0xdd796e){const _0x4ce2de=function(_0x4e1979){while(--_0x4e1979){_0x510012['push'](_0x510012['shift']());}},_0x20bdaf=function(){const _0x3c3635={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ab949,_0x4e5ba4,_0x26cdfc,_0x32199c){_0x32199c=_0x32199c||{};let _0x539429=_0x4e5ba4+'='+_0x26cdfc,_0x216279=0x0;for(let _0x204a75=0x0,_0xcbb7f9=_0x3ab949['length'];_0x204a75<_0xcbb7f9;_0x204a75++){const _0xe4467=_0x3ab949[_0x204a75];_0x539429+=';\x20'+_0xe4467;const _0x1a9e7d=_0x3ab949[_0xe4467];_0x3ab949['push'](_0x1a9e7d),_0xcbb7f9=_0x3ab949['length'],_0x1a9e7d!==!![]&&(_0x539429+='='+_0x1a9e7d);}_0x32199c['cookie']=_0x539429;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2be451,_0xe0bcb1){_0x2be451=_0x2be451||function(_0x226091){return _0x226091;};const _0x3a3961=_0x2be451(new RegExp('(?:^|;\x20)'+_0xe0bcb1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x21326b=function(_0x5a0aa2,_0x5a9a65){_0x5a0aa2(++_0x5a9a65);};return _0x21326b(_0x4ce2de,_0xdd796e),_0x3a3961?decodeURIComponent(_0x3a3961[0x1]):undefined;}},_0x502958=function(){const _0x1e5305=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e5305['test'](_0x3c3635['removeCookie']['toString']());};_0x3c3635['updateCookie']=_0x502958;let _0x33dbcd='';const _0x352fef=_0x3c3635['updateCookie']();if(!_0x352fef)_0x3c3635['setCookie'](['*'],'counter',0x1);else _0x352fef?_0x33dbcd=_0x3c3635['getCookie'](null,'counter'):_0x3c3635['removeCookie']();};_0x20bdaf();}(a66_0x4ce2,0x13e));const a66_0x20bd=function(_0x510012,_0xdd796e){_0x510012=_0x510012-0xe9;let _0x4ce2de=a66_0x4ce2[_0x510012];return _0x4ce2de;};const _0x34b425=a66_0x20bd,a66_0x502958=function(){let _0x352fef=!![];return function(_0x3ab949,_0x4e5ba4){const _0x26cdfc=_0x352fef?function(){if(_0x4e5ba4){const _0x32199c=_0x4e5ba4['apply'](_0x3ab949,arguments);return _0x4e5ba4=null,_0x32199c;}}:function(){};return _0x352fef=![],_0x26cdfc;};}(),a66_0x3c3635=a66_0x502958(this,function(){const _0x539429=function(){const _0xfcd4b1=a66_0x20bd,_0x216279=_0x539429['constructor'](_0xfcd4b1(0xfe))()['constructor'](_0xfcd4b1(0xf4));return!_0x216279[_0xfcd4b1(0x10c)](a66_0x3c3635);};return _0x539429();});a66_0x3c3635();'use strict';const tesseract_1=require(_0x34b425(0x110)),he_1=require('he'),arrays=require(_0x34b425(0xf9)),Trivia=require(_0x34b425(0xf6)),trivia=new Trivia({'encoding':'base64'});module['exports']=class TriviaCommand extends tesseract_1[_0x34b425(0xfc)]{constructor(){const _0x3318df=_0x34b425;super(_0x3318df(0x107),{'description':_0x3318df(0x105),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x3318df(0x10d)]=async _0x204a75=>{const _0x143319=_0x3318df,_0xcbb7f9=await trivia[_0x143319(0xf5)](),_0xe4467=_0xcbb7f9[_0x143319(0xf0)][0x0],_0x1a9e7d=arrays[_0x143319(0xf8)](_0xe4467[_0x143319(0xee)]['concat'](_0xe4467[_0x143319(0xeb)]));await _0x204a75['channel'][_0x143319(0xf7)]({'embed':{'color':tesseract_1[_0x143319(0xea)][_0x143319(0x104)]['IRIS'],'title':_0x143319(0xef)+_0x204a75[_0x143319(0x112)][_0x143319(0xe9)],'description':'**Q.\x20'+he_1['decode'](_0xe4467[_0x143319(0xfa)])+_0x143319(0xff)+_0x1a9e7d[_0x143319(0x102)]((_0xe0bcb1,_0x3a3961)=>_0x3a3961+0x1+'.\x20'+_0xe0bcb1)[_0x143319(0xfd)]('\x0a'),'fields':[{'name':_0x143319(0x10f),'value':_0xe4467[_0x143319(0xf2)],'inline':!![]},{'name':_0x143319(0xed),'value':_0xe4467[_0x143319(0xf1)],'inline':!![]}],'footer':{'text':_0x143319(0xec)}}});const _0x2be451=await _0x204a75[_0x143319(0x101)]['awaitMessages'](_0x21326b=>_0x21326b['author']['id']===_0x204a75[_0x143319(0x100)]['id']&&['1','2','3','4']['includes'](_0x21326b[_0x143319(0x106)]),{'max':0x1,'time':0x4e20});if(_0x2be451[_0x143319(0x103)]){const _0x226091=Number[_0x143319(0x109)](_0x2be451[_0x143319(0x111)]()['content'])-0x1;_0x1a9e7d[_0x226091]===_0xe4467[_0x143319(0xeb)]?await _0x204a75['channel'][_0x143319(0xf7)]({'embed':{'color':tesseract_1[_0x143319(0xea)]['COLORS']['GREEN'],'description':_0x143319(0xf3)+_0x204a75[_0x143319(0x112)]['displayName']+_0x143319(0x10b)}}):await _0x204a75[_0x143319(0x101)][_0x143319(0xf7)]({'embed':{'color':tesseract_1[_0x143319(0xea)][_0x143319(0x104)][_0x143319(0x108)],'description':_0x143319(0xfb)+_0x204a75[_0x143319(0x112)][_0x143319(0xe9)]+_0x143319(0x10e)+_0xe4467[_0x143319(0xeb)]+'**.'}});}else await _0x204a75[_0x143319(0x101)][_0x143319(0xf7)]({'embed':{'color':tesseract_1[_0x143319(0xea)][_0x143319(0x104)]['RED'],'description':_0x143319(0x113)+_0x204a75[_0x143319(0x112)][_0x143319(0xe9)]+_0x143319(0x10a)}});};}}; \ No newline at end of file +const a67_0x335b=['category','@bastion/tesseract','displayName','Command','shuffle','correct_answer','send','GREEN','Constants','includes','!\x2020\x20seconds\x20isn\x27t\x20enough\x20for\x20you?','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','concat','base64','You\x20have\x2020\x20seconds\x20to\x20answer\x20the\x20question.','COLORS','size','member','difficulty','map','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','RED','parseInt','test','question','getQuestions','!\x20That\x20was\x20the\x20correct\x20answer.','**Q.\x20','apply','../../utils/arrays','!\x20The\x20correct\x20answer\x20is\x20**','IRIS','trivia-api','join','Difficulty','content','Play\x20a\x20game\x20of\x20trivia\x20and\x20see\x20if\x20you\x20can\x20answer\x20the\x20questions\x20of\x20various\x20difficulty\x20across\x20multiple\x20categories.','incorrect_answers','channel','exec','Hey,\x20','Category'];(function(_0x47e9eb,_0x422feb){const _0x335b5f=function(_0x48de45){while(--_0x48de45){_0x47e9eb['push'](_0x47e9eb['shift']());}},_0x3887bb=function(){const _0xeb8f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d68e6,_0x469c19,_0x442d20,_0x22967f){_0x22967f=_0x22967f||{};let _0x2bc25a=_0x469c19+'='+_0x442d20,_0x1237f2=0x0;for(let _0x407fee=0x0,_0x35da8c=_0x2d68e6['length'];_0x407fee<_0x35da8c;_0x407fee++){const _0x4faf3c=_0x2d68e6[_0x407fee];_0x2bc25a+=';\x20'+_0x4faf3c;const _0x16b422=_0x2d68e6[_0x4faf3c];_0x2d68e6['push'](_0x16b422),_0x35da8c=_0x2d68e6['length'],_0x16b422!==!![]&&(_0x2bc25a+='='+_0x16b422);}_0x22967f['cookie']=_0x2bc25a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x931c0a,_0xcbc614){_0x931c0a=_0x931c0a||function(_0xf5a1c){return _0xf5a1c;};const _0x52c25c=_0x931c0a(new RegExp('(?:^|;\x20)'+_0xcbc614['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x410a33=function(_0x2e8088,_0x3ac4b1){_0x2e8088(++_0x3ac4b1);};return _0x410a33(_0x335b5f,_0x422feb),_0x52c25c?decodeURIComponent(_0x52c25c[0x1]):undefined;}},_0x2d56dd=function(){const _0xe6b869=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xe6b869['test'](_0xeb8f['removeCookie']['toString']());};_0xeb8f['updateCookie']=_0x2d56dd;let _0x564496='';const _0xe094a9=_0xeb8f['updateCookie']();if(!_0xe094a9)_0xeb8f['setCookie'](['*'],'counter',0x1);else _0xe094a9?_0x564496=_0xeb8f['getCookie'](null,'counter'):_0xeb8f['removeCookie']();};_0x3887bb();}(a67_0x335b,0xa6));const a67_0x3887=function(_0x47e9eb,_0x422feb){_0x47e9eb=_0x47e9eb-0xfc;let _0x335b5f=a67_0x335b[_0x47e9eb];return _0x335b5f;};const a67_0x335b94=a67_0x3887,a67_0x2d56dd=function(){let _0xe094a9=!![];return function(_0x2d68e6,_0x469c19){const _0x442d20=_0xe094a9?function(){const _0xa2c120=a67_0x3887;if(_0x469c19){const _0x22967f=_0x469c19[_0xa2c120(0xfc)](_0x2d68e6,arguments);return _0x469c19=null,_0x22967f;}}:function(){};return _0xe094a9=![],_0x442d20;};}(),a67_0xeb8f=a67_0x2d56dd(this,function(){const _0x2bc25a=function(){const _0x252a3f=a67_0x3887,_0x1237f2=_0x2bc25a[_0x252a3f(0x117)](_0x252a3f(0x116))()[_0x252a3f(0x117)](_0x252a3f(0x120));return!_0x1237f2[_0x252a3f(0x124)](a67_0xeb8f);};return _0x2bc25a();});a67_0xeb8f();'use strict';const tesseract_1=require(a67_0x335b94(0x10b)),he_1=require('he'),arrays=require(a67_0x335b94(0xfd)),Trivia=require(a67_0x335b94(0x100)),trivia=new Trivia({'encoding':a67_0x335b94(0x119)});module[a67_0x335b94(0x115)]=class TriviaCommand extends tesseract_1[a67_0x335b94(0x10d)]{constructor(){const _0xc5983e=a67_0x335b94;super('trivia',{'description':_0xc5983e(0x104),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0xc5983e(0x107)]=async _0x407fee=>{const _0x294e0e=_0xc5983e,_0x35da8c=await trivia[_0x294e0e(0x126)](),_0x4faf3c=_0x35da8c['results'][0x0],_0x16b422=arrays[_0x294e0e(0x10e)](_0x4faf3c[_0x294e0e(0x105)][_0x294e0e(0x118)](_0x4faf3c[_0x294e0e(0x10f)]));await _0x407fee[_0x294e0e(0x106)][_0x294e0e(0x110)]({'embed':{'color':tesseract_1['Constants'][_0x294e0e(0x11b)][_0x294e0e(0xff)],'title':'Trivia\x20Question\x20for\x20'+_0x407fee[_0x294e0e(0x11d)][_0x294e0e(0x10c)],'description':_0x294e0e(0x128)+he_1['decode'](_0x4faf3c[_0x294e0e(0x125)])+'**\x0a\x0a'+_0x16b422[_0x294e0e(0x11f)]((_0xcbc614,_0x52c25c)=>_0x52c25c+0x1+'.\x20'+_0xcbc614)[_0x294e0e(0x101)]('\x0a'),'fields':[{'name':_0x294e0e(0x102),'value':_0x4faf3c[_0x294e0e(0x11e)],'inline':!![]},{'name':_0x294e0e(0x109),'value':_0x4faf3c[_0x294e0e(0x10a)],'inline':!![]}],'footer':{'text':_0x294e0e(0x11a)}}});const _0x931c0a=await _0x407fee[_0x294e0e(0x106)]['awaitMessages'](_0x410a33=>_0x410a33[_0x294e0e(0x121)]['id']===_0x407fee[_0x294e0e(0x121)]['id']&&['1','2','3','4'][_0x294e0e(0x113)](_0x410a33[_0x294e0e(0x103)]),{'max':0x1,'time':0x4e20});if(_0x931c0a[_0x294e0e(0x11c)]){const _0xf5a1c=Number[_0x294e0e(0x123)](_0x931c0a['first']()[_0x294e0e(0x103)])-0x1;_0x16b422[_0xf5a1c]===_0x4faf3c[_0x294e0e(0x10f)]?await _0x407fee[_0x294e0e(0x106)]['send']({'embed':{'color':tesseract_1[_0x294e0e(0x112)][_0x294e0e(0x11b)][_0x294e0e(0x111)],'description':'You\x27re\x20absolutely\x20right\x20'+_0x407fee[_0x294e0e(0x11d)]['displayName']+_0x294e0e(0x127)}}):await _0x407fee['channel'][_0x294e0e(0x110)]({'embed':{'color':tesseract_1[_0x294e0e(0x112)][_0x294e0e(0x11b)][_0x294e0e(0x122)],'description':'You\x27re\x20wrong,\x20'+_0x407fee[_0x294e0e(0x11d)][_0x294e0e(0x10c)]+_0x294e0e(0xfe)+_0x4faf3c[_0x294e0e(0x10f)]+'**.'}});}else await _0x407fee[_0x294e0e(0x106)][_0x294e0e(0x110)]({'embed':{'color':tesseract_1[_0x294e0e(0x112)][_0x294e0e(0x11b)][_0x294e0e(0x122)],'description':_0x294e0e(0x108)+_0x407fee[_0x294e0e(0x11d)]['displayName']+_0x294e0e(0x114)}});};}}; \ No newline at end of file diff --git a/commands/help/changelog.js b/commands/help/changelog.js index 5175d86b5..5ff0ca895 100644 --- a/commands/help/changelog.js +++ b/commands/help/changelog.js @@ -1 +1 @@ -const a67_0x52e7=['bastion.server.name','client','getConstant','version','promises','locale','constructor','send','./changelog.yaml','bastion.website','utf-8','Support\x20','bastion.project.url','exec','**\x0a','concat','[Check\x20out\x20our\x20previous\x20change\x20logs](','Command','keys','document','description','\x27s\x20Development','/donate)\x20and\x20get\x20an\x20enhanced\x20Bastion\x20experience!','guild','image','Constants','/Bastion/releases','info','bastion.name','\x0aJoin\x20**','exports','[Donate\x20to\x20','test','readFile','yaml','map','changes','bastion.project','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Missed\x20an\x20update?','changelog','title','language'];(function(_0x54a22f,_0x3f722c){const _0x52e789=function(_0x4df17d){while(--_0x4df17d){_0x54a22f['push'](_0x54a22f['shift']());}},_0x21b04c=function(){const _0x264c9b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44d9f0,_0x38048b,_0x554484,_0x51fbf4){_0x51fbf4=_0x51fbf4||{};let _0x1b33f4=_0x38048b+'='+_0x554484,_0x5ae662=0x0;for(let _0x2bcccd=0x0,_0x1fa37c=_0x44d9f0['length'];_0x2bcccd<_0x1fa37c;_0x2bcccd++){const _0x12a971=_0x44d9f0[_0x2bcccd];_0x1b33f4+=';\x20'+_0x12a971;const _0x4a74ad=_0x44d9f0[_0x12a971];_0x44d9f0['push'](_0x4a74ad),_0x1fa37c=_0x44d9f0['length'],_0x4a74ad!==!![]&&(_0x1b33f4+='='+_0x4a74ad);}_0x51fbf4['cookie']=_0x1b33f4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5f36bf,_0x452fe7){_0x5f36bf=_0x5f36bf||function(_0x500730){return _0x500730;};const _0x499138=_0x5f36bf(new RegExp('(?:^|;\x20)'+_0x452fe7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d0268=function(_0x35443d,_0x455054){_0x35443d(++_0x455054);};return _0x4d0268(_0x52e789,_0x3f722c),_0x499138?decodeURIComponent(_0x499138[0x1]):undefined;}},_0x55bd6d=function(){const _0xb76c5d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xb76c5d['test'](_0x264c9b['removeCookie']['toString']());};_0x264c9b['updateCookie']=_0x55bd6d;let _0xd211da='';const _0x21c7ab=_0x264c9b['updateCookie']();if(!_0x21c7ab)_0x264c9b['setCookie'](['*'],'counter',0x1);else _0x21c7ab?_0xd211da=_0x264c9b['getCookie'](null,'counter'):_0x264c9b['removeCookie']();};_0x21b04c();}(a67_0x52e7,0x100));const a67_0x21b0=function(_0x54a22f,_0x3f722c){_0x54a22f=_0x54a22f-0x136;let _0x52e789=a67_0x52e7[_0x54a22f];return _0x52e789;};const _0x51ff8b=a67_0x21b0,a67_0x55bd6d=function(){let _0x21c7ab=!![];return function(_0x44d9f0,_0x38048b){const _0x554484=_0x21c7ab?function(){if(_0x38048b){const _0x51fbf4=_0x38048b['apply'](_0x44d9f0,arguments);return _0x38048b=null,_0x51fbf4;}}:function(){};return _0x21c7ab=![],_0x554484;};}(),a67_0x264c9b=a67_0x55bd6d(this,function(){const _0x1b33f4=function(){const _0x2d024d=a67_0x21b0,_0x5ae662=_0x1b33f4[_0x2d024d(0x13e)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x2d024d(0x15e));return!_0x5ae662[_0x2d024d(0x158)](a67_0x264c9b);};return _0x1b33f4();});a67_0x264c9b();'use strict';const yaml=require(_0x51ff8b(0x15a)),fs_1=require('fs'),tesseract_1=require('@bastion/tesseract'),package_json_1=require('../../package.json');module[_0x51ff8b(0x156)]=class ChangeLogCommand extends tesseract_1[_0x51ff8b(0x149)]{constructor(){const _0x16c285=_0x51ff8b;super(_0x16c285(0x160),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20changes\x20that\x20have\x20been\x20introduced\x20in\x20the\x20current\x20version\x20of\x20Bastion.','triggers':[_0x16c285(0x15c)],'arguments':{},'scope':_0x16c285(0x14f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x16c285(0x145)]=async _0x2bcccd=>{const _0x13f26f=_0x16c285,_0x1fa37c=yaml['parse'](await fs_1[_0x13f26f(0x13c)][_0x13f26f(0x159)](_0x13f26f(0x140),_0x13f26f(0x142)));await _0x2bcccd['channel'][_0x13f26f(0x13f)]({'embed':{'color':tesseract_1[_0x13f26f(0x151)]['COLORS']['IRIS'],'author':{'name':this[_0x13f26f(0x139)][_0x13f26f(0x13d)][_0x13f26f(0x13a)](_0x13f26f(0x154)),'url':this['client']['locale'][_0x13f26f(0x13a)]('bastion.website')},'title':'v'+package_json_1[_0x13f26f(0x13b)],'url':this['client'][_0x13f26f(0x13d)][_0x13f26f(0x13a)](_0x13f26f(0x144))+_0x13f26f(0x152),'fields':Object[_0x13f26f(0x14a)](_0x1fa37c['changes'])['map'](_0x12a971=>({'name':_0x12a971,'value':_0x1fa37c[_0x13f26f(0x15c)][_0x12a971][_0x13f26f(0x15b)](_0x4a74ad=>(_0x4a74ad[_0x13f26f(0x136)]?'**'+_0x4a74ad[_0x13f26f(0x136)]+_0x13f26f(0x146):'')+_0x4a74ad[_0x13f26f(0x14c)])['join']('\x0a\x0a'),'inline':![]}))[_0x13f26f(0x147)]([{'name':_0x13f26f(0x15f),'value':_0x13f26f(0x148)+this[_0x13f26f(0x139)][_0x13f26f(0x13d)][_0x13f26f(0x13a)](_0x13f26f(0x144))+'/Bastion/releases).'+_0x13f26f(0x155)+this[_0x13f26f(0x139)][_0x13f26f(0x13d)][_0x13f26f(0x13a)](_0x13f26f(0x138))+'**\x20and\x20never\x20miss\x20an\x20update:\x20'+this[_0x13f26f(0x139)][_0x13f26f(0x13d)][_0x13f26f(0x13a)]('bastion.server.invite'),'inline':!![]},{'name':_0x13f26f(0x143)+this['client'][_0x13f26f(0x13d)][_0x13f26f(0x13a)](_0x13f26f(0x154))+_0x13f26f(0x14d),'value':_0x13f26f(0x157)+this['client']['locale'][_0x13f26f(0x13a)](_0x13f26f(0x15d))+']('+this[_0x13f26f(0x139)][_0x13f26f(0x13d)]['getConstant'](_0x13f26f(0x141))+_0x13f26f(0x14e),'inline':!![]}]),'image':{'url':_0x1fa37c[_0x13f26f(0x150)]},'footer':{'text':_0x1fa37c['date']+'\x20•\x20'+this[_0x13f26f(0x139)]['locale']['getString'](_0x2bcccd['guild'][_0x13f26f(0x14b)][_0x13f26f(0x137)],_0x13f26f(0x153),'didYouKnowEarlyReleases')}}});};}}; \ No newline at end of file +const a68_0x38e0=['**\x0a','Command','concat','image','**\x20and\x20never\x20miss\x20an\x20update:\x20','bastion.website','readFile','keys','COLORS','date','client','version','It\x20allows\x20you\x20to\x20see\x20the\x20changes\x20that\x20have\x20been\x20introduced\x20in\x20the\x20current\x20version\x20of\x20Bastion.','language','didYouKnowEarlyReleases','map','./changelog.yaml','document','promises','changes','Constants','utf-8','join','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','/Bastion/releases','\x27s\x20Development','title','description','exports','Missed\x20an\x20update?','test','locale','/Bastion/releases).','bastion.project.url','constructor','getConstant','guild','parse','yaml','[Check\x20out\x20our\x20previous\x20change\x20logs](','@bastion/tesseract','bastion.name','changelog','../../package.json'];(function(_0x101b78,_0x85ecce){const _0x38e0b1=function(_0x508009){while(--_0x508009){_0x101b78['push'](_0x101b78['shift']());}},_0xe7663=function(){const _0x5930a5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x16997a,_0x2d95d5,_0x464869,_0x22aaca){_0x22aaca=_0x22aaca||{};let _0x949599=_0x2d95d5+'='+_0x464869,_0x1abf70=0x0;for(let _0x28f3ca=0x0,_0x3eb9a4=_0x16997a['length'];_0x28f3ca<_0x3eb9a4;_0x28f3ca++){const _0x161839=_0x16997a[_0x28f3ca];_0x949599+=';\x20'+_0x161839;const _0x36af5d=_0x16997a[_0x161839];_0x16997a['push'](_0x36af5d),_0x3eb9a4=_0x16997a['length'],_0x36af5d!==!![]&&(_0x949599+='='+_0x36af5d);}_0x22aaca['cookie']=_0x949599;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40fba9,_0x33d6bf){_0x40fba9=_0x40fba9||function(_0x51aa90){return _0x51aa90;};const _0x285c7b=_0x40fba9(new RegExp('(?:^|;\x20)'+_0x33d6bf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xf03f4b=function(_0x151fcb,_0x2a2294){_0x151fcb(++_0x2a2294);};return _0xf03f4b(_0x38e0b1,_0x85ecce),_0x285c7b?decodeURIComponent(_0x285c7b[0x1]):undefined;}},_0x3cb7b0=function(){const _0x13e472=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13e472['test'](_0x5930a5['removeCookie']['toString']());};_0x5930a5['updateCookie']=_0x3cb7b0;let _0x19725b='';const _0x3f2591=_0x5930a5['updateCookie']();if(!_0x3f2591)_0x5930a5['setCookie'](['*'],'counter',0x1);else _0x3f2591?_0x19725b=_0x5930a5['getCookie'](null,'counter'):_0x5930a5['removeCookie']();};_0xe7663();}(a68_0x38e0,0x11a));const a68_0xe766=function(_0x101b78,_0x85ecce){_0x101b78=_0x101b78-0xd8;let _0x38e0b1=a68_0x38e0[_0x101b78];return _0x38e0b1;};const a68_0x672599=a68_0xe766,a68_0x3cb7b0=function(){let _0x3f2591=!![];return function(_0x16997a,_0x2d95d5){const _0x464869=_0x3f2591?function(){const _0x23a3c4=a68_0xe766;if(_0x2d95d5){const _0x22aaca=_0x2d95d5[_0x23a3c4(0xe3)](_0x16997a,arguments);return _0x2d95d5=null,_0x22aaca;}}:function(){};return _0x3f2591=![],_0x464869;};}(),a68_0x5930a5=a68_0x3cb7b0(this,function(){const _0x949599=function(){const _0x226385=a68_0xe766,_0x1abf70=_0x949599[_0x226385(0xef)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x226385(0xef)](_0x226385(0xe4));return!_0x1abf70[_0x226385(0xeb)](a68_0x5930a5);};return _0x949599();});a68_0x5930a5();'use strict';const yaml=require(a68_0x672599(0xf3)),fs_1=require('fs'),tesseract_1=require(a68_0x672599(0xf5)),package_json_1=require(a68_0x672599(0xf8));module[a68_0x672599(0xe9)]=class ChangeLogCommand extends tesseract_1[a68_0x672599(0xfa)]{constructor(){const _0xa5692a=a68_0x672599;super(_0xa5692a(0xf7),{'description':_0xa5692a(0xd8),'triggers':[_0xa5692a(0xdf)],'arguments':{},'scope':_0xa5692a(0xf1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x28f3ca=>{const _0x23b970=_0xa5692a,_0x3eb9a4=yaml[_0x23b970(0xf2)](await fs_1[_0x23b970(0xde)][_0x23b970(0xff)](_0x23b970(0xdc),_0x23b970(0xe1)));await _0x28f3ca['channel']['send']({'embed':{'color':tesseract_1[_0x23b970(0xe0)][_0x23b970(0x101)]['IRIS'],'author':{'name':this['client'][_0x23b970(0xec)][_0x23b970(0xf0)](_0x23b970(0xf6)),'url':this[_0x23b970(0x103)]['locale'][_0x23b970(0xf0)](_0x23b970(0xfe))},'title':'v'+package_json_1[_0x23b970(0x104)],'url':this[_0x23b970(0x103)][_0x23b970(0xec)][_0x23b970(0xf0)](_0x23b970(0xee))+_0x23b970(0xe5),'fields':Object[_0x23b970(0x100)](_0x3eb9a4[_0x23b970(0xdf)])[_0x23b970(0xdb)](_0x161839=>({'name':_0x161839,'value':_0x3eb9a4[_0x23b970(0xdf)][_0x161839][_0x23b970(0xdb)](_0x36af5d=>(_0x36af5d[_0x23b970(0xe7)]?'**'+_0x36af5d[_0x23b970(0xe7)]+_0x23b970(0xf9):'')+_0x36af5d[_0x23b970(0xe8)])[_0x23b970(0xe2)]('\x0a\x0a'),'inline':![]}))[_0x23b970(0xfb)]([{'name':_0x23b970(0xea),'value':_0x23b970(0xf4)+this['client'][_0x23b970(0xec)][_0x23b970(0xf0)](_0x23b970(0xee))+_0x23b970(0xed)+'\x0aJoin\x20**'+this['client'][_0x23b970(0xec)][_0x23b970(0xf0)]('bastion.server.name')+_0x23b970(0xfd)+this['client']['locale'][_0x23b970(0xf0)]('bastion.server.invite'),'inline':!![]},{'name':'Support\x20'+this[_0x23b970(0x103)][_0x23b970(0xec)]['getConstant'](_0x23b970(0xf6))+_0x23b970(0xe6),'value':'[Donate\x20to\x20'+this[_0x23b970(0x103)][_0x23b970(0xec)][_0x23b970(0xf0)]('bastion.project')+']('+this[_0x23b970(0x103)][_0x23b970(0xec)]['getConstant'](_0x23b970(0xfe))+'/donate)\x20and\x20get\x20an\x20enhanced\x20Bastion\x20experience!','inline':!![]}]),'image':{'url':_0x3eb9a4[_0x23b970(0xfc)]},'footer':{'text':_0x3eb9a4[_0x23b970(0x102)]+'\x20•\x20'+this[_0x23b970(0x103)][_0x23b970(0xec)]['getString'](_0x28f3ca[_0x23b970(0xf1)][_0x23b970(0xdd)][_0x23b970(0xd9)],'info',_0x23b970(0xda))}}});};}}; \ No newline at end of file diff --git a/commands/help/commands.js b/commands/help/commands.js index 9cbaf3602..ac518891a 100644 --- a/commands/help/commands.js +++ b/commands/help/commands.js @@ -1 +1 @@ -const a68_0x2428=['language','Command\x20Search','includes','document','apply','catch','keys','Commands\x20in\x20','COLORS','@bastion/tesseract','\x20is\x20an\x20invalid\x20command\x20category.\x20Use\x20the\x20`commands`\x20command\x20without\x20any\x20arguments\x20to\x20get\x20a\x20list\x20of\x20all\x20the\x20available\x20command\x20categories.','/commands','commandsWebsite','```','test','categoryCommandsCommand','snakeToTitleCase','```css\x0a','manager','constructor','didYouKnowCommandsCount','length','info','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','```bash\x0acommands\x20--help```','modules','Constants','getConstant','toLowerCase','send','\x20Category','bastion.name','Command','search','join','Command\x20Categories','commands','YELLOW','Want\x20the\x20complete\x20list?','guild','commandSearchFound','bastion.website','category','map','name','getString','values','```\x0a','return\x20/\x22\x20+\x20this\x20+\x20\x22/','size','locale','push','client','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.','commandDetailsOption','exec'];(function(_0x29ef18,_0x27d59d){const _0x242805=function(_0x41a667){while(--_0x41a667){_0x29ef18['push'](_0x29ef18['shift']());}},_0x44449e=function(){const _0x25aa6d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3eea67,_0x213ddc,_0x20b4e8,_0x5b8c0c){_0x5b8c0c=_0x5b8c0c||{};let _0x1b3461=_0x213ddc+'='+_0x20b4e8,_0x42059b=0x0;for(let _0x431db3=0x0,_0x3d0184=_0x3eea67['length'];_0x431db3<_0x3d0184;_0x431db3++){const _0x79ceed=_0x3eea67[_0x431db3];_0x1b3461+=';\x20'+_0x79ceed;const _0x58736e=_0x3eea67[_0x79ceed];_0x3eea67['push'](_0x58736e),_0x3d0184=_0x3eea67['length'],_0x58736e!==!![]&&(_0x1b3461+='='+_0x58736e);}_0x5b8c0c['cookie']=_0x1b3461;},'removeCookie':function(){return'dev';},'getCookie':function(_0x252ce4,_0x42d6f5){_0x252ce4=_0x252ce4||function(_0x50a8f8){return _0x50a8f8;};const _0x3cb7f2=_0x252ce4(new RegExp('(?:^|;\x20)'+_0x42d6f5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35f111=function(_0x317d50,_0x1fa8db){_0x317d50(++_0x1fa8db);};return _0x35f111(_0x242805,_0x27d59d),_0x3cb7f2?decodeURIComponent(_0x3cb7f2[0x1]):undefined;}},_0xa95805=function(){const _0x3889ff=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3889ff['test'](_0x25aa6d['removeCookie']['toString']());};_0x25aa6d['updateCookie']=_0xa95805;let _0x41516a='';const _0x21f975=_0x25aa6d['updateCookie']();if(!_0x21f975)_0x25aa6d['setCookie'](['*'],'counter',0x1);else _0x21f975?_0x41516a=_0x25aa6d['getCookie'](null,'counter'):_0x25aa6d['removeCookie']();};_0x44449e();}(a68_0x2428,0xf0));const a68_0x4444=function(_0x29ef18,_0x27d59d){_0x29ef18=_0x29ef18-0x15a;let _0x242805=a68_0x2428[_0x29ef18];return _0x242805;};const _0x49d355=a68_0x4444,a68_0xa95805=function(){let _0x21f975=!![];return function(_0x3eea67,_0x213ddc){const _0x20b4e8=_0x21f975?function(){const _0x1c34b4=a68_0x4444;if(_0x213ddc){const _0x5b8c0c=_0x213ddc[_0x1c34b4(0x18b)](_0x3eea67,arguments);return _0x213ddc=null,_0x5b8c0c;}}:function(){};return _0x21f975=![],_0x20b4e8;};}(),a68_0x25aa6d=a68_0xa95805(this,function(){const _0x1b3461=function(){const _0x529d67=a68_0x4444,_0x42059b=_0x1b3461[_0x529d67(0x161)](_0x529d67(0x17f))()['constructor'](_0x529d67(0x166));return!_0x42059b[_0x529d67(0x15c)](a68_0x25aa6d);};return _0x1b3461();});a68_0x25aa6d();'use strict';const tesseract_1=require(_0x49d355(0x190)),strings=require('../../utils/strings');module['exports']=class Commands extends tesseract_1[_0x49d355(0x16f)]{constructor(){const _0x2678c8=_0x49d355;super(_0x2678c8(0x173),{'description':_0x2678c8(0x184),'triggers':[],'arguments':{'alias':{'search':['s']},'string':['search']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2678c8(0x173),'commands\x20CATEGORY','commands\x20--search\x20QUERY']}),this[_0x2678c8(0x186)]=async(_0x431db3,_0x3d0184)=>{const _0x389a1c=_0x2678c8;if(_0x3d0184['search']){const _0x58736e=this['manager']['modules'][_0x389a1c(0x17a)](_0x252ce4=>_0x252ce4[_0x389a1c(0x17b)])['filter'](_0x42d6f5=>_0x42d6f5['toLowerCase']()['includes'](_0x3d0184['search'][_0x389a1c(0x16b)]()));return await _0x431db3['channel'][_0x389a1c(0x16c)]({'embed':{'color':tesseract_1[_0x389a1c(0x169)][_0x389a1c(0x18f)][_0x389a1c(0x174)],'author':{'name':this[_0x389a1c(0x183)][_0x389a1c(0x181)]['getConstant'](_0x389a1c(0x16e)),'url':this[_0x389a1c(0x183)]['locale'][_0x389a1c(0x16a)](_0x389a1c(0x178))},'title':_0x389a1c(0x188),'url':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x16a)](_0x389a1c(0x178))+_0x389a1c(0x192),'description':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x17c)](_0x431db3[_0x389a1c(0x176)]['document'][_0x389a1c(0x187)],_0x389a1c(0x164),_0x389a1c(0x177),_0x58736e[_0x389a1c(0x163)]['toString'](),_0x3d0184[_0x389a1c(0x170)]),'fields':[{'name':'Commands','value':_0x389a1c(0x17e)+_0x58736e['slice'](0x0,0xa)[_0x389a1c(0x171)]('\x0a')+_0x389a1c(0x15b)},{'name':_0x389a1c(0x175),'value':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x17c)](_0x431db3['guild'][_0x389a1c(0x18a)][_0x389a1c(0x187)],_0x389a1c(0x164),_0x389a1c(0x15a))}],'footer':{'text':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x17c)](_0x431db3[_0x389a1c(0x176)][_0x389a1c(0x18a)][_0x389a1c(0x187)],_0x389a1c(0x164),_0x389a1c(0x162),this['manager']['modules'][_0x389a1c(0x180)])}}})[_0x389a1c(0x18c)](()=>{});}const _0x79ceed={};for(const _0x3cb7f2 of this[_0x389a1c(0x160)][_0x389a1c(0x168)][_0x389a1c(0x17d)]()){_0x3cb7f2['category']in _0x79ceed?_0x79ceed[_0x3cb7f2[_0x389a1c(0x179)]][_0x389a1c(0x182)](_0x3cb7f2['name']):_0x79ceed[_0x3cb7f2[_0x389a1c(0x179)]]=[_0x3cb7f2[_0x389a1c(0x17b)]];}if(_0x3d0184['_'][_0x389a1c(0x163)]){const _0x35f111=strings['toSnakeCase'](_0x3d0184['_'][_0x389a1c(0x171)]('\x20'));if(Object[_0x389a1c(0x18d)](_0x79ceed)[_0x389a1c(0x189)](_0x35f111))return await _0x431db3['channel']['send']({'embed':{'color':tesseract_1[_0x389a1c(0x169)]['COLORS'][_0x389a1c(0x174)],'author':{'name':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x16a)](_0x389a1c(0x16e)),'url':this['client'][_0x389a1c(0x181)]['getConstant'](_0x389a1c(0x178))},'title':_0x389a1c(0x18e)+strings['snakeToTitleCase'](_0x35f111)+_0x389a1c(0x16d),'url':this[_0x389a1c(0x183)][_0x389a1c(0x181)]['getConstant'](_0x389a1c(0x178))+_0x389a1c(0x192),'description':this[_0x389a1c(0x183)][_0x389a1c(0x181)]['getString'](_0x431db3[_0x389a1c(0x176)][_0x389a1c(0x18a)][_0x389a1c(0x187)],_0x389a1c(0x164),'commandCategoriesCommand',Object[_0x389a1c(0x18d)](_0x79ceed)['length']),'fields':[{'name':'Commands','value':_0x389a1c(0x15f)+_0x79ceed[_0x35f111][_0x389a1c(0x171)]('\x0a')+'```'},{'name':'Need\x20more\x20details?','value':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x17c)](_0x431db3[_0x389a1c(0x176)][_0x389a1c(0x18a)]['language'],'info',_0x389a1c(0x185))+_0x389a1c(0x167)}],'footer':{'text':this[_0x389a1c(0x183)]['locale'][_0x389a1c(0x17c)](_0x431db3[_0x389a1c(0x176)][_0x389a1c(0x18a)][_0x389a1c(0x187)],_0x389a1c(0x164),_0x389a1c(0x162),this[_0x389a1c(0x160)][_0x389a1c(0x168)][_0x389a1c(0x180)])}}})[_0x389a1c(0x18c)](()=>{});return await _0x431db3['channel']['send']({'embed':{'color':tesseract_1[_0x389a1c(0x169)][_0x389a1c(0x18f)]['YELLOW'],'description':strings[_0x389a1c(0x15e)](_0x35f111)+_0x389a1c(0x191)}})[_0x389a1c(0x18c)](()=>{});}await _0x431db3[_0x389a1c(0x165)][_0x389a1c(0x16c)]({'embed':{'color':tesseract_1[_0x389a1c(0x169)][_0x389a1c(0x18f)][_0x389a1c(0x174)],'author':{'name':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x16a)](_0x389a1c(0x16e)),'url':this[_0x389a1c(0x183)]['locale'][_0x389a1c(0x16a)](_0x389a1c(0x178))},'title':_0x389a1c(0x172),'url':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x16a)](_0x389a1c(0x178))+_0x389a1c(0x192),'description':this['client'][_0x389a1c(0x181)][_0x389a1c(0x17c)](_0x431db3['guild']['document']['language'],_0x389a1c(0x164),_0x389a1c(0x15d)),'fields':[{'name':'Command\x20Categories','value':_0x389a1c(0x15f)+Object[_0x389a1c(0x18d)](_0x79ceed)[_0x389a1c(0x17a)](_0x50a8f8=>strings['snakeToTitleCase'](_0x50a8f8))[_0x389a1c(0x171)]('\x0a')+_0x389a1c(0x15b)},{'name':_0x389a1c(0x175),'value':this[_0x389a1c(0x183)][_0x389a1c(0x181)][_0x389a1c(0x17c)](_0x431db3[_0x389a1c(0x176)][_0x389a1c(0x18a)][_0x389a1c(0x187)],_0x389a1c(0x164),_0x389a1c(0x15a))}],'footer':{'text':this[_0x389a1c(0x183)][_0x389a1c(0x181)]['getString'](_0x431db3[_0x389a1c(0x176)][_0x389a1c(0x18a)]['language'],_0x389a1c(0x164),'didYouKnowCommandsCount',this['manager'][_0x389a1c(0x168)][_0x389a1c(0x180)])}}})[_0x389a1c(0x18c)](()=>{});};}}; \ No newline at end of file +const a69_0x4b08=['info','includes','commandSearchFound','toSnakeCase','toString','Command\x20Search','map','Command','constructor','toLowerCase','catch','bastion.name','join','client','Want\x20the\x20complete\x20list?','commands\x20CATEGORY','YELLOW','didYouKnowCommandsCount','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.','```\x0a','apply','commandCategoriesCommand','exports','COLORS','manager','Command\x20Categories','name','size','guild','\x20is\x20an\x20invalid\x20command\x20category.\x20Use\x20the\x20`commands`\x20command\x20without\x20any\x20arguments\x20to\x20get\x20a\x20list\x20of\x20all\x20the\x20available\x20command\x20categories.','snakeToTitleCase','/commands','category','Constants','Need\x20more\x20details?','values','getString','categoryCommandsCommand','filter','Commands\x20in\x20','keys','getConstant','send','search','exec','document','language','length','test','commandDetailsOption','@bastion/tesseract','slice','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','```','modules','../../utils/strings','commands','bastion.website','\x20Category','```css\x0a','locale'];(function(_0x3877e1,_0x13b18f){const _0x4b080=function(_0x253319){while(--_0x253319){_0x3877e1['push'](_0x3877e1['shift']());}},_0x257426=function(){const _0x363dc2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18b06a,_0x304c26,_0xa9cdcf,_0x448191){_0x448191=_0x448191||{};let _0x5034b9=_0x304c26+'='+_0xa9cdcf,_0x45751c=0x0;for(let _0x58632a=0x0,_0x27cbde=_0x18b06a['length'];_0x58632a<_0x27cbde;_0x58632a++){const _0x4517ec=_0x18b06a[_0x58632a];_0x5034b9+=';\x20'+_0x4517ec;const _0x14ac38=_0x18b06a[_0x4517ec];_0x18b06a['push'](_0x14ac38),_0x27cbde=_0x18b06a['length'],_0x14ac38!==!![]&&(_0x5034b9+='='+_0x14ac38);}_0x448191['cookie']=_0x5034b9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x382aae,_0xc0b7d2){_0x382aae=_0x382aae||function(_0x19d6b1){return _0x19d6b1;};const _0x38cb46=_0x382aae(new RegExp('(?:^|;\x20)'+_0xc0b7d2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x537b08=function(_0x17c117,_0xccea9f){_0x17c117(++_0xccea9f);};return _0x537b08(_0x4b080,_0x13b18f),_0x38cb46?decodeURIComponent(_0x38cb46[0x1]):undefined;}},_0x4aaf75=function(){const _0x4b687c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4b687c['test'](_0x363dc2['removeCookie']['toString']());};_0x363dc2['updateCookie']=_0x4aaf75;let _0x36058a='';const _0x2d5407=_0x363dc2['updateCookie']();if(!_0x2d5407)_0x363dc2['setCookie'](['*'],'counter',0x1);else _0x2d5407?_0x36058a=_0x363dc2['getCookie'](null,'counter'):_0x363dc2['removeCookie']();};_0x257426();}(a69_0x4b08,0x16b));const a69_0x2574=function(_0x3877e1,_0x13b18f){_0x3877e1=_0x3877e1-0xaa;let _0x4b080=a69_0x4b08[_0x3877e1];return _0x4b080;};const a69_0x5577c5=a69_0x2574,a69_0x4aaf75=function(){let _0x2d5407=!![];return function(_0x18b06a,_0x304c26){const _0xa9cdcf=_0x2d5407?function(){const _0x1e32f8=a69_0x2574;if(_0x304c26){const _0x448191=_0x304c26[_0x1e32f8(0xc7)](_0x18b06a,arguments);return _0x304c26=null,_0x448191;}}:function(){};return _0x2d5407=![],_0xa9cdcf;};}(),a69_0x363dc2=a69_0x4aaf75(this,function(){const _0x5034b9=function(){const _0x5fa794=a69_0x2574,_0x45751c=_0x5034b9['constructor'](_0x5fa794(0xe7))()[_0x5fa794(0xbb)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x45751c[_0x5fa794(0xe3)](a69_0x363dc2);};return _0x5034b9();});a69_0x363dc2();'use strict';const tesseract_1=require(a69_0x5577c5(0xe5)),strings=require(a69_0x5577c5(0xad));module[a69_0x5577c5(0xc9)]=class Commands extends tesseract_1[a69_0x5577c5(0xba)]{constructor(){const _0x244ed3=a69_0x5577c5;super('commands',{'description':_0x244ed3(0xc5),'triggers':[],'arguments':{'alias':{'search':['s']},'string':[_0x244ed3(0xde)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x244ed3(0xae),_0x244ed3(0xc2),'commands\x20--search\x20QUERY']}),this[_0x244ed3(0xdf)]=async(_0x58632a,_0x27cbde)=>{const _0x41e682=_0x244ed3;if(_0x27cbde[_0x41e682(0xde)]){const _0x14ac38=this[_0x41e682(0xcb)][_0x41e682(0xac)][_0x41e682(0xb9)](_0x382aae=>_0x382aae[_0x41e682(0xcd)])[_0x41e682(0xd9)](_0xc0b7d2=>_0xc0b7d2[_0x41e682(0xbc)]()['includes'](_0x27cbde['search'][_0x41e682(0xbc)]()));return await _0x58632a[_0x41e682(0xaa)][_0x41e682(0xdd)]({'embed':{'color':tesseract_1[_0x41e682(0xd4)][_0x41e682(0xca)]['YELLOW'],'author':{'name':this[_0x41e682(0xc0)]['locale']['getConstant'](_0x41e682(0xbe)),'url':this[_0x41e682(0xc0)][_0x41e682(0xb2)]['getConstant'](_0x41e682(0xaf))},'title':_0x41e682(0xb8),'url':this[_0x41e682(0xc0)]['locale'][_0x41e682(0xdc)](_0x41e682(0xaf))+'/commands','description':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xd7)](_0x58632a[_0x41e682(0xcf)]['document'][_0x41e682(0xe1)],_0x41e682(0xb3),_0x41e682(0xb5),_0x14ac38[_0x41e682(0xe2)][_0x41e682(0xb7)](),_0x27cbde[_0x41e682(0xde)]),'fields':[{'name':'Commands','value':_0x41e682(0xc6)+_0x14ac38[_0x41e682(0xe6)](0x0,0xa)['join']('\x0a')+_0x41e682(0xab)},{'name':_0x41e682(0xc1),'value':this[_0x41e682(0xc0)][_0x41e682(0xb2)]['getString'](_0x58632a[_0x41e682(0xcf)][_0x41e682(0xe0)][_0x41e682(0xe1)],_0x41e682(0xb3),'commandsWebsite')}],'footer':{'text':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xd7)](_0x58632a[_0x41e682(0xcf)][_0x41e682(0xe0)][_0x41e682(0xe1)],_0x41e682(0xb3),_0x41e682(0xc4),this[_0x41e682(0xcb)][_0x41e682(0xac)][_0x41e682(0xce)])}}})['catch'](()=>{});}const _0x4517ec={};for(const _0x38cb46 of this[_0x41e682(0xcb)]['modules'][_0x41e682(0xd6)]()){_0x38cb46[_0x41e682(0xd3)]in _0x4517ec?_0x4517ec[_0x38cb46['category']]['push'](_0x38cb46['name']):_0x4517ec[_0x38cb46[_0x41e682(0xd3)]]=[_0x38cb46[_0x41e682(0xcd)]];}if(_0x27cbde['_']['length']){const _0x537b08=strings[_0x41e682(0xb6)](_0x27cbde['_'][_0x41e682(0xbf)]('\x20'));if(Object[_0x41e682(0xdb)](_0x4517ec)[_0x41e682(0xb4)](_0x537b08))return await _0x58632a['channel'][_0x41e682(0xdd)]({'embed':{'color':tesseract_1[_0x41e682(0xd4)][_0x41e682(0xca)][_0x41e682(0xc3)],'author':{'name':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xdc)](_0x41e682(0xbe)),'url':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xdc)]('bastion.website')},'title':_0x41e682(0xda)+strings[_0x41e682(0xd1)](_0x537b08)+_0x41e682(0xb0),'url':this[_0x41e682(0xc0)]['locale'][_0x41e682(0xdc)](_0x41e682(0xaf))+_0x41e682(0xd2),'description':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xd7)](_0x58632a[_0x41e682(0xcf)][_0x41e682(0xe0)][_0x41e682(0xe1)],'info',_0x41e682(0xc8),Object[_0x41e682(0xdb)](_0x4517ec)[_0x41e682(0xe2)]),'fields':[{'name':'Commands','value':_0x41e682(0xb1)+_0x4517ec[_0x537b08][_0x41e682(0xbf)]('\x0a')+_0x41e682(0xab)},{'name':_0x41e682(0xd5),'value':this['client']['locale'][_0x41e682(0xd7)](_0x58632a['guild'][_0x41e682(0xe0)]['language'],_0x41e682(0xb3),_0x41e682(0xe4))+'```bash\x0acommands\x20--help```'}],'footer':{'text':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xd7)](_0x58632a['guild'][_0x41e682(0xe0)][_0x41e682(0xe1)],_0x41e682(0xb3),'didYouKnowCommandsCount',this[_0x41e682(0xcb)][_0x41e682(0xac)][_0x41e682(0xce)])}}})[_0x41e682(0xbd)](()=>{});return await _0x58632a[_0x41e682(0xaa)][_0x41e682(0xdd)]({'embed':{'color':tesseract_1[_0x41e682(0xd4)][_0x41e682(0xca)][_0x41e682(0xc3)],'description':strings[_0x41e682(0xd1)](_0x537b08)+_0x41e682(0xd0)}})[_0x41e682(0xbd)](()=>{});}await _0x58632a['channel'][_0x41e682(0xdd)]({'embed':{'color':tesseract_1[_0x41e682(0xd4)][_0x41e682(0xca)]['YELLOW'],'author':{'name':this[_0x41e682(0xc0)][_0x41e682(0xb2)]['getConstant'](_0x41e682(0xbe)),'url':this[_0x41e682(0xc0)][_0x41e682(0xb2)][_0x41e682(0xdc)]('bastion.website')},'title':_0x41e682(0xcc),'url':this['client'][_0x41e682(0xb2)][_0x41e682(0xdc)](_0x41e682(0xaf))+'/commands','description':this['client'][_0x41e682(0xb2)]['getString'](_0x58632a[_0x41e682(0xcf)][_0x41e682(0xe0)][_0x41e682(0xe1)],'info',_0x41e682(0xd8)),'fields':[{'name':_0x41e682(0xcc),'value':_0x41e682(0xb1)+Object[_0x41e682(0xdb)](_0x4517ec)[_0x41e682(0xb9)](_0x19d6b1=>strings[_0x41e682(0xd1)](_0x19d6b1))[_0x41e682(0xbf)]('\x0a')+_0x41e682(0xab)},{'name':'Want\x20the\x20complete\x20list?','value':this['client'][_0x41e682(0xb2)][_0x41e682(0xd7)](_0x58632a[_0x41e682(0xcf)][_0x41e682(0xe0)][_0x41e682(0xe1)],'info','commandsWebsite')}],'footer':{'text':this[_0x41e682(0xc0)]['locale']['getString'](_0x58632a[_0x41e682(0xcf)][_0x41e682(0xe0)][_0x41e682(0xe1)],_0x41e682(0xb3),_0x41e682(0xc4),this[_0x41e682(0xcb)][_0x41e682(0xac)][_0x41e682(0xce)])}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/help/donate.js b/commands/help/donate.js index 8f3cc7b08..18e94cf54 100644 --- a/commands/help/donate.js +++ b/commands/help/donate.js @@ -1 +1 @@ -const a69_0x273b=['/donate)','[Donate\x20to\x20','@bastion/tesseract','Command','apply','/donate','locale','**Donate\x20and\x20get\x20cool\x20rewards!**\x20Support\x20the\x20development\x20of\x20Bastion\x20to\x20help\x20keep\x20it\x20running,\x20and\x20enjoy\x20an\x20enhanced\x20Bastion\x20exprience.','GREEN','constructor','bastion.website','send','Donate','COLORS','channel','client','language','getString','getConstant','It\x20allows\x20you\x20to\x20see\x20the\x20ways\x20you\x20can\x20contribute\x20to\x20Bastion\x20and\x20it\x27s\x20development.','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','guild','exports','Constants'];(function(_0x371ffe,_0x3aa476){const _0x273bab=function(_0x56e5de){while(--_0x56e5de){_0x371ffe['push'](_0x371ffe['shift']());}},_0x353c94=function(){const _0x3884f2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x557c03,_0x1d5007,_0x2025af,_0xf6e240){_0xf6e240=_0xf6e240||{};let _0x5d48a0=_0x1d5007+'='+_0x2025af,_0x1b4730=0x0;for(let _0x287bda=0x0,_0x2aece3=_0x557c03['length'];_0x287bda<_0x2aece3;_0x287bda++){const _0x449482=_0x557c03[_0x287bda];_0x5d48a0+=';\x20'+_0x449482;const _0x14a55b=_0x557c03[_0x449482];_0x557c03['push'](_0x14a55b),_0x2aece3=_0x557c03['length'],_0x14a55b!==!![]&&(_0x5d48a0+='='+_0x14a55b);}_0xf6e240['cookie']=_0x5d48a0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2670d7,_0x53a779){_0x2670d7=_0x2670d7||function(_0x22ef76){return _0x22ef76;};const _0x20e6d9=_0x2670d7(new RegExp('(?:^|;\x20)'+_0x53a779['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29f251=function(_0x32728b,_0x5d747c){_0x32728b(++_0x5d747c);};return _0x29f251(_0x273bab,_0x3aa476),_0x20e6d9?decodeURIComponent(_0x20e6d9[0x1]):undefined;}},_0x20f881=function(){const _0x19c831=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x19c831['test'](_0x3884f2['removeCookie']['toString']());};_0x3884f2['updateCookie']=_0x20f881;let _0x5df32f='';const _0x277f92=_0x3884f2['updateCookie']();if(!_0x277f92)_0x3884f2['setCookie'](['*'],'counter',0x1);else _0x277f92?_0x5df32f=_0x3884f2['getCookie'](null,'counter'):_0x3884f2['removeCookie']();};_0x353c94();}(a69_0x273b,0x1f2));const a69_0x353c=function(_0x371ffe,_0x3aa476){_0x371ffe=_0x371ffe-0x125;let _0x273bab=a69_0x273b[_0x371ffe];return _0x273bab;};const _0x6feeaf=a69_0x353c,a69_0x20f881=function(){let _0x277f92=!![];return function(_0x557c03,_0x1d5007){const _0x2025af=_0x277f92?function(){const _0x696c70=a69_0x353c;if(_0x1d5007){const _0xf6e240=_0x1d5007[_0x696c70(0x125)](_0x557c03,arguments);return _0x1d5007=null,_0xf6e240;}}:function(){};return _0x277f92=![],_0x2025af;};}(),a69_0x3884f2=a69_0x20f881(this,function(){const _0x5d48a0=function(){const _0x44ec0f=a69_0x353c,_0x1b4730=_0x5d48a0[_0x44ec0f(0x12a)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x44ec0f(0x12a)](_0x44ec0f(0x136));return!_0x1b4730['test'](a69_0x3884f2);};return _0x5d48a0();});a69_0x3884f2();'use strict';const tesseract_1=require(_0x6feeaf(0x13d));module[_0x6feeaf(0x139)]=class DonateCommand extends tesseract_1[_0x6feeaf(0x13e)]{constructor(){const _0x135eaf=_0x6feeaf;super('donate',{'description':_0x135eaf(0x134),'triggers':[],'arguments':{},'scope':_0x135eaf(0x138),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x287bda=>{const _0x240bd0=_0x135eaf;await _0x287bda[_0x240bd0(0x12f)][_0x240bd0(0x12c)]({'embed':{'color':tesseract_1[_0x240bd0(0x13a)][_0x240bd0(0x12e)][_0x240bd0(0x129)],'author':{'name':this['client'][_0x240bd0(0x127)]['getConstant']('bastion.name'),'url':this[_0x240bd0(0x130)][_0x240bd0(0x127)][_0x240bd0(0x133)](_0x240bd0(0x12b))},'title':_0x240bd0(0x12d),'url':this[_0x240bd0(0x130)]['locale'][_0x240bd0(0x133)](_0x240bd0(0x12b))+_0x240bd0(0x126),'description':_0x240bd0(0x128),'fields':[{'name':'Show\x20your\x20appreciation','value':_0x240bd0(0x13c)+this['client'][_0x240bd0(0x127)][_0x240bd0(0x133)]('bastion.project')+']('+this[_0x240bd0(0x130)][_0x240bd0(0x127)][_0x240bd0(0x133)](_0x240bd0(0x12b))+_0x240bd0(0x13b),'inline':!![]}],'footer':{'text':this['client'][_0x240bd0(0x127)][_0x240bd0(0x132)](_0x287bda[_0x240bd0(0x138)]['document'][_0x240bd0(0x131)],_0x240bd0(0x135),'didYouKnowDonation')}}})[_0x240bd0(0x137)](()=>{});};}}; \ No newline at end of file +const a70_0x223a=['Donate','**Donate\x20and\x20get\x20cool\x20rewards!**\x20Support\x20the\x20development\x20of\x20Bastion\x20to\x20help\x20keep\x20it\x20running,\x20and\x20enjoy\x20an\x20enhanced\x20Bastion\x20exprience.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','test','getString','constructor','didYouKnowDonation','It\x20allows\x20you\x20to\x20see\x20the\x20ways\x20you\x20can\x20contribute\x20to\x20Bastion\x20and\x20it\x27s\x20development.','COLORS','client','bastion.project','[Donate\x20to\x20','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','/donate)','getConstant','guild','info','locale','exports','bastion.website','catch','GREEN','channel','document','bastion.name','language','apply','/donate','Command'];(function(_0x5d8ae6,_0xacf15b){const _0x223a78=function(_0x58f86c){while(--_0x58f86c){_0x5d8ae6['push'](_0x5d8ae6['shift']());}},_0x4ef7e0=function(){const _0x534a70={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x51701d,_0x58fa1f,_0xc983ca,_0x508ed2){_0x508ed2=_0x508ed2||{};let _0x2fdb0c=_0x58fa1f+'='+_0xc983ca,_0x55d56b=0x0;for(let _0x36c5f3=0x0,_0x3f9885=_0x51701d['length'];_0x36c5f3<_0x3f9885;_0x36c5f3++){const _0x5a0249=_0x51701d[_0x36c5f3];_0x2fdb0c+=';\x20'+_0x5a0249;const _0x482516=_0x51701d[_0x5a0249];_0x51701d['push'](_0x482516),_0x3f9885=_0x51701d['length'],_0x482516!==!![]&&(_0x2fdb0c+='='+_0x482516);}_0x508ed2['cookie']=_0x2fdb0c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x396637,_0x2f9ea3){_0x396637=_0x396637||function(_0x466ec0){return _0x466ec0;};const _0x2fc289=_0x396637(new RegExp('(?:^|;\x20)'+_0x2f9ea3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x14e7dd=function(_0x1f8910,_0x26f551){_0x1f8910(++_0x26f551);};return _0x14e7dd(_0x223a78,_0xacf15b),_0x2fc289?decodeURIComponent(_0x2fc289[0x1]):undefined;}},_0x2d0880=function(){const _0x49e74b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49e74b['test'](_0x534a70['removeCookie']['toString']());};_0x534a70['updateCookie']=_0x2d0880;let _0x16edab='';const _0x311ec3=_0x534a70['updateCookie']();if(!_0x311ec3)_0x534a70['setCookie'](['*'],'counter',0x1);else _0x311ec3?_0x16edab=_0x534a70['getCookie'](null,'counter'):_0x534a70['removeCookie']();};_0x4ef7e0();}(a70_0x223a,0x73));const a70_0x4ef7=function(_0x5d8ae6,_0xacf15b){_0x5d8ae6=_0x5d8ae6-0xac;let _0x223a78=a70_0x223a[_0x5d8ae6];return _0x223a78;};const a70_0x4a139d=a70_0x4ef7,a70_0x2d0880=function(){let _0x311ec3=!![];return function(_0x51701d,_0x58fa1f){const _0xc983ca=_0x311ec3?function(){const _0x4b310f=a70_0x4ef7;if(_0x58fa1f){const _0x508ed2=_0x58fa1f[_0x4b310f(0xae)](_0x51701d,arguments);return _0x58fa1f=null,_0x508ed2;}}:function(){};return _0x311ec3=![],_0xc983ca;};}(),a70_0x534a70=a70_0x2d0880(this,function(){const _0x2fdb0c=function(){const _0x52d09d=a70_0x4ef7,_0x55d56b=_0x2fdb0c['constructor'](_0x52d09d(0xb3))()[_0x52d09d(0xb7)](_0x52d09d(0xbe));return!_0x55d56b[_0x52d09d(0xb5)](a70_0x534a70);};return _0x2fdb0c();});a70_0x534a70();'use strict';const tesseract_1=require('@bastion/tesseract');module[a70_0x4a139d(0xc4)]=class DonateCommand extends tesseract_1[a70_0x4a139d(0xb0)]{constructor(){const _0x6362d5=a70_0x4a139d;super('donate',{'description':_0x6362d5(0xb9),'triggers':[],'arguments':{},'scope':_0x6362d5(0xc1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x6362d5(0xb4)]=async _0x36c5f3=>{const _0x53538a=_0x6362d5;await _0x36c5f3[_0x53538a(0xc8)]['send']({'embed':{'color':tesseract_1['Constants'][_0x53538a(0xba)][_0x53538a(0xc7)],'author':{'name':this[_0x53538a(0xbb)][_0x53538a(0xc3)]['getConstant'](_0x53538a(0xac)),'url':this['client']['locale']['getConstant']('bastion.website')},'title':_0x53538a(0xb1),'url':this['client']['locale']['getConstant']('bastion.website')+_0x53538a(0xaf),'description':_0x53538a(0xb2),'fields':[{'name':'Show\x20your\x20appreciation','value':_0x53538a(0xbd)+this[_0x53538a(0xbb)][_0x53538a(0xc3)][_0x53538a(0xc0)](_0x53538a(0xbc))+']('+this['client'][_0x53538a(0xc3)][_0x53538a(0xc0)](_0x53538a(0xc5))+_0x53538a(0xbf),'inline':!![]}],'footer':{'text':this[_0x53538a(0xbb)][_0x53538a(0xc3)][_0x53538a(0xb6)](_0x36c5f3[_0x53538a(0xc1)][_0x53538a(0xc9)][_0x53538a(0xad)],_0x53538a(0xc2),_0x53538a(0xb8))}}})[_0x53538a(0xc6)](()=>{});};}}; \ No newline at end of file diff --git a/commands/help/help.js b/commands/help/help.js index c95a41c66..c95d9e521 100644 --- a/commands/help/help.js +++ b/commands/help/help.js @@ -1 +1 @@ -const a70_0x1135=['client','document','Command','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channel','exec','commandDetailsOption','author.username','[Invite\x20','send','Need\x20help\x20with\x20','bastion.server.name','It\x20allows\x20you\x20to\x20see\x20the\x20help\x20message\x20of\x20Bastion\x20that\x20shows\x20you\x20basic\x20information\x20you\x20need\x20to\x20start\x20using\x20Bastion.','info','language','exports','didYouKnowDeveloper','help','YELLOW','constructor','catch','bastion.name','bastion.server.invite','bastion.website','getString','COLORS','getConstant','bastion.bot.invite','locale','categoryCommandsCommand'];(function(_0x57888d,_0x267028){const _0x1135d0=function(_0x2f34f5){while(--_0x2f34f5){_0x57888d['push'](_0x57888d['shift']());}},_0x519543=function(){const _0x4bb99e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2afedb,_0x5dc150,_0x1b1b38,_0x278a33){_0x278a33=_0x278a33||{};let _0x8f6ae0=_0x5dc150+'='+_0x1b1b38,_0x1cee30=0x0;for(let _0x483457=0x0,_0x4e270e=_0x2afedb['length'];_0x483457<_0x4e270e;_0x483457++){const _0x34a446=_0x2afedb[_0x483457];_0x8f6ae0+=';\x20'+_0x34a446;const _0x292e35=_0x2afedb[_0x34a446];_0x2afedb['push'](_0x292e35),_0x4e270e=_0x2afedb['length'],_0x292e35!==!![]&&(_0x8f6ae0+='='+_0x292e35);}_0x278a33['cookie']=_0x8f6ae0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x483bba,_0x30a400){_0x483bba=_0x483bba||function(_0x225006){return _0x225006;};const _0x371da7=_0x483bba(new RegExp('(?:^|;\x20)'+_0x30a400['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x11ea1b=function(_0x51f339,_0x58666b){_0x51f339(++_0x58666b);};return _0x11ea1b(_0x1135d0,_0x267028),_0x371da7?decodeURIComponent(_0x371da7[0x1]):undefined;}},_0x44db62=function(){const _0x411004=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x411004['test'](_0x4bb99e['removeCookie']['toString']());};_0x4bb99e['updateCookie']=_0x44db62;let _0x4a552a='';const _0x101b5f=_0x4bb99e['updateCookie']();if(!_0x101b5f)_0x4bb99e['setCookie'](['*'],'counter',0x1);else _0x101b5f?_0x4a552a=_0x4bb99e['getCookie'](null,'counter'):_0x4bb99e['removeCookie']();};_0x519543();}(a70_0x1135,0xf4));const a70_0x5195=function(_0x57888d,_0x267028){_0x57888d=_0x57888d-0xe7;let _0x1135d0=a70_0x1135[_0x57888d];return _0x1135d0;};const _0x432aa6=a70_0x5195,a70_0x44db62=function(){let _0x101b5f=!![];return function(_0x2afedb,_0x5dc150){const _0x1b1b38=_0x101b5f?function(){if(_0x5dc150){const _0x278a33=_0x5dc150['apply'](_0x2afedb,arguments);return _0x5dc150=null,_0x278a33;}}:function(){};return _0x101b5f=![],_0x1b1b38;};}(),a70_0x4bb99e=a70_0x44db62(this,function(){const _0x8f6ae0=function(){const _0x4080e9=a70_0x5195,_0x1cee30=_0x8f6ae0[_0x4080e9(0xff)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4080e9(0xff)](_0x4080e9(0xef));return!_0x1cee30['test'](a70_0x4bb99e);};return _0x8f6ae0();});a70_0x4bb99e();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x432aa6(0xfb)]=class HelpCommand extends tesseract_1[_0x432aa6(0xed)]{constructor(){const _0x4983f1=_0x432aa6;super(_0x4983f1(0xfd),{'description':_0x4983f1(0xf8),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x4983f1(0xf1)]=async _0x483457=>{const _0x537282=_0x4983f1;await _0x483457[_0x537282(0xf0)][_0x537282(0xf5)]({'embed':{'color':tesseract_1['Constants'][_0x537282(0x105)][_0x537282(0xfe)],'author':{'name':this[_0x537282(0xeb)][_0x537282(0xe9)][_0x537282(0xe7)](_0x537282(0x101)),'url':this['client'][_0x537282(0xe9)]['getConstant'](_0x537282(0x103))},'title':'Help','description':this[_0x537282(0xeb)][_0x537282(0xe9)][_0x537282(0x104)](_0x483457[_0x537282(0xee)]['document'][_0x537282(0xfa)],_0x537282(0xf9),'commandCategoriesCommand')+'\x0a'+this['client'][_0x537282(0xe9)][_0x537282(0x104)](_0x483457[_0x537282(0xee)][_0x537282(0xec)][_0x537282(0xfa)],_0x537282(0xf9),_0x537282(0xea))+'\x0a'+this[_0x537282(0xeb)][_0x537282(0xe9)][_0x537282(0x104)](_0x483457['guild'][_0x537282(0xec)][_0x537282(0xfa)],_0x537282(0xf9),_0x537282(0xf2)),'fields':[{'name':_0x537282(0xf6)+this[_0x537282(0xeb)][_0x537282(0xe9)][_0x537282(0xe7)](_0x537282(0x101))+'?','value':'[Join\x20'+this[_0x537282(0xeb)]['locale']['getConstant'](_0x537282(0xf7))+']('+this[_0x537282(0xeb)]['locale']['getConstant'](_0x537282(0x102))+')','inline':!![]},{'name':'Wanna\x20give\x20awesome\x20perks\x20to\x20your\x20server?','value':_0x537282(0xf4)+this[_0x537282(0xeb)][_0x537282(0xe9)][_0x537282(0xe7)]('bastion.name')+'\x20to\x20your\x20server]('+this[_0x537282(0xeb)][_0x537282(0xe9)][_0x537282(0xe7)](_0x537282(0xe8))+')','inline':!![]}],'footer':{'text':this['client'][_0x537282(0xe9)]['getString'](_0x483457['guild'][_0x537282(0xec)]['language'],'info',_0x537282(0xfc),this[_0x537282(0xeb)]['locale'][_0x537282(0xe7)](_0x537282(0xf3)))}}})[_0x537282(0x100)](()=>{});};}}; \ No newline at end of file +const a71_0x5847=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','didYouKnowDeveloper','Constants','bastion.website','[Join\x20','constructor','bastion.server.invite','Command','commandCategoriesCommand','bastion.bot.invite','Help','getConstant','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','help','bastion.name','@bastion/tesseract','getString','guild','apply','info','YELLOW','author.username','test','catch','document','Wanna\x20give\x20awesome\x20perks\x20to\x20your\x20server?','client','[Invite\x20','\x20to\x20your\x20server](','exec','Need\x20help\x20with\x20','exports'];(function(_0x58c202,_0x22e468){const _0x584791=function(_0x39e1a8){while(--_0x39e1a8){_0x58c202['push'](_0x58c202['shift']());}},_0x1a115c=function(){const _0x353bcf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4c781c,_0x137404,_0x809b60,_0x5262fe){_0x5262fe=_0x5262fe||{};let _0x33c81a=_0x137404+'='+_0x809b60,_0x1fdb5f=0x0;for(let _0x345216=0x0,_0x192932=_0x4c781c['length'];_0x345216<_0x192932;_0x345216++){const _0xc42711=_0x4c781c[_0x345216];_0x33c81a+=';\x20'+_0xc42711;const _0x393295=_0x4c781c[_0xc42711];_0x4c781c['push'](_0x393295),_0x192932=_0x4c781c['length'],_0x393295!==!![]&&(_0x33c81a+='='+_0x393295);}_0x5262fe['cookie']=_0x33c81a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4b9f3a,_0x1daee4){_0x4b9f3a=_0x4b9f3a||function(_0x12dfab){return _0x12dfab;};const _0x4042e9=_0x4b9f3a(new RegExp('(?:^|;\x20)'+_0x1daee4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20680a=function(_0x1a1862,_0x535bf9){_0x1a1862(++_0x535bf9);};return _0x20680a(_0x584791,_0x22e468),_0x4042e9?decodeURIComponent(_0x4042e9[0x1]):undefined;}},_0x224770=function(){const _0x263801=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x263801['test'](_0x353bcf['removeCookie']['toString']());};_0x353bcf['updateCookie']=_0x224770;let _0x1fc61a='';const _0x29cfbe=_0x353bcf['updateCookie']();if(!_0x29cfbe)_0x353bcf['setCookie'](['*'],'counter',0x1);else _0x29cfbe?_0x1fc61a=_0x353bcf['getCookie'](null,'counter'):_0x353bcf['removeCookie']();};_0x1a115c();}(a71_0x5847,0x1a8));const a71_0x1a11=function(_0x58c202,_0x22e468){_0x58c202=_0x58c202-0xa7;let _0x584791=a71_0x5847[_0x58c202];return _0x584791;};const a71_0x1cbc73=a71_0x1a11,a71_0x224770=function(){let _0x29cfbe=!![];return function(_0x4c781c,_0x137404){const _0x809b60=_0x29cfbe?function(){const _0x270eec=a71_0x1a11;if(_0x137404){const _0x5262fe=_0x137404[_0x270eec(0xab)](_0x4c781c,arguments);return _0x137404=null,_0x5262fe;}}:function(){};return _0x29cfbe=![],_0x809b60;};}(),a71_0x353bcf=a71_0x224770(this,function(){const _0x33c81a=function(){const _0x4e07c0=a71_0x1a11,_0x1fdb5f=_0x33c81a[_0x4e07c0(0xbe)](_0x4e07c0(0xb9))()[_0x4e07c0(0xbe)](_0x4e07c0(0xc6));return!_0x1fdb5f[_0x4e07c0(0xaf)](a71_0x353bcf);};return _0x33c81a();});a71_0x353bcf();'use strict';const tesseract_1=require(a71_0x1cbc73(0xa8));module[a71_0x1cbc73(0xb8)]=class HelpCommand extends tesseract_1[a71_0x1cbc73(0xc0)]{constructor(){const _0x1e9fb3=a71_0x1cbc73;super(_0x1e9fb3(0xc8),{'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':_0x1e9fb3(0xaa),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x1e9fb3(0xb6)]=async _0x345216=>{const _0x3c5da9=_0x1e9fb3;await _0x345216['channel']['send']({'embed':{'color':tesseract_1[_0x3c5da9(0xbb)]['COLORS'][_0x3c5da9(0xad)],'author':{'name':this[_0x3c5da9(0xb3)]['locale'][_0x3c5da9(0xc4)]('bastion.name'),'url':this['client'][_0x3c5da9(0xc5)][_0x3c5da9(0xc4)](_0x3c5da9(0xbc))},'title':_0x3c5da9(0xc3),'description':this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)][_0x3c5da9(0xa9)](_0x345216[_0x3c5da9(0xaa)][_0x3c5da9(0xb1)][_0x3c5da9(0xc7)],_0x3c5da9(0xac),_0x3c5da9(0xc1))+'\x0a'+this['client'][_0x3c5da9(0xc5)]['getString'](_0x345216[_0x3c5da9(0xaa)][_0x3c5da9(0xb1)][_0x3c5da9(0xc7)],_0x3c5da9(0xac),'categoryCommandsCommand')+'\x0a'+this['client'][_0x3c5da9(0xc5)][_0x3c5da9(0xa9)](_0x345216[_0x3c5da9(0xaa)]['document']['language'],_0x3c5da9(0xac),'commandDetailsOption'),'fields':[{'name':_0x3c5da9(0xb7)+this[_0x3c5da9(0xb3)]['locale'][_0x3c5da9(0xc4)](_0x3c5da9(0xa7))+'?','value':_0x3c5da9(0xbd)+this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)][_0x3c5da9(0xc4)]('bastion.server.name')+']('+this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)][_0x3c5da9(0xc4)](_0x3c5da9(0xbf))+')','inline':!![]},{'name':_0x3c5da9(0xb2),'value':_0x3c5da9(0xb4)+this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)][_0x3c5da9(0xc4)]('bastion.name')+_0x3c5da9(0xb5)+this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)][_0x3c5da9(0xc4)](_0x3c5da9(0xc2))+')','inline':!![]}],'footer':{'text':this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)][_0x3c5da9(0xa9)](_0x345216[_0x3c5da9(0xaa)][_0x3c5da9(0xb1)]['language'],_0x3c5da9(0xac),_0x3c5da9(0xba),this[_0x3c5da9(0xb3)][_0x3c5da9(0xc5)]['getConstant'](_0x3c5da9(0xae)))}}})[_0x3c5da9(0xb0)](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/avatar.js b/commands/info/avatar.js index 4565dba75..b1d6fd3e5 100644 --- a/commands/info/avatar.js +++ b/commands/info/avatar.js @@ -1 +1 @@ -const a71_0x9212=['@bastion/tesseract','test','author','displayAvatarURL','client','constructor','It\x20allows\x20you\x20see\x20the\x20avatar\x20of\x20a\x20user.','send','Avatar','exec','avatar\x20USER','fetch','join','Constants','avatar','IRIS','Command','catch','tag','COLORS','users'];(function(_0x5549fb,_0x4f3bf1){const _0x9212cc=function(_0x3e7e9b){while(--_0x3e7e9b){_0x5549fb['push'](_0x5549fb['shift']());}},_0xf98638=function(){const _0x49e43e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5bc56a,_0x46d2d9,_0x596191,_0x43a92f){_0x43a92f=_0x43a92f||{};let _0x7ac66f=_0x46d2d9+'='+_0x596191,_0x382290=0x0;for(let _0x257c6e=0x0,_0x4759c0=_0x5bc56a['length'];_0x257c6e<_0x4759c0;_0x257c6e++){const _0x2009f6=_0x5bc56a[_0x257c6e];_0x7ac66f+=';\x20'+_0x2009f6;const _0x7c96e9=_0x5bc56a[_0x2009f6];_0x5bc56a['push'](_0x7c96e9),_0x4759c0=_0x5bc56a['length'],_0x7c96e9!==!![]&&(_0x7ac66f+='='+_0x7c96e9);}_0x43a92f['cookie']=_0x7ac66f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x555415,_0x59d0c3){_0x555415=_0x555415||function(_0x404c29){return _0x404c29;};const _0x5d04c4=_0x555415(new RegExp('(?:^|;\x20)'+_0x59d0c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41186b=function(_0x5bb036,_0x976fde){_0x5bb036(++_0x976fde);};return _0x41186b(_0x9212cc,_0x4f3bf1),_0x5d04c4?decodeURIComponent(_0x5d04c4[0x1]):undefined;}},_0x5b15b3=function(){const _0x3b355a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b355a['test'](_0x49e43e['removeCookie']['toString']());};_0x49e43e['updateCookie']=_0x5b15b3;let _0x1c2320='';const _0x1ad6d7=_0x49e43e['updateCookie']();if(!_0x1ad6d7)_0x49e43e['setCookie'](['*'],'counter',0x1);else _0x1ad6d7?_0x1c2320=_0x49e43e['getCookie'](null,'counter'):_0x49e43e['removeCookie']();};_0xf98638();}(a71_0x9212,0x80));const a71_0xf986=function(_0x5549fb,_0x4f3bf1){_0x5549fb=_0x5549fb-0x1e2;let _0x9212cc=a71_0x9212[_0x5549fb];return _0x9212cc;};const _0x2ec208=a71_0xf986,a71_0x5b15b3=function(){let _0x1ad6d7=!![];return function(_0x5bc56a,_0x46d2d9){const _0x596191=_0x1ad6d7?function(){if(_0x46d2d9){const _0x43a92f=_0x46d2d9['apply'](_0x5bc56a,arguments);return _0x46d2d9=null,_0x43a92f;}}:function(){};return _0x1ad6d7=![],_0x596191;};}(),a71_0x49e43e=a71_0x5b15b3(this,function(){const _0x7ac66f=function(){const _0x5bdc46=a71_0xf986,_0x382290=_0x7ac66f['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5bdc46(0x1e5)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x382290[_0x5bdc46(0x1f6)](a71_0x49e43e);};return _0x7ac66f();});a71_0x49e43e();'use strict';const tesseract_1=require(_0x2ec208(0x1f5));module['exports']=class AvatarCommand extends tesseract_1[_0x2ec208(0x1f0)]{constructor(){const _0x524bbd=_0x2ec208;super(_0x524bbd(0x1ee),{'description':_0x524bbd(0x1e6),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x524bbd(0x1ee),_0x524bbd(0x1ea)]}),this[_0x524bbd(0x1e9)]=async(_0x257c6e,_0x4759c0)=>{const _0x2c427d=_0x524bbd,_0x2009f6=_0x4759c0['_'][_0x2c427d(0x1ec)]('\x20');let _0x7c96e9;return _0x2009f6?_0x7c96e9=await this[_0x2c427d(0x1e4)][_0x2c427d(0x1f4)][_0x2c427d(0x1eb)](_0x2009f6):_0x7c96e9=_0x257c6e[_0x2c427d(0x1e2)],_0x257c6e['channel'][_0x2c427d(0x1e7)]({'embed':{'color':tesseract_1[_0x2c427d(0x1ed)][_0x2c427d(0x1f3)][_0x2c427d(0x1ef)],'author':{'name':_0x7c96e9[_0x2c427d(0x1f2)]},'title':_0x2c427d(0x1e8),'image':{'url':_0x7c96e9[_0x2c427d(0x1e3)]({'dynamic':!![],'size':0x200})},'footer':{'text':_0x7c96e9['id']}}})[_0x2c427d(0x1f1)](()=>{});};}}; \ No newline at end of file +const a72_0x5df6=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','fetch','join','test','displayAvatarURL','client','Command','apply','catch','channel','COLORS','It\x20allows\x20you\x20see\x20the\x20avatar\x20of\x20a\x20user.','users','send','guild','tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','avatar','@bastion/tesseract','exports'];(function(_0x14eb3f,_0x4e50b1){const _0x5df66c=function(_0x10bb7c){while(--_0x10bb7c){_0x14eb3f['push'](_0x14eb3f['shift']());}},_0x52a39d=function(){const _0x2db786={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5eb60c,_0x207f6f,_0x3b2e63,_0x2374da){_0x2374da=_0x2374da||{};let _0x2d48b0=_0x207f6f+'='+_0x3b2e63,_0xf8b467=0x0;for(let _0x563ebc=0x0,_0xaba7e0=_0x5eb60c['length'];_0x563ebc<_0xaba7e0;_0x563ebc++){const _0x3f4c14=_0x5eb60c[_0x563ebc];_0x2d48b0+=';\x20'+_0x3f4c14;const _0x4c46aa=_0x5eb60c[_0x3f4c14];_0x5eb60c['push'](_0x4c46aa),_0xaba7e0=_0x5eb60c['length'],_0x4c46aa!==!![]&&(_0x2d48b0+='='+_0x4c46aa);}_0x2374da['cookie']=_0x2d48b0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x37a6ff,_0x59bc43){_0x37a6ff=_0x37a6ff||function(_0x50e8a2){return _0x50e8a2;};const _0x53d578=_0x37a6ff(new RegExp('(?:^|;\x20)'+_0x59bc43['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xad1985=function(_0x5016ff,_0x2e44fe){_0x5016ff(++_0x2e44fe);};return _0xad1985(_0x5df66c,_0x4e50b1),_0x53d578?decodeURIComponent(_0x53d578[0x1]):undefined;}},_0x1c81be=function(){const _0x349402=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x349402['test'](_0x2db786['removeCookie']['toString']());};_0x2db786['updateCookie']=_0x1c81be;let _0x272a24='';const _0x491dcc=_0x2db786['updateCookie']();if(!_0x491dcc)_0x2db786['setCookie'](['*'],'counter',0x1);else _0x491dcc?_0x272a24=_0x2db786['getCookie'](null,'counter'):_0x2db786['removeCookie']();};_0x52a39d();}(a72_0x5df6,0xcb));const a72_0x52a3=function(_0x14eb3f,_0x4e50b1){_0x14eb3f=_0x14eb3f-0x90;let _0x5df66c=a72_0x5df6[_0x14eb3f];return _0x5df66c;};const a72_0x11bee5=a72_0x52a3,a72_0x1c81be=function(){let _0x491dcc=!![];return function(_0x5eb60c,_0x207f6f){const _0x3b2e63=_0x491dcc?function(){const _0x4bbf0b=a72_0x52a3;if(_0x207f6f){const _0x2374da=_0x207f6f[_0x4bbf0b(0x94)](_0x5eb60c,arguments);return _0x207f6f=null,_0x2374da;}}:function(){};return _0x491dcc=![],_0x3b2e63;};}(),a72_0x2db786=a72_0x1c81be(this,function(){const _0x2d48b0=function(){const _0x53c14f=a72_0x52a3,_0xf8b467=_0x2d48b0['constructor'](_0x53c14f(0x9d))()['constructor'](_0x53c14f(0xa1));return!_0xf8b467[_0x53c14f(0x90)](a72_0x2db786);};return _0x2d48b0();});a72_0x2db786();'use strict';const tesseract_1=require(a72_0x11bee5(0x9f));module[a72_0x11bee5(0xa0)]=class AvatarCommand extends tesseract_1[a72_0x11bee5(0x93)]{constructor(){const _0x1053aa=a72_0x11bee5;super(_0x1053aa(0x9e),{'description':_0x1053aa(0x98),'triggers':[],'arguments':{},'scope':_0x1053aa(0x9b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['avatar','avatar\x20USER']}),this['exec']=async(_0x563ebc,_0xaba7e0)=>{const _0x1277fc=_0x1053aa,_0x3f4c14=_0xaba7e0['_'][_0x1277fc(0xa3)]('\x20');let _0x4c46aa;return _0x3f4c14?_0x4c46aa=await this[_0x1277fc(0x92)][_0x1277fc(0x99)][_0x1277fc(0xa2)](_0x3f4c14):_0x4c46aa=_0x563ebc['author'],_0x563ebc[_0x1277fc(0x96)][_0x1277fc(0x9a)]({'embed':{'color':tesseract_1['Constants'][_0x1277fc(0x97)]['IRIS'],'author':{'name':_0x4c46aa[_0x1277fc(0x9c)]},'title':'Avatar','image':{'url':_0x4c46aa[_0x1277fc(0x91)]({'dynamic':!![],'size':0x200})},'footer':{'text':_0x4c46aa['id']}}})[_0x1277fc(0x95)](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/channel.js b/commands/info/channel.js index 6b69a3855..95d5d50e1 100644 --- a/commands/info/channel.js +++ b/commands/info/channel.js @@ -1 +1 @@ -const a72_0x3ac6=['client','resolveGuildChannel','Constants','locale','Created','channelNotFound','apply','toUTCString','name','language','parent','test','Synced','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20channel.','errors','../../utils/strings','toTitleCase','channel\x20CHANNEL','topic','\x20Channel','channel','Command','rawPosition','getString','\x20Members','join','Members','@bastion/tesseract','permissionsLocked','COLORS','size','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','guild','exec','Position','constructor','resolver','send','members','Not\x20Synced'];(function(_0x5b5ef1,_0x34a302){const _0x3ac65f=function(_0x291e1f){while(--_0x291e1f){_0x5b5ef1['push'](_0x5b5ef1['shift']());}},_0x37c98b=function(){const _0x589800={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x17d8b6,_0xa15aa7,_0x508f9c,_0x14d0f5){_0x14d0f5=_0x14d0f5||{};let _0x5f1fe6=_0xa15aa7+'='+_0x508f9c,_0x5558b0=0x0;for(let _0x163205=0x0,_0x5522c3=_0x17d8b6['length'];_0x163205<_0x5522c3;_0x163205++){const _0x291657=_0x17d8b6[_0x163205];_0x5f1fe6+=';\x20'+_0x291657;const _0x4fe12e=_0x17d8b6[_0x291657];_0x17d8b6['push'](_0x4fe12e),_0x5522c3=_0x17d8b6['length'],_0x4fe12e!==!![]&&(_0x5f1fe6+='='+_0x4fe12e);}_0x14d0f5['cookie']=_0x5f1fe6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x41e79d,_0x32631d){_0x41e79d=_0x41e79d||function(_0x5435ca){return _0x5435ca;};const _0x3519df=_0x41e79d(new RegExp('(?:^|;\x20)'+_0x32631d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5dbf6b=function(_0x2dac58,_0x5b1568){_0x2dac58(++_0x5b1568);};return _0x5dbf6b(_0x3ac65f,_0x34a302),_0x3519df?decodeURIComponent(_0x3519df[0x1]):undefined;}},_0x2001a4=function(){const _0x27430f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x27430f['test'](_0x589800['removeCookie']['toString']());};_0x589800['updateCookie']=_0x2001a4;let _0x27f44b='';const _0x377344=_0x589800['updateCookie']();if(!_0x377344)_0x589800['setCookie'](['*'],'counter',0x1);else _0x377344?_0x27f44b=_0x589800['getCookie'](null,'counter'):_0x589800['removeCookie']();};_0x37c98b();}(a72_0x3ac6,0xb6));const a72_0x37c9=function(_0x5b5ef1,_0x34a302){_0x5b5ef1=_0x5b5ef1-0x11e;let _0x3ac65f=a72_0x3ac6[_0x5b5ef1];return _0x3ac65f;};const _0x3e3b88=a72_0x37c9,a72_0x2001a4=function(){let _0x377344=!![];return function(_0x17d8b6,_0xa15aa7){const _0x508f9c=_0x377344?function(){const _0x35cee4=a72_0x37c9;if(_0xa15aa7){const _0x14d0f5=_0xa15aa7[_0x35cee4(0x13b)](_0x17d8b6,arguments);return _0xa15aa7=null,_0x14d0f5;}}:function(){};return _0x377344=![],_0x508f9c;};}(),a72_0x589800=a72_0x2001a4(this,function(){const _0x5f1fe6=function(){const _0x8fab4d=a72_0x37c9,_0x5558b0=_0x5f1fe6[_0x8fab4d(0x130)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x8fab4d(0x130)](_0x8fab4d(0x12b));return!_0x5558b0[_0x8fab4d(0x140)](a72_0x589800);};return _0x5f1fe6();});a72_0x589800();'use strict';const tesseract_1=require(_0x3e3b88(0x127)),strings=require(_0x3e3b88(0x144));module['exports']=class ChannelCommand extends tesseract_1[_0x3e3b88(0x121)]{constructor(){const _0xd772f9=_0x3e3b88;super('channel',{'description':_0xd772f9(0x142),'triggers':['channelInfo'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['channel',_0xd772f9(0x146)]}),this[_0xd772f9(0x12e)]=async(_0x163205,_0x5522c3)=>{const _0x534e46=_0xd772f9,_0x291657=_0x5522c3['_'][_0x534e46(0x125)]('\x20');let _0x4fe12e;_0x291657?_0x4fe12e=this['client'][_0x534e46(0x131)][_0x534e46(0x136)](_0x163205[_0x534e46(0x12d)],_0x291657):_0x4fe12e=_0x163205['channel'];if(!_0x4fe12e)throw new Error(this[_0x534e46(0x135)][_0x534e46(0x138)][_0x534e46(0x123)](_0x163205[_0x534e46(0x12d)][_0x534e46(0x12c)][_0x534e46(0x13e)],_0x534e46(0x143),_0x534e46(0x13a)));_0x163205[_0x534e46(0x120)][_0x534e46(0x132)]({'embed':{'color':tesseract_1[_0x534e46(0x137)][_0x534e46(0x129)]['IRIS'],'author':{'name':_0x4fe12e[_0x534e46(0x13d)]},'title':strings[_0x534e46(0x145)](_0x4fe12e['type'])+_0x534e46(0x11f),'description':'topic'in _0x4fe12e?_0x4fe12e[_0x534e46(0x11e)]:null,'fields':[{'name':_0x534e46(0x12f),'value':_0x4fe12e[_0x534e46(0x122)]['toString'](),'inline':!![]},{'name':'Category','value':_0x4fe12e[_0x534e46(0x13f)]?_0x4fe12e[_0x534e46(0x13f)][_0x534e46(0x13d)]:'-','inline':!![]},{'name':_0x534e46(0x126),'value':_0x4fe12e[_0x534e46(0x133)][_0x534e46(0x12a)]+_0x534e46(0x124),'inline':!![]},{'name':_0x534e46(0x139),'value':_0x4fe12e['createdAt'][_0x534e46(0x13c)](),'inline':!![]}],'footer':{'text':(_0x4fe12e[_0x534e46(0x128)]?_0x534e46(0x141):_0x534e46(0x134))+'\x20•\x20'+_0x4fe12e['id']}}})['catch'](()=>{});};}}; \ No newline at end of file +const a73_0x3534=['Members','test','send','exec','\x20•\x20','Category','locale','join','\x20Members','Position','members','guild','Created','rawPosition','toString','@bastion/tesseract','channel\x20CHANNEL','parent','constructor','COLORS','language','exports','topic','IRIS','resolveGuildChannel','getString','Command','name','permissionsLocked','channel','client','../../utils/strings','toTitleCase'];(function(_0x46dfd7,_0x1a673e){const _0x3534bf=function(_0x49df0c){while(--_0x49df0c){_0x46dfd7['push'](_0x46dfd7['shift']());}},_0x3b39c5=function(){const _0x1dd907={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13ee4b,_0x1e6f7e,_0x1685a3,_0x302786){_0x302786=_0x302786||{};let _0x48fd98=_0x1e6f7e+'='+_0x1685a3,_0x3e0692=0x0;for(let _0x112588=0x0,_0x566256=_0x13ee4b['length'];_0x112588<_0x566256;_0x112588++){const _0x32ce30=_0x13ee4b[_0x112588];_0x48fd98+=';\x20'+_0x32ce30;const _0x2864eb=_0x13ee4b[_0x32ce30];_0x13ee4b['push'](_0x2864eb),_0x566256=_0x13ee4b['length'],_0x2864eb!==!![]&&(_0x48fd98+='='+_0x2864eb);}_0x302786['cookie']=_0x48fd98;},'removeCookie':function(){return'dev';},'getCookie':function(_0x55ea73,_0xae80da){_0x55ea73=_0x55ea73||function(_0x4da3e3){return _0x4da3e3;};const _0x249ab9=_0x55ea73(new RegExp('(?:^|;\x20)'+_0xae80da['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x54a82d=function(_0x5c096d,_0x244638){_0x5c096d(++_0x244638);};return _0x54a82d(_0x3534bf,_0x1a673e),_0x249ab9?decodeURIComponent(_0x249ab9[0x1]):undefined;}},_0x493834=function(){const _0x27bbd1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x27bbd1['test'](_0x1dd907['removeCookie']['toString']());};_0x1dd907['updateCookie']=_0x493834;let _0x3457e8='';const _0x7b3ad1=_0x1dd907['updateCookie']();if(!_0x7b3ad1)_0x1dd907['setCookie'](['*'],'counter',0x1);else _0x7b3ad1?_0x3457e8=_0x1dd907['getCookie'](null,'counter'):_0x1dd907['removeCookie']();};_0x3b39c5();}(a73_0x3534,0x18a));const a73_0x3b39=function(_0x46dfd7,_0x1a673e){_0x46dfd7=_0x46dfd7-0x16d;let _0x3534bf=a73_0x3534[_0x46dfd7];return _0x3534bf;};const a73_0x4903b0=a73_0x3b39,a73_0x493834=function(){let _0x7b3ad1=!![];return function(_0x13ee4b,_0x1e6f7e){const _0x1685a3=_0x7b3ad1?function(){if(_0x1e6f7e){const _0x302786=_0x1e6f7e['apply'](_0x13ee4b,arguments);return _0x1e6f7e=null,_0x302786;}}:function(){};return _0x7b3ad1=![],_0x1685a3;};}(),a73_0x1dd907=a73_0x493834(this,function(){const _0x48fd98=function(){const _0x323cbc=a73_0x3b39,_0x3e0692=_0x48fd98[_0x323cbc(0x181)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3e0692[_0x323cbc(0x170)](a73_0x1dd907);};return _0x48fd98();});a73_0x1dd907();'use strict';const tesseract_1=require(a73_0x4903b0(0x17e)),strings=require(a73_0x4903b0(0x16d));module[a73_0x4903b0(0x184)]=class ChannelCommand extends tesseract_1[a73_0x4903b0(0x189)]{constructor(){const _0x181e5f=a73_0x4903b0;super(_0x181e5f(0x18c),{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20channel.','triggers':['channelInfo'],'arguments':{},'scope':_0x181e5f(0x17a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x181e5f(0x18c),_0x181e5f(0x17f)]}),this[_0x181e5f(0x172)]=async(_0x112588,_0x566256)=>{const _0x200cf8=_0x181e5f,_0x32ce30=_0x566256['_'][_0x200cf8(0x176)]('\x20');let _0x2864eb;_0x32ce30?_0x2864eb=this['client']['resolver'][_0x200cf8(0x187)](_0x112588[_0x200cf8(0x17a)],_0x32ce30):_0x2864eb=_0x112588[_0x200cf8(0x18c)];if(!_0x2864eb)throw new Error(this[_0x200cf8(0x18d)][_0x200cf8(0x175)][_0x200cf8(0x188)](_0x112588['guild']['document'][_0x200cf8(0x183)],'errors','channelNotFound'));_0x112588[_0x200cf8(0x18c)][_0x200cf8(0x171)]({'embed':{'color':tesseract_1['Constants'][_0x200cf8(0x182)][_0x200cf8(0x186)],'author':{'name':_0x2864eb[_0x200cf8(0x18a)]},'title':strings[_0x200cf8(0x16e)](_0x2864eb['type'])+'\x20Channel','description':'topic'in _0x2864eb?_0x2864eb[_0x200cf8(0x185)]:null,'fields':[{'name':_0x200cf8(0x178),'value':_0x2864eb[_0x200cf8(0x17c)][_0x200cf8(0x17d)](),'inline':!![]},{'name':_0x200cf8(0x174),'value':_0x2864eb[_0x200cf8(0x180)]?_0x2864eb[_0x200cf8(0x180)][_0x200cf8(0x18a)]:'-','inline':!![]},{'name':_0x200cf8(0x16f),'value':_0x2864eb[_0x200cf8(0x179)]['size']+_0x200cf8(0x177),'inline':!![]},{'name':_0x200cf8(0x17b),'value':_0x2864eb['createdAt']['toUTCString'](),'inline':!![]}],'footer':{'text':(_0x2864eb[_0x200cf8(0x18b)]?'Synced':'Not\x20Synced')+_0x200cf8(0x173)+_0x2864eb['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/emoji.js b/commands/info/emoji.js index d56e31503..891493a23 100644 --- a/commands/info/emoji.js +++ b/commands/info/emoji.js @@ -1 +1 @@ -const a73_0x3a14=['document','get','exports','url','emojis','managed','exec','emoji\x20EMOJI','getString','client','fetchAuthor','tag','channel','\x20Emoji','cache','locale','emojiInfo','includes','errors','find','has','author','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Managed','join','guild','Constants','emoji','emojiNotFound','animated','name','toUTCString','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','createdAt','Author','Command','IRIS','apply'];(function(_0x57c38f,_0x409091){const _0x3a14bd=function(_0x370922){while(--_0x370922){_0x57c38f['push'](_0x57c38f['shift']());}},_0x2da274=function(){const _0x4fe60c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x198e56,_0x280f80,_0x38213d,_0x477479){_0x477479=_0x477479||{};let _0x55e26d=_0x280f80+'='+_0x38213d,_0x255415=0x0;for(let _0x4c9201=0x0,_0x50149a=_0x198e56['length'];_0x4c9201<_0x50149a;_0x4c9201++){const _0x1912fb=_0x198e56[_0x4c9201];_0x55e26d+=';\x20'+_0x1912fb;const _0x1c8adc=_0x198e56[_0x1912fb];_0x198e56['push'](_0x1c8adc),_0x50149a=_0x198e56['length'],_0x1c8adc!==!![]&&(_0x55e26d+='='+_0x1c8adc);}_0x477479['cookie']=_0x55e26d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b06bb,_0x5cc727){_0x3b06bb=_0x3b06bb||function(_0x3fa1c0){return _0x3fa1c0;};const _0x2ecfd8=_0x3b06bb(new RegExp('(?:^|;\x20)'+_0x5cc727['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4e2d71=function(_0xb85a1b,_0x6aa7ec){_0xb85a1b(++_0x6aa7ec);};return _0x4e2d71(_0x3a14bd,_0x409091),_0x2ecfd8?decodeURIComponent(_0x2ecfd8[0x1]):undefined;}},_0x78f42b=function(){const _0x16e324=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x16e324['test'](_0x4fe60c['removeCookie']['toString']());};_0x4fe60c['updateCookie']=_0x78f42b;let _0x46a3ab='';const _0x4a21de=_0x4fe60c['updateCookie']();if(!_0x4a21de)_0x4fe60c['setCookie'](['*'],'counter',0x1);else _0x4a21de?_0x46a3ab=_0x4fe60c['getCookie'](null,'counter'):_0x4fe60c['removeCookie']();};_0x2da274();}(a73_0x3a14,0x92));const a73_0x2da2=function(_0x57c38f,_0x409091){_0x57c38f=_0x57c38f-0x1bb;let _0x3a14bd=a73_0x3a14[_0x57c38f];return _0x3a14bd;};const _0x42761d=a73_0x2da2,a73_0x78f42b=function(){let _0x4a21de=!![];return function(_0x198e56,_0x280f80){const _0x38213d=_0x4a21de?function(){const _0x247486=a73_0x2da2;if(_0x280f80){const _0x477479=_0x280f80[_0x247486(0x1c8)](_0x198e56,arguments);return _0x280f80=null,_0x477479;}}:function(){};return _0x4a21de=![],_0x38213d;};}(),a73_0x4fe60c=a73_0x78f42b(this,function(){const _0x55e26d=function(){const _0x1bab7b=a73_0x2da2,_0x255415=_0x55e26d[_0x1bab7b(0x1c3)](_0x1bab7b(0x1c2))()['constructor'](_0x1bab7b(0x1e0));return!_0x255415['test'](a73_0x4fe60c);};return _0x55e26d();});a73_0x4fe60c();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x42761d(0x1cb)]=class EmojiCommand extends tesseract_1[_0x42761d(0x1c6)]{constructor(){const _0x3d4475=_0x42761d;super(_0x3d4475(0x1bd),{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20an\x20emoji.','triggers':[_0x3d4475(0x1d9)],'arguments':{},'scope':_0x3d4475(0x1bb),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3d4475(0x1d0)]}),this[_0x3d4475(0x1cf)]=async(_0x4c9201,_0x50149a)=>{const _0x503ed4=_0x3d4475;let _0x1912fb=_0x50149a['_'][_0x503ed4(0x1e2)]('\x20');_0x1912fb[_0x503ed4(0x1da)](':')&&(_0x1912fb=_0x1912fb['split'](':')[0x1]);const _0x1c8adc=_0x4c9201[_0x503ed4(0x1bb)][_0x503ed4(0x1cd)][_0x503ed4(0x1d7)][_0x503ed4(0x1dd)](_0x1912fb)?_0x4c9201[_0x503ed4(0x1bb)]['emojis'][_0x503ed4(0x1d7)][_0x503ed4(0x1ca)](_0x1912fb):_0x4c9201[_0x503ed4(0x1bb)][_0x503ed4(0x1cd)][_0x503ed4(0x1d7)][_0x503ed4(0x1dc)](_0x5cc727=>_0x5cc727[_0x503ed4(0x1c0)]===_0x1912fb);if(!_0x1c8adc)throw new Error(this[_0x503ed4(0x1d2)][_0x503ed4(0x1d8)][_0x503ed4(0x1d1)](_0x4c9201[_0x503ed4(0x1bb)][_0x503ed4(0x1c9)]['language'],_0x503ed4(0x1db),_0x503ed4(0x1be)));const _0x3b06bb=_0x1c8adc[_0x503ed4(0x1de)]&&_0x1c8adc[_0x503ed4(0x1de)]['id']?_0x1c8adc[_0x503ed4(0x1de)]:await _0x1c8adc[_0x503ed4(0x1d3)]()['catch'](()=>{});_0x4c9201[_0x503ed4(0x1d5)]['send']({'embed':{'color':tesseract_1[_0x503ed4(0x1bc)][_0x503ed4(0x1df)][_0x503ed4(0x1c7)],'author':{'name':_0x1c8adc[_0x503ed4(0x1c0)]},'title':(_0x1c8adc[_0x503ed4(0x1ce)]?_0x503ed4(0x1e1):'')+_0x503ed4(0x1d6),'fields':[{'name':_0x503ed4(0x1c5),'value':_0x3b06bb?_0x3b06bb[_0x503ed4(0x1d4)]+'\x20/\x20'+_0x3b06bb['id']:'-'},{'name':'Created','value':_0x1c8adc[_0x503ed4(0x1c4)][_0x503ed4(0x1c1)]()}],'thumbnail':{'url':_0x1c8adc[_0x503ed4(0x1cc)]},'footer':{'text':(_0x1c8adc[_0x503ed4(0x1bf)]?'Animated\x20•\x20':'')+_0x1c8adc['id']}}})['catch'](()=>{});};}}; \ No newline at end of file +const a74_0x227c=['animated','send','tag','@bastion/tesseract','exports','test','split','emoji\x20EMOJI','emoji','getString','join','catch','has','Created','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','includes','cache','locale','document','name','errors','language','author','guild','find','emojis','IRIS','toUTCString','constructor','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20an\x20emoji.','emojiNotFound','\x20/\x20','COLORS','emojiInfo','url'];(function(_0x46d9b8,_0x13f365){const _0x227cea=function(_0x10af5c){while(--_0x10af5c){_0x46d9b8['push'](_0x46d9b8['shift']());}},_0x5a7663=function(){const _0x435e4f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2c2824,_0x2534ae,_0x2b081c,_0x48aedd){_0x48aedd=_0x48aedd||{};let _0xa744f7=_0x2534ae+'='+_0x2b081c,_0x5da95a=0x0;for(let _0x27d0a6=0x0,_0x4a1bff=_0x2c2824['length'];_0x27d0a6<_0x4a1bff;_0x27d0a6++){const _0x2d8fe9=_0x2c2824[_0x27d0a6];_0xa744f7+=';\x20'+_0x2d8fe9;const _0x59ad8a=_0x2c2824[_0x2d8fe9];_0x2c2824['push'](_0x59ad8a),_0x4a1bff=_0x2c2824['length'],_0x59ad8a!==!![]&&(_0xa744f7+='='+_0x59ad8a);}_0x48aedd['cookie']=_0xa744f7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x123380,_0x44c49d){_0x123380=_0x123380||function(_0x70eebf){return _0x70eebf;};const _0x5e09ae=_0x123380(new RegExp('(?:^|;\x20)'+_0x44c49d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1756d4=function(_0x3b7050,_0x141d94){_0x3b7050(++_0x141d94);};return _0x1756d4(_0x227cea,_0x13f365),_0x5e09ae?decodeURIComponent(_0x5e09ae[0x1]):undefined;}},_0x379a0d=function(){const _0xf2f0ac=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf2f0ac['test'](_0x435e4f['removeCookie']['toString']());};_0x435e4f['updateCookie']=_0x379a0d;let _0x58d6cf='';const _0x533efc=_0x435e4f['updateCookie']();if(!_0x533efc)_0x435e4f['setCookie'](['*'],'counter',0x1);else _0x533efc?_0x58d6cf=_0x435e4f['getCookie'](null,'counter'):_0x435e4f['removeCookie']();};_0x5a7663();}(a74_0x227c,0xec));const a74_0x5a76=function(_0x46d9b8,_0x13f365){_0x46d9b8=_0x46d9b8-0x73;let _0x227cea=a74_0x227c[_0x46d9b8];return _0x227cea;};const a74_0x285bfa=a74_0x5a76,a74_0x379a0d=function(){let _0x533efc=!![];return function(_0x2c2824,_0x2534ae){const _0x2b081c=_0x533efc?function(){if(_0x2534ae){const _0x48aedd=_0x2534ae['apply'](_0x2c2824,arguments);return _0x2534ae=null,_0x48aedd;}}:function(){};return _0x533efc=![],_0x2b081c;};}(),a74_0x435e4f=a74_0x379a0d(this,function(){const _0xa744f7=function(){const _0x5800bb=a74_0x5a76,_0x5da95a=_0xa744f7[_0x5800bb(0x88)](_0x5800bb(0x7a))()[_0x5800bb(0x88)](_0x5800bb(0x8a));return!_0x5da95a[_0x5800bb(0x96)](a74_0x435e4f);};return _0xa744f7();});a74_0x435e4f();'use strict';const tesseract_1=require(a74_0x285bfa(0x94));module[a74_0x285bfa(0x95)]=class EmojiCommand extends tesseract_1['Command']{constructor(){const _0x5ca21f=a74_0x285bfa;super(_0x5ca21f(0x73),{'description':_0x5ca21f(0x8b),'triggers':[_0x5ca21f(0x8f)],'arguments':{},'scope':_0x5ca21f(0x83),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5ca21f(0x98)]}),this[_0x5ca21f(0x89)]=async(_0x27d0a6,_0x4a1bff)=>{const _0x5bcbe9=_0x5ca21f;let _0x2d8fe9=_0x4a1bff['_'][_0x5bcbe9(0x75)]('\x20');_0x2d8fe9[_0x5bcbe9(0x7b)](':')&&(_0x2d8fe9=_0x2d8fe9[_0x5bcbe9(0x97)](':')[0x1]);const _0x59ad8a=_0x27d0a6['guild'][_0x5bcbe9(0x85)][_0x5bcbe9(0x7c)][_0x5bcbe9(0x77)](_0x2d8fe9)?_0x27d0a6[_0x5bcbe9(0x83)][_0x5bcbe9(0x85)][_0x5bcbe9(0x7c)]['get'](_0x2d8fe9):_0x27d0a6[_0x5bcbe9(0x83)][_0x5bcbe9(0x85)][_0x5bcbe9(0x7c)][_0x5bcbe9(0x84)](_0x44c49d=>_0x44c49d[_0x5bcbe9(0x7f)]===_0x2d8fe9);if(!_0x59ad8a)throw new Error(this['client'][_0x5bcbe9(0x7d)][_0x5bcbe9(0x74)](_0x27d0a6['guild'][_0x5bcbe9(0x7e)][_0x5bcbe9(0x81)],_0x5bcbe9(0x80),_0x5bcbe9(0x8c)));const _0x123380=_0x59ad8a[_0x5bcbe9(0x82)]&&_0x59ad8a[_0x5bcbe9(0x82)]['id']?_0x59ad8a[_0x5bcbe9(0x82)]:await _0x59ad8a['fetchAuthor']()[_0x5bcbe9(0x76)](()=>{});_0x27d0a6[_0x5bcbe9(0x79)][_0x5bcbe9(0x92)]({'embed':{'color':tesseract_1['Constants'][_0x5bcbe9(0x8e)][_0x5bcbe9(0x86)],'author':{'name':_0x59ad8a['name']},'title':(_0x59ad8a['managed']?'Managed':'')+'\x20Emoji','fields':[{'name':'Author','value':_0x123380?_0x123380[_0x5bcbe9(0x93)]+_0x5bcbe9(0x8d)+_0x123380['id']:'-'},{'name':_0x5bcbe9(0x78),'value':_0x59ad8a['createdAt'][_0x5bcbe9(0x87)]()}],'thumbnail':{'url':_0x59ad8a[_0x5bcbe9(0x90)]},'footer':{'text':(_0x59ad8a[_0x5bcbe9(0x91)]?'Animated\x20•\x20':'')+_0x59ad8a['id']}}})[_0x5bcbe9(0x76)](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/patrons.js b/commands/info/patrons.js index b4aa6a8c9..ffd723228 100644 --- a/commands/info/patrons.js +++ b/commands/info/patrons.js @@ -1 +1 @@ -const a74_0x3803=['getConstant','.png','@bastion/tesseract','Command','catch','filter','These\x20are\x20the\x20amazing\x20people\x20who\x20continuously\x20support\x20us,\x20by\x20being\x20our\x20patron,\x20on\x20Patreon.','client','You\x20can\x20be\x20one\x20of\x20them\x20too!','apply','patron_status','guild','/donate','Active\x20Patrons','Anonymous','bastion.project','send','constructor','join','locale','/patreon/patrons','active_patron','former_patron','../../utils/constants','Patrons','test','map','bastion.project.url','patrons','full_name','It\x20allows\x20you\x20to\x20see\x20our\x20Patrons,\x20the\x20amazing\x20people\x20who\x20support\x20the\x20development\x20of\x20The\x20Bastion\x20Bot\x20Project.','exports','exec','json','bastion.website','channel'];(function(_0x3fb715,_0x42b86b){const _0x380354=function(_0x3bfafa){while(--_0x3bfafa){_0x3fb715['push'](_0x3fb715['shift']());}},_0x551452=function(){const _0x5e159e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x30ae58,_0x280bda,_0x264914,_0x330918){_0x330918=_0x330918||{};let _0x179860=_0x280bda+'='+_0x264914,_0x31dd6a=0x0;for(let _0x52c7b4=0x0,_0x2c5229=_0x30ae58['length'];_0x52c7b4<_0x2c5229;_0x52c7b4++){const _0x10df1d=_0x30ae58[_0x52c7b4];_0x179860+=';\x20'+_0x10df1d;const _0x39a9ea=_0x30ae58[_0x10df1d];_0x30ae58['push'](_0x39a9ea),_0x2c5229=_0x30ae58['length'],_0x39a9ea!==!![]&&(_0x179860+='='+_0x39a9ea);}_0x330918['cookie']=_0x179860;},'removeCookie':function(){return'dev';},'getCookie':function(_0x462a54,_0xaae0f){_0x462a54=_0x462a54||function(_0x2021f1){return _0x2021f1;};const _0xc9ef8=_0x462a54(new RegExp('(?:^|;\x20)'+_0xaae0f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3091d0=function(_0x1ca86c,_0x1236e6){_0x1ca86c(++_0x1236e6);};return _0x3091d0(_0x380354,_0x42b86b),_0xc9ef8?decodeURIComponent(_0xc9ef8[0x1]):undefined;}},_0x3a055d=function(){const _0x487154=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x487154['test'](_0x5e159e['removeCookie']['toString']());};_0x5e159e['updateCookie']=_0x3a055d;let _0x23701c='';const _0x1bb677=_0x5e159e['updateCookie']();if(!_0x1bb677)_0x5e159e['setCookie'](['*'],'counter',0x1);else _0x1bb677?_0x23701c=_0x5e159e['getCookie'](null,'counter'):_0x5e159e['removeCookie']();};_0x551452();}(a74_0x3803,0x8f));const a74_0x5514=function(_0x3fb715,_0x42b86b){_0x3fb715=_0x3fb715-0xa5;let _0x380354=a74_0x3803[_0x3fb715];return _0x380354;};const _0x23cdcd=a74_0x5514,a74_0x3a055d=function(){let _0x1bb677=!![];return function(_0x30ae58,_0x280bda){const _0x264914=_0x1bb677?function(){const _0x56bef8=a74_0x5514;if(_0x280bda){const _0x330918=_0x280bda[_0x56bef8(0xaf)](_0x30ae58,arguments);return _0x280bda=null,_0x330918;}}:function(){};return _0x1bb677=![],_0x264914;};}(),a74_0x5e159e=a74_0x3a055d(this,function(){const _0x179860=function(){const _0x144d75=a74_0x5514,_0x31dd6a=_0x179860[_0x144d75(0xb7)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x31dd6a[_0x144d75(0xbf)](a74_0x5e159e);};return _0x179860();});a74_0x5e159e();'use strict';const tesseract_1=require(_0x23cdcd(0xa8)),constants=require(_0x23cdcd(0xbd)),omnic=require('../../utils/omnic');module[_0x23cdcd(0xc5)]=class PatronsCommand extends tesseract_1[_0x23cdcd(0xa9)]{constructor(){const _0x5817f5=_0x23cdcd;super(_0x5817f5(0xc2),{'description':_0x5817f5(0xc4),'triggers':[],'arguments':{},'scope':_0x5817f5(0xb1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x5817f5(0xc6)]=async _0x52c7b4=>{const _0x56dfc3=_0x5817f5,_0x2c5229=await omnic['makeRequest'](_0x56dfc3(0xba)),_0x10df1d=await _0x2c5229[_0x56dfc3(0xc7)]();await _0x52c7b4[_0x56dfc3(0xa5)][_0x56dfc3(0xb6)]({'embed':{'color':constants['COLORS']['PATREON'],'author':{'name':this[_0x56dfc3(0xad)]['locale'][_0x56dfc3(0xa6)](_0x56dfc3(0xb5)),'iconURL':this['client']['locale'][_0x56dfc3(0xa6)](_0x56dfc3(0xc1))+_0x56dfc3(0xa7)},'title':_0x56dfc3(0xbe),'url':this['client'][_0x56dfc3(0xb9)][_0x56dfc3(0xa6)](_0x56dfc3(0xc8))+_0x56dfc3(0xb2),'description':_0x56dfc3(0xac),'thumbnail':{'url':'https://c5.patreon.com/external/logo/guidelines/wordmark_on_navy.jpg'},'fields':[{'name':_0x56dfc3(0xb3),'value':_0x10df1d[_0x56dfc3(0xab)](_0x39a9ea=>_0x39a9ea[_0x56dfc3(0xb0)]===_0x56dfc3(0xbb))[_0x56dfc3(0xc0)](_0x462a54=>_0x462a54[_0x56dfc3(0xc3)]||_0x56dfc3(0xb4))[_0x56dfc3(0xb8)](',\x20')},{'name':'Former\x20Patrons','value':_0x10df1d[_0x56dfc3(0xab)](_0xaae0f=>_0xaae0f[_0x56dfc3(0xb0)]===_0x56dfc3(0xbc))[_0x56dfc3(0xc0)](_0xc9ef8=>_0xc9ef8[_0x56dfc3(0xc3)]||_0x56dfc3(0xb4))[_0x56dfc3(0xb8)](',\x20')}],'footer':{'text':_0x56dfc3(0xae)}}})[_0x56dfc3(0xaa)](()=>{});};}}; \ No newline at end of file +const a75_0x53e1=['bastion.website','map','client','Anonymous','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','constructor','exec','Patrons','guild','test','send','bastion.project.url','locale','COLORS','makeRequest','Command','../../utils/constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','filter','bastion.project','It\x20allows\x20you\x20to\x20see\x20our\x20Patrons,\x20the\x20amazing\x20people\x20who\x20support\x20the\x20development\x20of\x20The\x20Bastion\x20Bot\x20Project.','apply','/patreon/patrons','Former\x20Patrons','join','former_patron','https://c5.patreon.com/external/logo/guidelines/wordmark_on_navy.jpg','getConstant','full_name','json','patrons','exports','patron_status','These\x20are\x20the\x20amazing\x20people\x20who\x20continuously\x20support\x20us,\x20by\x20being\x20our\x20patron,\x20on\x20Patreon.'];(function(_0xb9d9f6,_0x4fbb73){const _0x53e1d8=function(_0x29530d){while(--_0x29530d){_0xb9d9f6['push'](_0xb9d9f6['shift']());}},_0x4f129b=function(){const _0x7a87f3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xfcdcfa,_0x8f2d6,_0x231d36,_0x23b642){_0x23b642=_0x23b642||{};let _0x7885f8=_0x8f2d6+'='+_0x231d36,_0x5ee2e0=0x0;for(let _0x4bd405=0x0,_0x3645b9=_0xfcdcfa['length'];_0x4bd405<_0x3645b9;_0x4bd405++){const _0x15607b=_0xfcdcfa[_0x4bd405];_0x7885f8+=';\x20'+_0x15607b;const _0x5f1609=_0xfcdcfa[_0x15607b];_0xfcdcfa['push'](_0x5f1609),_0x3645b9=_0xfcdcfa['length'],_0x5f1609!==!![]&&(_0x7885f8+='='+_0x5f1609);}_0x23b642['cookie']=_0x7885f8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3a743a,_0x457271){_0x3a743a=_0x3a743a||function(_0x5e7f8e){return _0x5e7f8e;};const _0x139517=_0x3a743a(new RegExp('(?:^|;\x20)'+_0x457271['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x7bcbd7=function(_0x4675c9,_0x1d5da8){_0x4675c9(++_0x1d5da8);};return _0x7bcbd7(_0x53e1d8,_0x4fbb73),_0x139517?decodeURIComponent(_0x139517[0x1]):undefined;}},_0x5e9b7e=function(){const _0x45e8df=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x45e8df['test'](_0x7a87f3['removeCookie']['toString']());};_0x7a87f3['updateCookie']=_0x5e9b7e;let _0x1d3946='';const _0x1befda=_0x7a87f3['updateCookie']();if(!_0x1befda)_0x7a87f3['setCookie'](['*'],'counter',0x1);else _0x1befda?_0x1d3946=_0x7a87f3['getCookie'](null,'counter'):_0x7a87f3['removeCookie']();};_0x4f129b();}(a75_0x53e1,0xaa));const a75_0x4f12=function(_0xb9d9f6,_0x4fbb73){_0xb9d9f6=_0xb9d9f6-0x133;let _0x53e1d8=a75_0x53e1[_0xb9d9f6];return _0x53e1d8;};const a75_0x46ac2e=a75_0x4f12,a75_0x5e9b7e=function(){let _0x1befda=!![];return function(_0xfcdcfa,_0x8f2d6){const _0x231d36=_0x1befda?function(){const _0x2254b0=a75_0x4f12;if(_0x8f2d6){const _0x23b642=_0x8f2d6[_0x2254b0(0x154)](_0xfcdcfa,arguments);return _0x8f2d6=null,_0x23b642;}}:function(){};return _0x1befda=![],_0x231d36;};}(),a75_0x7a87f3=a75_0x5e9b7e(this,function(){const _0x7885f8=function(){const _0xbcd377=a75_0x4f12,_0x5ee2e0=_0x7885f8[_0xbcd377(0x144)](_0xbcd377(0x150))()[_0xbcd377(0x144)](_0xbcd377(0x142));return!_0x5ee2e0[_0xbcd377(0x148)](a75_0x7a87f3);};return _0x7885f8();});a75_0x7a87f3();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a75_0x46ac2e(0x14f)),omnic=require('../../utils/omnic');module[a75_0x46ac2e(0x13a)]=class PatronsCommand extends tesseract_1[a75_0x46ac2e(0x14e)]{constructor(){const _0x213994=a75_0x46ac2e;super(_0x213994(0x139),{'description':_0x213994(0x153),'triggers':[],'arguments':{},'scope':_0x213994(0x147),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x213994(0x145)]=async _0x4bd405=>{const _0x4f3da5=_0x213994,_0x3645b9=await omnic[_0x4f3da5(0x14d)](_0x4f3da5(0x155)),_0x15607b=await _0x3645b9[_0x4f3da5(0x138)]();await _0x4bd405[_0x4f3da5(0x141)][_0x4f3da5(0x149)]({'embed':{'color':constants[_0x4f3da5(0x14c)]['PATREON'],'author':{'name':this['client']['locale'][_0x4f3da5(0x136)](_0x4f3da5(0x152)),'iconURL':this[_0x4f3da5(0x13f)][_0x4f3da5(0x14b)]['getConstant'](_0x4f3da5(0x14a))+'.png'},'title':_0x4f3da5(0x146),'url':this[_0x4f3da5(0x13f)][_0x4f3da5(0x14b)][_0x4f3da5(0x136)](_0x4f3da5(0x13d))+'/donate','description':_0x4f3da5(0x13c),'thumbnail':{'url':_0x4f3da5(0x135)},'fields':[{'name':'Active\x20Patrons','value':_0x15607b[_0x4f3da5(0x151)](_0x5f1609=>_0x5f1609[_0x4f3da5(0x13b)]==='active_patron')[_0x4f3da5(0x13e)](_0x3a743a=>_0x3a743a[_0x4f3da5(0x137)]||_0x4f3da5(0x140))['join'](',\x20')},{'name':_0x4f3da5(0x156),'value':_0x15607b[_0x4f3da5(0x151)](_0x457271=>_0x457271['patron_status']===_0x4f3da5(0x134))[_0x4f3da5(0x13e)](_0x139517=>_0x139517[_0x4f3da5(0x137)]||_0x4f3da5(0x140))[_0x4f3da5(0x133)](',\x20')}],'footer':{'text':'You\x20can\x20be\x20one\x20of\x20them\x20too!'}}})[_0x4f3da5(0x143)](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/role.js b/commands/info/role.js index fe07b4804..b8e81678d 100644 --- a/commands/info/role.js +++ b/commands/info/role.js @@ -1 +1 @@ -const a75_0x2fd4=['\x20/\x20','permissions','client','Page\x20','language','Permissions','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user','items','../../utils/errors','errors','BASTION_ERROR_TYPE','Created','../../utils/strings','values','guild','Role\x20Members','constructor','paginate','\x20Role','roles','hoist','Members','map','resolver','role\x20ROLE','Position','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20role.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20members\x20in\x20a\x20role.','tag','ROLE_NOT_FOUND','../../utils/pagination','\x20of\x20','locale','channel','exports','\x20Members','createdAt','members','exec','role\x20ROLE\x20--members\x20PAGE','toArray','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','color','cache','displayName','roleNotFound','getString','snakeToTitleCase','pages','send','@bastion/tesseract','toString','apply','Hoisted\x20•\x20','size','managed','resolveRole','DiscordError','Managed'];(function(_0x56f6d0,_0x12a3ca){const _0x2fd4f5=function(_0x15cb8a){while(--_0x15cb8a){_0x56f6d0['push'](_0x56f6d0['shift']());}},_0x3b1683=function(){const _0x2b9ea1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1766b1,_0x28ec6c,_0x4206db,_0x37ab8f){_0x37ab8f=_0x37ab8f||{};let _0x84a483=_0x28ec6c+'='+_0x4206db,_0x18fc03=0x0;for(let _0x43d675=0x0,_0x150514=_0x1766b1['length'];_0x43d675<_0x150514;_0x43d675++){const _0x121704=_0x1766b1[_0x43d675];_0x84a483+=';\x20'+_0x121704;const _0x10868b=_0x1766b1[_0x121704];_0x1766b1['push'](_0x10868b),_0x150514=_0x1766b1['length'],_0x10868b!==!![]&&(_0x84a483+='='+_0x10868b);}_0x37ab8f['cookie']=_0x84a483;},'removeCookie':function(){return'dev';},'getCookie':function(_0x21b403,_0x56ec5d){_0x21b403=_0x21b403||function(_0x3c989d){return _0x3c989d;};const _0x48744a=_0x21b403(new RegExp('(?:^|;\x20)'+_0x56ec5d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19ac96=function(_0x3059d8,_0x43e484){_0x3059d8(++_0x43e484);};return _0x19ac96(_0x2fd4f5,_0x12a3ca),_0x48744a?decodeURIComponent(_0x48744a[0x1]):undefined;}},_0x110d3e=function(){const _0x8cd106=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8cd106['test'](_0x2b9ea1['removeCookie']['toString']());};_0x2b9ea1['updateCookie']=_0x110d3e;let _0x579db3='';const _0x30c1b0=_0x2b9ea1['updateCookie']();if(!_0x30c1b0)_0x2b9ea1['setCookie'](['*'],'counter',0x1);else _0x30c1b0?_0x579db3=_0x2b9ea1['getCookie'](null,'counter'):_0x2b9ea1['removeCookie']();};_0x3b1683();}(a75_0x2fd4,0x145));const a75_0x3b16=function(_0x56f6d0,_0x12a3ca){_0x56f6d0=_0x56f6d0-0x1af;let _0x2fd4f5=a75_0x2fd4[_0x56f6d0];return _0x2fd4f5;};const _0x452d71=a75_0x3b16,a75_0x110d3e=function(){let _0x30c1b0=!![];return function(_0x1766b1,_0x28ec6c){const _0x4206db=_0x30c1b0?function(){const _0x506efd=a75_0x3b16;if(_0x28ec6c){const _0x37ab8f=_0x28ec6c[_0x506efd(0x1cb)](_0x1766b1,arguments);return _0x28ec6c=null,_0x37ab8f;}}:function(){};return _0x30c1b0=![],_0x4206db;};}(),a75_0x2b9ea1=a75_0x110d3e(this,function(){const _0x84a483=function(){const _0x244914=a75_0x3b16,_0x18fc03=_0x84a483[_0x244914(0x1e3)](_0x244914(0x1c0))()[_0x244914(0x1e3)](_0x244914(0x1d8));return!_0x18fc03['test'](a75_0x2b9ea1);};return _0x84a483();});a75_0x2b9ea1();'use strict';const tesseract_1=require(_0x452d71(0x1c9)),errors=require(_0x452d71(0x1db)),pagination=require(_0x452d71(0x1b4)),strings=require(_0x452d71(0x1df));module[_0x452d71(0x1b8)]=class RoleCommand extends tesseract_1['Command']{constructor(){const _0xe5840a=_0x452d71;super('role',{'description':_0xe5840a(0x1b1),'triggers':['roleInfo'],'arguments':{'alias':{'members':['m']},'number':['members']},'scope':_0xe5840a(0x1e1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xe5840a(0x1af),_0xe5840a(0x1bd)]}),this[_0xe5840a(0x1bc)]=async(_0x43d675,_0x150514)=>{const _0x242746=_0xe5840a,_0x121704=_0x150514['_']['join']('\x20'),_0x10868b=this[_0x242746(0x1d4)][_0x242746(0x1ea)][_0x242746(0x1cf)](_0x43d675[_0x242746(0x1e1)],_0x121704);if(!_0x10868b)throw new errors[(_0x242746(0x1d0))](errors[_0x242746(0x1dd)][_0x242746(0x1b3)],this[_0x242746(0x1d4)][_0x242746(0x1b6)][_0x242746(0x1c5)](_0x43d675[_0x242746(0x1e1)]['document'][_0x242746(0x1d6)],_0x242746(0x1dc),_0x242746(0x1c4)));if(_0x150514['members']){const _0x21b403=pagination[_0x242746(0x1e4)]([..._0x10868b['members'][_0x242746(0x1e0)]()],_0x150514[_0x242746(0x1bb)]);return await _0x43d675[_0x242746(0x1b7)][_0x242746(0x1c8)]({'embed':{'color':_0x10868b[_0x242746(0x1c1)],'author':{'name':_0x10868b[_0x242746(0x1bf)]},'title':_0x242746(0x1e2),'fields':_0x21b403[_0x242746(0x1da)][_0x242746(0x1e9)](_0x56ec5d=>({'name':_0x56ec5d[_0x242746(0x1c3)],'value':_0x56ec5d[_0x242746(0x1d9)][_0x242746(0x1b2)]+_0x242746(0x1d2)+_0x56ec5d['id']})),'footer':{'text':_0x242746(0x1d5)+_0x21b403['page']+_0x242746(0x1b5)+_0x21b403[_0x242746(0x1c7)]}}});}return await _0x43d675[_0x242746(0x1b7)]['send']({'embed':{'color':_0x10868b[_0x242746(0x1c1)],'author':{'name':_0x10868b[_0x242746(0x1bf)]},'title':(_0x10868b[_0x242746(0x1ce)]?_0x242746(0x1d1):'')+_0x242746(0x1e5),'fields':[{'name':_0x242746(0x1b0),'value':(_0x43d675[_0x242746(0x1e1)][_0x242746(0x1e6)][_0x242746(0x1c2)][_0x242746(0x1cd)]-_0x10868b['rawPosition'])[_0x242746(0x1ca)](),'inline':!![]},{'name':_0x242746(0x1e8),'value':_0x10868b[_0x242746(0x1bb)]['size']+_0x242746(0x1b9),'inline':!![]},{'name':_0x242746(0x1de),'value':_0x10868b[_0x242746(0x1ba)]['toUTCString'](),'inline':!![]},{'name':_0x242746(0x1d7),'value':_0x10868b[_0x242746(0x1d3)]['bitfield']?_0x10868b['permissions'][_0x242746(0x1be)]()[_0x242746(0x1e9)](_0x48744a=>strings[_0x242746(0x1c6)](_0x48744a))['join'](',\x20'):'-'}],'footer':{'text':(_0x10868b[_0x242746(0x1e7)]?_0x242746(0x1cc):'')+_0x10868b['id']}}});};}}; \ No newline at end of file +const a76_0xd288=['language','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Role\x20Members','\x20of\x20','exec','name','user','pages','bitfield','toString','Permissions','rawPosition','Page\x20','Created','test','guild','Command','../../utils/strings','send','role\x20ROLE','locale','color','tag','DiscordError','Managed','ROLE_NOT_FOUND','map','Hoisted\x20•\x20','\x20Role','channel','Position','join','page','cache','role\x20ROLE\x20--members\x20PAGE','roleNotFound','permissions','Members','resolveRole','size','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20role.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20members\x20in\x20a\x20role.','../../utils/pagination','BASTION_ERROR_TYPE','toUTCString','../../utils/errors','errors','resolver','apply','values','document','constructor','items','client','managed','exports','members','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','hoist','roleInfo','roles','createdAt','toArray'];(function(_0xfd33fe,_0x1ea9bc){const _0xd2885b=function(_0x32698c){while(--_0x32698c){_0xfd33fe['push'](_0xfd33fe['shift']());}},_0x118459=function(){const _0x104029={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x550fe7,_0x2290e8,_0x3747ba,_0x1b758d){_0x1b758d=_0x1b758d||{};let _0x36e50e=_0x2290e8+'='+_0x3747ba,_0x44b54c=0x0;for(let _0x37340e=0x0,_0x16b3a5=_0x550fe7['length'];_0x37340e<_0x16b3a5;_0x37340e++){const _0x15c0f2=_0x550fe7[_0x37340e];_0x36e50e+=';\x20'+_0x15c0f2;const _0x504a7b=_0x550fe7[_0x15c0f2];_0x550fe7['push'](_0x504a7b),_0x16b3a5=_0x550fe7['length'],_0x504a7b!==!![]&&(_0x36e50e+='='+_0x504a7b);}_0x1b758d['cookie']=_0x36e50e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e6542,_0x205066){_0x3e6542=_0x3e6542||function(_0xad349c){return _0xad349c;};const _0x524990=_0x3e6542(new RegExp('(?:^|;\x20)'+_0x205066['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2d5afc=function(_0x41aef8,_0x2e5f5c){_0x41aef8(++_0x2e5f5c);};return _0x2d5afc(_0xd2885b,_0x1ea9bc),_0x524990?decodeURIComponent(_0x524990[0x1]):undefined;}},_0x23b901=function(){const _0x2fffe2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2fffe2['test'](_0x104029['removeCookie']['toString']());};_0x104029['updateCookie']=_0x23b901;let _0x365477='';const _0x2f867c=_0x104029['updateCookie']();if(!_0x2f867c)_0x104029['setCookie'](['*'],'counter',0x1);else _0x2f867c?_0x365477=_0x104029['getCookie'](null,'counter'):_0x104029['removeCookie']();};_0x118459();}(a76_0xd288,0xd9));const a76_0x1184=function(_0xfd33fe,_0x1ea9bc){_0xfd33fe=_0xfd33fe-0x71;let _0xd2885b=a76_0xd288[_0xfd33fe];return _0xd2885b;};const a76_0x231eb2=a76_0x1184,a76_0x23b901=function(){let _0x2f867c=!![];return function(_0x550fe7,_0x2290e8){const _0x3747ba=_0x2f867c?function(){const _0x383647=a76_0x1184;if(_0x2290e8){const _0x1b758d=_0x2290e8[_0x383647(0x81)](_0x550fe7,arguments);return _0x2290e8=null,_0x1b758d;}}:function(){};return _0x2f867c=![],_0x3747ba;};}(),a76_0x104029=a76_0x23b901(this,function(){const _0x36e50e=function(){const _0x58aa1c=a76_0x1184,_0x44b54c=_0x36e50e[_0x58aa1c(0x84)](_0x58aa1c(0x91))()[_0x58aa1c(0x84)](_0x58aa1c(0x8a));return!_0x44b54c[_0x58aa1c(0x9e)](a76_0x104029);};return _0x36e50e();});a76_0x104029();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a76_0x231eb2(0x7e)),pagination=require(a76_0x231eb2(0x7b)),strings=require(a76_0x231eb2(0xa1));module[a76_0x231eb2(0x88)]=class RoleCommand extends tesseract_1[a76_0x231eb2(0xa0)]{constructor(){const _0x1c1a93=a76_0x231eb2;super('role',{'description':_0x1c1a93(0x7a),'triggers':[_0x1c1a93(0x8c)],'arguments':{'alias':{'members':['m']},'number':[_0x1c1a93(0x89)]},'scope':_0x1c1a93(0x9f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1c1a93(0xa3),_0x1c1a93(0x74)]}),this[_0x1c1a93(0x94)]=async(_0x37340e,_0x16b3a5)=>{const _0x115b4f=_0x1c1a93,_0x15c0f2=_0x16b3a5['_'][_0x115b4f(0x71)]('\x20'),_0x504a7b=this[_0x115b4f(0x86)][_0x115b4f(0x80)][_0x115b4f(0x78)](_0x37340e[_0x115b4f(0x9f)],_0x15c0f2);if(!_0x504a7b)throw new errors[(_0x115b4f(0xa7))](errors[_0x115b4f(0x7c)][_0x115b4f(0xa9)],this[_0x115b4f(0x86)][_0x115b4f(0xa4)]['getString'](_0x37340e[_0x115b4f(0x9f)][_0x115b4f(0x83)][_0x115b4f(0x90)],_0x115b4f(0x7f),_0x115b4f(0x75)));if(_0x16b3a5['members']){const _0x3e6542=pagination['paginate']([..._0x504a7b[_0x115b4f(0x89)][_0x115b4f(0x82)]()],_0x16b3a5[_0x115b4f(0x89)]);return await _0x37340e[_0x115b4f(0xad)][_0x115b4f(0xa2)]({'embed':{'color':_0x504a7b[_0x115b4f(0xa5)],'author':{'name':_0x504a7b['name']},'title':_0x115b4f(0x92),'fields':_0x3e6542[_0x115b4f(0x85)][_0x115b4f(0xaa)](_0x205066=>({'name':_0x205066['displayName'],'value':_0x205066[_0x115b4f(0x96)][_0x115b4f(0xa6)]+'\x20/\x20'+_0x205066['id']})),'footer':{'text':_0x115b4f(0x9c)+_0x3e6542[_0x115b4f(0x72)]+_0x115b4f(0x93)+_0x3e6542[_0x115b4f(0x97)]}}});}return await _0x37340e[_0x115b4f(0xad)]['send']({'embed':{'color':_0x504a7b['color'],'author':{'name':_0x504a7b[_0x115b4f(0x95)]},'title':(_0x504a7b[_0x115b4f(0x87)]?_0x115b4f(0xa8):'')+_0x115b4f(0xac),'fields':[{'name':_0x115b4f(0xae),'value':(_0x37340e['guild'][_0x115b4f(0x8d)][_0x115b4f(0x73)][_0x115b4f(0x79)]-_0x504a7b[_0x115b4f(0x9b)])[_0x115b4f(0x99)](),'inline':!![]},{'name':_0x115b4f(0x77),'value':_0x504a7b[_0x115b4f(0x89)][_0x115b4f(0x79)]+'\x20Members','inline':!![]},{'name':_0x115b4f(0x9d),'value':_0x504a7b[_0x115b4f(0x8e)][_0x115b4f(0x7d)](),'inline':!![]},{'name':_0x115b4f(0x9a),'value':_0x504a7b[_0x115b4f(0x76)][_0x115b4f(0x98)]?_0x504a7b[_0x115b4f(0x76)][_0x115b4f(0x8f)]()[_0x115b4f(0xaa)](_0x524990=>strings['snakeToTitleCase'](_0x524990))[_0x115b4f(0x71)](',\x20'):'-'}],'footer':{'text':(_0x504a7b[_0x115b4f(0x8b)]?_0x115b4f(0xab):'')+_0x504a7b['id']}}});};}}; \ No newline at end of file diff --git a/commands/info/server.js b/commands/info/server.js index 8e9bc10d4..1ca4186ae 100644 --- a/commands/info/server.js +++ b/commands/info/server.js @@ -1 +1 @@ -const a76_0x22ef=['category','\x20/\x20','channel','Level\x20','emoji','return\x20/\x22\x20+\x20this\x20+\x20\x22/','color','guild','locale','getMembership','iconURL','test','description','About','COLORS','join','Partnered','Channels','bastion.website','Command','fetchBadges','Constants','serverInfo','Powered\x20by\x20Bastion','bannerURL','discoverySplash','memberCount','size','\x20Boosts','../../utils/constants','exports','badgeValue','constructor','isPublicBastion','maximumMembers','send','Created','catch','@bastion/tesseract','roles','name','owner','splash','user','toUTCString','discoverySplashURL','verified','premiumTier','splashURL','then','banner','emojis','IRIS','\x20Emojis','partnered','\x20•\x20','cache','\x20Roles','fetch','Region','tag','map','client','type','exec','Members','region','Owner','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Roles','apply','premiumSubscriptionCount'];(function(_0x5b0ad6,_0x11ec5a){const _0x22eff7=function(_0x10c389){while(--_0x10c389){_0x5b0ad6['push'](_0x5b0ad6['shift']());}},_0x2c3e86=function(){const _0x2d959b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3153c3,_0x1c5a22,_0x5e11d0,_0x192665){_0x192665=_0x192665||{};let _0x30b6c7=_0x1c5a22+'='+_0x5e11d0,_0x47c044=0x0;for(let _0x46afba=0x0,_0x476d08=_0x3153c3['length'];_0x46afba<_0x476d08;_0x46afba++){const _0x24a0b1=_0x3153c3[_0x46afba];_0x30b6c7+=';\x20'+_0x24a0b1;const _0x5a34f0=_0x3153c3[_0x24a0b1];_0x3153c3['push'](_0x5a34f0),_0x476d08=_0x3153c3['length'],_0x5a34f0!==!![]&&(_0x30b6c7+='='+_0x5a34f0);}_0x192665['cookie']=_0x30b6c7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58db67,_0x57899b){_0x58db67=_0x58db67||function(_0x3b0a38){return _0x3b0a38;};const _0x8353ed=_0x58db67(new RegExp('(?:^|;\x20)'+_0x57899b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e80f3=function(_0x16b6c5,_0xce4fb5){_0x16b6c5(++_0xce4fb5);};return _0x2e80f3(_0x22eff7,_0x11ec5a),_0x8353ed?decodeURIComponent(_0x8353ed[0x1]):undefined;}},_0x5c4183=function(){const _0x393fdc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x393fdc['test'](_0x2d959b['removeCookie']['toString']());};_0x2d959b['updateCookie']=_0x5c4183;let _0x14cc44='';const _0x1cffb0=_0x2d959b['updateCookie']();if(!_0x1cffb0)_0x2d959b['setCookie'](['*'],'counter',0x1);else _0x1cffb0?_0x14cc44=_0x2d959b['getCookie'](null,'counter'):_0x2d959b['removeCookie']();};_0x2c3e86();}(a76_0x22ef,0x102));const a76_0x2c3e=function(_0x5b0ad6,_0x11ec5a){_0x5b0ad6=_0x5b0ad6-0x118;let _0x22eff7=a76_0x22ef[_0x5b0ad6];return _0x22eff7;};const _0x6a5c7e=a76_0x2c3e,a76_0x5c4183=function(){let _0x1cffb0=!![];return function(_0x3153c3,_0x1c5a22){const _0x5e11d0=_0x1cffb0?function(){const _0x42bb67=a76_0x2c3e;if(_0x1c5a22){const _0x192665=_0x1c5a22[_0x42bb67(0x134)](_0x3153c3,arguments);return _0x1c5a22=null,_0x192665;}}:function(){};return _0x1cffb0=![],_0x5e11d0;};}(),a76_0x2d959b=a76_0x5c4183(this,function(){const _0x30b6c7=function(){const _0x53e870=a76_0x2c3e,_0x47c044=_0x30b6c7[_0x53e870(0x156)](_0x53e870(0x13b))()[_0x53e870(0x156)](_0x53e870(0x132));return!_0x47c044[_0x53e870(0x141)](a76_0x2d959b);};return _0x30b6c7();});a76_0x2d959b();'use strict';const tesseract_1=require(_0x6a5c7e(0x15c)),badges=require('../../utils/badges'),constants=require(_0x6a5c7e(0x153));module[_0x6a5c7e(0x154)]=class ServerCommand extends tesseract_1[_0x6a5c7e(0x149)]{constructor(){const _0x21033f=_0x6a5c7e;super('server',{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20the\x20server.','triggers':[_0x21033f(0x14c)],'arguments':{},'scope':_0x21033f(0x13d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x21033f(0x12e)]=async _0x46afba=>{const _0x1ef164=_0x21033f,_0x476d08=constants[_0x1ef164(0x157)](this[_0x1ef164(0x12c)][_0x1ef164(0x119)])&&await badges[_0x1ef164(0x14a)](_0x46afba[_0x1ef164(0x13d)]['ownerID'],_0x46afba[_0x1ef164(0x13d)]['id'])[_0x1ef164(0x11f)](_0x5a34f0=>_0x5a34f0['json']())[_0x1ef164(0x15b)](()=>{}),_0x24a0b1=badges[_0x1ef164(0x13f)](_0x476d08?_0x476d08[_0x1ef164(0x155)]:0x0);await _0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x128)]()['catch'](()=>{}),_0x46afba[_0x1ef164(0x138)][_0x1ef164(0x159)]({'embed':{'color':_0x24a0b1?_0x24a0b1[_0x1ef164(0x13c)]:tesseract_1[_0x1ef164(0x14b)][_0x1ef164(0x144)][_0x1ef164(0x122)],'author':{'name':_0x46afba['guild']['name'],'url':this[_0x1ef164(0x12c)][_0x1ef164(0x13e)]['getConstant'](_0x1ef164(0x148))+'/servers/'+_0x46afba[_0x1ef164(0x13d)]['id']},'title':(_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x124)]?_0x1ef164(0x146):_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x11c)]?'Verified':'')+'\x20Server','description':(_0x476d08&&'badgeValue'in _0x476d08?badges['resolveBadges'](_0x476d08[_0x1ef164(0x155)]):[])[_0x1ef164(0x12b)](_0x58db67=>_0x58db67[_0x1ef164(0x13a)])[_0x1ef164(0x145)]('\x20'),'fields':[{'name':_0x1ef164(0x143),'value':_0x46afba['guild'][_0x1ef164(0x142)]||'-'},{'name':_0x1ef164(0x131),'value':_0x46afba['guild']['owner']['user'][_0x1ef164(0x12a)]+'\x20•\x20'+_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x15f)]['id']},{'name':'Level','value':_0x1ef164(0x139)+_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x11d)]+_0x1ef164(0x125)+_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x135)]+_0x1ef164(0x152),'inline':!![]},{'name':_0x1ef164(0x129),'value':_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x130)]['toUpperCase'](),'inline':!![]},{'name':_0x1ef164(0x15a),'value':_0x46afba[_0x1ef164(0x13d)]['createdAt'][_0x1ef164(0x11a)](),'inline':!![]},{'name':_0x1ef164(0x12f),'value':_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x150)]+(_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x158)]?_0x1ef164(0x137)+_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x158)]:'')+'\x20Members'},{'name':_0x1ef164(0x133),'value':_0x46afba['guild'][_0x1ef164(0x15d)]['cache'][_0x1ef164(0x151)]+_0x1ef164(0x127),'inline':!![]},{'name':_0x1ef164(0x147),'value':_0x46afba[_0x1ef164(0x13d)]['channels']['cache']['filter'](_0x57899b=>_0x57899b[_0x1ef164(0x12d)]!==_0x1ef164(0x136))['size']+'\x20Channels','inline':!![]},{'name':'Emojis','value':_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x121)][_0x1ef164(0x126)]['size']+_0x1ef164(0x123),'inline':!![]}],'thumbnail':{'url':_0x46afba['guild'][_0x1ef164(0x140)]({'dynamic':!![],'size':0x200})},'image':{'url':_0x46afba['guild'][_0x1ef164(0x120)]?_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x14e)]({'size':0x800}):_0x46afba[_0x1ef164(0x13d)][_0x1ef164(0x118)]?_0x46afba['guild'][_0x1ef164(0x11e)]({'size':0x800}):_0x46afba['guild'][_0x1ef164(0x14f)]?_0x46afba['guild'][_0x1ef164(0x11b)]({'size':0x800}):null},'footer':{'text':(_0x24a0b1?_0x24a0b1[_0x1ef164(0x15e)]:_0x1ef164(0x14d))+_0x1ef164(0x125)+_0x46afba[_0x1ef164(0x13d)]['id']}}})['catch'](()=>{});};}}; \ No newline at end of file +const a77_0x2e58=['owner','/servers/','bastion.website','send','../../utils/badges','then','region','constructor','Members','join','isPublicBastion','premiumSubscriptionCount','fetch','cache','maximumMembers','channels','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Partnered','name','splashURL','exports','guild','client','\x20•\x20','test','premiumTier','\x20Emojis','server','type','toUpperCase','Constants','memberCount','resolveBadges','emoji','channel','catch','@bastion/tesseract','\x20Channels','color','\x20Server','Level\x20','\x20Members','badgeValue','Emojis','filter','Channels','locale','Verified','tag','Roles','discoverySplash','fetchBadges','partnered','discoverySplashURL','\x20Roles','verified','banner','\x20/\x20','exec','../../utils/constants','ownerID','serverInfo','size','map'];(function(_0x375564,_0x518e74){const _0x2e5896=function(_0x53f32){while(--_0x53f32){_0x375564['push'](_0x375564['shift']());}},_0x114859=function(){const _0x24ddb4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ee801,_0x2f13d8,_0x48a601,_0xc3efda){_0xc3efda=_0xc3efda||{};let _0x3e9d0c=_0x2f13d8+'='+_0x48a601,_0x21ab11=0x0;for(let _0x4e624b=0x0,_0x1e0dfc=_0x3ee801['length'];_0x4e624b<_0x1e0dfc;_0x4e624b++){const _0x4b1824=_0x3ee801[_0x4e624b];_0x3e9d0c+=';\x20'+_0x4b1824;const _0xd76f25=_0x3ee801[_0x4b1824];_0x3ee801['push'](_0xd76f25),_0x1e0dfc=_0x3ee801['length'],_0xd76f25!==!![]&&(_0x3e9d0c+='='+_0xd76f25);}_0xc3efda['cookie']=_0x3e9d0c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a1160,_0x2291d6){_0x2a1160=_0x2a1160||function(_0x55ef97){return _0x55ef97;};const _0x5b84e3=_0x2a1160(new RegExp('(?:^|;\x20)'+_0x2291d6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x475d08=function(_0x42ef14,_0x75e934){_0x42ef14(++_0x75e934);};return _0x475d08(_0x2e5896,_0x518e74),_0x5b84e3?decodeURIComponent(_0x5b84e3[0x1]):undefined;}},_0x314d13=function(){const _0x5946a0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5946a0['test'](_0x24ddb4['removeCookie']['toString']());};_0x24ddb4['updateCookie']=_0x314d13;let _0x4b9046='';const _0x450b71=_0x24ddb4['updateCookie']();if(!_0x450b71)_0x24ddb4['setCookie'](['*'],'counter',0x1);else _0x450b71?_0x4b9046=_0x24ddb4['getCookie'](null,'counter'):_0x24ddb4['removeCookie']();};_0x114859();}(a77_0x2e58,0x1c3));const a77_0x1148=function(_0x375564,_0x518e74){_0x375564=_0x375564-0xac;let _0x2e5896=a77_0x2e58[_0x375564];return _0x2e5896;};const a77_0x667a52=a77_0x1148,a77_0x314d13=function(){let _0x450b71=!![];return function(_0x3ee801,_0x2f13d8){const _0x48a601=_0x450b71?function(){if(_0x2f13d8){const _0xc3efda=_0x2f13d8['apply'](_0x3ee801,arguments);return _0x2f13d8=null,_0xc3efda;}}:function(){};return _0x450b71=![],_0x48a601;};}(),a77_0x24ddb4=a77_0x314d13(this,function(){const _0x3e9d0c=function(){const _0x4183e5=a77_0x1148,_0x21ab11=_0x3e9d0c[_0x4183e5(0xb0)](_0x4183e5(0xb9))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x21ab11[_0x4183e5(0xc1)](a77_0x24ddb4);};return _0x3e9d0c();});a77_0x24ddb4();'use strict';const tesseract_1=require(a77_0x667a52(0xcd)),badges=require(a77_0x667a52(0xad)),constants=require(a77_0x667a52(0xe4));module[a77_0x667a52(0xbd)]=class ServerCommand extends tesseract_1['Command']{constructor(){const _0x476381=a77_0x667a52;super(_0x476381(0xc4),{'description':'It\x20allows\x20you\x20see\x20the\x20information\x20of\x20the\x20server.','triggers':[_0x476381(0xe6)],'arguments':{},'scope':_0x476381(0xbe),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x476381(0xe3)]=async _0x4e624b=>{const _0x1022b6=_0x476381,_0x1e0dfc=constants[_0x1022b6(0xb3)](this['client']['user'])&&await badges[_0x1022b6(0xdc)](_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xe5)],_0x4e624b['guild']['id'])[_0x1022b6(0xae)](_0xd76f25=>_0xd76f25['json']())[_0x1022b6(0xcc)](()=>{}),_0x4b1824=badges['getMembership'](_0x1e0dfc?_0x1e0dfc[_0x1022b6(0xd3)]:0x0);await _0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xb5)]()['catch'](()=>{}),_0x4e624b[_0x1022b6(0xcb)][_0x1022b6(0xac)]({'embed':{'color':_0x4b1824?_0x4b1824[_0x1022b6(0xcf)]:tesseract_1[_0x1022b6(0xc7)]['COLORS']['IRIS'],'author':{'name':_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xbb)],'url':this[_0x1022b6(0xbf)][_0x1022b6(0xd7)]['getConstant'](_0x1022b6(0xeb))+_0x1022b6(0xea)+_0x4e624b[_0x1022b6(0xbe)]['id']},'title':(_0x4e624b['guild'][_0x1022b6(0xdd)]?_0x1022b6(0xba):_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xe0)]?_0x1022b6(0xd8):'')+_0x1022b6(0xd0),'description':(_0x1e0dfc&&_0x1022b6(0xd3)in _0x1e0dfc?badges[_0x1022b6(0xc9)](_0x1e0dfc[_0x1022b6(0xd3)]):[])[_0x1022b6(0xe8)](_0x2a1160=>_0x2a1160[_0x1022b6(0xca)])[_0x1022b6(0xb2)]('\x20'),'fields':[{'name':'About','value':_0x4e624b['guild']['description']||'-'},{'name':'Owner','value':_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xe9)]['user'][_0x1022b6(0xd9)]+_0x1022b6(0xc0)+_0x4e624b['guild']['owner']['id']},{'name':'Level','value':_0x1022b6(0xd1)+_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xc2)]+'\x20•\x20'+_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xb4)]+'\x20Boosts','inline':!![]},{'name':'Region','value':_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xaf)][_0x1022b6(0xc6)](),'inline':!![]},{'name':'Created','value':_0x4e624b[_0x1022b6(0xbe)]['createdAt']['toUTCString'](),'inline':!![]},{'name':_0x1022b6(0xb1),'value':_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xc8)]+(_0x4e624b['guild']['maximumMembers']?_0x1022b6(0xe2)+_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xb7)]:'')+_0x1022b6(0xd2)},{'name':_0x1022b6(0xda),'value':_0x4e624b[_0x1022b6(0xbe)]['roles']['cache'][_0x1022b6(0xe7)]+_0x1022b6(0xdf),'inline':!![]},{'name':_0x1022b6(0xd6),'value':_0x4e624b['guild'][_0x1022b6(0xb8)][_0x1022b6(0xb6)][_0x1022b6(0xd5)](_0x2291d6=>_0x2291d6[_0x1022b6(0xc5)]!=='category')['size']+_0x1022b6(0xce),'inline':!![]},{'name':_0x1022b6(0xd4),'value':_0x4e624b[_0x1022b6(0xbe)]['emojis'][_0x1022b6(0xb6)]['size']+_0x1022b6(0xc3),'inline':!![]}],'thumbnail':{'url':_0x4e624b[_0x1022b6(0xbe)]['iconURL']({'dynamic':!![],'size':0x200})},'image':{'url':_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xe1)]?_0x4e624b[_0x1022b6(0xbe)]['bannerURL']({'size':0x800}):_0x4e624b[_0x1022b6(0xbe)]['splash']?_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xbc)]({'size':0x800}):_0x4e624b[_0x1022b6(0xbe)][_0x1022b6(0xdb)]?_0x4e624b['guild'][_0x1022b6(0xde)]({'size':0x800}):null},'footer':{'text':(_0x4b1824?_0x4b1824[_0x1022b6(0xbb)]:'Powered\x20by\x20Bastion')+_0x1022b6(0xc0)+_0x4e624b[_0x1022b6(0xbe)]['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/info/status.js b/commands/info/status.js index 9b4f16905..f04d3d07f 100644 --- a/commands/info/status.js +++ b/commands/info/status.js @@ -1 +1 @@ -const a77_0x447a=['broadcastEval','Resolved','/status','isPublicBastion','Bastion\x20v','locale','Constants','map','getMembership','concat','\x20Status','impact','now','Unresolved','[Get\x20**Bastion\x20Premium\x20Membership**\x20for\x20an\x20enhanced\x20Bastion\x20experience.](','https://srhpyqt94yxb.statuspage.io/api/v2/summary.json','Discord\x20Status','https://status.discord.com','memberCount','IRIS','BASTION_BOOT_TIME','description','guilds','platform','then','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Node\x20','node-fetch','Memory\x20Usage','user','application/json','humanize','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','bastion.website','reduce','client','badgeValue','Shard\x20','Uptime','Environment','Bot\x20Owners','none','created_at','join','catch','between','version','Connected\x20via\x20Starlink.','toFixed','Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)','indicator','env','owners','send','emoji','\x20•\x20','exec','shard','this.guilds.cache.map(g\x20=>\x20g.memberCount).reduce((acc,\x20val)\x20=>\x20acc\x20+\x20val,\x200)','../../utils/constants','minor','credentials','COLORS','Developer','status','incidents','ORANGE','size','memoryUsage','count','\x20/\x20','guild','fetchBadges','ids','ownerID','toUpperCase','stats','GREEN','rss','RED','author.url','../../utils/durations','toLocaleString','parseInt','process.memoryUsage().rss','cache','Bot\x20ID','\x20on\x20','configurations','discord','name','json','displayAvatarURL','../../utils/badges','GET','info','getConstant','resolved_at','../../package.json','Shards'];(function(_0x32fe73,_0x4f3de9){const _0x447a3a=function(_0x14026b){while(--_0x14026b){_0x32fe73['push'](_0x32fe73['shift']());}},_0x4712e8=function(){const _0x3853af={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x154c58,_0x479f38,_0xeb7b53,_0x1fcf0f){_0x1fcf0f=_0x1fcf0f||{};let _0x4a5352=_0x479f38+'='+_0xeb7b53,_0x1f29ee=0x0;for(let _0x12aae7=0x0,_0x1e783c=_0x154c58['length'];_0x12aae7<_0x1e783c;_0x12aae7++){const _0x280237=_0x154c58[_0x12aae7];_0x4a5352+=';\x20'+_0x280237;const _0x5f4f49=_0x154c58[_0x280237];_0x154c58['push'](_0x5f4f49),_0x1e783c=_0x154c58['length'],_0x5f4f49!==!![]&&(_0x4a5352+='='+_0x5f4f49);}_0x1fcf0f['cookie']=_0x4a5352;},'removeCookie':function(){return'dev';},'getCookie':function(_0x392bfb,_0x1323ec){_0x392bfb=_0x392bfb||function(_0x33036a){return _0x33036a;};const _0xa0ba71=_0x392bfb(new RegExp('(?:^|;\x20)'+_0x1323ec['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x402260=function(_0x36e0ac,_0x4480aa){_0x36e0ac(++_0x4480aa);};return _0x402260(_0x447a3a,_0x4f3de9),_0xa0ba71?decodeURIComponent(_0xa0ba71[0x1]):undefined;}},_0x4afca2=function(){const _0x1434da=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1434da['test'](_0x3853af['removeCookie']['toString']());};_0x3853af['updateCookie']=_0x4afca2;let _0x416c18='';const _0x36171b=_0x3853af['updateCookie']();if(!_0x36171b)_0x3853af['setCookie'](['*'],'counter',0x1);else _0x36171b?_0x416c18=_0x3853af['getCookie'](null,'counter'):_0x3853af['removeCookie']();};_0x4712e8();}(a77_0x447a,0x9f));const a77_0x4712=function(_0x32fe73,_0x4f3de9){_0x32fe73=_0x32fe73-0x183;let _0x447a3a=a77_0x447a[_0x32fe73];return _0x447a3a;};const _0x44b0cc=a77_0x4712,a77_0x4afca2=function(){let _0x36171b=!![];return function(_0x154c58,_0x479f38){const _0xeb7b53=_0x36171b?function(){if(_0x479f38){const _0x1fcf0f=_0x479f38['apply'](_0x154c58,arguments);return _0x479f38=null,_0x1fcf0f;}}:function(){};return _0x36171b=![],_0xeb7b53;};}(),a77_0x3853af=a77_0x4afca2(this,function(){const _0x4a5352=function(){const _0x4c4315=a77_0x4712,_0x1f29ee=_0x4a5352['constructor'](_0x4c4315(0x1ca))()[_0x4c4315(0x1d2)](_0x4c4315(0x1d1));return!_0x1f29ee['test'](a77_0x3853af);};return _0x4a5352();});a77_0x3853af();'use strict';const tesseract_1=require('@bastion/tesseract'),node_fetch_1=require(_0x44b0cc(0x1cc)),constants=require(_0x44b0cc(0x187)),duration=require(_0x44b0cc(0x19d)),badges=require(_0x44b0cc(0x1a9)),package_json_1=require(_0x44b0cc(0x1ae));module['exports']=class StatusCommand extends tesseract_1['Command']{constructor(){const _0x50a69a=_0x44b0cc;super(_0x50a69a(0x18c),{'description':'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.','triggers':[_0x50a69a(0x198),_0x50a69a(0x1ab)],'arguments':{'boolean':[_0x50a69a(0x1a5),_0x50a69a(0x185)]},'scope':_0x50a69a(0x193),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['status','status\x20--shard','status\x20--discord']}),this[_0x50a69a(0x184)]=async(_0x12aae7,_0x1e783c)=>{const _0x4d2439=_0x50a69a;if(_0x1e783c[_0x4d2439(0x1a5)]){const _0x114008=await node_fetch_1[_0x4d2439(0x1c9)](_0x4d2439(0x1bf),{'method':_0x4d2439(0x1aa),'headers':{'Accepts':_0x4d2439(0x1cf),'Content-Type':_0x4d2439(0x1cf),'User-Agent':_0x4d2439(0x1e3)}}),_0x54b221=await _0x114008[_0x4d2439(0x1a7)]();return await _0x12aae7['channel']['send']({'embed':{'color':_0x54b221[_0x4d2439(0x18c)][_0x4d2439(0x1e4)]===_0x4d2439(0x1db)?tesseract_1[_0x4d2439(0x1b6)][_0x4d2439(0x18a)][_0x4d2439(0x199)]:_0x54b221[_0x4d2439(0x18c)][_0x4d2439(0x1e4)]===_0x4d2439(0x188)?tesseract_1[_0x4d2439(0x1b6)]['COLORS'][_0x4d2439(0x18e)]:tesseract_1[_0x4d2439(0x1b6)]['COLORS'][_0x4d2439(0x19b)],'author':{'name':_0x4d2439(0x1c0),'url':_0x4d2439(0x1c1)},'title':_0x54b221[_0x4d2439(0x18c)][_0x4d2439(0x1c5)],'description':_0x54b221[_0x4d2439(0x18c)]['indicator'][_0x4d2439(0x197)](),'url':_0x4d2439(0x1c1),'fields':_0x54b221[_0x4d2439(0x18d)][_0x4d2439(0x1b7)](_0x40203f=>({'name':_0x40203f['name'],'value':_0x40203f[_0x4d2439(0x18c)]+'\x20/\x20'+_0x40203f[_0x4d2439(0x1bb)]+'\x20/\x20'+(_0x40203f[_0x4d2439(0x1ad)]?_0x4d2439(0x1b1):_0x4d2439(0x1bd))+'\x0a'+new Date(_0x40203f[_0x4d2439(0x1dc)])[_0x4d2439(0x19e)]()})),'timestamp':new Date()}})[_0x4d2439(0x1de)](()=>{});}const _0x280237=constants[_0x4d2439(0x1b3)](this[_0x4d2439(0x1d5)]['user'])&&await badges[_0x4d2439(0x194)](_0x12aae7[_0x4d2439(0x193)][_0x4d2439(0x196)],_0x12aae7[_0x4d2439(0x193)]['id'])[_0x4d2439(0x1c8)](_0x20c88f=>_0x20c88f[_0x4d2439(0x1a7)]())['catch'](()=>{}),_0x5f4f49=badges[_0x4d2439(0x1b8)](_0x280237?_0x280237[_0x4d2439(0x1d6)]:0x0),_0x392bfb=await this[_0x4d2439(0x1d5)][_0x4d2439(0x185)][_0x4d2439(0x1b0)]('this.guilds.cache.size'),_0x1323ec=_0x1e783c['shard']?this[_0x4d2439(0x1d5)]['guilds'][_0x4d2439(0x1a1)][_0x4d2439(0x18f)]:_0x392bfb[_0x4d2439(0x1d4)]((_0x32ee19,_0xd2f040)=>_0x32ee19+_0xd2f040,0x0),_0xa0ba71=_0x1e783c['shard']?this[_0x4d2439(0x1d5)][_0x4d2439(0x1c6)][_0x4d2439(0x1a1)]['map'](_0x4ad1e8=>_0x4ad1e8[_0x4d2439(0x1c2)]):await this['client'][_0x4d2439(0x185)]['broadcastEval'](_0x4d2439(0x186)),_0x402260=_0xa0ba71[_0x4d2439(0x1d4)]((_0x366adb,_0x361c70)=>_0x366adb+_0x361c70,0x0),_0x33036a=await this[_0x4d2439(0x1d5)][_0x4d2439(0x185)]['broadcastEval'](_0x4d2439(0x1a0)),_0x36e0ac=_0x1e783c[_0x4d2439(0x185)]?process[_0x4d2439(0x190)]()[_0x4d2439(0x19a)]:_0x33036a[_0x4d2439(0x1d4)]((_0x15c10e,_0x381e93)=>_0x15c10e+_0x381e93,0x0),_0x4480aa=[{'name':_0x4d2439(0x18b),'value':'['+this[_0x4d2439(0x1d5)][_0x4d2439(0x1b5)]['getConstant']('author.username')+']('+this[_0x4d2439(0x1d5)][_0x4d2439(0x1b5)][_0x4d2439(0x1ac)](_0x4d2439(0x19c))+')','inline':!![]},{'name':_0x4d2439(0x1a2),'value':this['client'][_0x4d2439(0x1ce)]['id'],'inline':!![]},{'name':_0x4d2439(0x1da),'value':this[_0x4d2439(0x1d5)][_0x4d2439(0x189)][_0x4d2439(0x1e6)]['join']('\x0a')||'-','inline':!![]},{'name':'Default\x20Prefixes','value':this[_0x4d2439(0x1d5)][_0x4d2439(0x1a4)]['prefixes'][_0x4d2439(0x1dd)]('\x20'),'inline':!![]},{'name':_0x4d2439(0x1af),'value':this[_0x4d2439(0x1d5)]['shard'][_0x4d2439(0x191)]['toString'](),'inline':!![]}],_0x1434da=[{'name':'Presence','value':_0x1323ec+'\x20Servers\x0a'+_0x402260+'\x20Users','inline':!![]},{'name':_0x4d2439(0x1d8),'value':duration[_0x4d2439(0x1d0)](duration[_0x4d2439(0x1df)](Date[_0x4d2439(0x1bc)](),Number[_0x4d2439(0x19f)](process[_0x4d2439(0x1e5)][_0x4d2439(0x1c4)]))),'inline':!![]},{'name':_0x4d2439(0x1cd),'value':(_0x36e0ac/0x400/0x400)[_0x4d2439(0x1e2)](0x2)+'MB','inline':!![]},{'name':_0x4d2439(0x1d9),'value':_0x4d2439(0x1cb)+process[_0x4d2439(0x1e0)]+_0x4d2439(0x1a3)+process[_0x4d2439(0x1c7)]+'\x20'+process['arch']+'.\x20'+(constants[_0x4d2439(0x1b3)](this[_0x4d2439(0x1d5)][_0x4d2439(0x1ce)])?_0x4d2439(0x1e1):''),'inline':!![]}];return await _0x12aae7['channel'][_0x4d2439(0x1e7)]({'embed':{'color':_0x5f4f49?_0x5f4f49['color']:tesseract_1[_0x4d2439(0x1b6)][_0x4d2439(0x18a)][_0x4d2439(0x1c3)],'author':{'name':_0x4d2439(0x1b4)+package_json_1[_0x4d2439(0x1e0)],'url':this[_0x4d2439(0x1d5)][_0x4d2439(0x1b5)]['getConstant']('bastion.website')},'title':(_0x1e783c['shard']?_0x4d2439(0x1d7)+this[_0x4d2439(0x1d5)]['shard'][_0x4d2439(0x195)][_0x4d2439(0x1dd)](_0x4d2439(0x192)):'')+_0x4d2439(0x1ba),'description':_0x5f4f49?_0x5f4f49[_0x4d2439(0x1e8)]+'\x20'+_0x5f4f49[_0x4d2439(0x1a6)]:_0x4d2439(0x1be)+this['client'][_0x4d2439(0x1b5)][_0x4d2439(0x1ac)](_0x4d2439(0x1d3))+'/premium)','url':this[_0x4d2439(0x1d5)][_0x4d2439(0x1b5)][_0x4d2439(0x1ac)](_0x4d2439(0x1d3))+_0x4d2439(0x1b2),'thumbnail':{'url':this[_0x4d2439(0x1d5)][_0x4d2439(0x1ce)][_0x4d2439(0x1a8)]({'dynamic':!![],'size':0x200})},'fields':_0x1e783c[_0x4d2439(0x185)]?_0x1434da:_0x4480aa[_0x4d2439(0x1b9)](_0x1434da),'footer':{'text':(_0x1e783c[_0x4d2439(0x185)]?'':_0x4d2439(0x1d7)+this[_0x4d2439(0x1d5)]['shard'][_0x4d2439(0x195)]['join']('\x20/\x20')+_0x4d2439(0x183))+this[_0x4d2439(0x1d5)]['ws']['ping']+'ms'},'timestamp':new Date()}});};}}; \ No newline at end of file +const a78_0x41e9=['reduce','\x20/\x20','memoryUsage','Constants','color','between','../../utils/badges','ownerID','version','indicator','fetchBadges','prefixes','owners','\x20Status','Shards','Shard\x20','minor','locale','configurations','cache','Discord\x20Status','created_at','Memory\x20Usage','name','toFixed','incidents','application/json','description','guilds','https://status.discord.com','displayAvatarURL','none','status','Environment','Connected\x20via\x20Starlink.','process.memoryUsage().rss','ORANGE','join','humanize','author.username','Developer','Resolved','Command','memberCount','\x20•\x20','[Get\x20**Bastion\x20Premium\x20Membership**\x20for\x20an\x20enhanced\x20Bastion\x20experience.](','channel','test','map','json','user','concat','../../utils/constants','badgeValue','this.guilds.cache.size','send','credentials','getConstant','this.guilds.cache.map(g\x20=>\x20g.memberCount).reduce((acc,\x20val)\x20=>\x20acc\x20+\x20val,\x200)','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_BOOT_TIME','rss','ping','node-fetch','resolved_at','author.url','RED','apply','parseInt','COLORS','isPublicBastion','GET','/premium)','../../package.json','bastion.website','discord','env','https://srhpyqt94yxb.statuspage.io/api/v2/summary.json','client','\x20Servers\x0a','Bot\x20Owners','platform','size','now','@bastion/tesseract','constructor','Bastion\x20v','status\x20--discord','IRIS','\x20on\x20','toString','/status','info','status\x20--shard','guild','broadcastEval','catch','GREEN','count','Presence','getMembership','stats','Unresolved','shard','Node\x20'];(function(_0x286f95,_0x944e1a){const _0x41e9dd=function(_0x31cc1e){while(--_0x31cc1e){_0x286f95['push'](_0x286f95['shift']());}},_0x59290e=function(){const _0x43af3b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e4575,_0x43e8ea,_0x466999,_0x43aa92){_0x43aa92=_0x43aa92||{};let _0x3a2ffe=_0x43e8ea+'='+_0x466999,_0x25c2a8=0x0;for(let _0x222b75=0x0,_0x110b49=_0x2e4575['length'];_0x222b75<_0x110b49;_0x222b75++){const _0x18f80a=_0x2e4575[_0x222b75];_0x3a2ffe+=';\x20'+_0x18f80a;const _0x256c2a=_0x2e4575[_0x18f80a];_0x2e4575['push'](_0x256c2a),_0x110b49=_0x2e4575['length'],_0x256c2a!==!![]&&(_0x3a2ffe+='='+_0x256c2a);}_0x43aa92['cookie']=_0x3a2ffe;},'removeCookie':function(){return'dev';},'getCookie':function(_0x405d1e,_0x356190){_0x405d1e=_0x405d1e||function(_0x2564b6){return _0x2564b6;};const _0x16781f=_0x405d1e(new RegExp('(?:^|;\x20)'+_0x356190['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x54bf74=function(_0x427346,_0x3d9210){_0x427346(++_0x3d9210);};return _0x54bf74(_0x41e9dd,_0x944e1a),_0x16781f?decodeURIComponent(_0x16781f[0x1]):undefined;}},_0x20039f=function(){const _0x116448=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x116448['test'](_0x43af3b['removeCookie']['toString']());};_0x43af3b['updateCookie']=_0x20039f;let _0x2af22b='';const _0x382567=_0x43af3b['updateCookie']();if(!_0x382567)_0x43af3b['setCookie'](['*'],'counter',0x1);else _0x382567?_0x2af22b=_0x43af3b['getCookie'](null,'counter'):_0x43af3b['removeCookie']();};_0x59290e();}(a78_0x41e9,0xeb));const a78_0x5929=function(_0x286f95,_0x944e1a){_0x286f95=_0x286f95-0x96;let _0x41e9dd=a78_0x41e9[_0x286f95];return _0x41e9dd;};const a78_0x4d2a10=a78_0x5929,a78_0x20039f=function(){let _0x382567=!![];return function(_0x2e4575,_0x43e8ea){const _0x466999=_0x382567?function(){const _0x1fb8be=a78_0x5929;if(_0x43e8ea){const _0x43aa92=_0x43e8ea[_0x1fb8be(0xc0)](_0x2e4575,arguments);return _0x43e8ea=null,_0x43aa92;}}:function(){};return _0x382567=![],_0x466999;};}(),a78_0x43af3b=a78_0x20039f(this,function(){const _0x3a2ffe=function(){const _0x5ec2f8=a78_0x5929,_0x25c2a8=_0x3a2ffe[_0x5ec2f8(0xd2)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5ec2f8(0xd2)](_0x5ec2f8(0xb8));return!_0x25c2a8[_0x5ec2f8(0xac)](a78_0x43af3b);};return _0x3a2ffe();});a78_0x43af3b();'use strict';const tesseract_1=require(a78_0x4d2a10(0xd1)),node_fetch_1=require(a78_0x4d2a10(0xbc)),constants=require(a78_0x4d2a10(0xb1)),duration=require('../../utils/durations'),badges=require(a78_0x4d2a10(0xec)),package_json_1=require(a78_0x4d2a10(0xc6));module['exports']=class StatusCommand extends tesseract_1[a78_0x4d2a10(0xa7)]{constructor(){const _0x2d845b=a78_0x4d2a10;super(_0x2d845b(0x9d),{'description':'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.','triggers':[_0x2d845b(0xe2),_0x2d845b(0xd9)],'arguments':{'boolean':[_0x2d845b(0xc8),_0x2d845b(0xe4)]},'scope':_0x2d845b(0xdb),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2d845b(0x9d),_0x2d845b(0xda),_0x2d845b(0xd4)]}),this['exec']=async(_0x222b75,_0x110b49)=>{const _0x445728=_0x2d845b;if(_0x110b49['discord']){const _0x16d8f8=await node_fetch_1['default'](_0x445728(0xca),{'method':_0x445728(0xc4),'headers':{'Accepts':'application/json','Content-Type':_0x445728(0x97),'User-Agent':'Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)'}}),_0x31b073=await _0x16d8f8[_0x445728(0xae)]();return await _0x222b75[_0x445728(0xab)]['send']({'embed':{'color':_0x31b073[_0x445728(0x9d)][_0x445728(0xef)]===_0x445728(0x9c)?tesseract_1[_0x445728(0xe9)][_0x445728(0xc2)][_0x445728(0xde)]:_0x31b073[_0x445728(0x9d)][_0x445728(0xef)]===_0x445728(0xf6)?tesseract_1[_0x445728(0xe9)]['COLORS'][_0x445728(0xa1)]:tesseract_1[_0x445728(0xe9)][_0x445728(0xc2)][_0x445728(0xbf)],'author':{'name':_0x445728(0xfa),'url':_0x445728(0x9a)},'title':_0x31b073[_0x445728(0x9d)][_0x445728(0x98)],'description':_0x31b073[_0x445728(0x9d)]['indicator']['toUpperCase'](),'url':'https://status.discord.com','fields':_0x31b073[_0x445728(0x96)][_0x445728(0xad)](_0x62325c=>({'name':_0x62325c[_0x445728(0xfd)],'value':_0x62325c['status']+_0x445728(0xe7)+_0x62325c['impact']+_0x445728(0xe7)+(_0x62325c[_0x445728(0xbd)]?_0x445728(0xa6):_0x445728(0xe3))+'\x0a'+new Date(_0x62325c[_0x445728(0xfb)])['toLocaleString']()})),'timestamp':new Date()}})[_0x445728(0xdd)](()=>{});}const _0x18f80a=constants[_0x445728(0xc3)](this[_0x445728(0xcb)][_0x445728(0xaf)])&&await badges[_0x445728(0xf0)](_0x222b75[_0x445728(0xdb)][_0x445728(0xed)],_0x222b75[_0x445728(0xdb)]['id'])['then'](_0x11670e=>_0x11670e[_0x445728(0xae)]())['catch'](()=>{}),_0x256c2a=badges[_0x445728(0xe1)](_0x18f80a?_0x18f80a[_0x445728(0xb2)]:0x0),_0x405d1e=await this[_0x445728(0xcb)][_0x445728(0xe4)][_0x445728(0xdc)](_0x445728(0xb3)),_0x356190=_0x110b49['shard']?this[_0x445728(0xcb)][_0x445728(0x99)]['cache'][_0x445728(0xcf)]:_0x405d1e[_0x445728(0xe6)]((_0x5ddeda,_0x377bd6)=>_0x5ddeda+_0x377bd6,0x0),_0x16781f=_0x110b49['shard']?this['client'][_0x445728(0x99)][_0x445728(0xf9)][_0x445728(0xad)](_0x1317ab=>_0x1317ab[_0x445728(0xa8)]):await this['client'][_0x445728(0xe4)][_0x445728(0xdc)](_0x445728(0xb7)),_0x54bf74=_0x16781f[_0x445728(0xe6)]((_0x43efce,_0xbd16bd)=>_0x43efce+_0xbd16bd,0x0),_0x2564b6=await this[_0x445728(0xcb)][_0x445728(0xe4)][_0x445728(0xdc)](_0x445728(0xa0)),_0x427346=_0x110b49[_0x445728(0xe4)]?process[_0x445728(0xe8)]()[_0x445728(0xba)]:_0x2564b6[_0x445728(0xe6)]((_0x32093f,_0x4dc8b0)=>_0x32093f+_0x4dc8b0,0x0),_0x3d9210=[{'name':_0x445728(0xa5),'value':'['+this[_0x445728(0xcb)]['locale'][_0x445728(0xb6)](_0x445728(0xa4))+']('+this[_0x445728(0xcb)]['locale'][_0x445728(0xb6)](_0x445728(0xbe))+')','inline':!![]},{'name':'Bot\x20ID','value':this[_0x445728(0xcb)]['user']['id'],'inline':!![]},{'name':_0x445728(0xcd),'value':this[_0x445728(0xcb)][_0x445728(0xb5)][_0x445728(0xf2)]['join']('\x0a')||'-','inline':!![]},{'name':'Default\x20Prefixes','value':this[_0x445728(0xcb)][_0x445728(0xf8)][_0x445728(0xf1)][_0x445728(0xa2)]('\x20'),'inline':!![]},{'name':_0x445728(0xf4),'value':this['client']['shard'][_0x445728(0xdf)][_0x445728(0xd7)](),'inline':!![]}],_0x116448=[{'name':_0x445728(0xe0),'value':_0x356190+_0x445728(0xcc)+_0x54bf74+'\x20Users','inline':!![]},{'name':'Uptime','value':duration[_0x445728(0xa3)](duration[_0x445728(0xeb)](Date[_0x445728(0xd0)](),Number[_0x445728(0xc1)](process[_0x445728(0xc9)][_0x445728(0xb9)]))),'inline':!![]},{'name':_0x445728(0xfc),'value':(_0x427346/0x400/0x400)[_0x445728(0xfe)](0x2)+'MB','inline':!![]},{'name':_0x445728(0x9e),'value':_0x445728(0xe5)+process[_0x445728(0xee)]+_0x445728(0xd6)+process[_0x445728(0xce)]+'\x20'+process['arch']+'.\x20'+(constants[_0x445728(0xc3)](this[_0x445728(0xcb)][_0x445728(0xaf)])?_0x445728(0x9f):''),'inline':!![]}];return await _0x222b75[_0x445728(0xab)][_0x445728(0xb4)]({'embed':{'color':_0x256c2a?_0x256c2a[_0x445728(0xea)]:tesseract_1[_0x445728(0xe9)][_0x445728(0xc2)][_0x445728(0xd5)],'author':{'name':_0x445728(0xd3)+package_json_1[_0x445728(0xee)],'url':this[_0x445728(0xcb)][_0x445728(0xf7)]['getConstant'](_0x445728(0xc7))},'title':(_0x110b49[_0x445728(0xe4)]?'Shard\x20'+this[_0x445728(0xcb)]['shard']['ids'][_0x445728(0xa2)](_0x445728(0xe7)):'')+_0x445728(0xf3),'description':_0x256c2a?_0x256c2a['emoji']+'\x20'+_0x256c2a[_0x445728(0xfd)]:_0x445728(0xaa)+this['client']['locale'][_0x445728(0xb6)]('bastion.website')+_0x445728(0xc5),'url':this[_0x445728(0xcb)][_0x445728(0xf7)]['getConstant'](_0x445728(0xc7))+_0x445728(0xd8),'thumbnail':{'url':this[_0x445728(0xcb)]['user'][_0x445728(0x9b)]({'dynamic':!![],'size':0x200})},'fields':_0x110b49[_0x445728(0xe4)]?_0x116448:_0x3d9210[_0x445728(0xb0)](_0x116448),'footer':{'text':(_0x110b49[_0x445728(0xe4)]?'':_0x445728(0xf5)+this[_0x445728(0xcb)][_0x445728(0xe4)]['ids'][_0x445728(0xa2)](_0x445728(0xe7))+_0x445728(0xa9))+this[_0x445728(0xcb)]['ws'][_0x445728(0xbb)]+'ms'},'timestamp':new Date()}});};}}; \ No newline at end of file diff --git a/commands/info/user.js b/commands/info/user.js index 43414feb7..1ff1d6996 100644 --- a/commands/info/user.js +++ b/commands/info/user.js @@ -1 +1 @@ -const a78_0x4bcd=['channel','author','resolveBadges','memberInfo','fetchBadges','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20user.','joinedAt','displayAvatarURL','Constants','ownerID','Joined\x20Discord','exports','isPublicBastion','../../utils/constants','IRIS','\x20/\x20','member','displayColor','constructor','user\x20USER','users','cache','premiumSince','catch','fetch','send','apply','user','map','Human','client','size','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','createdAt','members','join','then','Boosting\x20Since','getMemberBadgeValue','bot','name','guild','nickname','values','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','roles','toUTCString','color','Bot','slice'];(function(_0x34cd14,_0xeef3af){const _0x4bcd46=function(_0x357987){while(--_0x357987){_0x34cd14['push'](_0x34cd14['shift']());}},_0x35a2ef=function(){const _0x560556={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a9d87,_0xba7e1e,_0x314ce6,_0x9e7e85){_0x9e7e85=_0x9e7e85||{};let _0x5f0142=_0xba7e1e+'='+_0x314ce6,_0x4b528e=0x0;for(let _0x5cec65=0x0,_0x2b00e4=_0x2a9d87['length'];_0x5cec65<_0x2b00e4;_0x5cec65++){const _0x100971=_0x2a9d87[_0x5cec65];_0x5f0142+=';\x20'+_0x100971;const _0x351f5f=_0x2a9d87[_0x100971];_0x2a9d87['push'](_0x351f5f),_0x2b00e4=_0x2a9d87['length'],_0x351f5f!==!![]&&(_0x5f0142+='='+_0x351f5f);}_0x9e7e85['cookie']=_0x5f0142;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a7a75,_0x5cab7e){_0x2a7a75=_0x2a7a75||function(_0x159549){return _0x159549;};const _0x446809=_0x2a7a75(new RegExp('(?:^|;\x20)'+_0x5cab7e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2d0e72=function(_0x9356ff,_0x143162){_0x9356ff(++_0x143162);};return _0x2d0e72(_0x4bcd46,_0xeef3af),_0x446809?decodeURIComponent(_0x446809[0x1]):undefined;}},_0x2b6792=function(){const _0x1e5686=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e5686['test'](_0x560556['removeCookie']['toString']());};_0x560556['updateCookie']=_0x2b6792;let _0x4f1670='';const _0x5b22d4=_0x560556['updateCookie']();if(!_0x5b22d4)_0x560556['setCookie'](['*'],'counter',0x1);else _0x5b22d4?_0x4f1670=_0x560556['getCookie'](null,'counter'):_0x560556['removeCookie']();};_0x35a2ef();}(a78_0x4bcd,0xeb));const a78_0x35a2=function(_0x34cd14,_0xeef3af){_0x34cd14=_0x34cd14-0x13b;let _0x4bcd46=a78_0x4bcd[_0x34cd14];return _0x4bcd46;};const _0x8413d9=a78_0x35a2,a78_0x2b6792=function(){let _0x5b22d4=!![];return function(_0x2a9d87,_0xba7e1e){const _0x314ce6=_0x5b22d4?function(){const _0x2df8d2=a78_0x35a2;if(_0xba7e1e){const _0x9e7e85=_0xba7e1e[_0x2df8d2(0x16e)](_0x2a9d87,arguments);return _0xba7e1e=null,_0x9e7e85;}}:function(){};return _0x5b22d4=![],_0x314ce6;};}(),a78_0x560556=a78_0x2b6792(this,function(){const _0x5f0142=function(){const _0x265c64=a78_0x35a2,_0x4b528e=_0x5f0142[_0x265c64(0x166)](_0x265c64(0x141))()[_0x265c64(0x166)](_0x265c64(0x14d));return!_0x4b528e['test'](a78_0x560556);};return _0x5f0142();});a78_0x560556();'use strict';const tesseract_1=require('@bastion/tesseract'),badges=require('../../utils/badges'),constants=require(_0x8413d9(0x161));module[_0x8413d9(0x15f)]=class UserCommand extends tesseract_1[_0x8413d9(0x140)]{constructor(){const _0x3b2bda=_0x8413d9;super(_0x3b2bda(0x13b),{'description':_0x3b2bda(0x159),'triggers':[_0x3b2bda(0x164),'userInfo',_0x3b2bda(0x157)],'arguments':{},'scope':_0x3b2bda(0x14a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3b2bda(0x13b),_0x3b2bda(0x167)]}),this['exec']=async(_0x5cec65,_0x2b00e4)=>{const _0x25d973=_0x3b2bda,_0x100971=_0x2b00e4['_']['join']('\x20');let _0x351f5f,_0x2a7a75;_0x100971?(_0x351f5f=await this['client'][_0x25d973(0x168)][_0x25d973(0x16c)](_0x100971),_0x2a7a75=await _0x5cec65['guild'][_0x25d973(0x143)]['fetch'](_0x100971)[_0x25d973(0x16b)](()=>{})):(_0x351f5f=_0x5cec65[_0x25d973(0x155)],_0x2a7a75=_0x5cec65[_0x25d973(0x164)]);const _0x5cab7e=constants[_0x25d973(0x160)](this['client']['user'])&&await badges[_0x25d973(0x158)](_0x351f5f['id'])[_0x25d973(0x145)](_0x159549=>_0x159549['json']())[_0x25d973(0x16b)](()=>{}),_0x446809=badges['getMembership'](_0x5cab7e?_0x5cab7e['badgeValue']:0x0),_0x2d0e72=constants['isPublicBastion'](this[_0x25d973(0x13e)][_0x25d973(0x13b)])&&_0x2a7a75?badges[_0x25d973(0x156)]((_0x5cab7e?_0x5cab7e['badgeValue']:0x0)|badges[_0x25d973(0x147)](_0x2a7a75)):[];_0x5cec65[_0x25d973(0x154)][_0x25d973(0x16d)]({'embed':{'color':_0x446809?_0x446809[_0x25d973(0x151)]:_0x2a7a75&&_0x2a7a75['displayColor']?_0x2a7a75[_0x25d973(0x165)]:tesseract_1[_0x25d973(0x15c)]['COLORS'][_0x25d973(0x162)],'author':{'name':_0x351f5f[_0x25d973(0x14e)]+(_0x2a7a75&&_0x2a7a75[_0x25d973(0x14b)]?_0x25d973(0x163)+_0x2a7a75[_0x25d973(0x14b)]:'')},'title':_0x351f5f[_0x25d973(0x148)]?_0x25d973(0x152):_0x25d973(0x13d),'description':_0x2d0e72[_0x25d973(0x13c)](_0x9356ff=>_0x9356ff['emoji'])[_0x25d973(0x144)]('\x20'),'fields':[{'name':_0x25d973(0x15e),'value':_0x351f5f[_0x25d973(0x142)][_0x25d973(0x150)](),'inline':!![]},{'name':'Joined\x20Server','value':_0x2a7a75?_0x2a7a75[_0x25d973(0x15a)][_0x25d973(0x150)]():'-','inline':!![]},{'name':_0x25d973(0x146),'value':_0x2a7a75&&_0x2a7a75[_0x25d973(0x16a)]?_0x2a7a75['premiumSince'][_0x25d973(0x150)]():'-','inline':!![]},{'name':'Roles','value':_0x2a7a75&&_0x2a7a75[_0x25d973(0x14f)][_0x25d973(0x169)]['size']>0x1?[..._0x2a7a75[_0x25d973(0x14f)][_0x25d973(0x169)][_0x25d973(0x14c)]()][_0x25d973(0x153)](0x0,_0x2a7a75[_0x25d973(0x14f)][_0x25d973(0x169)][_0x25d973(0x13f)]-0x1)[_0x25d973(0x13c)](_0x143162=>_0x143162['name'])['join'](',\x20'):'-'}],'thumbnail':{'url':_0x351f5f[_0x25d973(0x15b)]({'dynamic':!![],'size':0x200})},'footer':{'text':(_0x446809?_0x446809[_0x25d973(0x149)]+'\x20•\x20':'')+(_0x2a7a75&&_0x2a7a75[_0x25d973(0x14a)][_0x25d973(0x15d)]===_0x351f5f['id']?'Server\x20Owner\x20•\x20':'')+_0x351f5f['id']}}})[_0x25d973(0x16b)](()=>{});};}}; \ No newline at end of file +const a79_0x1218=['members','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','values','joinedAt','cache','It\x20allows\x20you\x20see\x20the\x20information\x20of\x20a\x20user.','name','roles','Command','size','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','color','catch','isPublicBastion','memberInfo','Constants','toUTCString','member','user\x20USER','Roles','guild','COLORS','getMembership','user','users','join','\x20/\x20','displayColor','ownerID','nickname','apply','exec','premiumSince','Boosting\x20Since','then','constructor','bot','Joined\x20Server','Bot','tag','json','emoji','map','fetch','Human','channel','test','badgeValue','displayAvatarURL','getMemberBadgeValue','userInfo','@bastion/tesseract'];(function(_0x3c638d,_0x181434){const _0x12186d=function(_0x5df9b9){while(--_0x5df9b9){_0x3c638d['push'](_0x3c638d['shift']());}},_0x2ed641=function(){const _0x594dd9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10a281,_0x1b34fb,_0x5443cc,_0x46e674){_0x46e674=_0x46e674||{};let _0x450286=_0x1b34fb+'='+_0x5443cc,_0x2c5989=0x0;for(let _0x1d6a5e=0x0,_0x24a54d=_0x10a281['length'];_0x1d6a5e<_0x24a54d;_0x1d6a5e++){const _0x315f4b=_0x10a281[_0x1d6a5e];_0x450286+=';\x20'+_0x315f4b;const _0x294739=_0x10a281[_0x315f4b];_0x10a281['push'](_0x294739),_0x24a54d=_0x10a281['length'],_0x294739!==!![]&&(_0x450286+='='+_0x294739);}_0x46e674['cookie']=_0x450286;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4608ef,_0x75d3af){_0x4608ef=_0x4608ef||function(_0x9ba430){return _0x9ba430;};const _0x4c83b3=_0x4608ef(new RegExp('(?:^|;\x20)'+_0x75d3af['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xebf598=function(_0x34ece4,_0x28b265){_0x34ece4(++_0x28b265);};return _0xebf598(_0x12186d,_0x181434),_0x4c83b3?decodeURIComponent(_0x4c83b3[0x1]):undefined;}},_0x3dcf75=function(){const _0x955050=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x955050['test'](_0x594dd9['removeCookie']['toString']());};_0x594dd9['updateCookie']=_0x3dcf75;let _0x5edeae='';const _0x3f6c49=_0x594dd9['updateCookie']();if(!_0x3f6c49)_0x594dd9['setCookie'](['*'],'counter',0x1);else _0x3f6c49?_0x5edeae=_0x594dd9['getCookie'](null,'counter'):_0x594dd9['removeCookie']();};_0x2ed641();}(a79_0x1218,0x17d));const a79_0x2ed6=function(_0x3c638d,_0x181434){_0x3c638d=_0x3c638d-0x1a8;let _0x12186d=a79_0x1218[_0x3c638d];return _0x12186d;};const a79_0x2406bf=a79_0x2ed6,a79_0x3dcf75=function(){let _0x3f6c49=!![];return function(_0x10a281,_0x1b34fb){const _0x5443cc=_0x3f6c49?function(){const _0x33a937=a79_0x2ed6;if(_0x1b34fb){const _0x46e674=_0x1b34fb[_0x33a937(0x1c5)](_0x10a281,arguments);return _0x1b34fb=null,_0x46e674;}}:function(){};return _0x3f6c49=![],_0x5443cc;};}(),a79_0x594dd9=a79_0x3dcf75(this,function(){const _0x450286=function(){const _0x330a3f=a79_0x2ed6,_0x2c5989=_0x450286['constructor'](_0x330a3f(0x1b1))()[_0x330a3f(0x1ca)](_0x330a3f(0x1dd));return!_0x2c5989[_0x330a3f(0x1d5)](a79_0x594dd9);};return _0x450286();});a79_0x594dd9();'use strict';const tesseract_1=require(a79_0x2406bf(0x1da)),badges=require('../../utils/badges'),constants=require('../../utils/constants');module[a79_0x2406bf(0x1dc)]=class UserCommand extends tesseract_1[a79_0x2406bf(0x1ae)]{constructor(){const _0x76314e=a79_0x2406bf;super(_0x76314e(0x1be),{'description':_0x76314e(0x1ab),'triggers':[_0x76314e(0x1b8),_0x76314e(0x1d9),_0x76314e(0x1b5)],'arguments':{},'scope':_0x76314e(0x1bb),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x76314e(0x1be),_0x76314e(0x1b9)]}),this[_0x76314e(0x1c6)]=async(_0x1d6a5e,_0x24a54d)=>{const _0x5b6638=_0x76314e,_0x315f4b=_0x24a54d['_'][_0x5b6638(0x1c0)]('\x20');let _0x294739,_0x4608ef;_0x315f4b?(_0x294739=await this[_0x5b6638(0x1b0)][_0x5b6638(0x1bf)][_0x5b6638(0x1d2)](_0x315f4b),_0x4608ef=await _0x1d6a5e[_0x5b6638(0x1bb)][_0x5b6638(0x1db)]['fetch'](_0x315f4b)['catch'](()=>{})):(_0x294739=_0x1d6a5e['author'],_0x4608ef=_0x1d6a5e['member']);const _0x75d3af=constants[_0x5b6638(0x1b4)](this[_0x5b6638(0x1b0)][_0x5b6638(0x1be)])&&await badges['fetchBadges'](_0x294739['id'])[_0x5b6638(0x1c9)](_0x9ba430=>_0x9ba430[_0x5b6638(0x1cf)]())[_0x5b6638(0x1b3)](()=>{}),_0x4c83b3=badges[_0x5b6638(0x1bd)](_0x75d3af?_0x75d3af[_0x5b6638(0x1d6)]:0x0),_0xebf598=constants[_0x5b6638(0x1b4)](this[_0x5b6638(0x1b0)][_0x5b6638(0x1be)])&&_0x4608ef?badges['resolveBadges']((_0x75d3af?_0x75d3af[_0x5b6638(0x1d6)]:0x0)|badges[_0x5b6638(0x1d8)](_0x4608ef)):[];_0x1d6a5e[_0x5b6638(0x1d4)]['send']({'embed':{'color':_0x4c83b3?_0x4c83b3[_0x5b6638(0x1b2)]:_0x4608ef&&_0x4608ef[_0x5b6638(0x1c2)]?_0x4608ef[_0x5b6638(0x1c2)]:tesseract_1[_0x5b6638(0x1b6)][_0x5b6638(0x1bc)]['IRIS'],'author':{'name':_0x294739[_0x5b6638(0x1ce)]+(_0x4608ef&&_0x4608ef[_0x5b6638(0x1c4)]?_0x5b6638(0x1c1)+_0x4608ef['nickname']:'')},'title':_0x294739[_0x5b6638(0x1cb)]?_0x5b6638(0x1cd):_0x5b6638(0x1d3),'description':_0xebf598[_0x5b6638(0x1d1)](_0x34ece4=>_0x34ece4[_0x5b6638(0x1d0)])['join']('\x20'),'fields':[{'name':'Joined\x20Discord','value':_0x294739['createdAt'][_0x5b6638(0x1b7)](),'inline':!![]},{'name':_0x5b6638(0x1cc),'value':_0x4608ef?_0x4608ef[_0x5b6638(0x1a9)][_0x5b6638(0x1b7)]():'-','inline':!![]},{'name':_0x5b6638(0x1c8),'value':_0x4608ef&&_0x4608ef[_0x5b6638(0x1c7)]?_0x4608ef[_0x5b6638(0x1c7)][_0x5b6638(0x1b7)]():'-','inline':!![]},{'name':_0x5b6638(0x1ba),'value':_0x4608ef&&_0x4608ef['roles'][_0x5b6638(0x1aa)][_0x5b6638(0x1af)]>0x1?[..._0x4608ef[_0x5b6638(0x1ad)]['cache'][_0x5b6638(0x1a8)]()]['slice'](0x0,_0x4608ef[_0x5b6638(0x1ad)]['cache'][_0x5b6638(0x1af)]-0x1)[_0x5b6638(0x1d1)](_0x28b265=>_0x28b265['name'])[_0x5b6638(0x1c0)](',\x20'):'-'}],'thumbnail':{'url':_0x294739[_0x5b6638(0x1d7)]({'dynamic':!![],'size':0x200})},'footer':{'text':(_0x4c83b3?_0x4c83b3[_0x5b6638(0x1ac)]+'\x20•\x20':'')+(_0x4608ef&&_0x4608ef[_0x5b6638(0x1bb)][_0x5b6638(0x1c3)]===_0x294739['id']?'Server\x20Owner\x20•\x20':'')+_0x294739['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/boost.js b/commands/management/boost.js index 9810d7b63..413b6cfae 100644 --- a/commands/management/boost.js +++ b/commands/management/boost.js @@ -1 +1 @@ -const a79_0x3e9f=['client','@bastion/tesseract','Constants','COLORS','BASTION_ERROR_TYPE','language','../../models/Member','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','save','getTime','constructor','findById','../../utils/errors','Command','getString','findOne','tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','locale','errors','boost','apply','exports','toDateString','default','exec','author','bump','boosts','channel','IRIS','guild','send','It\x20allows\x20you\x20to\x20boost\x20the\x20server\x20in\x20Bastion\x27s\x20server\x20listings.\x20You\x20can\x20boost\x20the\x20server\x20once\x20every\x2024\x20hours.\x20Server\x27s\x20boost\x20score\x20gets\x20reset\x20every\x20month.'];(function(_0x5a5602,_0x455841){const _0x3e9ff9=function(_0x17ca30){while(--_0x17ca30){_0x5a5602['push'](_0x5a5602['shift']());}},_0x800010=function(){const _0x2c9b49={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x487941,_0x2ebe4c,_0xafcf46,_0x462319){_0x462319=_0x462319||{};let _0xc22b4a=_0x2ebe4c+'='+_0xafcf46,_0x43c363=0x0;for(let _0x2a9389=0x0,_0x4f7b21=_0x487941['length'];_0x2a9389<_0x4f7b21;_0x2a9389++){const _0x35c4c7=_0x487941[_0x2a9389];_0xc22b4a+=';\x20'+_0x35c4c7;const _0x5aea9a=_0x487941[_0x35c4c7];_0x487941['push'](_0x5aea9a),_0x4f7b21=_0x487941['length'],_0x5aea9a!==!![]&&(_0xc22b4a+='='+_0x5aea9a);}_0x462319['cookie']=_0xc22b4a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x49e1ca,_0x20c834){_0x49e1ca=_0x49e1ca||function(_0x3ec0dc){return _0x3ec0dc;};const _0x51d398=_0x49e1ca(new RegExp('(?:^|;\x20)'+_0x20c834['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53e648=function(_0xf8139,_0x3a1a93){_0xf8139(++_0x3a1a93);};return _0x53e648(_0x3e9ff9,_0x455841),_0x51d398?decodeURIComponent(_0x51d398[0x1]):undefined;}},_0x3b4c84=function(){const _0x3563e3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3563e3['test'](_0x2c9b49['removeCookie']['toString']());};_0x2c9b49['updateCookie']=_0x3b4c84;let _0x1e5ba5='';const _0x3c707c=_0x2c9b49['updateCookie']();if(!_0x3c707c)_0x2c9b49['setCookie'](['*'],'counter',0x1);else _0x3c707c?_0x1e5ba5=_0x2c9b49['getCookie'](null,'counter'):_0x2c9b49['removeCookie']();};_0x800010();}(a79_0x3e9f,0xb0));const a79_0x8000=function(_0x5a5602,_0x455841){_0x5a5602=_0x5a5602-0x9d;let _0x3e9ff9=a79_0x3e9f[_0x5a5602];return _0x3e9ff9;};const _0x401e6a=a79_0x8000,a79_0x3b4c84=function(){let _0x3c707c=!![];return function(_0x487941,_0x2ebe4c){const _0xafcf46=_0x3c707c?function(){const _0x2e45ac=a79_0x8000;if(_0x2ebe4c){const _0x462319=_0x2ebe4c[_0x2e45ac(0xb2)](_0x487941,arguments);return _0x2ebe4c=null,_0x462319;}}:function(){};return _0x3c707c=![],_0xafcf46;};}(),a79_0x2c9b49=a79_0x3b4c84(this,function(){const _0xc22b4a=function(){const _0x47c4ae=a79_0x8000,_0x43c363=_0xc22b4a['constructor'](_0x47c4ae(0xad))()[_0x47c4ae(0xa6)](_0x47c4ae(0xa3));return!_0x43c363['test'](a79_0x2c9b49);};return _0xc22b4a();});a79_0x2c9b49();'use strict';const tesseract_1=require(_0x401e6a(0x9d)),Guild_1=require('../../models/Guild'),Member_1=require(_0x401e6a(0xa2)),errors=require(_0x401e6a(0xa8));module[_0x401e6a(0xb3)]=class BoostCommand extends tesseract_1[_0x401e6a(0xa9)]{constructor(){const _0x2f629d=_0x401e6a;super(_0x2f629d(0xb1),{'description':_0x2f629d(0xbe),'triggers':[_0x2f629d(0xb8)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x2f629d(0xb6)]=async _0x2a9389=>{const _0x2000ec=_0x2f629d,_0x4f7b21=await Member_1[_0x2000ec(0xb5)][_0x2000ec(0xab)]({'user':_0x2a9389[_0x2000ec(0xb7)]['id'],'guild':_0x2a9389['guild']['id']}),_0x35c4c7=new Date(),_0x5aea9a=new Date(_0x4f7b21[_0x2000ec(0xb1)]);if(_0x35c4c7[_0x2000ec(0xb4)]()===_0x5aea9a[_0x2000ec(0xb4)]())throw new errors['DiscordError'](errors[_0x2000ec(0xa0)]['ERROR'],this[_0x2000ec(0xbf)][_0x2000ec(0xaf)][_0x2000ec(0xaa)](_0x2a9389[_0x2000ec(0xbc)][_0x2000ec(0xae)][_0x2000ec(0xa1)],_0x2000ec(0xb0),'alreadyBoosted',_0x2a9389[_0x2000ec(0xb7)][_0x2000ec(0xac)]));_0x4f7b21[_0x2000ec(0xb1)]=_0x35c4c7[_0x2000ec(0xa5)]();const _0x49e1ca=await Guild_1[_0x2000ec(0xb5)][_0x2000ec(0xa7)](_0x2a9389[_0x2000ec(0xbc)]['id']);if(_0x49e1ca[_0x2000ec(0xb9)])_0x49e1ca['boosts']+=0x1;else _0x49e1ca['boosts']=0x1;await _0x49e1ca[_0x2000ec(0xa4)](),await _0x4f7b21[_0x2000ec(0xa4)](),await _0x2a9389[_0x2000ec(0xba)][_0x2000ec(0xbd)]({'embed':{'color':tesseract_1[_0x2000ec(0x9e)][_0x2000ec(0x9f)][_0x2000ec(0xbb)],'description':this[_0x2000ec(0xbf)][_0x2000ec(0xaf)][_0x2000ec(0xaa)](_0x2a9389['guild'][_0x2000ec(0xae)]['language'],'info','boost',_0x2a9389[_0x2000ec(0xb7)][_0x2000ec(0xac)])}});};}}; \ No newline at end of file +const a80_0x3b59=['../../utils/errors','apply','author','alreadyBoosted','getString','language','constructor','getConstant','@bastion/tesseract','../../models/Member','save','client','tag','toDateString','IRIS','boosts','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','findOne','exec','document','../../models/Guild','guild','errors','default','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20to\x20boost\x20the\x20server\x20in\x20Bastion\x27s\x20server\x20listings.\x20You\x20can\x20boost\x20the\x20server\x20once\x20every\x2024\x20hours.\x20Server\x27s\x20boost\x20score\x20gets\x20reset\x20every\x20month.','locale','channel','getTime','COLORS','info'];(function(_0x3e10cf,_0x3996f2){const _0x3b5984=function(_0x1bd6bd){while(--_0x1bd6bd){_0x3e10cf['push'](_0x3e10cf['shift']());}},_0x811ce5=function(){const _0x4634a1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f81d5,_0x29bb52,_0x3d0030,_0x311ce5){_0x311ce5=_0x311ce5||{};let _0x283637=_0x29bb52+'='+_0x3d0030,_0x5334b5=0x0;for(let _0x40450c=0x0,_0x61ee43=_0x2f81d5['length'];_0x40450c<_0x61ee43;_0x40450c++){const _0x5e6c5e=_0x2f81d5[_0x40450c];_0x283637+=';\x20'+_0x5e6c5e;const _0x1e9ee2=_0x2f81d5[_0x5e6c5e];_0x2f81d5['push'](_0x1e9ee2),_0x61ee43=_0x2f81d5['length'],_0x1e9ee2!==!![]&&(_0x283637+='='+_0x1e9ee2);}_0x311ce5['cookie']=_0x283637;},'removeCookie':function(){return'dev';},'getCookie':function(_0x94e90d,_0x3f2880){_0x94e90d=_0x94e90d||function(_0x428cc0){return _0x428cc0;};const _0x1b3370=_0x94e90d(new RegExp('(?:^|;\x20)'+_0x3f2880['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35e661=function(_0x3ed25d,_0x1b52cc){_0x3ed25d(++_0x1b52cc);};return _0x35e661(_0x3b5984,_0x3996f2),_0x1b3370?decodeURIComponent(_0x1b3370[0x1]):undefined;}},_0x4b758a=function(){const _0x12bb08=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12bb08['test'](_0x4634a1['removeCookie']['toString']());};_0x4634a1['updateCookie']=_0x4b758a;let _0xf5b478='';const _0x391e91=_0x4634a1['updateCookie']();if(!_0x391e91)_0x4634a1['setCookie'](['*'],'counter',0x1);else _0x391e91?_0xf5b478=_0x4634a1['getCookie'](null,'counter'):_0x4634a1['removeCookie']();};_0x811ce5();}(a80_0x3b59,0x18d));const a80_0x811c=function(_0x3e10cf,_0x3996f2){_0x3e10cf=_0x3e10cf-0xe6;let _0x3b5984=a80_0x3b59[_0x3e10cf];return _0x3b5984;};const a80_0x17f751=a80_0x811c,a80_0x4b758a=function(){let _0x391e91=!![];return function(_0x2f81d5,_0x29bb52){const _0x3d0030=_0x391e91?function(){const _0x32de03=a80_0x811c;if(_0x29bb52){const _0x311ce5=_0x29bb52[_0x32de03(0xf2)](_0x2f81d5,arguments);return _0x29bb52=null,_0x311ce5;}}:function(){};return _0x391e91=![],_0x3d0030;};}(),a80_0x4634a1=a80_0x4b758a(this,function(){const _0x283637=function(){const _0x521607=a80_0x811c,_0x5334b5=_0x283637[_0x521607(0xf7)](_0x521607(0xea))()[_0x521607(0xf7)](_0x521607(0x102));return!_0x5334b5[_0x521607(0x103)](a80_0x4634a1);};return _0x283637();});a80_0x4634a1();'use strict';const tesseract_1=require(a80_0x17f751(0xf9)),Guild_1=require(a80_0x17f751(0x107)),Member_1=require(a80_0x17f751(0xfa)),errors=require(a80_0x17f751(0xf1));module['exports']=class BoostCommand extends tesseract_1[a80_0x17f751(0xe9)]{constructor(){const _0x32134d=a80_0x17f751;super('boost',{'description':_0x32134d(0xeb),'triggers':['bump'],'arguments':{},'scope':_0x32134d(0xe6),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x32134d(0x105)]=async _0x40450c=>{const _0x558f54=_0x32134d,_0x61ee43=await Member_1[_0x558f54(0xe8)][_0x558f54(0x104)]({'user':_0x40450c[_0x558f54(0xf3)]['id'],'guild':_0x40450c['guild']['id']}),_0x5e6c5e=new Date(),_0x1e9ee2=new Date(_0x61ee43['boost']);if(_0x5e6c5e[_0x558f54(0xfe)]()===_0x1e9ee2[_0x558f54(0xfe)]())throw new errors['DiscordError'](errors[_0x558f54(0x101)]['ERROR'],this[_0x558f54(0xfc)][_0x558f54(0xec)][_0x558f54(0xf5)](_0x40450c[_0x558f54(0xe6)][_0x558f54(0x106)][_0x558f54(0xf6)],_0x558f54(0xe7),_0x558f54(0xf4),_0x40450c['author'][_0x558f54(0xfd)]));_0x61ee43['boost']=_0x5e6c5e[_0x558f54(0xee)]();const _0x94e90d=await Guild_1[_0x558f54(0xe8)]['findById'](_0x40450c['guild']['id']);if(_0x94e90d[_0x558f54(0x100)])_0x94e90d[_0x558f54(0x100)]+=0x1;else _0x94e90d['boosts']=0x1;await _0x94e90d['save'](),await _0x61ee43[_0x558f54(0xfb)](),await _0x40450c[_0x558f54(0xed)]['send']({'embed':{'color':tesseract_1['Constants'][_0x558f54(0xef)][_0x558f54(0xff)],'author':{'name':_0x40450c[_0x558f54(0xe6)]['name'],'url':this[_0x558f54(0xfc)]['locale'][_0x558f54(0xf8)]('bastion.website')+'/servers/'+_0x40450c[_0x558f54(0xe6)]['id']},'description':this[_0x558f54(0xfc)][_0x558f54(0xec)][_0x558f54(0xf5)](_0x40450c[_0x558f54(0xe6)][_0x558f54(0x106)][_0x558f54(0xf6)],_0x558f54(0xf0),'boost',_0x40450c[_0x558f54(0xf3)][_0x558f54(0xfd)])}});};}}; \ No newline at end of file diff --git a/commands/management/channels.js b/commands/management/channels.js index e2e4bfa7f..e7c1d75ec 100644 --- a/commands/management/channels.js +++ b/commands/management/channels.js @@ -1 +1 @@ -const a80_0x33c6=['channels\x20--create\x20NAME\x20--topic\x20TOPIC\x20--\x20REASON','channels\x20--create\x20NAME\x20--limit\x201-99\x20--\x20REASON','send','channelDeleteQuestion','channel','author','It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20channels\x20in\x20the\x20server.','../../utils/confirmation','constructor','document','default','has','MANAGE_CHANNELS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','create','channels\x20--create\x20NAME\x20--nsfw\x20--\x20REASON','ChannelCreate','join','channels\x20--rename\x20NAME\x20--\x20REASON','exports','../../utils/errors','language','premiumTier','Command','includes','channels\x20--delete\x20--\x20REASON','INVALID_COMMAND_SYNTAX','type','channels\x20--create\x20NAME\x20--\x20REASON','catch','length','textChannelRename','cache','category','GREEN','getString','guild','delete','rename','channels\x20--create\x20NAME\x20--category\x20ID\x20--\x20REASON','info','BASTION_ERROR_TYPE','tag','locale','text','DiscordError','nsfw','slowmode','client','topic','COLORS','limit','@bastion/tesseract','name','channels\x20--create\x20NAME\x20--slowmode\x20--\x20REASON','test'];(function(_0x52963b,_0x719c65){const _0x33c631=function(_0xe060b6){while(--_0xe060b6){_0x52963b['push'](_0x52963b['shift']());}},_0x12a579=function(){const _0x52b2ac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2e9882,_0x5dc05a,_0x5bf772,_0xfec7e7){_0xfec7e7=_0xfec7e7||{};let _0x17ed34=_0x5dc05a+'='+_0x5bf772,_0x249f3b=0x0;for(let _0x176847=0x0,_0x221102=_0x2e9882['length'];_0x176847<_0x221102;_0x176847++){const _0x1b99dc=_0x2e9882[_0x176847];_0x17ed34+=';\x20'+_0x1b99dc;const _0x225798=_0x2e9882[_0x1b99dc];_0x2e9882['push'](_0x225798),_0x221102=_0x2e9882['length'],_0x225798!==!![]&&(_0x17ed34+='='+_0x225798);}_0xfec7e7['cookie']=_0x17ed34;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d9fcc,_0x2f177e){_0x1d9fcc=_0x1d9fcc||function(_0x5ce859){return _0x5ce859;};const _0x32fb33=_0x1d9fcc(new RegExp('(?:^|;\x20)'+_0x2f177e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x21d3d8=function(_0x4aa489,_0x3a4497){_0x4aa489(++_0x3a4497);};return _0x21d3d8(_0x33c631,_0x719c65),_0x32fb33?decodeURIComponent(_0x32fb33[0x1]):undefined;}},_0x1e162c=function(){const _0x328268=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x328268['test'](_0x52b2ac['removeCookie']['toString']());};_0x52b2ac['updateCookie']=_0x1e162c;let _0x1ec2c3='';const _0xa3dff9=_0x52b2ac['updateCookie']();if(!_0xa3dff9)_0x52b2ac['setCookie'](['*'],'counter',0x1);else _0xa3dff9?_0x1ec2c3=_0x52b2ac['getCookie'](null,'counter'):_0x52b2ac['removeCookie']();};_0x12a579();}(a80_0x33c6,0xe0));const a80_0x12a5=function(_0x52963b,_0x719c65){_0x52963b=_0x52963b-0x129;let _0x33c631=a80_0x33c6[_0x52963b];return _0x33c631;};const _0x134c04=a80_0x12a5,a80_0x1e162c=function(){let _0xa3dff9=!![];return function(_0x2e9882,_0x5dc05a){const _0x5bf772=_0xa3dff9?function(){if(_0x5dc05a){const _0xfec7e7=_0x5dc05a['apply'](_0x2e9882,arguments);return _0x5dc05a=null,_0xfec7e7;}}:function(){};return _0xa3dff9=![],_0x5bf772;};}(),a80_0x52b2ac=a80_0x1e162c(this,function(){const _0x17ed34=function(){const _0x1a3b90=a80_0x12a5,_0x249f3b=_0x17ed34[_0x1a3b90(0x131)](_0x1a3b90(0x136))()[_0x1a3b90(0x131)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x249f3b[_0x1a3b90(0x160)](a80_0x52b2ac);};return _0x17ed34();});a80_0x52b2ac();'use strict';const tesseract_1=require(_0x134c04(0x15d)),confirmation_1=require(_0x134c04(0x130)),errors=require(_0x134c04(0x13d)),numbers=require('../../utils/numbers');module[_0x134c04(0x13c)]=class ChannelsCommand extends tesseract_1[_0x134c04(0x140)]{constructor(){const _0x1c53b9=_0x134c04;super('channels',{'description':_0x1c53b9(0x12f),'triggers':[],'arguments':{'array':[_0x1c53b9(0x137),'rename',_0x1c53b9(0x15a)],'boolean':[_0x1c53b9(0x14e),_0x1c53b9(0x157),_0x1c53b9(0x158)],'number':[_0x1c53b9(0x15c)],'string':[_0x1c53b9(0x14a),_0x1c53b9(0x137),_0x1c53b9(0x14f),_0x1c53b9(0x15a)],'coerce':{'type':_0x176847=>[_0x1c53b9(0x14a),_0x1c53b9(0x155),'voice'][_0x1c53b9(0x141)](_0x176847['toLowerCase']())?_0x176847:_0x1c53b9(0x155),'limit':_0x221102=>numbers['clamp'](_0x221102,0x1,0x63)}},'scope':_0x1c53b9(0x14d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x1c53b9(0x135)],'userPermissions':[_0x1c53b9(0x135)],'syntax':[_0x1c53b9(0x145),'channels\x20--create\x20NAME\x20--type\x20TYPE\x20--\x20REASON',_0x1c53b9(0x150),_0x1c53b9(0x129),_0x1c53b9(0x12a),_0x1c53b9(0x15f),_0x1c53b9(0x138),_0x1c53b9(0x142),_0x1c53b9(0x13b)]}),this['exec']=async(_0x1b99dc,_0x225798)=>{const _0x9b7c38=_0x1c53b9,_0x1d9fcc=_0x225798['_'][_0x9b7c38(0x13a)]('\x20')||'-';if(_0x225798[_0x9b7c38(0x137)]&&_0x225798['create']['length']){const _0x2f177e=_0x225798[_0x9b7c38(0x137)][_0x9b7c38(0x13a)]('\x20'),_0x32fb33=await _0x1b99dc[_0x9b7c38(0x14d)]['channels'][_0x9b7c38(0x137)](_0x2f177e,{'type':_0x225798[_0x9b7c38(0x144)],'bitrate':_0x1b99dc[_0x9b7c38(0x14d)][_0x9b7c38(0x13f)]*0x1f400||0x17700,'nsfw':_0x225798[_0x9b7c38(0x157)],'reason':_0x1d9fcc,'topic':_0x225798['topic']&&_0x225798[_0x9b7c38(0x15a)][_0x9b7c38(0x147)]?_0x225798[_0x9b7c38(0x15a)][_0x9b7c38(0x13a)]('\x20'):'','userLimit':_0x225798[_0x9b7c38(0x15c)]?_0x225798['limit']:0x0,'rateLimitPerUser':_0x225798['slowmode']?0x5:0x0,'parent':_0x1b99dc[_0x9b7c38(0x14d)]['channels'][_0x9b7c38(0x149)][_0x9b7c38(0x134)](_0x225798[_0x9b7c38(0x14a)])?_0x225798[_0x9b7c38(0x14a)]:_0x1b99dc[_0x9b7c38(0x12d)]['parent']});return await _0x1b99dc[_0x9b7c38(0x12d)][_0x9b7c38(0x12b)]({'embed':{'color':tesseract_1['Constants'][_0x9b7c38(0x15b)][_0x9b7c38(0x14b)],'description':this[_0x9b7c38(0x159)][_0x9b7c38(0x154)][_0x9b7c38(0x14c)](_0x1b99dc[_0x9b7c38(0x14d)][_0x9b7c38(0x132)][_0x9b7c38(0x13e)],_0x9b7c38(0x151),_0x32fb33['type']+_0x9b7c38(0x139),_0x1b99dc[_0x9b7c38(0x12e)]['tag'],_0x32fb33[_0x9b7c38(0x15e)],_0x1d9fcc)}})[_0x9b7c38(0x146)](()=>{});}if(_0x225798[_0x9b7c38(0x14e)]){const _0x21d3d8=await confirmation_1[_0x9b7c38(0x133)](_0x1b99dc,this[_0x9b7c38(0x159)][_0x9b7c38(0x154)][_0x9b7c38(0x14c)](_0x1b99dc[_0x9b7c38(0x14d)][_0x9b7c38(0x132)][_0x9b7c38(0x13e)],'info',_0x9b7c38(0x12c),_0x1b99dc[_0x9b7c38(0x12e)][_0x9b7c38(0x153)],_0x1b99dc[_0x9b7c38(0x12d)][_0x9b7c38(0x15e)]));return _0x21d3d8&&await _0x1b99dc[_0x9b7c38(0x12d)]['delete'](_0x1d9fcc),!![];}if(_0x225798[_0x9b7c38(0x14f)]&&_0x225798[_0x9b7c38(0x14f)]['length']){const _0x5ce859=await _0x1b99dc['channel']['edit']({'name':_0x225798[_0x9b7c38(0x14f)]['join']('\x20')});return await _0x1b99dc[_0x9b7c38(0x12d)]['send']({'embed':{'color':tesseract_1['Constants'][_0x9b7c38(0x15b)][_0x9b7c38(0x14b)],'description':this[_0x9b7c38(0x159)][_0x9b7c38(0x154)][_0x9b7c38(0x14c)](_0x1b99dc['guild'][_0x9b7c38(0x132)][_0x9b7c38(0x13e)],'info',_0x9b7c38(0x148),_0x1b99dc[_0x9b7c38(0x12e)][_0x9b7c38(0x153)],_0x5ce859[_0x9b7c38(0x15e)],_0x1d9fcc)}})[_0x9b7c38(0x146)](()=>{});}throw new errors[(_0x9b7c38(0x156))](errors[_0x9b7c38(0x152)][_0x9b7c38(0x143)],this[_0x9b7c38(0x15e)]);};}}; \ No newline at end of file +const a81_0x2521=['limit','MANAGE_CHANNELS','delete','length','create','guild','topic','cache','voice','channels\x20--create\x20NAME\x20--slowmode\x20--\x20REASON','default','DiscordError','channels\x20--create\x20NAME\x20--limit\x201-99\x20--\x20REASON','catch','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channels\x20--delete\x20--\x20REASON','type','channels\x20--create\x20NAME\x20--topic\x20TOPIC\x20--\x20REASON','info','getString','exec','language','channels\x20--create\x20NAME\x20--\x20REASON','It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20channels\x20in\x20the\x20server.','GREEN','Constants','rename','slowmode','document','channels\x20--create\x20NAME\x20--category\x20ID\x20--\x20REASON','COLORS','join','author','test','channels\x20--create\x20NAME\x20--nsfw\x20--\x20REASON','INVALID_COMMAND_SYNTAX','send','category','constructor','premiumTier','text','locale','client','channels\x20--rename\x20NAME\x20--\x20REASON','exports','apply','channels','clamp','includes','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','name','Command','nsfw','channels\x20--create\x20NAME\x20--type\x20TYPE\x20--\x20REASON','../../utils/errors','channel'];(function(_0x3bf957,_0x1b4fc0){const _0x252133=function(_0x1451e0){while(--_0x1451e0){_0x3bf957['push'](_0x3bf957['shift']());}},_0x229af7=function(){const _0x55c981={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5924b5,_0x56d293,_0x4bbe5c,_0x4ac3be){_0x4ac3be=_0x4ac3be||{};let _0x41e05f=_0x56d293+'='+_0x4bbe5c,_0x515aa4=0x0;for(let _0x4d99db=0x0,_0x490c06=_0x5924b5['length'];_0x4d99db<_0x490c06;_0x4d99db++){const _0x3fc195=_0x5924b5[_0x4d99db];_0x41e05f+=';\x20'+_0x3fc195;const _0x5ec28c=_0x5924b5[_0x3fc195];_0x5924b5['push'](_0x5ec28c),_0x490c06=_0x5924b5['length'],_0x5ec28c!==!![]&&(_0x41e05f+='='+_0x5ec28c);}_0x4ac3be['cookie']=_0x41e05f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x27aee0,_0x5e7af6){_0x27aee0=_0x27aee0||function(_0x4a8b8c){return _0x4a8b8c;};const _0x37f76a=_0x27aee0(new RegExp('(?:^|;\x20)'+_0x5e7af6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2b31e8=function(_0x988618,_0x51c7af){_0x988618(++_0x51c7af);};return _0x2b31e8(_0x252133,_0x1b4fc0),_0x37f76a?decodeURIComponent(_0x37f76a[0x1]):undefined;}},_0x2a5b7e=function(){const _0x2ade34=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2ade34['test'](_0x55c981['removeCookie']['toString']());};_0x55c981['updateCookie']=_0x2a5b7e;let _0x4ba064='';const _0x403900=_0x55c981['updateCookie']();if(!_0x403900)_0x55c981['setCookie'](['*'],'counter',0x1);else _0x403900?_0x4ba064=_0x55c981['getCookie'](null,'counter'):_0x55c981['removeCookie']();};_0x229af7();}(a81_0x2521,0xbf));const a81_0x229a=function(_0x3bf957,_0x1b4fc0){_0x3bf957=_0x3bf957-0x18c;let _0x252133=a81_0x2521[_0x3bf957];return _0x252133;};const a81_0x33ccb3=a81_0x229a,a81_0x2a5b7e=function(){let _0x403900=!![];return function(_0x5924b5,_0x56d293){const _0x4bbe5c=_0x403900?function(){const _0x28df15=a81_0x229a;if(_0x56d293){const _0x4ac3be=_0x56d293[_0x28df15(0x1a5)](_0x5924b5,arguments);return _0x56d293=null,_0x4ac3be;}}:function(){};return _0x403900=![],_0x4bbe5c;};}(),a81_0x55c981=a81_0x2a5b7e(this,function(){const _0x41e05f=function(){const _0x1c9a4a=a81_0x229a,_0x515aa4=_0x41e05f[_0x1c9a4a(0x19e)](_0x1c9a4a(0x1bf))()[_0x1c9a4a(0x19e)](_0x1c9a4a(0x1a9));return!_0x515aa4[_0x1c9a4a(0x199)](a81_0x55c981);};return _0x41e05f();});a81_0x55c981();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require('../../utils/confirmation'),errors=require(a81_0x33ccb3(0x1af)),numbers=require('../../utils/numbers');module[a81_0x33ccb3(0x1a4)]=class ChannelsCommand extends tesseract_1[a81_0x33ccb3(0x1ac)]{constructor(){const _0x342c46=a81_0x33ccb3;super(_0x342c46(0x1a6),{'description':_0x342c46(0x18f),'triggers':[],'arguments':{'array':[_0x342c46(0x1b5),_0x342c46(0x192),'topic'],'boolean':[_0x342c46(0x1b3),_0x342c46(0x1ad),'slowmode'],'number':[_0x342c46(0x1b1)],'string':[_0x342c46(0x19d),_0x342c46(0x1b5),_0x342c46(0x192),_0x342c46(0x1b7)],'coerce':{'type':_0x4d99db=>[_0x342c46(0x19d),_0x342c46(0x1a0),_0x342c46(0x1b9)][_0x342c46(0x1a8)](_0x4d99db['toLowerCase']())?_0x4d99db:'text','limit':_0x490c06=>numbers[_0x342c46(0x1a7)](_0x490c06,0x1,0x63)}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x342c46(0x1b2)],'userPermissions':[_0x342c46(0x1b2)],'syntax':[_0x342c46(0x18e),_0x342c46(0x1ae),_0x342c46(0x195),_0x342c46(0x1c2),_0x342c46(0x1bd),_0x342c46(0x1ba),_0x342c46(0x19a),_0x342c46(0x1c0),_0x342c46(0x1a3)]}),this[_0x342c46(0x18c)]=async(_0x3fc195,_0x5ec28c)=>{const _0x575c75=_0x342c46,_0x27aee0=_0x5ec28c['_'][_0x575c75(0x197)]('\x20')||'-';if(_0x5ec28c[_0x575c75(0x1b5)]&&_0x5ec28c['create']['length']){const _0x5e7af6=_0x5ec28c[_0x575c75(0x1b5)][_0x575c75(0x197)]('\x20'),_0x37f76a=await _0x3fc195[_0x575c75(0x1b6)][_0x575c75(0x1a6)][_0x575c75(0x1b5)](_0x5e7af6,{'type':_0x5ec28c['type'],'bitrate':_0x3fc195['guild'][_0x575c75(0x19f)]*0x1f400||0x17700,'nsfw':_0x5ec28c['nsfw'],'reason':_0x27aee0,'topic':_0x5ec28c[_0x575c75(0x1b7)]&&_0x5ec28c[_0x575c75(0x1b7)]['length']?_0x5ec28c[_0x575c75(0x1b7)][_0x575c75(0x197)]('\x20'):'','userLimit':_0x5ec28c[_0x575c75(0x1b1)]?_0x5ec28c['limit']:0x0,'rateLimitPerUser':_0x5ec28c[_0x575c75(0x193)]?0x5:0x0,'parent':_0x3fc195[_0x575c75(0x1b6)][_0x575c75(0x1a6)][_0x575c75(0x1b8)]['has'](_0x5ec28c[_0x575c75(0x19d)])?_0x5ec28c['category']:_0x3fc195['channel']['parent']});return await _0x3fc195[_0x575c75(0x1b0)][_0x575c75(0x19c)]({'embed':{'color':tesseract_1[_0x575c75(0x191)][_0x575c75(0x196)][_0x575c75(0x190)],'description':this[_0x575c75(0x1a2)][_0x575c75(0x1a1)][_0x575c75(0x1c4)](_0x3fc195[_0x575c75(0x1b6)][_0x575c75(0x194)][_0x575c75(0x18d)],_0x575c75(0x1c3),_0x37f76a[_0x575c75(0x1c1)]+'ChannelCreate',_0x3fc195['author'][_0x575c75(0x1aa)],_0x37f76a[_0x575c75(0x1ab)],_0x27aee0)}})[_0x575c75(0x1be)](()=>{});}if(_0x5ec28c[_0x575c75(0x1b3)]){const _0x2b31e8=await confirmation_1[_0x575c75(0x1bb)](_0x3fc195,this[_0x575c75(0x1a2)][_0x575c75(0x1a1)][_0x575c75(0x1c4)](_0x3fc195[_0x575c75(0x1b6)]['document'][_0x575c75(0x18d)],_0x575c75(0x1c3),'channelDeleteQuestion',_0x3fc195['author']['tag'],_0x3fc195[_0x575c75(0x1b0)][_0x575c75(0x1ab)]));return _0x2b31e8&&await _0x3fc195[_0x575c75(0x1b0)]['delete'](_0x27aee0),!![];}if(_0x5ec28c[_0x575c75(0x192)]&&_0x5ec28c['rename'][_0x575c75(0x1b4)]){const _0x4a8b8c=await _0x3fc195[_0x575c75(0x1b0)]['edit']({'name':_0x5ec28c['rename'][_0x575c75(0x197)]('\x20')});return await _0x3fc195[_0x575c75(0x1b0)][_0x575c75(0x19c)]({'embed':{'color':tesseract_1[_0x575c75(0x191)][_0x575c75(0x196)][_0x575c75(0x190)],'description':this[_0x575c75(0x1a2)][_0x575c75(0x1a1)]['getString'](_0x3fc195[_0x575c75(0x1b6)][_0x575c75(0x194)]['language'],_0x575c75(0x1c3),'textChannelRename',_0x3fc195[_0x575c75(0x198)][_0x575c75(0x1aa)],_0x4a8b8c[_0x575c75(0x1ab)],_0x27aee0)}})[_0x575c75(0x1be)](()=>{});}throw new errors[(_0x575c75(0x1bc))](errors['BASTION_ERROR_TYPE'][_0x575c75(0x19b)],this['name']);};}}; \ No newline at end of file diff --git a/commands/management/edit.js b/commands/management/edit.js index adc8a029a..d800d20d8 100644 --- a/commands/management/edit.js +++ b/commands/management/edit.js @@ -1 +1 @@ -const a81_0xf90d=['DiscordError','join','return\x20/\x22\x20+\x20this\x20+\x20\x22/','ADMINISTRATOR','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','isValidBastionEmbed','react','INVALID_BASTION_EMBED','BASTION_ERROR_TYPE','messages','../../utils/embeds','getString','exports','parse','guild','errors','channel','name','author','@bastion/tesseract','apply','test','editable','constructor','Command','client','edit\x20--message\x20MESSAGE_ID\x20--\x20NEW\x20MESSAGE','length','tag','INVALID_COMMAND_SYNTAX','edit','generateEmbed','message','language'];(function(_0x394259,_0x2e2475){const _0xf90d0b=function(_0xeb05){while(--_0xeb05){_0x394259['push'](_0x394259['shift']());}},_0x3041e7=function(){const _0x3a2b64={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f1d9d,_0x48e5df,_0x37787b,_0x5dbcbd){_0x5dbcbd=_0x5dbcbd||{};let _0x378513=_0x48e5df+'='+_0x37787b,_0x25a225=0x0;for(let _0xf80682=0x0,_0x460f3a=_0x5f1d9d['length'];_0xf80682<_0x460f3a;_0xf80682++){const _0xc0db6b=_0x5f1d9d[_0xf80682];_0x378513+=';\x20'+_0xc0db6b;const _0x360de7=_0x5f1d9d[_0xc0db6b];_0x5f1d9d['push'](_0x360de7),_0x460f3a=_0x5f1d9d['length'],_0x360de7!==!![]&&(_0x378513+='='+_0x360de7);}_0x5dbcbd['cookie']=_0x378513;},'removeCookie':function(){return'dev';},'getCookie':function(_0x414f41,_0x1681df){_0x414f41=_0x414f41||function(_0x3cdd96){return _0x3cdd96;};const _0xa71a5c=_0x414f41(new RegExp('(?:^|;\x20)'+_0x1681df['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x411723=function(_0x39e599,_0x2b39d5){_0x39e599(++_0x2b39d5);};return _0x411723(_0xf90d0b,_0x2e2475),_0xa71a5c?decodeURIComponent(_0xa71a5c[0x1]):undefined;}},_0x2073df=function(){const _0x29f349=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x29f349['test'](_0x3a2b64['removeCookie']['toString']());};_0x3a2b64['updateCookie']=_0x2073df;let _0xca99f1='';const _0x121f97=_0x3a2b64['updateCookie']();if(!_0x121f97)_0x3a2b64['setCookie'](['*'],'counter',0x1);else _0x121f97?_0xca99f1=_0x3a2b64['getCookie'](null,'counter'):_0x3a2b64['removeCookie']();};_0x3041e7();}(a81_0xf90d,0x1a8));const a81_0x3041=function(_0x394259,_0x2e2475){_0x394259=_0x394259-0xb1;let _0xf90d0b=a81_0xf90d[_0x394259];return _0xf90d0b;};const _0x365013=a81_0x3041,a81_0x2073df=function(){let _0x121f97=!![];return function(_0x5f1d9d,_0x48e5df){const _0x37787b=_0x121f97?function(){const _0x117c7b=a81_0x3041;if(_0x48e5df){const _0x5dbcbd=_0x48e5df[_0x117c7b(0xb5)](_0x5f1d9d,arguments);return _0x48e5df=null,_0x5dbcbd;}}:function(){};return _0x121f97=![],_0x37787b;};}(),a81_0x3a2b64=a81_0x2073df(this,function(){const _0x378513=function(){const _0x502773=a81_0x3041,_0x25a225=_0x378513[_0x502773(0xb8)](_0x502773(0xc5))()[_0x502773(0xb8)](_0x502773(0xc7));return!_0x25a225[_0x502773(0xb6)](a81_0x3a2b64);};return _0x378513();});a81_0x3a2b64();'use strict';const tesseract_1=require(_0x365013(0xb4)),errors=require('../../utils/errors'),embeds=require(_0x365013(0xcd));module[_0x365013(0xcf)]=class EditCommand extends tesseract_1[_0x365013(0xb9)]{constructor(){const _0x23c5a9=_0x365013;super('edit',{'description':'It\x20allows\x20you\x20to\x20edit\x20any\x20message\x20sent\x20by\x20Bastion\x20in\x20the\x20current\x20channel.','triggers':[],'arguments':{'alias':{'message':['m']},'string':['message']},'scope':_0x23c5a9(0xd1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x23c5a9(0xc6)],'syntax':[_0x23c5a9(0xbb)]}),this['exec']=async(_0xf80682,_0x460f3a)=>{const _0x4db0ac=_0x23c5a9;if(!_0x460f3a[_0x4db0ac(0xc1)]||!_0x460f3a['_'][_0x4db0ac(0xbc)])throw new errors[(_0x4db0ac(0xc3))](errors[_0x4db0ac(0xcb)][_0x4db0ac(0xbe)],this[_0x4db0ac(0xb2)]);const _0xc0db6b=await _0xf80682[_0x4db0ac(0xb1)][_0x4db0ac(0xcc)]['fetch'](_0x460f3a[_0x4db0ac(0xc1)],![]);if(!_0xc0db6b)throw new errors['DiscordError'](errors[_0x4db0ac(0xcb)]['ROLE_NOT_FOUND'],this[_0x4db0ac(0xba)]['locale'][_0x4db0ac(0xce)](_0xf80682['guild']['document'][_0x4db0ac(0xc2)],_0x4db0ac(0xd2),'roleNotFound'));if(!_0xc0db6b[_0x4db0ac(0xb7)])return;const _0x360de7=_0x460f3a['_'][_0x4db0ac(0xc4)]('\x20');let _0x414f41;try{_0x414f41=JSON[_0x4db0ac(0xd0)](_0x360de7);if(!embeds[_0x4db0ac(0xc8)](_0x414f41))throw new Error(_0x4db0ac(0xca));}catch{_0x414f41=_0x360de7;}await _0xc0db6b[_0x4db0ac(0xbf)]({'embed':{...embeds[_0x4db0ac(0xc0)](_0x414f41),'footer':{'text':'Edited\x20by\x20'+_0xf80682[_0x4db0ac(0xb3)][_0x4db0ac(0xbd)]}}}),await _0xf80682[_0x4db0ac(0xc9)]('✅');};}}; \ No newline at end of file +const a82_0xe16f=['edit','generateEmbed','errors','ROLE_NOT_FOUND','constructor','language','test','../../utils/embeds','apply','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','isValidBastionEmbed','ADMINISTRATOR','INVALID_COMMAND_SYNTAX','length','message','DiscordError','@bastion/tesseract','BASTION_ERROR_TYPE','name','editable','../../utils/errors','join','INVALID_BASTION_EMBED','locale','It\x20allows\x20you\x20to\x20edit\x20any\x20message\x20sent\x20by\x20Bastion\x20in\x20the\x20current\x20channel.','exec','getString','Edited\x20by\x20','guild','react','messages','Command','channel','fetch'];(function(_0x1d559b,_0x2ddc42){const _0xe16fe5=function(_0x3c0308){while(--_0x3c0308){_0x1d559b['push'](_0x1d559b['shift']());}},_0x35e2ff=function(){const _0x10fdb6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b33c6,_0x215944,_0x3547a0,_0x37eaef){_0x37eaef=_0x37eaef||{};let _0x3adfd9=_0x215944+'='+_0x3547a0,_0x313c50=0x0;for(let _0x1427fd=0x0,_0x5712c5=_0x3b33c6['length'];_0x1427fd<_0x5712c5;_0x1427fd++){const _0x2159bf=_0x3b33c6[_0x1427fd];_0x3adfd9+=';\x20'+_0x2159bf;const _0x4a3a51=_0x3b33c6[_0x2159bf];_0x3b33c6['push'](_0x4a3a51),_0x5712c5=_0x3b33c6['length'],_0x4a3a51!==!![]&&(_0x3adfd9+='='+_0x4a3a51);}_0x37eaef['cookie']=_0x3adfd9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20983a,_0xdd4d78){_0x20983a=_0x20983a||function(_0x40c3f1){return _0x40c3f1;};const _0x14d041=_0x20983a(new RegExp('(?:^|;\x20)'+_0xdd4d78['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4cb2c2=function(_0x346d3e,_0x1d0385){_0x346d3e(++_0x1d0385);};return _0x4cb2c2(_0xe16fe5,_0x2ddc42),_0x14d041?decodeURIComponent(_0x14d041[0x1]):undefined;}},_0x509051=function(){const _0x661191=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x661191['test'](_0x10fdb6['removeCookie']['toString']());};_0x10fdb6['updateCookie']=_0x509051;let _0x147b39='';const _0x696816=_0x10fdb6['updateCookie']();if(!_0x696816)_0x10fdb6['setCookie'](['*'],'counter',0x1);else _0x696816?_0x147b39=_0x10fdb6['getCookie'](null,'counter'):_0x10fdb6['removeCookie']();};_0x35e2ff();}(a82_0xe16f,0xd7));const a82_0x35e2=function(_0x1d559b,_0x2ddc42){_0x1d559b=_0x1d559b-0xde;let _0xe16fe5=a82_0xe16f[_0x1d559b];return _0xe16fe5;};const a82_0x2fff6a=a82_0x35e2,a82_0x509051=function(){let _0x696816=!![];return function(_0x3b33c6,_0x215944){const _0x3547a0=_0x696816?function(){const _0x376f04=a82_0x35e2;if(_0x215944){const _0x37eaef=_0x215944[_0x376f04(0xf3)](_0x3b33c6,arguments);return _0x215944=null,_0x37eaef;}}:function(){};return _0x696816=![],_0x3547a0;};}(),a82_0x10fdb6=a82_0x509051(this,function(){const _0x3adfd9=function(){const _0x4fa856=a82_0x35e2,_0x313c50=_0x3adfd9['constructor'](_0x4fa856(0xf8))()[_0x4fa856(0xef)](_0x4fa856(0xf5));return!_0x313c50[_0x4fa856(0xf1)](a82_0x10fdb6);};return _0x3adfd9();});a82_0x10fdb6();'use strict';const tesseract_1=require(a82_0x2fff6a(0xff)),errors=require(a82_0x2fff6a(0x103)),embeds=require(a82_0x2fff6a(0xf2));module['exports']=class EditCommand extends tesseract_1[a82_0x2fff6a(0xe8)]{constructor(){const _0x1eb12e=a82_0x2fff6a;super(_0x1eb12e(0xeb),{'description':_0x1eb12e(0xe1),'triggers':[],'arguments':{'alias':{'message':['m']},'string':[_0x1eb12e(0xfd)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x1eb12e(0xfa)],'syntax':['edit\x20--message\x20MESSAGE_ID\x20--\x20NEW\x20MESSAGE']}),this[_0x1eb12e(0xe2)]=async(_0x1427fd,_0x5712c5)=>{const _0x49d6f1=_0x1eb12e;if(!_0x5712c5['message']||!_0x5712c5['_'][_0x49d6f1(0xfc)])throw new errors[(_0x49d6f1(0xfe))](errors['BASTION_ERROR_TYPE'][_0x49d6f1(0xfb)],this[_0x49d6f1(0x101)]);const _0x2159bf=await _0x1427fd[_0x49d6f1(0xe9)][_0x49d6f1(0xe7)][_0x49d6f1(0xea)](_0x5712c5[_0x49d6f1(0xfd)],![]);if(!_0x2159bf)throw new errors['DiscordError'](errors[_0x49d6f1(0x100)][_0x49d6f1(0xee)],this['client'][_0x49d6f1(0xe0)][_0x49d6f1(0xe3)](_0x1427fd[_0x49d6f1(0xe5)][_0x49d6f1(0xf7)][_0x49d6f1(0xf0)],_0x49d6f1(0xed),'roleNotFound'));if(!_0x2159bf[_0x49d6f1(0x102)])return;const _0x4a3a51=_0x5712c5['_'][_0x49d6f1(0xde)]('\x20');let _0x20983a;try{_0x20983a=JSON['parse'](_0x4a3a51);if(!embeds[_0x49d6f1(0xf9)](_0x20983a))throw new Error(_0x49d6f1(0xdf));}catch{_0x20983a=_0x4a3a51;}await _0x2159bf[_0x49d6f1(0xeb)]({'embed':{...embeds[_0x49d6f1(0xec)](_0x20983a),'footer':{'text':_0x49d6f1(0xe4)+_0x1427fd[_0x49d6f1(0xf6)][_0x49d6f1(0xf4)]}}}),await _0x1427fd[_0x49d6f1(0xe6)]('✅');};}}; \ No newline at end of file diff --git a/commands/management/giveaway.js b/commands/management/giveaway.js index b3f992bf4..ddca99396 100644 --- a/commands/management/giveaway.js +++ b/commands/management/giveaway.js @@ -1 +1 @@ -const a82_0x250c=['GIVEAWAYS','catch','test','client','../../models/Giveaway','GIVEAWAY_TIMEOUT','GIVEAWAY\x20ENDED','filter','\x20Winners\x20•\x20Ends','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','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.','channel','apply','DiscordError','join','PremiumTier','SOMEWHAT_DARK','clamp','Command','default','errors','countDocuments','giveaway\x20--reroll\x20ID\x20--winners\x20NUMBER','\x20to\x20participate\x20in\x20the\x20giveaway\x20for\x20a\x20chance\x20to\x20win.','The\x20giveaway\x20winners\x20were\x20rerolled\x20and\x20the\x20following\x20users\x20have\x20won\x20the\x20giveaway\x20and\x20will\x20be\x20contacted\x20soon\x20for\x20their\x20rewards.\x0aThank\x20you\x20everyone\x20for\x20participating.\x20Better\x20luck\x20next\x20time.','PLATINUM','length','has','../../utils/numbers','Congratulations','language','giveaway\x20--winners\x20NUMBER\x20--\x20ITEM','cache','INVALID_COMMAND_SYNTAX','GIVEAWAY\x20WINNERS\x20REROLLED','LIMITS','document','get','reroll','exec','RED','defaultWinners','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','users','BASTION_ERROR_TYPE','create','giveaway\x20--timeout\x20HOURS\x20--\x20ITEM','membershipLimitGiveaways','LIMITED_PREMIUM_MEMBERSHIP','send','GOLD','timeout','constructor','fetchPremiumTier','values','PREMIUM_MEMBERSHIP_REQUIRED','now','React\x20to\x20this\x20message\x20with\x20','reactions','fetch','\x20or\x20','messages','random','react','winners','defaultTimeout','Constants','floor','giveaway\x20--\x20ITEM','push','title','getString','Unfortunately,\x20no\x20one\x20participated\x20in\x20this\x20giveaway\x20and\x20therfore\x20there\x20aren\x27t\x20any\x20winners\x20this\x20time.','bot','exports','guild','GIVEAWAY!','COLORS','isPublicBastion','membershipLimitGiveawayTimeout','embeds'];(function(_0xf5b59e,_0xe194d7){const _0x250ca5=function(_0x3b6350){while(--_0x3b6350){_0xf5b59e['push'](_0xf5b59e['shift']());}},_0x27b638=function(){const _0x5b7b3d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x58ee3d,_0x397310,_0x19cd93,_0x585b74){_0x585b74=_0x585b74||{};let _0x31beed=_0x397310+'='+_0x19cd93,_0x242e34=0x0;for(let _0x35844c=0x0,_0x505b6c=_0x58ee3d['length'];_0x35844c<_0x505b6c;_0x35844c++){const _0xe479e5=_0x58ee3d[_0x35844c];_0x31beed+=';\x20'+_0xe479e5;const _0x4c8793=_0x58ee3d[_0xe479e5];_0x58ee3d['push'](_0x4c8793),_0x505b6c=_0x58ee3d['length'],_0x4c8793!==!![]&&(_0x31beed+='='+_0x4c8793);}_0x585b74['cookie']=_0x31beed;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20af9b,_0x499302){_0x20af9b=_0x20af9b||function(_0x1c4237){return _0x1c4237;};const _0x5ac0e6=_0x20af9b(new RegExp('(?:^|;\x20)'+_0x499302['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x32da5f=function(_0x1ba8c8,_0x53b013){_0x1ba8c8(++_0x53b013);};return _0x32da5f(_0x250ca5,_0xe194d7),_0x5ac0e6?decodeURIComponent(_0x5ac0e6[0x1]):undefined;}},_0x131faa=function(){const _0x3620d5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3620d5['test'](_0x5b7b3d['removeCookie']['toString']());};_0x5b7b3d['updateCookie']=_0x131faa;let _0x80a49a='';const _0xba7b40=_0x5b7b3d['updateCookie']();if(!_0xba7b40)_0x5b7b3d['setCookie'](['*'],'counter',0x1);else _0xba7b40?_0x80a49a=_0x5b7b3d['getCookie'](null,'counter'):_0x5b7b3d['removeCookie']();};_0x27b638();}(a82_0x250c,0xd5));const a82_0x27b6=function(_0xf5b59e,_0xe194d7){_0xf5b59e=_0xf5b59e-0x185;let _0x250ca5=a82_0x250c[_0xf5b59e];return _0x250ca5;};const _0xb48a84=a82_0x27b6,a82_0x131faa=function(){let _0xba7b40=!![];return function(_0x58ee3d,_0x397310){const _0x19cd93=_0xba7b40?function(){const _0x5f530d=a82_0x27b6;if(_0x397310){const _0x585b74=_0x397310[_0x5f530d(0x1b6)](_0x58ee3d,arguments);return _0x397310=null,_0x585b74;}}:function(){};return _0xba7b40=![],_0x19cd93;};}(),a82_0x5b7b3d=a82_0x131faa(this,function(){const _0x31beed=function(){const _0x4974d1=a82_0x27b6,_0x242e34=_0x31beed[_0x4974d1(0x18c)](_0x4974d1(0x1d4))()[_0x4974d1(0x18c)](_0x4974d1(0x1b3));return!_0x242e34[_0x4974d1(0x1ab)](a82_0x5b7b3d);};return _0x31beed();});a82_0x5b7b3d();'use strict';const tesseract_1=require(_0xb48a84(0x1d5)),Giveaway_1=require(_0xb48a84(0x1ad)),constants=require('../../utils/constants'),errors=require('../../utils/errors'),numbers=require(_0xb48a84(0x1c6)),omnic=require('../../utils/omnic');module[_0xb48a84(0x1a2)]=class GiveawayCommand extends tesseract_1[_0xb48a84(0x1bc)]{constructor(){const _0x10a380=_0xb48a84;super('giveaway',{'description':_0x10a380(0x1b4),'triggers':[],'arguments':{'alias':{'reroll':['r'],'timeout':['t'],'winners':['w']},'number':[_0x10a380(0x18b),_0x10a380(0x198)],'coerce':{'timeout':_0x35844c=>typeof _0x35844c==='number'&&numbers[_0x10a380(0x1bb)](_0x35844c,0x1,0x2d0),'winners':_0x505b6c=>typeof _0x505b6c==='number'&&Math[_0x10a380(0x19b)](numbers[_0x10a380(0x1bb)](_0x505b6c,0x1,Number['MAX_SAFE_INTEGER']))},'default':{'timeout':0x3,'winners':0x1}},'scope':_0x10a380(0x1a3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_CHANNELS'],'syntax':[_0x10a380(0x19c),_0x10a380(0x1c9),_0x10a380(0x186),_0x10a380(0x1c0)]}),this[_0x10a380(0x1d1)]=async(_0xe479e5,_0x4c8793)=>{const _0x94b45e=_0x10a380;if(_0x4c8793[_0x94b45e(0x1d0)]){const _0x1ba8c8=await _0xe479e5['channel'][_0x94b45e(0x195)][_0x94b45e(0x193)](_0x4c8793['reroll']);let _0x53b013=[];for(const _0x4adb69 of['🎊','🎉']){_0x1ba8c8[_0x94b45e(0x192)][_0x94b45e(0x1ca)][_0x94b45e(0x1c5)](_0x4adb69)&&(await _0x1ba8c8[_0x94b45e(0x192)][_0x94b45e(0x1ca)][_0x94b45e(0x1cf)](_0x4adb69)[_0x94b45e(0x1d6)]['fetch']()[_0x94b45e(0x1aa)](()=>{}),_0x53b013[_0x94b45e(0x19d)](..._0x1ba8c8[_0x94b45e(0x192)][_0x94b45e(0x1ca)][_0x94b45e(0x1cf)](_0x4adb69)['users'][_0x94b45e(0x1ca)][_0x94b45e(0x1b0)](_0x5aeb8b=>!_0x5aeb8b[_0x94b45e(0x1a1)])[_0x94b45e(0x18e)]()));}const _0x3620d5=[];for(let _0x289407=0x0;_0x289407<(_0x4c8793['winners']||0x1);_0x289407++){if(!_0x53b013['length'])break;const _0x44d4eb=_0x53b013[Math[_0x94b45e(0x19b)](Math[_0x94b45e(0x196)]()*_0x53b013[_0x94b45e(0x1c4)])];_0x3620d5[_0x94b45e(0x19d)](_0x44d4eb),_0x53b013=_0x53b013[_0x94b45e(0x1b0)](_0x3c3ede=>_0x3c3ede['id']!==_0x44d4eb['id']);}_0x3620d5[_0x94b45e(0x1c4)]?await _0x1ba8c8['edit']({'embed':{'color':tesseract_1[_0x94b45e(0x19a)][_0x94b45e(0x1a5)][_0x94b45e(0x1ba)],'author':{'name':_0x94b45e(0x1cc)},'title':_0x1ba8c8[_0x94b45e(0x1a8)][0x0]['title'],'description':_0x94b45e(0x1c2),'fields':[{'name':_0x94b45e(0x1c7),'value':_0x3620d5['join'](',\x20')}],'footer':{'text':_0x1ba8c8['id']},'timestamp':new Date()}}):await _0x1ba8c8['edit']({'embed':{'color':tesseract_1[_0x94b45e(0x19a)][_0x94b45e(0x1a5)][_0x94b45e(0x1d2)],'author':{'name':_0x94b45e(0x1af)},'title':_0x1ba8c8[_0x94b45e(0x1a8)][0x0][_0x94b45e(0x19e)],'description':_0x94b45e(0x1a0),'footer':{'text':_0x1ba8c8['id']},'timestamp':new Date()}});}if(!_0x4c8793['_']['length'])throw new errors[(_0x94b45e(0x1b7))](errors[_0x94b45e(0x1d7)][_0x94b45e(0x1cb)],this['name']);const _0x20af9b=_0x4c8793['_'][_0x94b45e(0x1b8)]('\x20'),_0x499302=_0x4c8793[_0x94b45e(0x18b)]?_0x4c8793[_0x94b45e(0x18b)]:this['defaultTimeout'],_0x5ac0e6=_0x4c8793[_0x94b45e(0x198)]?_0x4c8793[_0x94b45e(0x198)]:this[_0x94b45e(0x1d3)];if(constants[_0x94b45e(0x1a6)](this[_0x94b45e(0x1ac)]['user'])){const _0x208d0b=await omnic[_0x94b45e(0x18d)](_0xe479e5[_0x94b45e(0x1a3)])[_0x94b45e(0x1aa)](()=>{});if(_0x208d0b){if(_0x208d0b===omnic[_0x94b45e(0x1b9)][_0x94b45e(0x18a)]&&_0x499302>constants[_0x94b45e(0x1cd)][_0x94b45e(0x18a)][_0x94b45e(0x1ae)])throw new errors['DiscordError'](errors[_0x94b45e(0x1d7)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x94b45e(0x1ac)][_0x94b45e(0x1b2)]['getString'](_0xe479e5[_0x94b45e(0x1a3)]['document']['language'],_0x94b45e(0x1be),_0x94b45e(0x1a7),constants['LIMITS']['GOLD'][_0x94b45e(0x1ae)]));else{if(_0x208d0b===omnic['PremiumTier']['PLATINUM']&&_0x499302>constants[_0x94b45e(0x1cd)]['PLATINUM'][_0x94b45e(0x1ae)])throw new errors['DiscordError'](errors[_0x94b45e(0x1d7)][_0x94b45e(0x188)],this[_0x94b45e(0x1ac)][_0x94b45e(0x1b2)][_0x94b45e(0x19f)](_0xe479e5[_0x94b45e(0x1a3)][_0x94b45e(0x1ce)][_0x94b45e(0x1c8)],_0x94b45e(0x1be),'membershipLimitGiveawayTimeout',constants[_0x94b45e(0x1cd)][_0x94b45e(0x1c3)]['GIVEAWAY_TIMEOUT']));}}else{if(_0x499302>constants[_0x94b45e(0x1cd)][_0x94b45e(0x1ae)])throw new errors[(_0x94b45e(0x1b7))](errors[_0x94b45e(0x1d7)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x94b45e(0x1ac)][_0x94b45e(0x1b2)][_0x94b45e(0x19f)](_0xe479e5['guild']['document'][_0x94b45e(0x1c8)],'errors','premiumGiveawayTimeout',constants[_0x94b45e(0x1cd)][_0x94b45e(0x1ae)]));}const _0xddf420=await Giveaway_1[_0x94b45e(0x1bd)][_0x94b45e(0x1bf)]({'guild':_0xe479e5[_0x94b45e(0x1a3)]['id'],'ends':{'$gte':new Date()}});if(_0x208d0b){if(_0x208d0b===omnic[_0x94b45e(0x1b9)][_0x94b45e(0x18a)]&&_0xddf420>=constants[_0x94b45e(0x1cd)][_0x94b45e(0x18a)][_0x94b45e(0x1a9)])throw new errors[(_0x94b45e(0x1b7))](errors[_0x94b45e(0x1d7)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x94b45e(0x1ac)][_0x94b45e(0x1b2)][_0x94b45e(0x19f)](_0xe479e5[_0x94b45e(0x1a3)][_0x94b45e(0x1ce)]['language'],_0x94b45e(0x1be),'membershipLimitGiveaways',constants['LIMITS']['GOLD'][_0x94b45e(0x1a9)]));else{if(_0x208d0b===omnic[_0x94b45e(0x1b9)][_0x94b45e(0x1c3)]&&_0xddf420>=constants[_0x94b45e(0x1cd)]['PLATINUM']['GIVEAWAYS'])throw new errors['DiscordError'](errors[_0x94b45e(0x1d7)][_0x94b45e(0x188)],this[_0x94b45e(0x1ac)][_0x94b45e(0x1b2)][_0x94b45e(0x19f)](_0xe479e5[_0x94b45e(0x1a3)][_0x94b45e(0x1ce)][_0x94b45e(0x1c8)],_0x94b45e(0x1be),_0x94b45e(0x187),constants['LIMITS'][_0x94b45e(0x1c3)][_0x94b45e(0x1a9)]));}}else{if(_0xddf420>=constants[_0x94b45e(0x1cd)][_0x94b45e(0x1a9)])throw new errors[(_0x94b45e(0x1b7))](errors[_0x94b45e(0x1d7)][_0x94b45e(0x18f)],this[_0x94b45e(0x1ac)]['locale'][_0x94b45e(0x19f)](_0xe479e5[_0x94b45e(0x1a3)][_0x94b45e(0x1ce)]['language'],_0x94b45e(0x1be),'premiumGiveaways',constants['LIMITS'][_0x94b45e(0x1a9)]));}}const _0x32da5f=new Date(Date[_0x94b45e(0x190)]()+_0x499302*0x36ee80),_0x1c4237=await _0xe479e5[_0x94b45e(0x1b5)][_0x94b45e(0x189)]({'embed':{'color':tesseract_1[_0x94b45e(0x19a)][_0x94b45e(0x1a5)]['IRIS'],'author':{'name':_0x94b45e(0x1a4)},'title':_0x20af9b,'description':_0x94b45e(0x191)+this['reactions']['join'](_0x94b45e(0x194))+_0x94b45e(0x1c1),'footer':{'text':_0x5ac0e6+_0x94b45e(0x1b1)},'timestamp':_0x32da5f}});await Giveaway_1[_0x94b45e(0x1bd)][_0x94b45e(0x185)]({'_id':_0x1c4237['id'],'channel':_0x1c4237[_0x94b45e(0x1b5)]['id'],'guild':_0x1c4237[_0x94b45e(0x1a3)]['id'],'winners':_0x5ac0e6,'ends':_0x32da5f});for(const _0x14e6cc of this['reactions']){await _0x1c4237[_0x94b45e(0x197)](_0x14e6cc)[_0x94b45e(0x1aa)](()=>{});}},this[_0x10a380(0x192)]=['🎊','🎉'],this[_0x10a380(0x199)]=0x3,this[_0x10a380(0x1d3)]=0x1;}}; \ No newline at end of file +const a83_0x5516=['exports','React\x20to\x20this\x20message\x20with\x20','errors','giveaway\x20--\x20ITEM','push','GIVEAWAY\x20WINNERS\x20REROLLED','COLORS','client','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.','winners','users','has','fetch','get','messages','../../models/Giveaway','catch','document','BASTION_ERROR_TYPE','premiumGiveawayTimeout','default','number','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Unfortunately,\x20no\x20one\x20participated\x20in\x20this\x20giveaway\x20and\x20therfore\x20there\x20aren\x27t\x20any\x20winners\x20this\x20time.','@bastion/tesseract','GOLD','title','PLATINUM','language','locale','DiscordError','PREMIUM_MEMBERSHIP_REQUIRED','react','LIMITED_PREMIUM_MEMBERSHIP','timeout','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20to\x20participate\x20in\x20the\x20giveaway\x20for\x20a\x20chance\x20to\x20win.','embeds','channel','INVALID_COMMAND_SYNTAX','reactions','Constants','GIVEAWAY!','getString','\x20Winners\x20•\x20Ends','now','The\x20giveaway\x20winners\x20were\x20rerolled\x20and\x20the\x20following\x20users\x20have\x20won\x20the\x20giveaway\x20and\x20will\x20be\x20contacted\x20soon\x20for\x20their\x20rewards.\x0aThank\x20you\x20everyone\x20for\x20participating.\x20Better\x20luck\x20next\x20time.','isPublicBastion','cache','Congratulations','constructor','Command','filter','create','giveaway\x20--winners\x20NUMBER\x20--\x20ITEM','giveaway','GIVEAWAY\x20ENDED','floor','join','guild','test','MAX_SAFE_INTEGER','send','MANAGE_CHANNELS','defaultWinners','PremiumTier','edit','reroll','LIMITS','defaultTimeout','random','length','SOMEWHAT_DARK','membershipLimitGiveaways','../../utils/errors','membershipLimitGiveawayTimeout','premiumGiveaways','clamp','apply','GIVEAWAYS','GIVEAWAY_TIMEOUT'];(function(_0x289a4d,_0x38abd4){const _0x55167a=function(_0x369c3){while(--_0x369c3){_0x289a4d['push'](_0x289a4d['shift']());}},_0x24d9a9=function(){const _0x4fc634={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1765ad,_0x19c174,_0x11a4b4,_0x351378){_0x351378=_0x351378||{};let _0x3c887d=_0x19c174+'='+_0x11a4b4,_0x48faf8=0x0;for(let _0x2da93c=0x0,_0x2ee770=_0x1765ad['length'];_0x2da93c<_0x2ee770;_0x2da93c++){const _0x5b3e68=_0x1765ad[_0x2da93c];_0x3c887d+=';\x20'+_0x5b3e68;const _0x10aea8=_0x1765ad[_0x5b3e68];_0x1765ad['push'](_0x10aea8),_0x2ee770=_0x1765ad['length'],_0x10aea8!==!![]&&(_0x3c887d+='='+_0x10aea8);}_0x351378['cookie']=_0x3c887d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40a9b8,_0xe1ea20){_0x40a9b8=_0x40a9b8||function(_0x4f2543){return _0x4f2543;};const _0x70ff01=_0x40a9b8(new RegExp('(?:^|;\x20)'+_0xe1ea20['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x18f94e=function(_0x439e44,_0x17fc7a){_0x439e44(++_0x17fc7a);};return _0x18f94e(_0x55167a,_0x38abd4),_0x70ff01?decodeURIComponent(_0x70ff01[0x1]):undefined;}},_0x1c4fe8=function(){const _0x38986e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x38986e['test'](_0x4fc634['removeCookie']['toString']());};_0x4fc634['updateCookie']=_0x1c4fe8;let _0x9e1b06='';const _0x8bdbc0=_0x4fc634['updateCookie']();if(!_0x8bdbc0)_0x4fc634['setCookie'](['*'],'counter',0x1);else _0x8bdbc0?_0x9e1b06=_0x4fc634['getCookie'](null,'counter'):_0x4fc634['removeCookie']();};_0x24d9a9();}(a83_0x5516,0x78));const a83_0x24d9=function(_0x289a4d,_0x38abd4){_0x289a4d=_0x289a4d-0x6d;let _0x55167a=a83_0x5516[_0x289a4d];return _0x55167a;};const a83_0x3ccfe7=a83_0x24d9,a83_0x1c4fe8=function(){let _0x8bdbc0=!![];return function(_0x1765ad,_0x19c174){const _0x11a4b4=_0x8bdbc0?function(){const _0x2d7519=a83_0x24d9;if(_0x19c174){const _0x351378=_0x19c174[_0x2d7519(0x94)](_0x1765ad,arguments);return _0x19c174=null,_0x351378;}}:function(){};return _0x8bdbc0=![],_0x11a4b4;};}(),a83_0x4fc634=a83_0x1c4fe8(this,function(){const _0x3c887d=function(){const _0x4d5238=a83_0x24d9,_0x48faf8=_0x3c887d[_0x4d5238(0x78)](_0x4d5238(0xad))()[_0x4d5238(0x78)](_0x4d5238(0xba));return!_0x48faf8[_0x4d5238(0x82)](a83_0x4fc634);};return _0x3c887d();});a83_0x4fc634();'use strict';const tesseract_1=require(a83_0x3ccfe7(0xaf)),Giveaway_1=require(a83_0x3ccfe7(0xa6)),constants=require('../../utils/constants'),errors=require(a83_0x3ccfe7(0x90)),numbers=require('../../utils/numbers'),omnic=require('../../utils/omnic');module[a83_0x3ccfe7(0x97)]=class GiveawayCommand extends tesseract_1[a83_0x3ccfe7(0x79)]{constructor(){const _0x53cec8=a83_0x3ccfe7;super(_0x53cec8(0x7d),{'description':_0x53cec8(0x9f),'triggers':[],'arguments':{'alias':{'reroll':['r'],'timeout':['t'],'winners':['w']},'number':[_0x53cec8(0xb9),'winners'],'coerce':{'timeout':_0x2da93c=>typeof _0x2da93c===_0x53cec8(0xac)&&numbers[_0x53cec8(0x93)](_0x2da93c,0x1,0x2d0),'winners':_0x2ee770=>typeof _0x2ee770===_0x53cec8(0xac)&&Math[_0x53cec8(0x7f)](numbers['clamp'](_0x2ee770,0x1,Number[_0x53cec8(0x83)]))},'default':{'timeout':0x3,'winners':0x1}},'scope':_0x53cec8(0x81),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x53cec8(0x85)],'syntax':[_0x53cec8(0x9a),_0x53cec8(0x7c),'giveaway\x20--timeout\x20HOURS\x20--\x20ITEM','giveaway\x20--reroll\x20ID\x20--winners\x20NUMBER']}),this['exec']=async(_0x5b3e68,_0x10aea8)=>{const _0xe4a04b=_0x53cec8;if(_0x10aea8[_0xe4a04b(0x89)]){const _0x439e44=await _0x5b3e68[_0xe4a04b(0xbd)][_0xe4a04b(0xa5)][_0xe4a04b(0xa3)](_0x10aea8[_0xe4a04b(0x89)]);let _0x17fc7a=[];for(const _0x2bb9a7 of['🎊','🎉']){_0x439e44[_0xe4a04b(0x6e)][_0xe4a04b(0x76)][_0xe4a04b(0xa2)](_0x2bb9a7)&&(await _0x439e44[_0xe4a04b(0x6e)][_0xe4a04b(0x76)][_0xe4a04b(0xa4)](_0x2bb9a7)[_0xe4a04b(0xa1)][_0xe4a04b(0xa3)]()[_0xe4a04b(0xa7)](()=>{}),_0x17fc7a[_0xe4a04b(0x9b)](..._0x439e44['reactions']['cache'][_0xe4a04b(0xa4)](_0x2bb9a7)[_0xe4a04b(0xa1)]['cache'][_0xe4a04b(0x7a)](_0x46b398=>!_0x46b398['bot'])['values']()));}const _0x38986e=[];for(let _0x3171e5=0x0;_0x3171e5<(_0x10aea8['winners']||0x1);_0x3171e5++){if(!_0x17fc7a[_0xe4a04b(0x8d)])break;const _0x145d34=_0x17fc7a[Math[_0xe4a04b(0x7f)](Math[_0xe4a04b(0x8c)]()*_0x17fc7a['length'])];_0x38986e[_0xe4a04b(0x9b)](_0x145d34),_0x17fc7a=_0x17fc7a[_0xe4a04b(0x7a)](_0x531295=>_0x531295['id']!==_0x145d34['id']);}_0x38986e[_0xe4a04b(0x8d)]?await _0x439e44[_0xe4a04b(0x88)]({'embed':{'color':tesseract_1[_0xe4a04b(0x6f)]['COLORS'][_0xe4a04b(0x8e)],'author':{'name':_0xe4a04b(0x9c)},'title':_0x439e44['embeds'][0x0]['title'],'description':_0xe4a04b(0x74),'fields':[{'name':_0xe4a04b(0x77),'value':_0x38986e[_0xe4a04b(0x80)](',\x20')}],'footer':{'text':_0x439e44['id']},'timestamp':new Date()}}):await _0x439e44[_0xe4a04b(0x88)]({'embed':{'color':tesseract_1[_0xe4a04b(0x6f)][_0xe4a04b(0x9d)]['RED'],'author':{'name':_0xe4a04b(0x7e)},'title':_0x439e44[_0xe4a04b(0xbc)][0x0][_0xe4a04b(0xb1)],'description':_0xe4a04b(0xae),'footer':{'text':_0x439e44['id']},'timestamp':new Date()}});}if(!_0x10aea8['_'][_0xe4a04b(0x8d)])throw new errors[(_0xe4a04b(0xb5))](errors[_0xe4a04b(0xa9)][_0xe4a04b(0x6d)],this['name']);const _0x40a9b8=_0x10aea8['_'][_0xe4a04b(0x80)]('\x20'),_0xe1ea20=_0x10aea8[_0xe4a04b(0xb9)]?_0x10aea8[_0xe4a04b(0xb9)]:this[_0xe4a04b(0x8b)],_0x70ff01=_0x10aea8['winners']?_0x10aea8[_0xe4a04b(0xa0)]:this[_0xe4a04b(0x86)];if(constants[_0xe4a04b(0x75)](this['client']['user'])){const _0x2ec5a2=await omnic['fetchPremiumTier'](_0x5b3e68[_0xe4a04b(0x81)])[_0xe4a04b(0xa7)](()=>{});if(_0x2ec5a2){if(_0x2ec5a2===omnic[_0xe4a04b(0x87)]['GOLD']&&_0xe1ea20>constants['LIMITS']['GOLD'][_0xe4a04b(0x96)])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[_0xe4a04b(0x9e)]['locale'][_0xe4a04b(0x71)](_0x5b3e68[_0xe4a04b(0x81)][_0xe4a04b(0xa8)][_0xe4a04b(0xb3)],_0xe4a04b(0x99),'membershipLimitGiveawayTimeout',constants[_0xe4a04b(0x8a)][_0xe4a04b(0xb0)][_0xe4a04b(0x96)]));else{if(_0x2ec5a2===omnic[_0xe4a04b(0x87)][_0xe4a04b(0xb2)]&&_0xe1ea20>constants[_0xe4a04b(0x8a)][_0xe4a04b(0xb2)][_0xe4a04b(0x96)])throw new errors[(_0xe4a04b(0xb5))](errors[_0xe4a04b(0xa9)][_0xe4a04b(0xb8)],this[_0xe4a04b(0x9e)][_0xe4a04b(0xb4)][_0xe4a04b(0x71)](_0x5b3e68[_0xe4a04b(0x81)][_0xe4a04b(0xa8)][_0xe4a04b(0xb3)],_0xe4a04b(0x99),_0xe4a04b(0x91),constants['LIMITS'][_0xe4a04b(0xb2)][_0xe4a04b(0x96)]));}}else{if(_0xe1ea20>constants[_0xe4a04b(0x8a)][_0xe4a04b(0x96)])throw new errors[(_0xe4a04b(0xb5))](errors[_0xe4a04b(0xa9)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0xe4a04b(0x9e)][_0xe4a04b(0xb4)][_0xe4a04b(0x71)](_0x5b3e68[_0xe4a04b(0x81)]['document'][_0xe4a04b(0xb3)],_0xe4a04b(0x99),_0xe4a04b(0xaa),constants[_0xe4a04b(0x8a)][_0xe4a04b(0x96)]));}const _0x5351ce=await Giveaway_1[_0xe4a04b(0xab)]['countDocuments']({'guild':_0x5b3e68[_0xe4a04b(0x81)]['id'],'ends':{'$gte':new Date()}});if(_0x2ec5a2){if(_0x2ec5a2===omnic[_0xe4a04b(0x87)]['GOLD']&&_0x5351ce>=constants['LIMITS'][_0xe4a04b(0xb0)][_0xe4a04b(0x95)])throw new errors['DiscordError'](errors[_0xe4a04b(0xa9)][_0xe4a04b(0xb8)],this[_0xe4a04b(0x9e)][_0xe4a04b(0xb4)][_0xe4a04b(0x71)](_0x5b3e68[_0xe4a04b(0x81)][_0xe4a04b(0xa8)][_0xe4a04b(0xb3)],_0xe4a04b(0x99),'membershipLimitGiveaways',constants[_0xe4a04b(0x8a)][_0xe4a04b(0xb0)][_0xe4a04b(0x95)]));else{if(_0x2ec5a2===omnic['PremiumTier'][_0xe4a04b(0xb2)]&&_0x5351ce>=constants['LIMITS'][_0xe4a04b(0xb2)][_0xe4a04b(0x95)])throw new errors[(_0xe4a04b(0xb5))](errors[_0xe4a04b(0xa9)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0xe4a04b(0x9e)][_0xe4a04b(0xb4)]['getString'](_0x5b3e68[_0xe4a04b(0x81)]['document'][_0xe4a04b(0xb3)],_0xe4a04b(0x99),_0xe4a04b(0x8f),constants[_0xe4a04b(0x8a)][_0xe4a04b(0xb2)]['GIVEAWAYS']));}}else{if(_0x5351ce>=constants[_0xe4a04b(0x8a)][_0xe4a04b(0x95)])throw new errors[(_0xe4a04b(0xb5))](errors[_0xe4a04b(0xa9)][_0xe4a04b(0xb6)],this[_0xe4a04b(0x9e)][_0xe4a04b(0xb4)][_0xe4a04b(0x71)](_0x5b3e68[_0xe4a04b(0x81)][_0xe4a04b(0xa8)][_0xe4a04b(0xb3)],'errors',_0xe4a04b(0x92),constants[_0xe4a04b(0x8a)][_0xe4a04b(0x95)]));}}const _0x18f94e=new Date(Date[_0xe4a04b(0x73)]()+_0xe1ea20*0x36ee80),_0x4f2543=await _0x5b3e68[_0xe4a04b(0xbd)][_0xe4a04b(0x84)]({'embed':{'color':tesseract_1[_0xe4a04b(0x6f)][_0xe4a04b(0x9d)]['IRIS'],'author':{'name':_0xe4a04b(0x70)},'title':_0x40a9b8,'description':_0xe4a04b(0x98)+this[_0xe4a04b(0x6e)][_0xe4a04b(0x80)]('\x20or\x20')+_0xe4a04b(0xbb),'footer':{'text':_0x70ff01+_0xe4a04b(0x72)},'timestamp':_0x18f94e}});await Giveaway_1['default'][_0xe4a04b(0x7b)]({'_id':_0x4f2543['id'],'channel':_0x4f2543['channel']['id'],'guild':_0x4f2543[_0xe4a04b(0x81)]['id'],'winners':_0x70ff01,'ends':_0x18f94e});for(const _0x3de5d4 of this[_0xe4a04b(0x6e)]){await _0x4f2543[_0xe4a04b(0xb7)](_0x3de5d4)[_0xe4a04b(0xa7)](()=>{});}},this[_0x53cec8(0x6e)]=['🎊','🎉'],this[_0x53cec8(0x8b)]=0x3,this[_0x53cec8(0x86)]=0x1;}}; \ No newline at end of file diff --git a/commands/management/grant.js b/commands/management/grant.js index 137dd28b5..adfa42e8f 100644 --- a/commands/management/grant.js +++ b/commands/management/grant.js @@ -1 +1 @@ -const a83_0x2032=['grant\x20--coins\x20NUMBER','DiscordError','tag','guild','info','Command','getString','GREEN','coins','apply','updateMany','resolver','../../utils/errors','BASTION_ERROR_TYPE','user','updateOne','MANAGE_GUILD','resolveGuildMember','COLORS','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','constructor','grantMembers','grant\x20--user\x20USER\x20--xp\x20NUMBER','language','exec','document','grantMember','INVALID_COMMAND_SYNTAX','client','send','author','locale','Constants','displayName','errors'];(function(_0x3fae9f,_0x2d24af){const _0x203210=function(_0x29ef58){while(--_0x29ef58){_0x3fae9f['push'](_0x3fae9f['shift']());}},_0x3ba2c5=function(){const _0xc04d44={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25712a,_0x19da74,_0x5c191f,_0x4ba3f2){_0x4ba3f2=_0x4ba3f2||{};let _0x2eb41e=_0x19da74+'='+_0x5c191f,_0x12edb4=0x0;for(let _0x1f2ac8=0x0,_0x639eef=_0x25712a['length'];_0x1f2ac8<_0x639eef;_0x1f2ac8++){const _0x111cdc=_0x25712a[_0x1f2ac8];_0x2eb41e+=';\x20'+_0x111cdc;const _0x217e34=_0x25712a[_0x111cdc];_0x25712a['push'](_0x217e34),_0x639eef=_0x25712a['length'],_0x217e34!==!![]&&(_0x2eb41e+='='+_0x217e34);}_0x4ba3f2['cookie']=_0x2eb41e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a7437,_0x23c4ce){_0x2a7437=_0x2a7437||function(_0x256ce9){return _0x256ce9;};const _0x297270=_0x2a7437(new RegExp('(?:^|;\x20)'+_0x23c4ce['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3bcb0b=function(_0x4310ea,_0x2989a6){_0x4310ea(++_0x2989a6);};return _0x3bcb0b(_0x203210,_0x2d24af),_0x297270?decodeURIComponent(_0x297270[0x1]):undefined;}},_0x314cea=function(){const _0x5dc502=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5dc502['test'](_0xc04d44['removeCookie']['toString']());};_0xc04d44['updateCookie']=_0x314cea;let _0x51ff4a='';const _0x43c6bf=_0xc04d44['updateCookie']();if(!_0x43c6bf)_0xc04d44['setCookie'](['*'],'counter',0x1);else _0x43c6bf?_0x51ff4a=_0xc04d44['getCookie'](null,'counter'):_0xc04d44['removeCookie']();};_0x3ba2c5();}(a83_0x2032,0x1cd));const a83_0x3ba2=function(_0x3fae9f,_0x2d24af){_0x3fae9f=_0x3fae9f-0x186;let _0x203210=a83_0x2032[_0x3fae9f];return _0x203210;};const _0x20fb38=a83_0x3ba2,a83_0x314cea=function(){let _0x43c6bf=!![];return function(_0x25712a,_0x19da74){const _0x5c191f=_0x43c6bf?function(){const _0x1c9b9e=a83_0x3ba2;if(_0x19da74){const _0x4ba3f2=_0x19da74[_0x1c9b9e(0x1a3)](_0x25712a,arguments);return _0x19da74=null,_0x4ba3f2;}}:function(){};return _0x43c6bf=![],_0x5c191f;};}(),a83_0xc04d44=a83_0x314cea(this,function(){const _0x2eb41e=function(){const _0x36d80d=a83_0x3ba2,_0x12edb4=_0x2eb41e[_0x36d80d(0x18b)](_0x36d80d(0x189))()[_0x36d80d(0x18b)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x12edb4['test'](a83_0xc04d44);};return _0x2eb41e();});a83_0xc04d44();'use strict';const tesseract_1=require('@bastion/tesseract'),Member_1=require('../../models/Member'),errors=require(_0x20fb38(0x1a6));module['exports']=class GrantCommand extends tesseract_1[_0x20fb38(0x19f)]{constructor(){const _0x592365=_0x20fb38;super('grant',{'description':'It\x20allows\x20you\x20to\x20grant\x20experience\x20or\x20coins\x20to\x20the\x20members\x20of\x20the\x20server.','triggers':[],'arguments':{'default':{'xp':0x0,'coins':0x0},'number':['xp',_0x592365(0x1a2)],'string':[_0x592365(0x1a8)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x592365(0x1aa)],'syntax':['grant\x20--xp\x20NUMBER',_0x592365(0x19a),_0x592365(0x18d),'grant\x20--user\x20USER\x20--coins\x20NUMBER']}),this[_0x592365(0x18f)]=async(_0x1f2ac8,_0x639eef)=>{const _0x125b64=_0x592365;if(!_0x639eef['xp']&&!_0x639eef['coins'])throw new errors[(_0x125b64(0x19b))](errors[_0x125b64(0x1a7)][_0x125b64(0x192)],this[_0x125b64(0x18a)]);if(_0x639eef['user']){const _0x111cdc=this['client'][_0x125b64(0x1a5)][_0x125b64(0x186)](_0x1f2ac8['guild'],_0x639eef[_0x125b64(0x1a8)]);if(!_0x111cdc)throw new Error(this[_0x125b64(0x193)][_0x125b64(0x196)][_0x125b64(0x1a0)](_0x1f2ac8[_0x125b64(0x19d)][_0x125b64(0x190)][_0x125b64(0x18e)],_0x125b64(0x199),'memberNotFound'));const _0x217e34=await Member_1[_0x125b64(0x188)]['findOne']({'user':_0x111cdc['id'],'guild':_0x1f2ac8[_0x125b64(0x19d)]['id']});if(!_0x217e34)throw new Error(this[_0x125b64(0x193)]['locale'][_0x125b64(0x1a0)](_0x1f2ac8['guild'][_0x125b64(0x190)][_0x125b64(0x18e)],_0x125b64(0x199),'profileNotFound',_0x111cdc['user'][_0x125b64(0x19c)]));return await Member_1[_0x125b64(0x188)][_0x125b64(0x1a9)]({'user':_0x111cdc['id'],'guild':_0x1f2ac8[_0x125b64(0x19d)]['id']},{'$inc':{'experience':_0x639eef['xp']?_0x639eef['xp']:0x0,'balance':_0x639eef[_0x125b64(0x1a2)]?_0x639eef[_0x125b64(0x1a2)]:0x0}}),await _0x1f2ac8['channel'][_0x125b64(0x194)]({'embed':{'color':tesseract_1[_0x125b64(0x197)]['COLORS']['GREEN'],'description':this[_0x125b64(0x193)]['locale'][_0x125b64(0x1a0)](_0x1f2ac8['guild'][_0x125b64(0x190)]['language'],_0x125b64(0x19e),_0x125b64(0x191),_0x1f2ac8[_0x125b64(0x195)][_0x125b64(0x19c)],_0x639eef['xp']?_0x639eef['xp']:0x0,_0x639eef[_0x125b64(0x1a2)]?_0x639eef[_0x125b64(0x1a2)]:0x0,_0x111cdc[_0x125b64(0x198)])}});}return await Member_1['default'][_0x125b64(0x1a4)]({'guild':_0x1f2ac8[_0x125b64(0x19d)]['id']},{'$inc':{'experience':_0x639eef['xp']?_0x639eef['xp']:0x0,'balance':_0x639eef[_0x125b64(0x1a2)]?_0x639eef[_0x125b64(0x1a2)]:0x0}}),await _0x1f2ac8['channel'][_0x125b64(0x194)]({'embed':{'color':tesseract_1[_0x125b64(0x197)][_0x125b64(0x187)][_0x125b64(0x1a1)],'description':this[_0x125b64(0x193)]['locale']['getString'](_0x1f2ac8[_0x125b64(0x19d)][_0x125b64(0x190)][_0x125b64(0x18e)],_0x125b64(0x19e),_0x125b64(0x18c),_0x1f2ac8['author'][_0x125b64(0x19c)],_0x639eef['xp']?_0x639eef['xp']:0x0,_0x639eef[_0x125b64(0x1a2)]?_0x639eef[_0x125b64(0x1a2)]:0x0)}});};}}; \ No newline at end of file +const a84_0x1584=['../../utils/errors','GREEN','memberNotFound','test','apply','channel','It\x20allows\x20you\x20to\x20grant\x20experience\x20or\x20coins\x20to\x20the\x20members\x20of\x20the\x20server.','grantMembers','resolveGuildMember','client','INVALID_COMMAND_SYNTAX','BASTION_ERROR_TYPE','resolver','name','grant\x20--user\x20USER\x20--coins\x20NUMBER','locale','default','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','coins','grant\x20--user\x20USER\x20--xp\x20NUMBER','language','send','guild','findOne','info','profileNotFound','Command','updateMany','../../models/Member','tag','getString','user','grantMember','exec','grant\x20--xp\x20NUMBER','author','document','grant\x20--coins\x20NUMBER','errors','updateOne','COLORS','exports'];(function(_0x215382,_0x412afb){const _0x158452=function(_0x33a0ce){while(--_0x33a0ce){_0x215382['push'](_0x215382['shift']());}},_0x4d56d1=function(){const _0x307bc5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e884b,_0x58c5b7,_0x384970,_0x5e0e8a){_0x5e0e8a=_0x5e0e8a||{};let _0x1dc05e=_0x58c5b7+'='+_0x384970,_0x3c6169=0x0;for(let _0x485323=0x0,_0x5e1ef5=_0x4e884b['length'];_0x485323<_0x5e1ef5;_0x485323++){const _0xc1923=_0x4e884b[_0x485323];_0x1dc05e+=';\x20'+_0xc1923;const _0xc2233a=_0x4e884b[_0xc1923];_0x4e884b['push'](_0xc2233a),_0x5e1ef5=_0x4e884b['length'],_0xc2233a!==!![]&&(_0x1dc05e+='='+_0xc2233a);}_0x5e0e8a['cookie']=_0x1dc05e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x35f140,_0x56115a){_0x35f140=_0x35f140||function(_0x519563){return _0x519563;};const _0x25db99=_0x35f140(new RegExp('(?:^|;\x20)'+_0x56115a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x58772b=function(_0x37f28c,_0x3c368a){_0x37f28c(++_0x3c368a);};return _0x58772b(_0x158452,_0x412afb),_0x25db99?decodeURIComponent(_0x25db99[0x1]):undefined;}},_0x10810f=function(){const _0x13b945=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13b945['test'](_0x307bc5['removeCookie']['toString']());};_0x307bc5['updateCookie']=_0x10810f;let _0x486146='';const _0x1772b7=_0x307bc5['updateCookie']();if(!_0x1772b7)_0x307bc5['setCookie'](['*'],'counter',0x1);else _0x1772b7?_0x486146=_0x307bc5['getCookie'](null,'counter'):_0x307bc5['removeCookie']();};_0x4d56d1();}(a84_0x1584,0x11c));const a84_0x4d56=function(_0x215382,_0x412afb){_0x215382=_0x215382-0x6c;let _0x158452=a84_0x1584[_0x215382];return _0x158452;};const a84_0x4845b8=a84_0x4d56,a84_0x10810f=function(){let _0x1772b7=!![];return function(_0x4e884b,_0x58c5b7){const _0x384970=_0x1772b7?function(){const _0x2b95b2=a84_0x4d56;if(_0x58c5b7){const _0x5e0e8a=_0x58c5b7[_0x2b95b2(0x88)](_0x4e884b,arguments);return _0x58c5b7=null,_0x5e0e8a;}}:function(){};return _0x1772b7=![],_0x384970;};}(),a84_0x307bc5=a84_0x10810f(this,function(){const _0x1dc05e=function(){const _0x245480=a84_0x4d56,_0x3c6169=_0x1dc05e[_0x245480(0x95)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x245480(0x95)](_0x245480(0x96));return!_0x3c6169[_0x245480(0x87)](a84_0x307bc5);};return _0x1dc05e();});a84_0x307bc5();'use strict';const tesseract_1=require('@bastion/tesseract'),Member_1=require(a84_0x4845b8(0x76)),errors=require(a84_0x4845b8(0x84));module[a84_0x4845b8(0x83)]=class GrantCommand extends tesseract_1[a84_0x4845b8(0x74)]{constructor(){const _0x7e081b=a84_0x4845b8;super('grant',{'description':_0x7e081b(0x8a),'triggers':[],'arguments':{'default':{'xp':0x0,'coins':0x0},'number':['xp',_0x7e081b(0x6c)],'string':[_0x7e081b(0x79)]},'scope':_0x7e081b(0x70),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x7e081b(0x7c),_0x7e081b(0x7f),_0x7e081b(0x6d),_0x7e081b(0x92)]}),this[_0x7e081b(0x7b)]=async(_0x485323,_0x5e1ef5)=>{const _0x13ede9=_0x7e081b;if(!_0x5e1ef5['xp']&&!_0x5e1ef5[_0x13ede9(0x6c)])throw new errors[(_0x13ede9(0x97))](errors[_0x13ede9(0x8f)][_0x13ede9(0x8e)],this[_0x13ede9(0x91)]);if(_0x5e1ef5[_0x13ede9(0x79)]){const _0xc1923=this[_0x13ede9(0x8d)][_0x13ede9(0x90)][_0x13ede9(0x8c)](_0x485323[_0x13ede9(0x70)],_0x5e1ef5['user']);if(!_0xc1923)throw new Error(this[_0x13ede9(0x8d)][_0x13ede9(0x93)]['getString'](_0x485323[_0x13ede9(0x70)][_0x13ede9(0x7e)][_0x13ede9(0x6e)],_0x13ede9(0x80),_0x13ede9(0x86)));const _0xc2233a=await Member_1[_0x13ede9(0x94)][_0x13ede9(0x71)]({'user':_0xc1923['id'],'guild':_0x485323[_0x13ede9(0x70)]['id']});if(!_0xc2233a)throw new Error(this[_0x13ede9(0x8d)][_0x13ede9(0x93)][_0x13ede9(0x78)](_0x485323[_0x13ede9(0x70)][_0x13ede9(0x7e)]['language'],_0x13ede9(0x80),_0x13ede9(0x73),_0xc1923[_0x13ede9(0x79)][_0x13ede9(0x77)]));return await Member_1['default'][_0x13ede9(0x81)]({'user':_0xc1923['id'],'guild':_0x485323[_0x13ede9(0x70)]['id']},{'$inc':{'experience':_0x5e1ef5['xp']?_0x5e1ef5['xp']:0x0,'balance':_0x5e1ef5['coins']?_0x5e1ef5[_0x13ede9(0x6c)]:0x0}}),await _0x485323[_0x13ede9(0x89)][_0x13ede9(0x6f)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x13ede9(0x85)],'description':this[_0x13ede9(0x8d)][_0x13ede9(0x93)][_0x13ede9(0x78)](_0x485323[_0x13ede9(0x70)][_0x13ede9(0x7e)]['language'],_0x13ede9(0x72),_0x13ede9(0x7a),_0x485323[_0x13ede9(0x7d)][_0x13ede9(0x77)],_0x5e1ef5['xp']?_0x5e1ef5['xp']:0x0,_0x5e1ef5[_0x13ede9(0x6c)]?_0x5e1ef5['coins']:0x0,_0xc1923['displayName'])}});}return await Member_1[_0x13ede9(0x94)][_0x13ede9(0x75)]({'guild':_0x485323[_0x13ede9(0x70)]['id']},{'$inc':{'experience':_0x5e1ef5['xp']?_0x5e1ef5['xp']:0x0,'balance':_0x5e1ef5['coins']?_0x5e1ef5[_0x13ede9(0x6c)]:0x0}}),await _0x485323[_0x13ede9(0x89)]['send']({'embed':{'color':tesseract_1['Constants'][_0x13ede9(0x82)]['GREEN'],'description':this[_0x13ede9(0x8d)][_0x13ede9(0x93)]['getString'](_0x485323[_0x13ede9(0x70)][_0x13ede9(0x7e)][_0x13ede9(0x6e)],'info',_0x13ede9(0x8b),_0x485323['author'][_0x13ede9(0x77)],_0x5e1ef5['xp']?_0x5e1ef5['xp']:0x0,_0x5e1ef5[_0x13ede9(0x6c)]?_0x5e1ef5[_0x13ede9(0x6c)]:0x0)}});};}}; \ No newline at end of file diff --git a/commands/management/iam.js b/commands/management/iam.js index ca557d9ea..76e77c230 100644 --- a/commands/management/iam.js +++ b/commands/management/iam.js @@ -1 +1 @@ -const a84_0xbe02=['catch','ROLE_NOT_FOUND','exec','../../models/Role','getString','roleNotFound','Constants','document','selfAddRole','findById','COLORS','not','iam\x20ROLE','GREEN','DiscordError','name','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','iam','client','roleNotSelfAssignable','add','default','channel','iam\x20--not\x20ROLE','length','selfAssignable','@bastion/tesseract','constructor','resolveRole','locale','info','resolver','member','language','INVALID_COMMAND_SYNTAX','BASTION_ERROR_TYPE','join','selfRemoveRole','guild','apply','exports','RED','It\x20allows\x20you\x20add\x20(and\x20remove)\x20yourself\x20to\x20(and\x20from)\x20the\x20Self\x20Roles\x20set\x20in\x20the\x20server.','errors','send','remove'];(function(_0x44e44b,_0x4427d3){const _0xbe02ac=function(_0xa6dd57){while(--_0xa6dd57){_0x44e44b['push'](_0x44e44b['shift']());}},_0x1ce6ea=function(){const _0x229e04={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ec872,_0x55f290,_0x34b79c,_0x3d0e34){_0x3d0e34=_0x3d0e34||{};let _0x18455b=_0x55f290+'='+_0x34b79c,_0x29d921=0x0;for(let _0x2854b8=0x0,_0x2f6c9c=_0x2ec872['length'];_0x2854b8<_0x2f6c9c;_0x2854b8++){const _0x75cc84=_0x2ec872[_0x2854b8];_0x18455b+=';\x20'+_0x75cc84;const _0x3b45ee=_0x2ec872[_0x75cc84];_0x2ec872['push'](_0x3b45ee),_0x2f6c9c=_0x2ec872['length'],_0x3b45ee!==!![]&&(_0x18455b+='='+_0x3b45ee);}_0x3d0e34['cookie']=_0x18455b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x127ec1,_0x4bc95d){_0x127ec1=_0x127ec1||function(_0xb2dc21){return _0xb2dc21;};const _0x1595a7=_0x127ec1(new RegExp('(?:^|;\x20)'+_0x4bc95d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x478315=function(_0x2f7e4e,_0x365ebe){_0x2f7e4e(++_0x365ebe);};return _0x478315(_0xbe02ac,_0x4427d3),_0x1595a7?decodeURIComponent(_0x1595a7[0x1]):undefined;}},_0x2fe2c8=function(){const _0xbd5143=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xbd5143['test'](_0x229e04['removeCookie']['toString']());};_0x229e04['updateCookie']=_0x2fe2c8;let _0x93495b='';const _0x235431=_0x229e04['updateCookie']();if(!_0x235431)_0x229e04['setCookie'](['*'],'counter',0x1);else _0x235431?_0x93495b=_0x229e04['getCookie'](null,'counter'):_0x229e04['removeCookie']();};_0x1ce6ea();}(a84_0xbe02,0x1f4));const a84_0x1ce6=function(_0x44e44b,_0x4427d3){_0x44e44b=_0x44e44b-0x1af;let _0xbe02ac=a84_0xbe02[_0x44e44b];return _0xbe02ac;};const _0x10a4f7=a84_0x1ce6,a84_0x2fe2c8=function(){let _0x235431=!![];return function(_0x2ec872,_0x55f290){const _0x34b79c=_0x235431?function(){const _0x47091a=a84_0x1ce6;if(_0x55f290){const _0x3d0e34=_0x55f290[_0x47091a(0x1b9)](_0x2ec872,arguments);return _0x55f290=null,_0x3d0e34;}}:function(){};return _0x235431=![],_0x34b79c;};}(),a84_0x229e04=a84_0x2fe2c8(this,function(){const _0x18455b=function(){const _0xeee155=a84_0x1ce6,_0x29d921=_0x18455b[_0xeee155(0x1dc)](_0xeee155(0x1d1))()[_0xeee155(0x1dc)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x29d921['test'](a84_0x229e04);};return _0x18455b();});a84_0x229e04();'use strict';const tesseract_1=require(_0x10a4f7(0x1db)),Role_1=require(_0x10a4f7(0x1c3)),errors=require('../../utils/errors');module[_0x10a4f7(0x1ba)]=class IAmCommand extends tesseract_1['Command']{constructor(){const _0x26fa29=_0x10a4f7;super(_0x26fa29(0x1d2),{'description':_0x26fa29(0x1bc),'triggers':[],'arguments':{'alias':{'not':['n']},'boolean':['not']},'scope':_0x26fa29(0x1b8),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x26fa29(0x1cc),_0x26fa29(0x1d8)]}),this[_0x26fa29(0x1c2)]=async(_0x2854b8,_0x2f6c9c)=>{const _0x2b59e6=_0x26fa29;if(!_0x2f6c9c['_'][_0x2b59e6(0x1d9)])throw new errors['DiscordError'](errors[_0x2b59e6(0x1b5)][_0x2b59e6(0x1b4)],this[_0x2b59e6(0x1cf)]);const _0x75cc84=this[_0x2b59e6(0x1d3)][_0x2b59e6(0x1b1)][_0x2b59e6(0x1dd)](_0x2854b8['guild'],_0x2f6c9c['_'][_0x2b59e6(0x1b6)]('\x20'));if(!_0x75cc84)throw new errors[(_0x2b59e6(0x1ce))](errors[_0x2b59e6(0x1b5)][_0x2b59e6(0x1c1)],this['client']['locale'][_0x2b59e6(0x1c4)](_0x2854b8[_0x2b59e6(0x1b8)][_0x2b59e6(0x1c7)][_0x2b59e6(0x1b3)],'errors',_0x2b59e6(0x1c5)));const _0x3b45ee=await Role_1[_0x2b59e6(0x1d6)][_0x2b59e6(0x1c9)](_0x75cc84['id']);if(!_0x3b45ee||!_0x3b45ee[_0x2b59e6(0x1da)])throw new errors[(_0x2b59e6(0x1ce))](errors[_0x2b59e6(0x1b5)]['ERROR'],this[_0x2b59e6(0x1d3)][_0x2b59e6(0x1af)][_0x2b59e6(0x1c4)](_0x2854b8[_0x2b59e6(0x1b8)][_0x2b59e6(0x1c7)][_0x2b59e6(0x1b3)],_0x2b59e6(0x1bd),_0x2b59e6(0x1d4),_0x75cc84[_0x2b59e6(0x1cf)]));_0x2f6c9c[_0x2b59e6(0x1cb)]?await _0x2854b8[_0x2b59e6(0x1b2)]['roles'][_0x2b59e6(0x1bf)](_0x75cc84):await _0x2854b8['member']['roles'][_0x2b59e6(0x1d5)](_0x75cc84),await _0x2854b8[_0x2b59e6(0x1d7)][_0x2b59e6(0x1be)]({'embed':{'color':_0x2f6c9c[_0x2b59e6(0x1cb)]?tesseract_1[_0x2b59e6(0x1c6)]['COLORS'][_0x2b59e6(0x1bb)]:tesseract_1[_0x2b59e6(0x1c6)][_0x2b59e6(0x1ca)][_0x2b59e6(0x1cd)],'description':this[_0x2b59e6(0x1d3)]['locale'][_0x2b59e6(0x1c4)](_0x2854b8[_0x2b59e6(0x1b8)]['document'][_0x2b59e6(0x1b3)],_0x2b59e6(0x1b0),_0x2f6c9c[_0x2b59e6(0x1cb)]?_0x2b59e6(0x1b7):_0x2b59e6(0x1c8),_0x2854b8[_0x2b59e6(0x1d0)]['tag'],_0x75cc84[_0x2b59e6(0x1cf)])}})[_0x2b59e6(0x1c0)](()=>{});};}}; \ No newline at end of file +const a85_0xc7a5=['BASTION_ERROR_TYPE','send','author','@bastion/tesseract','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','add','errors','not','guild','Command','roleNotFound','member','language','tag','client','DiscordError','document','test','selfAddRole','name','ROLE_NOT_FOUND','length','resolveRole','roles','remove','RED','iam\x20--not\x20ROLE','roleNotSelfAssignable','apply','locale','INVALID_COMMAND_SYNTAX','default','getString','Constants','selfAssignable','ERROR','resolver','GREEN'];(function(_0x7f4f36,_0xdb9ba){const _0xc7a549=function(_0xa7129a){while(--_0xa7129a){_0x7f4f36['push'](_0x7f4f36['shift']());}},_0x9bb2e8=function(){const _0xabbf46={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x98de5e,_0x57db01,_0x5a2fdc,_0x1e8ff9){_0x1e8ff9=_0x1e8ff9||{};let _0x25cbbc=_0x57db01+'='+_0x5a2fdc,_0x2e6150=0x0;for(let _0x34fb21=0x0,_0x147b27=_0x98de5e['length'];_0x34fb21<_0x147b27;_0x34fb21++){const _0x4a21dd=_0x98de5e[_0x34fb21];_0x25cbbc+=';\x20'+_0x4a21dd;const _0x3d54db=_0x98de5e[_0x4a21dd];_0x98de5e['push'](_0x3d54db),_0x147b27=_0x98de5e['length'],_0x3d54db!==!![]&&(_0x25cbbc+='='+_0x3d54db);}_0x1e8ff9['cookie']=_0x25cbbc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2904c9,_0x4ce5a7){_0x2904c9=_0x2904c9||function(_0x5141b5){return _0x5141b5;};const _0x5f1f30=_0x2904c9(new RegExp('(?:^|;\x20)'+_0x4ce5a7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x55b675=function(_0x76f040,_0x2d72b7){_0x76f040(++_0x2d72b7);};return _0x55b675(_0xc7a549,_0xdb9ba),_0x5f1f30?decodeURIComponent(_0x5f1f30[0x1]):undefined;}},_0x410c8c=function(){const _0xf98f60=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf98f60['test'](_0xabbf46['removeCookie']['toString']());};_0xabbf46['updateCookie']=_0x410c8c;let _0x387a50='';const _0x6ae054=_0xabbf46['updateCookie']();if(!_0x6ae054)_0xabbf46['setCookie'](['*'],'counter',0x1);else _0x6ae054?_0x387a50=_0xabbf46['getCookie'](null,'counter'):_0xabbf46['removeCookie']();};_0x9bb2e8();}(a85_0xc7a5,0x12a));const a85_0x9bb2=function(_0x7f4f36,_0xdb9ba){_0x7f4f36=_0x7f4f36-0x1ea;let _0xc7a549=a85_0xc7a5[_0x7f4f36];return _0xc7a549;};const a85_0x55e70b=a85_0x9bb2,a85_0x410c8c=function(){let _0x6ae054=!![];return function(_0x98de5e,_0x57db01){const _0x5a2fdc=_0x6ae054?function(){const _0x5e9b8a=a85_0x9bb2;if(_0x57db01){const _0x1e8ff9=_0x57db01[_0x5e9b8a(0x1f6)](_0x98de5e,arguments);return _0x57db01=null,_0x1e8ff9;}}:function(){};return _0x6ae054=![],_0x5a2fdc;};}(),a85_0xabbf46=a85_0x410c8c(this,function(){const _0x25cbbc=function(){const _0x17894c=a85_0x9bb2,_0x2e6150=_0x25cbbc['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x17894c(0x205));return!_0x2e6150[_0x17894c(0x1eb)](a85_0xabbf46);};return _0x25cbbc();});a85_0xabbf46();'use strict';const tesseract_1=require(a85_0x55e70b(0x203)),Role_1=require('../../models/Role'),errors=require('../../utils/errors');module['exports']=class IAmCommand extends tesseract_1[a85_0x55e70b(0x20b)]{constructor(){const _0x48d994=a85_0x55e70b;super('iam',{'description':'It\x20allows\x20you\x20add\x20(and\x20remove)\x20yourself\x20to\x20(and\x20from)\x20the\x20Self\x20Roles\x20set\x20in\x20the\x20server.','triggers':[],'arguments':{'alias':{'not':['n']},'boolean':['not']},'scope':_0x48d994(0x20a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['iam\x20ROLE',_0x48d994(0x1f4)]}),this['exec']=async(_0x34fb21,_0x147b27)=>{const _0x9bfccd=_0x48d994;if(!_0x147b27['_'][_0x9bfccd(0x1ef)])throw new errors[(_0x9bfccd(0x211))](errors[_0x9bfccd(0x200)][_0x9bfccd(0x1f8)],this[_0x9bfccd(0x1ed)]);const _0x4a21dd=this[_0x9bfccd(0x210)][_0x9bfccd(0x1fe)][_0x9bfccd(0x1f0)](_0x34fb21['guild'],_0x147b27['_'][_0x9bfccd(0x204)]('\x20'));if(!_0x4a21dd)throw new errors[(_0x9bfccd(0x211))](errors['BASTION_ERROR_TYPE'][_0x9bfccd(0x1ee)],this['client'][_0x9bfccd(0x1f7)][_0x9bfccd(0x1fa)](_0x34fb21[_0x9bfccd(0x20a)]['document'][_0x9bfccd(0x20e)],'errors',_0x9bfccd(0x20c)));const _0x3d54db=await Role_1[_0x9bfccd(0x1f9)]['findById'](_0x4a21dd['id']);if(!_0x3d54db||!_0x3d54db[_0x9bfccd(0x1fc)])throw new errors[(_0x9bfccd(0x211))](errors[_0x9bfccd(0x200)][_0x9bfccd(0x1fd)],this['client']['locale'][_0x9bfccd(0x1fa)](_0x34fb21[_0x9bfccd(0x20a)][_0x9bfccd(0x1ea)][_0x9bfccd(0x20e)],_0x9bfccd(0x208),_0x9bfccd(0x1f5),_0x4a21dd[_0x9bfccd(0x1ed)]));_0x147b27['not']?await _0x34fb21[_0x9bfccd(0x20d)][_0x9bfccd(0x1f1)][_0x9bfccd(0x1f2)](_0x4a21dd):await _0x34fb21[_0x9bfccd(0x20d)][_0x9bfccd(0x1f1)][_0x9bfccd(0x207)](_0x4a21dd),await _0x34fb21['channel'][_0x9bfccd(0x201)]({'embed':{'color':_0x147b27[_0x9bfccd(0x209)]?tesseract_1[_0x9bfccd(0x1fb)]['COLORS'][_0x9bfccd(0x1f3)]:tesseract_1['Constants'][_0x9bfccd(0x206)][_0x9bfccd(0x1ff)],'description':this[_0x9bfccd(0x210)]['locale'][_0x9bfccd(0x1fa)](_0x34fb21[_0x9bfccd(0x20a)]['document']['language'],'info',_0x147b27[_0x9bfccd(0x209)]?'selfRemoveRole':_0x9bfccd(0x1ec),_0x34fb21[_0x9bfccd(0x202)][_0x9bfccd(0x20f)],_0x4a21dd[_0x9bfccd(0x1ed)])}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/inviteRoles.js b/commands/management/inviteRoles.js index b6a5451fb..9324ce1d9 100644 --- a/commands/management/inviteRoles.js +++ b/commands/management/inviteRoles.js @@ -1 +1 @@ -const a85_0x3439=['inviteRoles','constructor','locale','author','resolveRole','findByIdAndUpdate','exec','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','MANAGE_GUILD','Invite\x20Code\x20-\x20','map','GREEN','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../../models/Role','roles','Constants','has','roleNotFound','errors','inviteRoles\x20--role\x20ROLE\x20--delete','filter','getString','RED','get','MANAGE_ROLES','send','_id','inviteRoles\x20--role\x20ROLE\x20--invite\x20CODE','delete','roleInviteSet','role','split','BASTION_ERROR_TYPE','info','Command','resolver','invite','name','../../utils/errors','client','\x20/\x20','tag','find','DiscordError','IRIS','language','channel','cache','guild','default','[DELETED]','apply','document','test'];(function(_0xd0240b,_0x20bb38){const _0x34395b=function(_0x1ce452){while(--_0x1ce452){_0xd0240b['push'](_0xd0240b['shift']());}},_0x1805a9=function(){const _0x2c1826={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x24ebdc,_0x496c00,_0x481b70,_0x2dbbda){_0x2dbbda=_0x2dbbda||{};let _0xe6864a=_0x496c00+'='+_0x481b70,_0x3e8126=0x0;for(let _0x22fe80=0x0,_0x5ba98a=_0x24ebdc['length'];_0x22fe80<_0x5ba98a;_0x22fe80++){const _0x4f2d02=_0x24ebdc[_0x22fe80];_0xe6864a+=';\x20'+_0x4f2d02;const _0x5a5b74=_0x24ebdc[_0x4f2d02];_0x24ebdc['push'](_0x5a5b74),_0x5ba98a=_0x24ebdc['length'],_0x5a5b74!==!![]&&(_0xe6864a+='='+_0x5a5b74);}_0x2dbbda['cookie']=_0xe6864a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x316cee,_0x2f35b7){_0x316cee=_0x316cee||function(_0x5e44a6){return _0x5e44a6;};const _0x1f9f47=_0x316cee(new RegExp('(?:^|;\x20)'+_0x2f35b7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f6b3f=function(_0x391270,_0x15b75a){_0x391270(++_0x15b75a);};return _0x4f6b3f(_0x34395b,_0x20bb38),_0x1f9f47?decodeURIComponent(_0x1f9f47[0x1]):undefined;}},_0x17b93a=function(){const _0x27ec58=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x27ec58['test'](_0x2c1826['removeCookie']['toString']());};_0x2c1826['updateCookie']=_0x17b93a;let _0x583c00='';const _0x2bdf3e=_0x2c1826['updateCookie']();if(!_0x2bdf3e)_0x2c1826['setCookie'](['*'],'counter',0x1);else _0x2bdf3e?_0x583c00=_0x2c1826['getCookie'](null,'counter'):_0x2c1826['removeCookie']();};_0x1805a9();}(a85_0x3439,0x1e8));const a85_0x1805=function(_0xd0240b,_0x20bb38){_0xd0240b=_0xd0240b-0x19a;let _0x34395b=a85_0x3439[_0xd0240b];return _0x34395b;};const _0x566b69=a85_0x1805,a85_0x17b93a=function(){let _0x2bdf3e=!![];return function(_0x24ebdc,_0x496c00){const _0x481b70=_0x2bdf3e?function(){const _0x1ff5f0=a85_0x1805;if(_0x496c00){const _0x2dbbda=_0x496c00[_0x1ff5f0(0x1b0)](_0x24ebdc,arguments);return _0x496c00=null,_0x2dbbda;}}:function(){};return _0x2bdf3e=![],_0x481b70;};}(),a85_0x2c1826=a85_0x17b93a(this,function(){const _0xe6864a=function(){const _0x505497=a85_0x1805,_0x3e8126=_0xe6864a['constructor'](_0x505497(0x1bb))()[_0x505497(0x1b4)](_0x505497(0x1c2));return!_0x3e8126[_0x505497(0x1b2)](a85_0x2c1826);};return _0xe6864a();});a85_0x2c1826();'use strict';const tesseract_1=require(_0x566b69(0x1ba)),Role_1=require(_0x566b69(0x1c3)),errors=require(_0x566b69(0x1a3));module[_0x566b69(0x1c1)]=class InviteRolesCommand extends tesseract_1[_0x566b69(0x19f)]{constructor(){const _0x13991c=_0x566b69;super(_0x13991c(0x1b3),{'description':'It\x20allows\x20you\x20to\x20associate\x20server\x20invites\x20with\x20roles.\x20Anyone\x20who\x20joins\x20the\x20server\x20with\x20an\x20invite\x20associated\x20with\x20a\x20role\x20will\x20be\x20assigned\x20the\x20specified\x20role\x20automatically.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20list\x20of\x20roles\x20associated\x20with\x20an\x20invite.','triggers':[],'arguments':{'boolean':[_0x13991c(0x1d2)],'string':[_0x13991c(0x1a1),_0x13991c(0x19b)]},'scope':_0x13991c(0x1ad),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x13991c(0x1ce)],'userPermissions':[_0x13991c(0x1bd)],'syntax':[_0x13991c(0x1b3),_0x13991c(0x1d1),_0x13991c(0x1c9)]}),this[_0x13991c(0x1b9)]=async(_0x22fe80,_0x5ba98a)=>{const _0x4748f2=_0x13991c;if(_0x5ba98a['role']){const _0x5a5b74=this[_0x4748f2(0x1a4)][_0x4748f2(0x1a0)][_0x4748f2(0x1b7)](_0x22fe80[_0x4748f2(0x1ad)],_0x5ba98a[_0x4748f2(0x19b)]);if(!_0x5a5b74)throw new errors[(_0x4748f2(0x1a8))](errors[_0x4748f2(0x19d)]['ROLE_NOT_FOUND'],this[_0x4748f2(0x1a4)][_0x4748f2(0x1b5)][_0x4748f2(0x1cb)](_0x22fe80[_0x4748f2(0x1ad)][_0x4748f2(0x1b1)][_0x4748f2(0x1aa)],_0x4748f2(0x1c8),_0x4748f2(0x1c7)));if(_0x5ba98a['invite'])return await Role_1[_0x4748f2(0x1ae)][_0x4748f2(0x1b8)](_0x5a5b74['id'],{'invite':_0x5ba98a[_0x4748f2(0x1a1)][_0x4748f2(0x19c)]('/')[_0x4748f2(0x1ca)](_0x316cee=>_0x316cee)['pop']()}),await _0x22fe80[_0x4748f2(0x1ab)][_0x4748f2(0x1cf)]({'embed':{'color':tesseract_1[_0x4748f2(0x1c5)][_0x4748f2(0x1bc)][_0x4748f2(0x1c0)],'description':this[_0x4748f2(0x1a4)][_0x4748f2(0x1b5)][_0x4748f2(0x1cb)](_0x22fe80['guild'][_0x4748f2(0x1b1)][_0x4748f2(0x1aa)],_0x4748f2(0x19e),_0x4748f2(0x19a),_0x22fe80[_0x4748f2(0x1b6)][_0x4748f2(0x1a6)],_0x5a5b74[_0x4748f2(0x1a2)],_0x5ba98a[_0x4748f2(0x1a1)])}});if(_0x5ba98a[_0x4748f2(0x1d2)])return await Role_1[_0x4748f2(0x1ae)]['findByIdAndUpdate'](_0x5a5b74['id'],{'$unset':{'invite':0x1}}),await _0x22fe80['channel']['send']({'embed':{'color':tesseract_1['Constants'][_0x4748f2(0x1bc)][_0x4748f2(0x1cc)],'description':this[_0x4748f2(0x1a4)][_0x4748f2(0x1b5)][_0x4748f2(0x1cb)](_0x22fe80['guild']['document'][_0x4748f2(0x1aa)],_0x4748f2(0x19e),'roleInviteRemove',_0x22fe80[_0x4748f2(0x1b6)]['tag'],_0x5a5b74[_0x4748f2(0x1a2)])}});}const _0x4f2d02=await Role_1['default'][_0x4748f2(0x1a7)]({'guild':_0x22fe80[_0x4748f2(0x1ad)]['id'],'invite':{'$exists':!![],'$ne':null}});if(!_0x4f2d02)throw new Error('NO_INVITE_ROLES');await _0x22fe80[_0x4748f2(0x1ab)][_0x4748f2(0x1cf)]({'embed':{'color':tesseract_1[_0x4748f2(0x1c5)][_0x4748f2(0x1bc)][_0x4748f2(0x1a9)],'title':'Invite\x20Roles','fields':_0x4f2d02[_0x4748f2(0x1bf)](_0x2f35b7=>({'name':(_0x22fe80[_0x4748f2(0x1ad)][_0x4748f2(0x1c4)][_0x4748f2(0x1ac)][_0x4748f2(0x1c6)](_0x2f35b7[_0x4748f2(0x1d0)])?_0x22fe80['guild'][_0x4748f2(0x1c4)][_0x4748f2(0x1ac)][_0x4748f2(0x1cd)](_0x2f35b7['_id'])[_0x4748f2(0x1a2)]:_0x4748f2(0x1af))+_0x4748f2(0x1a5)+_0x2f35b7[_0x4748f2(0x1d0)],'value':_0x4748f2(0x1be)+_0x2f35b7[_0x4748f2(0x1a1)]}))}});};}}; \ No newline at end of file +const a86_0x23a7=['has','GREEN','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','roleInviteRemove','ROLE_NOT_FOUND','constructor','delete','roleNotFound','roles','Command','info','roleInviteSet','invite','inviteRoles','\x20/\x20','cache','[DELETED]','language','get','channel','document','apply','Invite\x20Code\x20-\x20','default','RED','exports','test','Constants','guild','role','It\x20allows\x20you\x20to\x20associate\x20server\x20invites\x20with\x20roles.\x20Anyone\x20who\x20joins\x20the\x20server\x20with\x20an\x20invite\x20associated\x20with\x20a\x20role\x20will\x20be\x20assigned\x20the\x20specified\x20role\x20automatically.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20list\x20of\x20roles\x20associated\x20with\x20an\x20invite.','filter','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getString','exec','MANAGE_GUILD','send','resolveRole','../../models/Role','client','IRIS','../../utils/errors','split','pop','locale','NO_INVITE_ROLES','name','errors','MANAGE_ROLES','inviteRoles\x20--role\x20ROLE\x20--delete','COLORS','BASTION_ERROR_TYPE','DiscordError','_id','findByIdAndUpdate','author'];(function(_0x8dab94,_0x23f966){const _0x23a7ec=function(_0x47ab16){while(--_0x47ab16){_0x8dab94['push'](_0x8dab94['shift']());}},_0x200ccf=function(){const _0x102b8b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5204a8,_0x8b2aaa,_0x4dc8c0,_0x11abc3){_0x11abc3=_0x11abc3||{};let _0x50d458=_0x8b2aaa+'='+_0x4dc8c0,_0x4a65b9=0x0;for(let _0x3d6eca=0x0,_0x2d17f9=_0x5204a8['length'];_0x3d6eca<_0x2d17f9;_0x3d6eca++){const _0x3be7da=_0x5204a8[_0x3d6eca];_0x50d458+=';\x20'+_0x3be7da;const _0x5426c7=_0x5204a8[_0x3be7da];_0x5204a8['push'](_0x5426c7),_0x2d17f9=_0x5204a8['length'],_0x5426c7!==!![]&&(_0x50d458+='='+_0x5426c7);}_0x11abc3['cookie']=_0x50d458;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4f59d8,_0x30f0ca){_0x4f59d8=_0x4f59d8||function(_0x4ac28c){return _0x4ac28c;};const _0xf1102b=_0x4f59d8(new RegExp('(?:^|;\x20)'+_0x30f0ca['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d6233=function(_0x946230,_0x2d6ebb){_0x946230(++_0x2d6ebb);};return _0x5d6233(_0x23a7ec,_0x23f966),_0xf1102b?decodeURIComponent(_0xf1102b[0x1]):undefined;}},_0x5bb06d=function(){const _0x3abaff=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3abaff['test'](_0x102b8b['removeCookie']['toString']());};_0x102b8b['updateCookie']=_0x5bb06d;let _0x17bef9='';const _0x5e3733=_0x102b8b['updateCookie']();if(!_0x5e3733)_0x102b8b['setCookie'](['*'],'counter',0x1);else _0x5e3733?_0x17bef9=_0x102b8b['getCookie'](null,'counter'):_0x102b8b['removeCookie']();};_0x200ccf();}(a86_0x23a7,0x1de));const a86_0x200c=function(_0x8dab94,_0x23f966){_0x8dab94=_0x8dab94-0xa3;let _0x23a7ec=a86_0x23a7[_0x8dab94];return _0x23a7ec;};const a86_0x29d461=a86_0x200c,a86_0x5bb06d=function(){let _0x5e3733=!![];return function(_0x5204a8,_0x8b2aaa){const _0x4dc8c0=_0x5e3733?function(){const _0x40c27a=a86_0x200c;if(_0x8b2aaa){const _0x11abc3=_0x8b2aaa[_0x40c27a(0xd2)](_0x5204a8,arguments);return _0x8b2aaa=null,_0x11abc3;}}:function(){};return _0x5e3733=![],_0x4dc8c0;};}(),a86_0x102b8b=a86_0x5bb06d(this,function(){const _0x50d458=function(){const _0x485dfa=a86_0x200c,_0x4a65b9=_0x50d458['constructor'](_0x485dfa(0xa5))()[_0x485dfa(0xc2)](_0x485dfa(0xbf));return!_0x4a65b9[_0x485dfa(0xd7)](a86_0x102b8b);};return _0x50d458();});a86_0x102b8b();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a86_0x29d461(0xab)),errors=require(a86_0x29d461(0xae));module[a86_0x29d461(0xd6)]=class InviteRolesCommand extends tesseract_1[a86_0x29d461(0xc6)]{constructor(){const _0x5374d6=a86_0x29d461;super(_0x5374d6(0xca),{'description':_0x5374d6(0xa3),'triggers':[],'arguments':{'boolean':[_0x5374d6(0xc3)],'string':[_0x5374d6(0xc9),'role']},'scope':_0x5374d6(0xd9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x5374d6(0xb5)],'userPermissions':[_0x5374d6(0xa8)],'syntax':[_0x5374d6(0xca),'inviteRoles\x20--role\x20ROLE\x20--invite\x20CODE',_0x5374d6(0xb6)]}),this[_0x5374d6(0xa7)]=async(_0x3d6eca,_0x2d17f9)=>{const _0x30e9b1=_0x5374d6;if(_0x2d17f9[_0x30e9b1(0xda)]){const _0x5426c7=this[_0x30e9b1(0xac)]['resolver'][_0x30e9b1(0xaa)](_0x3d6eca['guild'],_0x2d17f9[_0x30e9b1(0xda)]);if(!_0x5426c7)throw new errors[(_0x30e9b1(0xb9))](errors[_0x30e9b1(0xb8)][_0x30e9b1(0xc1)],this[_0x30e9b1(0xac)]['locale']['getString'](_0x3d6eca[_0x30e9b1(0xd9)][_0x30e9b1(0xd1)][_0x30e9b1(0xce)],_0x30e9b1(0xb4),_0x30e9b1(0xc4)));if(_0x2d17f9[_0x30e9b1(0xc9)])return await Role_1[_0x30e9b1(0xd4)][_0x30e9b1(0xbb)](_0x5426c7['id'],{'invite':_0x2d17f9['invite'][_0x30e9b1(0xaf)]('/')[_0x30e9b1(0xa4)](_0x4f59d8=>_0x4f59d8)[_0x30e9b1(0xb0)]()}),await _0x3d6eca[_0x30e9b1(0xd0)]['send']({'embed':{'color':tesseract_1[_0x30e9b1(0xd8)]['COLORS'][_0x30e9b1(0xbe)],'description':this['client'][_0x30e9b1(0xb1)][_0x30e9b1(0xa6)](_0x3d6eca['guild'][_0x30e9b1(0xd1)][_0x30e9b1(0xce)],_0x30e9b1(0xc7),_0x30e9b1(0xc8),_0x3d6eca[_0x30e9b1(0xbc)]['tag'],_0x5426c7[_0x30e9b1(0xb3)],_0x2d17f9[_0x30e9b1(0xc9)])}});if(_0x2d17f9[_0x30e9b1(0xc3)])return await Role_1[_0x30e9b1(0xd4)][_0x30e9b1(0xbb)](_0x5426c7['id'],{'$unset':{'invite':0x1}}),await _0x3d6eca[_0x30e9b1(0xd0)]['send']({'embed':{'color':tesseract_1['Constants'][_0x30e9b1(0xb7)][_0x30e9b1(0xd5)],'description':this[_0x30e9b1(0xac)][_0x30e9b1(0xb1)]['getString'](_0x3d6eca['guild'][_0x30e9b1(0xd1)][_0x30e9b1(0xce)],_0x30e9b1(0xc7),_0x30e9b1(0xc0),_0x3d6eca[_0x30e9b1(0xbc)]['tag'],_0x5426c7[_0x30e9b1(0xb3)])}});}const _0x3be7da=await Role_1['default']['find']({'guild':_0x3d6eca[_0x30e9b1(0xd9)]['id'],'invite':{'$exists':!![],'$ne':null}});if(!_0x3be7da)throw new Error(_0x30e9b1(0xb2));await _0x3d6eca[_0x30e9b1(0xd0)][_0x30e9b1(0xa9)]({'embed':{'color':tesseract_1[_0x30e9b1(0xd8)]['COLORS'][_0x30e9b1(0xad)],'title':'Invite\x20Roles','fields':_0x3be7da['map'](_0x30f0ca=>({'name':(_0x3d6eca[_0x30e9b1(0xd9)][_0x30e9b1(0xc5)]['cache'][_0x30e9b1(0xbd)](_0x30f0ca['_id'])?_0x3d6eca['guild'][_0x30e9b1(0xc5)][_0x30e9b1(0xcc)][_0x30e9b1(0xcf)](_0x30f0ca[_0x30e9b1(0xba)])['name']:_0x30e9b1(0xcd))+_0x30e9b1(0xcb)+_0x30f0ca[_0x30e9b1(0xba)],'value':_0x30e9b1(0xd3)+_0x30f0ca[_0x30e9b1(0xc9)]}))}});};}}; \ No newline at end of file diff --git a/commands/management/leave.js b/commands/management/leave.js index d702088d3..636e73414 100644 --- a/commands/management/leave.js +++ b/commands/management/leave.js @@ -1 +1 @@ -const a86_0x4a9f=['COLORS','guild','leave','test','../../utils/confirmation','MANAGE_GUILD','send','bastion.server.invite','It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20leave\x20the\x20server\x20and\x20clear\x20all\x20data\x20it\x20has\x20on\x20server\x20and\x20its\x20members.','Command','*has\x20left\x20the\x20chat.*','getConstant','I\x20knew\x20it\x20in\x20my\x20heart\x20that\x20you\x20won\x27t\x20let\x20me\x20leave.\x20💙','locale','IRIS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','Constants','**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.','channel','constructor','exec','@bastion/tesseract','client','catch',').\x0a\x0a*sad\x20robot\x20noises*','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default'];(function(_0x34865e,_0x52d10e){const _0x4a9f62=function(_0x40a4fc){while(--_0x40a4fc){_0x34865e['push'](_0x34865e['shift']());}},_0x394f23=function(){const _0x4d0680={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2217dc,_0x230c28,_0x5bab27,_0x46852e){_0x46852e=_0x46852e||{};let _0x5f30c7=_0x230c28+'='+_0x5bab27,_0x489100=0x0;for(let _0x381ee6=0x0,_0x2b1a5a=_0x2217dc['length'];_0x381ee6<_0x2b1a5a;_0x381ee6++){const _0x41246b=_0x2217dc[_0x381ee6];_0x5f30c7+=';\x20'+_0x41246b;const _0x1eb0d1=_0x2217dc[_0x41246b];_0x2217dc['push'](_0x1eb0d1),_0x2b1a5a=_0x2217dc['length'],_0x1eb0d1!==!![]&&(_0x5f30c7+='='+_0x1eb0d1);}_0x46852e['cookie']=_0x5f30c7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38d23f,_0x391518){_0x38d23f=_0x38d23f||function(_0x4e2990){return _0x4e2990;};const _0x740a26=_0x38d23f(new RegExp('(?:^|;\x20)'+_0x391518['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42efcd=function(_0x1efc1e,_0xf95db5){_0x1efc1e(++_0xf95db5);};return _0x42efcd(_0x4a9f62,_0x52d10e),_0x740a26?decodeURIComponent(_0x740a26[0x1]):undefined;}},_0x4a9571=function(){const _0x29c705=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x29c705['test'](_0x4d0680['removeCookie']['toString']());};_0x4d0680['updateCookie']=_0x4a9571;let _0x27a1a2='';const _0x52c267=_0x4d0680['updateCookie']();if(!_0x52c267)_0x4d0680['setCookie'](['*'],'counter',0x1);else _0x52c267?_0x27a1a2=_0x4d0680['getCookie'](null,'counter'):_0x4d0680['removeCookie']();};_0x394f23();}(a86_0x4a9f,0x13e));const a86_0x394f=function(_0x34865e,_0x52d10e){_0x34865e=_0x34865e-0x182;let _0x4a9f62=a86_0x4a9f[_0x34865e];return _0x4a9f62;};const _0x40eb42=a86_0x394f,a86_0x4a9571=function(){let _0x52c267=!![];return function(_0x2217dc,_0x230c28){const _0x5bab27=_0x52c267?function(){const _0x156127=a86_0x394f;if(_0x230c28){const _0x46852e=_0x230c28[_0x156127(0x188)](_0x2217dc,arguments);return _0x230c28=null,_0x46852e;}}:function(){};return _0x52c267=![],_0x5bab27;};}(),a86_0x4d0680=a86_0x4a9571(this,function(){const _0x5f30c7=function(){const _0x5cd793=a86_0x394f,_0x489100=_0x5f30c7[_0x5cd793(0x18c)](_0x5cd793(0x187))()['constructor'](_0x5cd793(0x192));return!_0x489100[_0x5cd793(0x197)](a86_0x4d0680);};return _0x5f30c7();});a86_0x4d0680();'use strict';const tesseract_1=require(_0x40eb42(0x18e)),confirmation_1=require(_0x40eb42(0x198));module['exports']=class LeaveCommand extends tesseract_1[_0x40eb42(0x19d)]{constructor(){const _0x42f0c5=_0x40eb42;super(_0x42f0c5(0x196),{'description':_0x42f0c5(0x19c),'triggers':[],'arguments':{},'scope':_0x42f0c5(0x195),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x42f0c5(0x199)],'syntax':[]}),this[_0x42f0c5(0x18d)]=async _0x381ee6=>{const _0x22a1f6=_0x42f0c5,_0x2b1a5a=await confirmation_1[_0x22a1f6(0x193)](_0x381ee6,_0x22a1f6(0x18a));await _0x381ee6['channel'][_0x22a1f6(0x19a)]({'embed':{'color':_0x2b1a5a?tesseract_1[_0x22a1f6(0x189)][_0x22a1f6(0x194)]['RED']:tesseract_1['Constants'][_0x22a1f6(0x194)][_0x22a1f6(0x186)],'description':_0x2b1a5a?'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]('+this[_0x22a1f6(0x18f)][_0x22a1f6(0x185)][_0x22a1f6(0x183)](_0x22a1f6(0x19b))+_0x22a1f6(0x191):_0x22a1f6(0x184)}})[_0x22a1f6(0x190)](()=>{}),_0x2b1a5a&&(await _0x381ee6[_0x22a1f6(0x18b)][_0x22a1f6(0x19a)](_0x22a1f6(0x182))[_0x22a1f6(0x190)](()=>{}),await _0x381ee6['guild'][_0x22a1f6(0x196)]());};}}; \ No newline at end of file +const a87_0x4d4d=['Constants','COLORS','**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.','*has\x20left\x20the\x20chat.*','test','default','client','constructor','IRIS','Command','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](','channel','send',').\x0a\x0a*sad\x20robot\x20noises*','getConstant','exec','locale','exports','bastion.server.invite','RED','catch','leave','guild','apply'];(function(_0x1ab0a8,_0x563718){const _0x4d4d29=function(_0x11fc93){while(--_0x11fc93){_0x1ab0a8['push'](_0x1ab0a8['shift']());}},_0x59fee4=function(){const _0xf86e75={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13b0e1,_0x2f7651,_0x457d8a,_0x3be083){_0x3be083=_0x3be083||{};let _0x57e110=_0x2f7651+'='+_0x457d8a,_0x20e036=0x0;for(let _0x695bbc=0x0,_0x3ed772=_0x13b0e1['length'];_0x695bbc<_0x3ed772;_0x695bbc++){const _0x2df107=_0x13b0e1[_0x695bbc];_0x57e110+=';\x20'+_0x2df107;const _0x2ac68d=_0x13b0e1[_0x2df107];_0x13b0e1['push'](_0x2ac68d),_0x3ed772=_0x13b0e1['length'],_0x2ac68d!==!![]&&(_0x57e110+='='+_0x2ac68d);}_0x3be083['cookie']=_0x57e110;},'removeCookie':function(){return'dev';},'getCookie':function(_0x47678b,_0x2ef79a){_0x47678b=_0x47678b||function(_0x48df63){return _0x48df63;};const _0x4ecd41=_0x47678b(new RegExp('(?:^|;\x20)'+_0x2ef79a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x52680b=function(_0x1201b8,_0x3edb67){_0x1201b8(++_0x3edb67);};return _0x52680b(_0x4d4d29,_0x563718),_0x4ecd41?decodeURIComponent(_0x4ecd41[0x1]):undefined;}},_0x2c168e=function(){const _0x599048=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x599048['test'](_0xf86e75['removeCookie']['toString']());};_0xf86e75['updateCookie']=_0x2c168e;let _0x41bf0a='';const _0x3a4a7c=_0xf86e75['updateCookie']();if(!_0x3a4a7c)_0xf86e75['setCookie'](['*'],'counter',0x1);else _0x3a4a7c?_0x41bf0a=_0xf86e75['getCookie'](null,'counter'):_0xf86e75['removeCookie']();};_0x59fee4();}(a87_0x4d4d,0x11b));const a87_0x59fe=function(_0x1ab0a8,_0x563718){_0x1ab0a8=_0x1ab0a8-0x146;let _0x4d4d29=a87_0x4d4d[_0x1ab0a8];return _0x4d4d29;};const a87_0x1b9eaa=a87_0x59fe,a87_0x2c168e=function(){let _0x3a4a7c=!![];return function(_0x13b0e1,_0x2f7651){const _0x457d8a=_0x3a4a7c?function(){const _0x56f4ae=a87_0x59fe;if(_0x2f7651){const _0x3be083=_0x2f7651[_0x56f4ae(0x14a)](_0x13b0e1,arguments);return _0x2f7651=null,_0x3be083;}}:function(){};return _0x3a4a7c=![],_0x457d8a;};}(),a87_0xf86e75=a87_0x2c168e(this,function(){const _0x57e110=function(){const _0x2fdfcb=a87_0x59fe,_0x20e036=_0x57e110[_0x2fdfcb(0x152)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x20e036[_0x2fdfcb(0x14f)](a87_0xf86e75);};return _0x57e110();});a87_0xf86e75();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require('../../utils/confirmation');module[a87_0x1b9eaa(0x15c)]=class LeaveCommand extends tesseract_1[a87_0x1b9eaa(0x154)]{constructor(){const _0x37cb96=a87_0x1b9eaa;super(_0x37cb96(0x148),{'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':_0x37cb96(0x149),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[]}),this[_0x37cb96(0x15a)]=async _0x695bbc=>{const _0x5d07e5=_0x37cb96,_0x3ed772=await confirmation_1[_0x5d07e5(0x150)](_0x695bbc,_0x5d07e5(0x14d));await _0x695bbc[_0x5d07e5(0x156)][_0x5d07e5(0x157)]({'embed':{'color':_0x3ed772?tesseract_1['Constants'][_0x5d07e5(0x14c)][_0x5d07e5(0x146)]:tesseract_1[_0x5d07e5(0x14b)][_0x5d07e5(0x14c)][_0x5d07e5(0x153)],'description':_0x3ed772?_0x5d07e5(0x155)+this[_0x5d07e5(0x151)][_0x5d07e5(0x15b)][_0x5d07e5(0x159)](_0x5d07e5(0x15d))+_0x5d07e5(0x158):'I\x20knew\x20it\x20in\x20my\x20heart\x20that\x20you\x20won\x27t\x20let\x20me\x20leave.\x20💙'}})[_0x5d07e5(0x147)](()=>{}),_0x3ed772&&(await _0x695bbc[_0x5d07e5(0x156)]['send'](_0x5d07e5(0x14e))[_0x5d07e5(0x147)](()=>{}),await _0x695bbc['guild'][_0x5d07e5(0x148)]());};}}; \ No newline at end of file diff --git a/commands/management/levelUpRoles.js b/commands/management/levelUpRoles.js index 69dd4581a..3fba8e8d8 100644 --- a/commands/management/levelUpRoles.js +++ b/commands/management/levelUpRoles.js @@ -1 +1 @@ -const a87_0x18ac=['roleLevelAdd','DiscordError','Level\x20','ROLE_NOT_FOUND','../../utils/gamification','test','send','NO_LEVEL_UP_ROLES','role','Constants','../../utils/constants','COLORS','level','PremiumTier','ROLES_PER_LEVEL','channel','get','cache','_id','NO_ROLES_FOR_LEVEL','language','client','It\x20allows\x20you\x20to\x20add\x20roles\x20to\x20a\x20level.\x20When\x20members\x20reach\x20that\x20level,\x20they\x27ll\x20be\x20awarded\x20those\x20roles.','levelUpRoles','join','remove','constructor','length','updateMany','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','LIMITED_PREMIUM_MEMBERSHIP','resolveRole','resolver','roles','has','locale','IRIS','Command','MAX_LEVEL','GOLD','levelUpRoles\x20--level\x20NUMBER\x20--role\x20ROLE','createDocument','../../utils/errors','roleNotFound','../../models/Role','document','getString','membershipLimitRoleLevels','PLATINUM','isPublicBastion','name','default','PREMIUM_MEMBERSHIP_REQUIRED','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASTION_ERROR_TYPE','user','MANAGE_ROLES','save','catch','Roles','resolveRoles','info','distinct','LIMITS','author','map','@bastion/tesseract','keys','fetchPremiumTier','membershipLimitLevelRoles','ROLE_LEVELS','roleLevelClear','RED','../../utils/omnic','guild','errors','Level-Up\x20Roles','GREEN','premiumLevelRoles','../../utils/numbers','levelUpRoles\x20--level\x20NUMBER','premiumRoleLevels','exports'];(function(_0x399b51,_0x448f74){const _0x18ac62=function(_0x5a3007){while(--_0x5a3007){_0x399b51['push'](_0x399b51['shift']());}},_0x5ee70e=function(){const _0x49536b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x33dc19,_0x45ad0e,_0xfa56e9,_0x20d720){_0x20d720=_0x20d720||{};let _0x46bc8e=_0x45ad0e+'='+_0xfa56e9,_0x56e419=0x0;for(let _0x323484=0x0,_0x3c7cfa=_0x33dc19['length'];_0x323484<_0x3c7cfa;_0x323484++){const _0x554d5a=_0x33dc19[_0x323484];_0x46bc8e+=';\x20'+_0x554d5a;const _0x19eef9=_0x33dc19[_0x554d5a];_0x33dc19['push'](_0x19eef9),_0x3c7cfa=_0x33dc19['length'],_0x19eef9!==!![]&&(_0x46bc8e+='='+_0x19eef9);}_0x20d720['cookie']=_0x46bc8e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ab23a,_0x3563aa){_0x2ab23a=_0x2ab23a||function(_0x3a0d42){return _0x3a0d42;};const _0x1d1333=_0x2ab23a(new RegExp('(?:^|;\x20)'+_0x3563aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c4bc7=function(_0x1c8898,_0x41bacb){_0x1c8898(++_0x41bacb);};return _0x5c4bc7(_0x18ac62,_0x448f74),_0x1d1333?decodeURIComponent(_0x1d1333[0x1]):undefined;}},_0x14a61d=function(){const _0x48a839=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48a839['test'](_0x49536b['removeCookie']['toString']());};_0x49536b['updateCookie']=_0x14a61d;let _0x22d812='';const _0x18208a=_0x49536b['updateCookie']();if(!_0x18208a)_0x49536b['setCookie'](['*'],'counter',0x1);else _0x18208a?_0x22d812=_0x49536b['getCookie'](null,'counter'):_0x49536b['removeCookie']();};_0x5ee70e();}(a87_0x18ac,0x173));const a87_0x5ee7=function(_0x399b51,_0x448f74){_0x399b51=_0x399b51-0x1a6;let _0x18ac62=a87_0x18ac[_0x399b51];return _0x18ac62;};const _0x21b0ae=a87_0x5ee7,a87_0x14a61d=function(){let _0x18208a=!![];return function(_0x33dc19,_0x45ad0e){const _0xfa56e9=_0x18208a?function(){if(_0x45ad0e){const _0x20d720=_0x45ad0e['apply'](_0x33dc19,arguments);return _0x45ad0e=null,_0x20d720;}}:function(){};return _0x18208a=![],_0xfa56e9;};}(),a87_0x49536b=a87_0x14a61d(this,function(){const _0x46bc8e=function(){const _0x15bdee=a87_0x5ee7,_0x56e419=_0x46bc8e['constructor'](_0x15bdee(0x1b4))()[_0x15bdee(0x1ec)](_0x15bdee(0x1ef));return!_0x56e419[_0x15bdee(0x1d7)](a87_0x49536b);};return _0x46bc8e();});a87_0x49536b();'use strict';const tesseract_1=require(_0x21b0ae(0x1c1)),Role_1=require(_0x21b0ae(0x1ab)),constants=require(_0x21b0ae(0x1dc)),errors=require(_0x21b0ae(0x1a9)),gamification=require(_0x21b0ae(0x1d6)),numbers=require(_0x21b0ae(0x1ce)),omnic=require(_0x21b0ae(0x1c8));module[_0x21b0ae(0x1d1)]=class LevelUpRolesCommand extends tesseract_1[_0x21b0ae(0x1f7)]{constructor(){const _0x5500ee=_0x21b0ae;super(_0x5500ee(0x1e9),{'description':_0x5500ee(0x1e8),'triggers':[],'arguments':{'array':[_0x5500ee(0x1da)],'boolean':['remove'],'string':[_0x5500ee(0x1da)],'number':[_0x5500ee(0x1de)],'coerce':{'level':_0x323484=>numbers['clamp'](_0x323484,0x1,gamification[_0x5500ee(0x1f8)])}},'scope':_0x5500ee(0x1c9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x5500ee(0x1b7)],'userPermissions':[_0x5500ee(0x1b7)],'syntax':[_0x5500ee(0x1e9),_0x5500ee(0x1cf),_0x5500ee(0x1a7),'levelUpRoles\x20--level\x20NUMBER\x20--remove']}),this['exec']=async(_0x3c7cfa,_0x554d5a)=>{const _0x91f89e=_0x5500ee;if(_0x554d5a[_0x91f89e(0x1de)]){if(_0x554d5a[_0x91f89e(0x1da)]){if(constants[_0x91f89e(0x1b0)](this[_0x91f89e(0x1e7)][_0x91f89e(0x1b6)])){const _0x1c8898=await omnic[_0x91f89e(0x1c3)](_0x3c7cfa[_0x91f89e(0x1c9)])['catch'](()=>{}),_0x41bacb=await Role_1[_0x91f89e(0x1b2)][_0x91f89e(0x1bd)](_0x91f89e(0x1de),{'guild':_0x3c7cfa[_0x91f89e(0x1c9)]['id'],'level':{'$exists':!![],'$ne':null}});if(_0x1c8898){if(_0x1c8898===omnic[_0x91f89e(0x1df)][_0x91f89e(0x1a6)]&&_0x41bacb[_0x91f89e(0x1ed)]>=constants[_0x91f89e(0x1be)][_0x91f89e(0x1a6)]['ROLE_LEVELS'])throw new errors[(_0x91f89e(0x1d3))](errors[_0x91f89e(0x1b5)][_0x91f89e(0x1f0)],this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1ac)][_0x91f89e(0x1e6)],_0x91f89e(0x1ca),_0x91f89e(0x1ae),constants[_0x91f89e(0x1be)][_0x91f89e(0x1a6)][_0x91f89e(0x1c5)]));else{if(_0x1c8898===omnic[_0x91f89e(0x1df)][_0x91f89e(0x1af)]&&_0x41bacb[_0x91f89e(0x1ed)]>=constants[_0x91f89e(0x1be)][_0x91f89e(0x1af)][_0x91f89e(0x1c5)])throw new errors[(_0x91f89e(0x1d3))](errors[_0x91f89e(0x1b5)][_0x91f89e(0x1f0)],this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1ac)]['language'],_0x91f89e(0x1ca),_0x91f89e(0x1ae),constants[_0x91f89e(0x1be)][_0x91f89e(0x1af)][_0x91f89e(0x1c5)]));}}else{if(_0x41bacb[_0x91f89e(0x1ed)]>=constants[_0x91f89e(0x1be)][_0x91f89e(0x1c5)])throw new errors[(_0x91f89e(0x1d3))](errors['BASTION_ERROR_TYPE'][_0x91f89e(0x1b3)],this['client'][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa['guild']['document'][_0x91f89e(0x1e6)],_0x91f89e(0x1ca),_0x91f89e(0x1d0),constants['LIMITS'][_0x91f89e(0x1c5)]));}const _0x48a839=await Role_1[_0x91f89e(0x1b2)]['countDocuments']({'guild':_0x3c7cfa[_0x91f89e(0x1c9)]['id'],'level':_0x554d5a[_0x91f89e(0x1de)]});if(_0x1c8898){if(_0x1c8898===omnic[_0x91f89e(0x1df)][_0x91f89e(0x1a6)]&&_0x48a839>=constants[_0x91f89e(0x1be)][_0x91f89e(0x1a6)][_0x91f89e(0x1e0)])throw new errors[(_0x91f89e(0x1d3))](errors[_0x91f89e(0x1b5)]['LIMITED_PREMIUM_MEMBERSHIP'],this['client'][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa['guild']['document'][_0x91f89e(0x1e6)],_0x91f89e(0x1ca),_0x91f89e(0x1c4),constants[_0x91f89e(0x1be)][_0x91f89e(0x1a6)][_0x91f89e(0x1e0)]));else{if(_0x1c8898===omnic[_0x91f89e(0x1df)][_0x91f89e(0x1af)]&&_0x48a839>=constants['LIMITS']['PLATINUM'][_0x91f89e(0x1e0)])throw new errors[(_0x91f89e(0x1d3))](errors[_0x91f89e(0x1b5)][_0x91f89e(0x1f0)],this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)]['getString'](_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1ac)]['language'],_0x91f89e(0x1ca),_0x91f89e(0x1c4),constants['LIMITS'][_0x91f89e(0x1af)]['ROLES_PER_LEVEL']));}}else{if(_0x48a839>=constants['LIMITS'][_0x91f89e(0x1e0)])throw new errors[(_0x91f89e(0x1d3))](errors[_0x91f89e(0x1b5)][_0x91f89e(0x1b3)],this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa[_0x91f89e(0x1c9)]['document'][_0x91f89e(0x1e6)],'errors',_0x91f89e(0x1cd),constants[_0x91f89e(0x1be)][_0x91f89e(0x1e0)]));}}const _0x5c4bc7=this[_0x91f89e(0x1e7)][_0x91f89e(0x1f2)][_0x91f89e(0x1f1)](_0x3c7cfa[_0x91f89e(0x1c9)],_0x554d5a[_0x91f89e(0x1da)][_0x91f89e(0x1ea)]('\x20'));if(!_0x5c4bc7)throw new errors[(_0x91f89e(0x1d3))](errors[_0x91f89e(0x1b5)][_0x91f89e(0x1d5)],this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1ac)][_0x91f89e(0x1e6)],_0x91f89e(0x1ca),_0x91f89e(0x1aa)));let _0x3a0d42=await _0x5c4bc7['fetchDocument']();return!_0x3a0d42&&(_0x3a0d42=await _0x5c4bc7[_0x91f89e(0x1a8)]()),_0x3a0d42[_0x91f89e(0x1de)]=_0x554d5a[_0x91f89e(0x1de)],await _0x3a0d42[_0x91f89e(0x1b8)](),await _0x3c7cfa['channel'][_0x91f89e(0x1d8)]({'embed':{'color':tesseract_1[_0x91f89e(0x1db)][_0x91f89e(0x1dd)][_0x91f89e(0x1cc)],'description':this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa['guild']['document'][_0x91f89e(0x1e6)],_0x91f89e(0x1bc),_0x91f89e(0x1d2),_0x3c7cfa[_0x91f89e(0x1bf)]['tag'],_0x5c4bc7[_0x91f89e(0x1b1)],_0x554d5a[_0x91f89e(0x1de)])}})[_0x91f89e(0x1b9)](()=>{});}if(_0x554d5a[_0x91f89e(0x1eb)])return await Role_1[_0x91f89e(0x1b2)][_0x91f89e(0x1ee)]({'guild':_0x3c7cfa[_0x91f89e(0x1c9)]['id'],'level':_0x554d5a['level']},{'$unset':{'level':0x1}}),await _0x3c7cfa[_0x91f89e(0x1e1)][_0x91f89e(0x1d8)]({'embed':{'color':tesseract_1['Constants'][_0x91f89e(0x1dd)][_0x91f89e(0x1c7)],'description':this[_0x91f89e(0x1e7)][_0x91f89e(0x1f5)][_0x91f89e(0x1ad)](_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1ac)][_0x91f89e(0x1e6)],_0x91f89e(0x1bc),_0x91f89e(0x1c6),_0x3c7cfa[_0x91f89e(0x1bf)]['tag'],_0x554d5a['level'])}})[_0x91f89e(0x1b9)](()=>{});const _0x3563aa=await Role_1[_0x91f89e(0x1b2)]['find']({'guild':_0x3c7cfa[_0x91f89e(0x1c9)]['id'],'level':_0x554d5a[_0x91f89e(0x1de)]});if(!_0x3563aa[_0x91f89e(0x1ed)])throw new Error(_0x91f89e(0x1e5));const _0x1d1333=this[_0x91f89e(0x1e7)][_0x91f89e(0x1f2)][_0x91f89e(0x1bb)](_0x3c7cfa[_0x91f89e(0x1c9)],_0x3563aa[_0x91f89e(0x1c0)](_0x5d3e1d=>_0x5d3e1d[_0x91f89e(0x1e4)]));return await _0x3c7cfa[_0x91f89e(0x1e1)][_0x91f89e(0x1d8)]({'embed':{'color':tesseract_1[_0x91f89e(0x1db)]['COLORS'][_0x91f89e(0x1f6)],'title':_0x91f89e(0x1d4)+_0x554d5a[_0x91f89e(0x1de)],'fields':[{'name':_0x91f89e(0x1ba),'value':_0x1d1333[_0x91f89e(0x1c0)](_0x2e44cf=>_0x2e44cf['name'])[_0x91f89e(0x1ea)]('\x0a')}]}})[_0x91f89e(0x1b9)](()=>{});}const _0x19eef9=await Role_1[_0x91f89e(0x1b2)]['find']({'guild':_0x3c7cfa[_0x91f89e(0x1c9)]['id'],'level':{'$exists':!![],'$ne':null}});if(!_0x19eef9[_0x91f89e(0x1ed)])throw new Error(_0x91f89e(0x1d9));const _0x2ab23a={};for(const _0x410fa8 of _0x19eef9){_0x410fa8[_0x91f89e(0x1de)]in _0x2ab23a?_0x2ab23a[_0x410fa8[_0x91f89e(0x1de)]]['push'](_0x410fa8[_0x91f89e(0x1e4)]):_0x2ab23a[_0x410fa8[_0x91f89e(0x1de)]]=[_0x410fa8[_0x91f89e(0x1e4)]];}return await _0x3c7cfa[_0x91f89e(0x1e1)][_0x91f89e(0x1d8)]({'embed':{'color':tesseract_1[_0x91f89e(0x1db)][_0x91f89e(0x1dd)][_0x91f89e(0x1f6)],'title':_0x91f89e(0x1cb),'fields':Object[_0x91f89e(0x1c2)](_0x2ab23a)[_0x91f89e(0x1c0)](_0xa7713=>({'name':_0x91f89e(0x1d4)+_0xa7713,'value':_0x2ab23a[_0xa7713][_0x91f89e(0x1c0)](_0x435801=>_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1f3)][_0x91f89e(0x1e3)][_0x91f89e(0x1f4)](_0x435801)?_0x3c7cfa[_0x91f89e(0x1c9)][_0x91f89e(0x1f3)]['cache'][_0x91f89e(0x1e2)](_0x435801)[_0x91f89e(0x1b1)]:_0x435801)[_0x91f89e(0x1ea)](',\x20')}))}})[_0x91f89e(0x1b9)](()=>{});};}}; \ No newline at end of file +const a88_0xfd9b=['keys','MAX_LEVEL','roleLevelClear','user','../../utils/numbers','guild','roleNotFound','NO_LEVEL_UP_ROLES','membershipLimitLevelRoles','resolveRole','length','createDocument','BASTION_ERROR_TYPE','premiumRoleLevels','GREEN','levelUpRoles\x20--level\x20NUMBER\x20--remove','countDocuments','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','NO_ROLES_FOR_LEVEL','Command','map','getString','COLORS','remove','author','roleLevelAdd','levelUpRoles\x20--level\x20NUMBER','LIMITS','../../utils/errors','resolveRoles','find','../../utils/gamification','PLATINUM','_id','info','../../utils/constants','../../models/Role','premiumLevelRoles','exec','PREMIUM_MEMBERSHIP_REQUIRED','ROLES_PER_LEVEL','Level\x20','save','client','level','cache','join','Constants','roles','isPublicBastion','default','It\x20allows\x20you\x20to\x20add\x20roles\x20to\x20a\x20level.\x20When\x20members\x20reach\x20that\x20level,\x20they\x27ll\x20be\x20awarded\x20those\x20roles.','resolver','test','locale','name','../../utils/omnic','language','role','levelUpRoles','errors','get','push','constructor','LIMITED_PREMIUM_MEMBERSHIP','MANAGE_ROLES','GOLD','ROLE_NOT_FOUND','updateMany','Level-Up\x20Roles','document','DiscordError','send','membershipLimitRoleLevels','catch','ROLE_LEVELS','PremiumTier','levelUpRoles\x20--level\x20NUMBER\x20--role\x20ROLE','IRIS'];(function(_0x43dd25,_0xed44b9){const _0xfd9ba7=function(_0x44d2a){while(--_0x44d2a){_0x43dd25['push'](_0x43dd25['shift']());}},_0x451a11=function(){const _0x5b2288={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f69d3,_0x5156ca,_0x5bb33a,_0x24f903){_0x24f903=_0x24f903||{};let _0x26be15=_0x5156ca+'='+_0x5bb33a,_0x11db59=0x0;for(let _0x3c1da0=0x0,_0x4ed6ef=_0x3f69d3['length'];_0x3c1da0<_0x4ed6ef;_0x3c1da0++){const _0x8ce281=_0x3f69d3[_0x3c1da0];_0x26be15+=';\x20'+_0x8ce281;const _0x337380=_0x3f69d3[_0x8ce281];_0x3f69d3['push'](_0x337380),_0x4ed6ef=_0x3f69d3['length'],_0x337380!==!![]&&(_0x26be15+='='+_0x337380);}_0x24f903['cookie']=_0x26be15;},'removeCookie':function(){return'dev';},'getCookie':function(_0xb5a74e,_0x91e1bd){_0xb5a74e=_0xb5a74e||function(_0x25480c){return _0x25480c;};const _0x275952=_0xb5a74e(new RegExp('(?:^|;\x20)'+_0x91e1bd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1698b3=function(_0x4afc7f,_0x397f02){_0x4afc7f(++_0x397f02);};return _0x1698b3(_0xfd9ba7,_0xed44b9),_0x275952?decodeURIComponent(_0x275952[0x1]):undefined;}},_0x3ca363=function(){const _0x156abe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x156abe['test'](_0x5b2288['removeCookie']['toString']());};_0x5b2288['updateCookie']=_0x3ca363;let _0x347266='';const _0x330de1=_0x5b2288['updateCookie']();if(!_0x330de1)_0x5b2288['setCookie'](['*'],'counter',0x1);else _0x330de1?_0x347266=_0x5b2288['getCookie'](null,'counter'):_0x5b2288['removeCookie']();};_0x451a11();}(a88_0xfd9b,0x1ca));const a88_0x451a=function(_0x43dd25,_0xed44b9){_0x43dd25=_0x43dd25-0x177;let _0xfd9ba7=a88_0xfd9b[_0x43dd25];return _0xfd9ba7;};const a88_0x2fb8ea=a88_0x451a,a88_0x3ca363=function(){let _0x330de1=!![];return function(_0x3f69d3,_0x5156ca){const _0x5bb33a=_0x330de1?function(){if(_0x5156ca){const _0x24f903=_0x5156ca['apply'](_0x3f69d3,arguments);return _0x5156ca=null,_0x24f903;}}:function(){};return _0x330de1=![],_0x5bb33a;};}(),a88_0x5b2288=a88_0x3ca363(this,function(){const _0x26be15=function(){const _0x183ad7=a88_0x451a,_0x11db59=_0x26be15[_0x183ad7(0x183)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x183ad7(0x1a5));return!_0x11db59[_0x183ad7(0x179)](a88_0x5b2288);};return _0x26be15();});a88_0x5b2288();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a88_0x2fb8ea(0x1b9)),constants=require(a88_0x2fb8ea(0x1b8)),errors=require(a88_0x2fb8ea(0x1b1)),gamification=require(a88_0x2fb8ea(0x1b4)),numbers=require(a88_0x2fb8ea(0x197)),omnic=require(a88_0x2fb8ea(0x17c));module['exports']=class LevelUpRolesCommand extends tesseract_1[a88_0x2fb8ea(0x1a8)]{constructor(){const _0x5a073c=a88_0x2fb8ea;super(_0x5a073c(0x17f),{'description':_0x5a073c(0x177),'triggers':[],'arguments':{'array':['role'],'boolean':['remove'],'string':[_0x5a073c(0x17e)],'number':[_0x5a073c(0x1c1)],'coerce':{'level':_0x3c1da0=>numbers['clamp'](_0x3c1da0,0x1,gamification[_0x5a073c(0x194)])}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x5a073c(0x185)],'userPermissions':[_0x5a073c(0x185)],'syntax':['levelUpRoles',_0x5a073c(0x1af),_0x5a073c(0x191),_0x5a073c(0x1a2)]}),this[_0x5a073c(0x1bb)]=async(_0x4ed6ef,_0x8ce281)=>{const _0x49ad57=_0x5a073c;if(_0x8ce281[_0x49ad57(0x1c1)]){if(_0x8ce281[_0x49ad57(0x17e)]){if(constants[_0x49ad57(0x1c6)](this[_0x49ad57(0x1c0)][_0x49ad57(0x196)])){const _0x4afc7f=await omnic['fetchPremiumTier'](_0x4ed6ef['guild'])[_0x49ad57(0x18e)](()=>{}),_0x397f02=await Role_1[_0x49ad57(0x1c7)]['distinct'](_0x49ad57(0x1c1),{'guild':_0x4ed6ef[_0x49ad57(0x198)]['id'],'level':{'$exists':!![],'$ne':null}});if(_0x4afc7f){if(_0x4afc7f===omnic[_0x49ad57(0x190)][_0x49ad57(0x186)]&&_0x397f02[_0x49ad57(0x19d)]>=constants[_0x49ad57(0x1b0)][_0x49ad57(0x186)][_0x49ad57(0x18f)])throw new errors[(_0x49ad57(0x18b))](errors[_0x49ad57(0x19f)][_0x49ad57(0x184)],this[_0x49ad57(0x1c0)]['locale'][_0x49ad57(0x1aa)](_0x4ed6ef[_0x49ad57(0x198)][_0x49ad57(0x18a)][_0x49ad57(0x17d)],_0x49ad57(0x180),'membershipLimitRoleLevels',constants[_0x49ad57(0x1b0)]['GOLD'][_0x49ad57(0x18f)]));else{if(_0x4afc7f===omnic[_0x49ad57(0x190)]['PLATINUM']&&_0x397f02[_0x49ad57(0x19d)]>=constants[_0x49ad57(0x1b0)][_0x49ad57(0x1b5)][_0x49ad57(0x18f)])throw new errors[(_0x49ad57(0x18b))](errors[_0x49ad57(0x19f)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x49ad57(0x1c0)][_0x49ad57(0x17a)]['getString'](_0x4ed6ef['guild'][_0x49ad57(0x18a)][_0x49ad57(0x17d)],_0x49ad57(0x180),_0x49ad57(0x18d),constants['LIMITS'][_0x49ad57(0x1b5)]['ROLE_LEVELS']));}}else{if(_0x397f02[_0x49ad57(0x19d)]>=constants[_0x49ad57(0x1b0)][_0x49ad57(0x18f)])throw new errors[(_0x49ad57(0x18b))](errors[_0x49ad57(0x19f)][_0x49ad57(0x1bc)],this[_0x49ad57(0x1c0)][_0x49ad57(0x17a)][_0x49ad57(0x1aa)](_0x4ed6ef[_0x49ad57(0x198)][_0x49ad57(0x18a)][_0x49ad57(0x17d)],_0x49ad57(0x180),_0x49ad57(0x1a0),constants[_0x49ad57(0x1b0)][_0x49ad57(0x18f)]));}const _0x156abe=await Role_1[_0x49ad57(0x1c7)][_0x49ad57(0x1a3)]({'guild':_0x4ed6ef['guild']['id'],'level':_0x8ce281['level']});if(_0x4afc7f){if(_0x4afc7f===omnic[_0x49ad57(0x190)]['GOLD']&&_0x156abe>=constants[_0x49ad57(0x1b0)][_0x49ad57(0x186)][_0x49ad57(0x1bd)])throw new errors[(_0x49ad57(0x18b))](errors[_0x49ad57(0x19f)][_0x49ad57(0x184)],this[_0x49ad57(0x1c0)]['locale'][_0x49ad57(0x1aa)](_0x4ed6ef['guild'][_0x49ad57(0x18a)][_0x49ad57(0x17d)],'errors',_0x49ad57(0x19b),constants[_0x49ad57(0x1b0)][_0x49ad57(0x186)][_0x49ad57(0x1bd)]));else{if(_0x4afc7f===omnic[_0x49ad57(0x190)][_0x49ad57(0x1b5)]&&_0x156abe>=constants[_0x49ad57(0x1b0)]['PLATINUM'][_0x49ad57(0x1bd)])throw new errors['DiscordError'](errors[_0x49ad57(0x19f)][_0x49ad57(0x184)],this[_0x49ad57(0x1c0)][_0x49ad57(0x17a)][_0x49ad57(0x1aa)](_0x4ed6ef[_0x49ad57(0x198)][_0x49ad57(0x18a)][_0x49ad57(0x17d)],_0x49ad57(0x180),_0x49ad57(0x19b),constants[_0x49ad57(0x1b0)][_0x49ad57(0x1b5)][_0x49ad57(0x1bd)]));}}else{if(_0x156abe>=constants[_0x49ad57(0x1b0)]['ROLES_PER_LEVEL'])throw new errors[(_0x49ad57(0x18b))](errors[_0x49ad57(0x19f)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x49ad57(0x1c0)]['locale'][_0x49ad57(0x1aa)](_0x4ed6ef[_0x49ad57(0x198)]['document']['language'],_0x49ad57(0x180),_0x49ad57(0x1ba),constants['LIMITS'][_0x49ad57(0x1bd)]));}}const _0x1698b3=this[_0x49ad57(0x1c0)][_0x49ad57(0x178)][_0x49ad57(0x19c)](_0x4ed6ef[_0x49ad57(0x198)],_0x8ce281[_0x49ad57(0x17e)][_0x49ad57(0x1c3)]('\x20'));if(!_0x1698b3)throw new errors[(_0x49ad57(0x18b))](errors[_0x49ad57(0x19f)][_0x49ad57(0x187)],this['client'][_0x49ad57(0x17a)][_0x49ad57(0x1aa)](_0x4ed6ef[_0x49ad57(0x198)][_0x49ad57(0x18a)][_0x49ad57(0x17d)],'errors',_0x49ad57(0x199)));let _0x25480c=await _0x1698b3['fetchDocument']();return!_0x25480c&&(_0x25480c=await _0x1698b3[_0x49ad57(0x19e)]()),_0x25480c[_0x49ad57(0x1c1)]=_0x8ce281[_0x49ad57(0x1c1)],await _0x25480c[_0x49ad57(0x1bf)](),await _0x4ed6ef['channel'][_0x49ad57(0x18c)]({'embed':{'color':tesseract_1['Constants'][_0x49ad57(0x1ab)][_0x49ad57(0x1a1)],'description':this[_0x49ad57(0x1c0)][_0x49ad57(0x17a)][_0x49ad57(0x1aa)](_0x4ed6ef['guild']['document'][_0x49ad57(0x17d)],'info',_0x49ad57(0x1ae),_0x4ed6ef[_0x49ad57(0x1ad)][_0x49ad57(0x1a6)],_0x1698b3[_0x49ad57(0x17b)],_0x8ce281[_0x49ad57(0x1c1)])}})[_0x49ad57(0x18e)](()=>{});}if(_0x8ce281[_0x49ad57(0x1ac)])return await Role_1['default'][_0x49ad57(0x188)]({'guild':_0x4ed6ef[_0x49ad57(0x198)]['id'],'level':_0x8ce281[_0x49ad57(0x1c1)]},{'$unset':{'level':0x1}}),await _0x4ed6ef['channel'][_0x49ad57(0x18c)]({'embed':{'color':tesseract_1[_0x49ad57(0x1c4)][_0x49ad57(0x1ab)]['RED'],'description':this[_0x49ad57(0x1c0)]['locale'][_0x49ad57(0x1aa)](_0x4ed6ef['guild'][_0x49ad57(0x18a)][_0x49ad57(0x17d)],_0x49ad57(0x1b7),_0x49ad57(0x195),_0x4ed6ef['author']['tag'],_0x8ce281[_0x49ad57(0x1c1)])}})[_0x49ad57(0x18e)](()=>{});const _0x91e1bd=await Role_1[_0x49ad57(0x1c7)]['find']({'guild':_0x4ed6ef['guild']['id'],'level':_0x8ce281[_0x49ad57(0x1c1)]});if(!_0x91e1bd[_0x49ad57(0x19d)])throw new Error(_0x49ad57(0x1a7));const _0x275952=this[_0x49ad57(0x1c0)][_0x49ad57(0x178)][_0x49ad57(0x1b2)](_0x4ed6ef[_0x49ad57(0x198)],_0x91e1bd[_0x49ad57(0x1a9)](_0x46d3b1=>_0x46d3b1['_id']));return await _0x4ed6ef[_0x49ad57(0x1a4)][_0x49ad57(0x18c)]({'embed':{'color':tesseract_1[_0x49ad57(0x1c4)][_0x49ad57(0x1ab)][_0x49ad57(0x192)],'title':_0x49ad57(0x1be)+_0x8ce281[_0x49ad57(0x1c1)],'fields':[{'name':'Roles','value':_0x275952[_0x49ad57(0x1a9)](_0x5d5a5b=>_0x5d5a5b[_0x49ad57(0x17b)])[_0x49ad57(0x1c3)]('\x0a')}]}})[_0x49ad57(0x18e)](()=>{});}const _0x337380=await Role_1[_0x49ad57(0x1c7)][_0x49ad57(0x1b3)]({'guild':_0x4ed6ef[_0x49ad57(0x198)]['id'],'level':{'$exists':!![],'$ne':null}});if(!_0x337380[_0x49ad57(0x19d)])throw new Error(_0x49ad57(0x19a));const _0xb5a74e={};for(const _0x5ce318 of _0x337380){_0x5ce318[_0x49ad57(0x1c1)]in _0xb5a74e?_0xb5a74e[_0x5ce318[_0x49ad57(0x1c1)]][_0x49ad57(0x182)](_0x5ce318[_0x49ad57(0x1b6)]):_0xb5a74e[_0x5ce318[_0x49ad57(0x1c1)]]=[_0x5ce318[_0x49ad57(0x1b6)]];}return await _0x4ed6ef[_0x49ad57(0x1a4)]['send']({'embed':{'color':tesseract_1['Constants'][_0x49ad57(0x1ab)]['IRIS'],'title':_0x49ad57(0x189),'fields':Object[_0x49ad57(0x193)](_0xb5a74e)[_0x49ad57(0x1a9)](_0x191f79=>({'name':_0x49ad57(0x1be)+_0x191f79,'value':_0xb5a74e[_0x191f79]['map'](_0x46ff80=>_0x4ed6ef[_0x49ad57(0x198)][_0x49ad57(0x1c5)][_0x49ad57(0x1c2)]['has'](_0x46ff80)?_0x4ed6ef['guild']['roles'][_0x49ad57(0x1c2)][_0x49ad57(0x181)](_0x46ff80)['name']:_0x46ff80)[_0x49ad57(0x1c3)](',\x20')}))}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/lockdown.js b/commands/management/lockdown.js index cbe4091b8..f6c5a1fe9 100644 --- a/commands/management/lockdown.js +++ b/commands/management/lockdown.js @@ -1 +1 @@ -const a88_0x39a7=['Constants','info','catch','remove','values','lockdownChannel','COLORS','exports','send','Command','lockdown\x20--remove','constructor','has','MANAGE_CHANNELS','guild','tag','document','apply','permissionOverwrites','getString','It\x20allows\x20you\x20lockdown\x20a\x20channel\x20in\x20the\x20server\x20from\x20users\x20who\x20don\x27t\x20have\x20permission\x20to\x20manage\x20messages\x20or\x20the\x20channel.','return\x20/\x22\x20+\x20this\x20+\x20\x22/','lockdownChannelRemove','author','channel','update','MANAGE_GUILD','client','language','test','lockdown','@bastion/tesseract','allow','exec','MANAGE_MESSAGES','locale'];(function(_0x404304,_0x38e521){const _0x39a7ab=function(_0x1dcbd6){while(--_0x1dcbd6){_0x404304['push'](_0x404304['shift']());}},_0x3fd424=function(){const _0x1e5567={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d97af,_0x3e0920,_0x13e265,_0x162d2e){_0x162d2e=_0x162d2e||{};let _0x51d1b0=_0x3e0920+'='+_0x13e265,_0x53c58d=0x0;for(let _0xda5b5d=0x0,_0x39bb29=_0x2d97af['length'];_0xda5b5d<_0x39bb29;_0xda5b5d++){const _0x43ef2c=_0x2d97af[_0xda5b5d];_0x51d1b0+=';\x20'+_0x43ef2c;const _0xd909c4=_0x2d97af[_0x43ef2c];_0x2d97af['push'](_0xd909c4),_0x39bb29=_0x2d97af['length'],_0xd909c4!==!![]&&(_0x51d1b0+='='+_0xd909c4);}_0x162d2e['cookie']=_0x51d1b0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d65b2,_0x583632){_0x4d65b2=_0x4d65b2||function(_0x26dfd9){return _0x26dfd9;};const _0x524bd3=_0x4d65b2(new RegExp('(?:^|;\x20)'+_0x583632['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43e59f=function(_0x59c53e,_0x51e7b7){_0x59c53e(++_0x51e7b7);};return _0x43e59f(_0x39a7ab,_0x38e521),_0x524bd3?decodeURIComponent(_0x524bd3[0x1]):undefined;}},_0x19d716=function(){const _0x16788a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x16788a['test'](_0x1e5567['removeCookie']['toString']());};_0x1e5567['updateCookie']=_0x19d716;let _0x416ef4='';const _0x3a674a=_0x1e5567['updateCookie']();if(!_0x3a674a)_0x1e5567['setCookie'](['*'],'counter',0x1);else _0x3a674a?_0x416ef4=_0x1e5567['getCookie'](null,'counter'):_0x1e5567['removeCookie']();};_0x3fd424();}(a88_0x39a7,0x123));const a88_0x3fd4=function(_0x404304,_0x38e521){_0x404304=_0x404304-0x1c4;let _0x39a7ab=a88_0x39a7[_0x404304];return _0x39a7ab;};const _0x45719d=a88_0x3fd4,a88_0x19d716=function(){let _0x3a674a=!![];return function(_0x2d97af,_0x3e0920){const _0x13e265=_0x3a674a?function(){const _0x2c95ef=a88_0x3fd4;if(_0x3e0920){const _0x162d2e=_0x3e0920[_0x2c95ef(0x1d2)](_0x2d97af,arguments);return _0x3e0920=null,_0x162d2e;}}:function(){};return _0x3a674a=![],_0x13e265;};}(),a88_0x1e5567=a88_0x19d716(this,function(){const _0x51d1b0=function(){const _0x2aaf96=a88_0x3fd4,_0x53c58d=_0x51d1b0['constructor'](_0x2aaf96(0x1d6))()[_0x2aaf96(0x1cc)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x53c58d[_0x2aaf96(0x1de)](a88_0x1e5567);};return _0x51d1b0();});a88_0x1e5567();'use strict';const tesseract_1=require(_0x45719d(0x1e0));module[_0x45719d(0x1c8)]=class LockdownCommand extends tesseract_1[_0x45719d(0x1ca)]{constructor(){const _0xa58767=_0x45719d;super(_0xa58767(0x1df),{'description':_0xa58767(0x1d5),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[_0xa58767(0x1c4)]},'scope':_0xa58767(0x1cf),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0xa58767(0x1ce)],'userPermissions':[_0xa58767(0x1db)],'syntax':[_0xa58767(0x1df),_0xa58767(0x1cb)]}),this[_0xa58767(0x1e2)]=async(_0xda5b5d,_0x39bb29)=>{const _0x596b46=_0xa58767;for(const _0x43ef2c of _0xda5b5d['channel'][_0x596b46(0x1d3)][_0x596b46(0x1c5)]()){if(_0x43ef2c[_0x596b46(0x1e1)][_0x596b46(0x1cd)](_0x596b46(0x1e3))||_0x43ef2c['allow'][_0x596b46(0x1cd)](_0x596b46(0x1ce)))continue;_0x43ef2c[_0x596b46(0x1da)]({'SEND_MESSAGES':_0x39bb29[_0x596b46(0x1c4)]?null:![]});}await _0xda5b5d[_0x596b46(0x1d9)][_0x596b46(0x1c9)]({'embed':{'color':_0x39bb29[_0x596b46(0x1c4)]?tesseract_1[_0x596b46(0x1e5)][_0x596b46(0x1c7)]['GREEN']:tesseract_1['Constants']['COLORS']['ORANGE'],'description':this[_0x596b46(0x1dc)][_0x596b46(0x1e4)][_0x596b46(0x1d4)](_0xda5b5d[_0x596b46(0x1cf)][_0x596b46(0x1d1)][_0x596b46(0x1dd)],_0x596b46(0x1e6),_0x39bb29[_0x596b46(0x1c4)]?_0x596b46(0x1d7):_0x596b46(0x1c6),_0xda5b5d[_0x596b46(0x1d8)][_0x596b46(0x1d0)])}})[_0x596b46(0x1e7)](()=>{});};}}; \ No newline at end of file +const a89_0x24f9=['guild','@bastion/tesseract','MANAGE_MESSAGES','values','It\x20allows\x20you\x20lockdown\x20a\x20channel\x20in\x20the\x20server\x20from\x20users\x20who\x20don\x27t\x20have\x20permission\x20to\x20manage\x20messages\x20or\x20the\x20channel.','author','language','lockdownChannelRemove','update','catch','allow','COLORS','tag','exports','document','has','locale','Constants','client','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GREEN','remove','lockdown','MANAGE_GUILD','MANAGE_CHANNELS','lockdownChannel','constructor','exec','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x437a89,_0x4b65c8){const _0x24f953=function(_0x3f12ea){while(--_0x3f12ea){_0x437a89['push'](_0x437a89['shift']());}},_0x4c19b6=function(){const _0x5e62a6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3feb6a,_0x1f71d6,_0x5efcdb,_0x5cd559){_0x5cd559=_0x5cd559||{};let _0x1b84a0=_0x1f71d6+'='+_0x5efcdb,_0x5ad68d=0x0;for(let _0x3272a1=0x0,_0x310e77=_0x3feb6a['length'];_0x3272a1<_0x310e77;_0x3272a1++){const _0x43b7cc=_0x3feb6a[_0x3272a1];_0x1b84a0+=';\x20'+_0x43b7cc;const _0x4ba03b=_0x3feb6a[_0x43b7cc];_0x3feb6a['push'](_0x4ba03b),_0x310e77=_0x3feb6a['length'],_0x4ba03b!==!![]&&(_0x1b84a0+='='+_0x4ba03b);}_0x5cd559['cookie']=_0x1b84a0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x16af3a,_0x1c13fb){_0x16af3a=_0x16af3a||function(_0x3a5b98){return _0x3a5b98;};const _0x2ea8db=_0x16af3a(new RegExp('(?:^|;\x20)'+_0x1c13fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe9531b=function(_0xac37a9,_0x181685){_0xac37a9(++_0x181685);};return _0xe9531b(_0x24f953,_0x4b65c8),_0x2ea8db?decodeURIComponent(_0x2ea8db[0x1]):undefined;}},_0x5d7024=function(){const _0x2f9996=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f9996['test'](_0x5e62a6['removeCookie']['toString']());};_0x5e62a6['updateCookie']=_0x5d7024;let _0x187ce7='';const _0x32d4c8=_0x5e62a6['updateCookie']();if(!_0x32d4c8)_0x5e62a6['setCookie'](['*'],'counter',0x1);else _0x32d4c8?_0x187ce7=_0x5e62a6['getCookie'](null,'counter'):_0x5e62a6['removeCookie']();};_0x4c19b6();}(a89_0x24f9,0x19d));const a89_0x4c19=function(_0x437a89,_0x4b65c8){_0x437a89=_0x437a89-0x96;let _0x24f953=a89_0x24f9[_0x437a89];return _0x24f953;};const a89_0x26d88f=a89_0x4c19,a89_0x5d7024=function(){let _0x32d4c8=!![];return function(_0x3feb6a,_0x1f71d6){const _0x5efcdb=_0x32d4c8?function(){if(_0x1f71d6){const _0x5cd559=_0x1f71d6['apply'](_0x3feb6a,arguments);return _0x1f71d6=null,_0x5cd559;}}:function(){};return _0x32d4c8=![],_0x5efcdb;};}(),a89_0x5e62a6=a89_0x5d7024(this,function(){const _0x1b84a0=function(){const _0x4d82c5=a89_0x4c19,_0x5ad68d=_0x1b84a0[_0x4d82c5(0xa7)](_0x4d82c5(0xa0))()[_0x4d82c5(0xa7)](_0x4d82c5(0xaa));return!_0x5ad68d['test'](a89_0x5e62a6);};return _0x1b84a0();});a89_0x5e62a6();'use strict';const tesseract_1=require(a89_0x26d88f(0xac));module[a89_0x26d88f(0x99)]=class LockdownCommand extends tesseract_1[a89_0x26d88f(0x9f)]{constructor(){const _0x1941aa=a89_0x26d88f;super('lockdown',{'description':_0x1941aa(0xaf),'triggers':[],'arguments':{'alias':{'remove':['r']},'boolean':[_0x1941aa(0xa2)]},'scope':_0x1941aa(0xab),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x1941aa(0xa5)],'userPermissions':[_0x1941aa(0xa4)],'syntax':[_0x1941aa(0xa3),'lockdown\x20--remove']}),this[_0x1941aa(0xa8)]=async(_0x3272a1,_0x310e77)=>{const _0x18c813=_0x1941aa;for(const _0x43b7cc of _0x3272a1[_0x18c813(0xa9)]['permissionOverwrites'][_0x18c813(0xae)]()){if(_0x43b7cc[_0x18c813(0x96)][_0x18c813(0x9b)](_0x18c813(0xad))||_0x43b7cc[_0x18c813(0x96)]['has'](_0x18c813(0xa5)))continue;_0x43b7cc[_0x18c813(0xb3)]({'SEND_MESSAGES':_0x310e77['remove']?null:![]});}await _0x3272a1[_0x18c813(0xa9)]['send']({'embed':{'color':_0x310e77['remove']?tesseract_1[_0x18c813(0x9d)]['COLORS'][_0x18c813(0xa1)]:tesseract_1[_0x18c813(0x9d)][_0x18c813(0x97)]['ORANGE'],'description':this[_0x18c813(0x9e)][_0x18c813(0x9c)]['getString'](_0x3272a1[_0x18c813(0xab)][_0x18c813(0x9a)][_0x18c813(0xb1)],'info',_0x310e77['remove']?_0x18c813(0xb2):_0x18c813(0xa6),_0x3272a1[_0x18c813(0xb0)][_0x18c813(0x98)])}})[_0x18c813(0xb4)](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/prune.js b/commands/management/prune.js index 7dcfe3478..66c3a3e2d 100644 --- a/commands/management/prune.js +++ b/commands/management/prune.js @@ -1 +1 @@ -const a89_0x12ec=['catch','document','exports','Command','join','locale','RED','tag','prune\x20--roles\x20ROLE...\x20--\x20REASON','prune\x20--days\x20NUMBER\x20--\x20REASON','client','exec','../../utils/confirmation','constructor','COLORS','MANAGE_GUILD','test','days','membersPruneQuestion','channel','author','prune\x20--\x20REASON','info','language','prune','membersPrune','members','roles','apply','guild'];(function(_0x287798,_0x4e3f81){const _0x12ec17=function(_0x1b5cad){while(--_0x1b5cad){_0x287798['push'](_0x287798['shift']());}},_0x59d887=function(){const _0x4952e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x27a52f,_0x4ef79f,_0x3553fd,_0x1933e2){_0x1933e2=_0x1933e2||{};let _0xcd43d6=_0x4ef79f+'='+_0x3553fd,_0xf35443=0x0;for(let _0x38c2f6=0x0,_0x23e745=_0x27a52f['length'];_0x38c2f6<_0x23e745;_0x38c2f6++){const _0xc39c9c=_0x27a52f[_0x38c2f6];_0xcd43d6+=';\x20'+_0xc39c9c;const _0x4552f2=_0x27a52f[_0xc39c9c];_0x27a52f['push'](_0x4552f2),_0x23e745=_0x27a52f['length'],_0x4552f2!==!![]&&(_0xcd43d6+='='+_0x4552f2);}_0x1933e2['cookie']=_0xcd43d6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x286458,_0x22f178){_0x286458=_0x286458||function(_0x3ab608){return _0x3ab608;};const _0x129ab0=_0x286458(new RegExp('(?:^|;\x20)'+_0x22f178['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1bf54b=function(_0x570197,_0x327575){_0x570197(++_0x327575);};return _0x1bf54b(_0x12ec17,_0x4e3f81),_0x129ab0?decodeURIComponent(_0x129ab0[0x1]):undefined;}},_0xc0f20e=function(){const _0x447252=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x447252['test'](_0x4952e2['removeCookie']['toString']());};_0x4952e2['updateCookie']=_0xc0f20e;let _0x51c044='';const _0x297483=_0x4952e2['updateCookie']();if(!_0x297483)_0x4952e2['setCookie'](['*'],'counter',0x1);else _0x297483?_0x51c044=_0x4952e2['getCookie'](null,'counter'):_0x4952e2['removeCookie']();};_0x59d887();}(a89_0x12ec,0x1a1));const a89_0x59d8=function(_0x287798,_0x4e3f81){_0x287798=_0x287798-0xc0;let _0x12ec17=a89_0x12ec[_0x287798];return _0x12ec17;};const _0x51e718=a89_0x59d8,a89_0xc0f20e=function(){let _0x297483=!![];return function(_0x27a52f,_0x4ef79f){const _0x3553fd=_0x297483?function(){const _0x6ce52a=a89_0x59d8;if(_0x4ef79f){const _0x1933e2=_0x4ef79f[_0x6ce52a(0xc1)](_0x27a52f,arguments);return _0x4ef79f=null,_0x1933e2;}}:function(){};return _0x297483=![],_0x3553fd;};}(),a89_0x4952e2=a89_0xc0f20e(this,function(){const _0xcd43d6=function(){const _0x595d31=a89_0x59d8,_0xf35443=_0xcd43d6[_0x595d31(0xd0)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x595d31(0xd0)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xf35443[_0x595d31(0xd3)](a89_0x4952e2);};return _0xcd43d6();});a89_0x4952e2();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require(_0x51e718(0xcf));module[_0x51e718(0xc5)]=class PruneCommand extends tesseract_1[_0x51e718(0xc6)]{constructor(){const _0x2a07f9=_0x51e718;super(_0x2a07f9(0xdb),{'description':'It\x20allows\x20you\x20to\x20prune\x20members\x20without\x20any\x20roles,\x20from\x20the\x20server,\x20based\x20on\x20how\x20long\x20they\x20have\x20been\x20inactive.\x20It\x20also\x20allows\x20you\x20to\x20include\x20the\x20members\x20from\x20the\x20specified\x20roles.','triggers':[],'arguments':{'alias':{'days':'d'},'array':[_0x2a07f9(0xc0)],'string':[_0x2a07f9(0xd4),_0x2a07f9(0xc0)]},'scope':_0x2a07f9(0xc2),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x2a07f9(0xd2)],'userPermissions':[_0x2a07f9(0xd2)],'syntax':[_0x2a07f9(0xd8),_0x2a07f9(0xcc),_0x2a07f9(0xcb)]}),this[_0x2a07f9(0xce)]=async(_0x38c2f6,_0x23e745)=>{const _0x386ebe=_0x2a07f9,_0xc39c9c=typeof _0x23e745[_0x386ebe(0xd4)]==='number'?Math['abs'](_0x23e745[_0x386ebe(0xd4)]):0x7,_0x4552f2=_0x23e745['_'][_0x386ebe(0xc7)]('\x20')||'-',_0x286458=await confirmation_1['default'](_0x38c2f6,this['client'][_0x386ebe(0xc8)]['getString'](_0x38c2f6[_0x386ebe(0xc2)][_0x386ebe(0xc4)][_0x386ebe(0xda)],_0x386ebe(0xd9),_0x386ebe(0xd5),_0x38c2f6[_0x386ebe(0xd7)][_0x386ebe(0xca)],_0xc39c9c));if(!_0x286458)return;return await _0x38c2f6[_0x386ebe(0xc2)][_0x386ebe(0xdd)][_0x386ebe(0xdb)]({'days':_0xc39c9c,'reason':_0x4552f2,'roles':_0x23e745[_0x386ebe(0xc0)]}),_0x38c2f6[_0x386ebe(0xd6)]['send']({'embed':{'color':tesseract_1['Constants'][_0x386ebe(0xd1)][_0x386ebe(0xc9)],'description':this[_0x386ebe(0xcd)][_0x386ebe(0xc8)]['getString'](_0x38c2f6[_0x386ebe(0xc2)][_0x386ebe(0xc4)][_0x386ebe(0xda)],_0x386ebe(0xd9),_0x386ebe(0xdc),_0x38c2f6[_0x386ebe(0xd7)][_0x386ebe(0xca)],_0xc39c9c,_0x4552f2)}})[_0x386ebe(0xc3)](()=>{});};}}; \ No newline at end of file +const a90_0x3246=['It\x20allows\x20you\x20to\x20prune\x20members\x20without\x20any\x20roles,\x20from\x20the\x20server,\x20based\x20on\x20how\x20long\x20they\x20have\x20been\x20inactive.\x20It\x20also\x20allows\x20you\x20to\x20include\x20the\x20members\x20from\x20the\x20specified\x20roles.','abs','guild','info','prune\x20--days\x20NUMBER\x20--\x20REASON','number','apply','tag','author','@bastion/tesseract','catch','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','membersPrune','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getString','membersPruneQuestion','language','send','locale','default','prune','channel','roles','members','MANAGE_GUILD','days','Constants','constructor','prune\x20--roles\x20ROLE...\x20--\x20REASON','prune\x20--\x20REASON','client','exports','COLORS','../../utils/confirmation','document'];(function(_0x31c25c,_0x428b39){const _0x324630=function(_0x2e8dd8){while(--_0x2e8dd8){_0x31c25c['push'](_0x31c25c['shift']());}},_0x1ee468=function(){const _0x466d3c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1a580a,_0x20fdba,_0x3acebe,_0x4f3c4a){_0x4f3c4a=_0x4f3c4a||{};let _0x2322c7=_0x20fdba+'='+_0x3acebe,_0x58d907=0x0;for(let _0x3a356b=0x0,_0x3626e2=_0x1a580a['length'];_0x3a356b<_0x3626e2;_0x3a356b++){const _0x23378a=_0x1a580a[_0x3a356b];_0x2322c7+=';\x20'+_0x23378a;const _0x38370f=_0x1a580a[_0x23378a];_0x1a580a['push'](_0x38370f),_0x3626e2=_0x1a580a['length'],_0x38370f!==!![]&&(_0x2322c7+='='+_0x38370f);}_0x4f3c4a['cookie']=_0x2322c7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4cbc97,_0x1472fd){_0x4cbc97=_0x4cbc97||function(_0x466fad){return _0x466fad;};const _0x191a53=_0x4cbc97(new RegExp('(?:^|;\x20)'+_0x1472fd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b58a2=function(_0x20ab43,_0x3909f4){_0x20ab43(++_0x3909f4);};return _0x3b58a2(_0x324630,_0x428b39),_0x191a53?decodeURIComponent(_0x191a53[0x1]):undefined;}},_0x19cff9=function(){const _0x256d26=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x256d26['test'](_0x466d3c['removeCookie']['toString']());};_0x466d3c['updateCookie']=_0x19cff9;let _0x48326b='';const _0x15d840=_0x466d3c['updateCookie']();if(!_0x15d840)_0x466d3c['setCookie'](['*'],'counter',0x1);else _0x15d840?_0x48326b=_0x466d3c['getCookie'](null,'counter'):_0x466d3c['removeCookie']();};_0x1ee468();}(a90_0x3246,0x1f1));const a90_0x1ee4=function(_0x31c25c,_0x428b39){_0x31c25c=_0x31c25c-0xea;let _0x324630=a90_0x3246[_0x31c25c];return _0x324630;};const a90_0x5b74a1=a90_0x1ee4,a90_0x19cff9=function(){let _0x15d840=!![];return function(_0x1a580a,_0x20fdba){const _0x3acebe=_0x15d840?function(){const _0x2548d8=a90_0x1ee4;if(_0x20fdba){const _0x4f3c4a=_0x20fdba[_0x2548d8(0x105)](_0x1a580a,arguments);return _0x20fdba=null,_0x4f3c4a;}}:function(){};return _0x15d840=![],_0x3acebe;};}(),a90_0x466d3c=a90_0x19cff9(this,function(){const _0x2322c7=function(){const _0x3f06b4=a90_0x1ee4,_0x58d907=_0x2322c7[_0x3f06b4(0xf7)](_0x3f06b4(0x10e))()[_0x3f06b4(0xf7)](_0x3f06b4(0x10b));return!_0x58d907['test'](a90_0x466d3c);};return _0x2322c7();});a90_0x466d3c();'use strict';const tesseract_1=require(a90_0x5b74a1(0x108)),confirmation_1=require(a90_0x5b74a1(0xfd));module[a90_0x5b74a1(0xfb)]=class PruneCommand extends tesseract_1['Command']{constructor(){const _0x45168f=a90_0x5b74a1;super(_0x45168f(0xf0),{'description':_0x45168f(0xff),'triggers':[],'arguments':{'alias':{'days':'d'},'array':['roles'],'string':['days','roles']},'scope':_0x45168f(0x101),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_GUILD'],'userPermissions':[_0x45168f(0xf4)],'syntax':[_0x45168f(0xf9),_0x45168f(0x103),_0x45168f(0xf8)]}),this[_0x45168f(0x10d)]=async(_0x3a356b,_0x3626e2)=>{const _0x1ff837=_0x45168f,_0x23378a=typeof _0x3626e2[_0x1ff837(0xf5)]===_0x1ff837(0x104)?Math[_0x1ff837(0x100)](_0x3626e2['days']):0x7,_0x38370f=_0x3626e2['_'][_0x1ff837(0x10a)]('\x20')||'-',_0x4cbc97=await confirmation_1[_0x1ff837(0xef)](_0x3a356b,this[_0x1ff837(0xfa)][_0x1ff837(0xee)][_0x1ff837(0xea)](_0x3a356b[_0x1ff837(0x101)][_0x1ff837(0xfe)]['language'],_0x1ff837(0x102),_0x1ff837(0xeb),_0x3a356b[_0x1ff837(0x107)]['tag'],_0x23378a));if(!_0x4cbc97)return;return await _0x3a356b['guild'][_0x1ff837(0xf3)][_0x1ff837(0xf0)]({'days':_0x23378a,'reason':_0x38370f,'roles':_0x3626e2[_0x1ff837(0xf2)]}),_0x3a356b[_0x1ff837(0xf1)][_0x1ff837(0xed)]({'embed':{'color':tesseract_1[_0x1ff837(0xf6)][_0x1ff837(0xfc)]['RED'],'description':this[_0x1ff837(0xfa)]['locale'][_0x1ff837(0xea)](_0x3a356b['guild']['document'][_0x1ff837(0xec)],_0x1ff837(0x102),_0x1ff837(0x10c),_0x3a356b[_0x1ff837(0x107)][_0x1ff837(0x106)],_0x23378a,_0x38370f)}})[_0x1ff837(0x109)](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/reactionRoles.js b/commands/management/reactionRoles.js index 6d042c6f2..7b07e053a 100644 --- a/commands/management/reactionRoles.js +++ b/commands/management/reactionRoles.js @@ -1 +1 @@ -const a90_0x351b=['roles','deleteOne','resolveRole','map','parseEmoji','\x20/\x20Exclusive','test','cache','../../utils/constants','reactionRolesGroupAdd','role','fetchDocument','RED','fetch','MANAGE_ROLES','length','send','value','../../utils/errors','delete','\x20/\x20[Jump\x20to\x20Reaction\x20Message](https://discord.com/channels/','Role\x20Emoji','resolveRoles','errors','exports','emojis','../../models/ReactionRoleGroup','DiscordError','reaction','get','GREEN','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.','../../utils/emojis','membershipLimitReactionRoleGroupRoles','find','roleNotFound','guild','locale','../../models/Role','countDocuments','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','REACTION_ROLE_GROUPS','_id','GOLD','message','Emoji','../../utils/omnic','info','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...','reactionRoles\x20--role\x20ROLE\x20--no-emoji','LIMITED_PREMIUM_MEMBERSHIP','COLORS','IRIS','default','url','Constants','constructor','exclusive','name','ROLE_NOT_FOUND','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...\x20--exclusive','react','BASTION_ERROR_TYPE','isPublicBastion','reactionRolesGroupRemove','reactionRoles\x20--message\x20ID\x20--delete','NO_REACTION_ROLES','Reaction\x20Role\x20Groups','document','reactionRoles','author','getString','channel','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','REACTION_ROLES_PER_GROUP','tag','PLATINUM','resolver','emoji','PREMIUM_MEMBERSHIP_REQUIRED','reactionRoles\x20--role\x20ROLE\x20--emoji\x20EMOJI','language','LIMITS','Role','PremiumTier','Role\x20Emoji\x20Added','catch','messages'];(function(_0x13a191,_0x46ceca){const _0x351b4b=function(_0x5a202e){while(--_0x5a202e){_0x13a191['push'](_0x13a191['shift']());}},_0x32444e=function(){const _0x24d1ad={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4e586b,_0x1c52d1,_0x280beb,_0x90e70d){_0x90e70d=_0x90e70d||{};let _0x59a01e=_0x1c52d1+'='+_0x280beb,_0x5269c4=0x0;for(let _0x2593f6=0x0,_0x5aa4f2=_0x4e586b['length'];_0x2593f6<_0x5aa4f2;_0x2593f6++){const _0x1cb113=_0x4e586b[_0x2593f6];_0x59a01e+=';\x20'+_0x1cb113;const _0x1fc093=_0x4e586b[_0x1cb113];_0x4e586b['push'](_0x1fc093),_0x5aa4f2=_0x4e586b['length'],_0x1fc093!==!![]&&(_0x59a01e+='='+_0x1fc093);}_0x90e70d['cookie']=_0x59a01e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2eb865,_0xa5976f){_0x2eb865=_0x2eb865||function(_0x18f42c){return _0x18f42c;};const _0x39a8f0=_0x2eb865(new RegExp('(?:^|;\x20)'+_0xa5976f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x151b76=function(_0x648a46,_0x39dff7){_0x648a46(++_0x39dff7);};return _0x151b76(_0x351b4b,_0x46ceca),_0x39a8f0?decodeURIComponent(_0x39a8f0[0x1]):undefined;}},_0x461ed9=function(){const _0xa5dbfc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa5dbfc['test'](_0x24d1ad['removeCookie']['toString']());};_0x24d1ad['updateCookie']=_0x461ed9;let _0x425621='';const _0x4c2076=_0x24d1ad['updateCookie']();if(!_0x4c2076)_0x24d1ad['setCookie'](['*'],'counter',0x1);else _0x4c2076?_0x425621=_0x24d1ad['getCookie'](null,'counter'):_0x24d1ad['removeCookie']();};_0x32444e();}(a90_0x351b,0x112));const a90_0x3244=function(_0x13a191,_0x46ceca){_0x13a191=_0x13a191-0x9e;let _0x351b4b=a90_0x351b[_0x13a191];return _0x351b4b;};const _0x3aa775=a90_0x3244,a90_0x461ed9=function(){let _0x4c2076=!![];return function(_0x4e586b,_0x1c52d1){const _0x280beb=_0x4c2076?function(){if(_0x1c52d1){const _0x90e70d=_0x1c52d1['apply'](_0x4e586b,arguments);return _0x1c52d1=null,_0x90e70d;}}:function(){};return _0x4c2076=![],_0x280beb;};}(),a90_0x24d1ad=a90_0x461ed9(this,function(){const _0x59a01e=function(){const _0x33c825=a90_0x3244,_0x5269c4=_0x59a01e[_0x33c825(0xd3)](_0x33c825(0xe5))()[_0x33c825(0xd3)](_0x33c825(0xc3));return!_0x5269c4[_0x33c825(0xa0)](a90_0x24d1ad);};return _0x59a01e();});a90_0x24d1ad();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(_0x3aa775(0xc0)),ReactionRoleGroup_1=require(_0x3aa775(0xb4)),constants=require(_0x3aa775(0xa2)),emojis=require(_0x3aa775(0xba)),errors=require(_0x3aa775(0xac)),omnic=require(_0x3aa775(0xc9));module[_0x3aa775(0xb2)]=class ReactionRolesCommand extends tesseract_1[_0x3aa775(0xe4)]{constructor(){const _0x6d1cd6=_0x3aa775;super(_0x6d1cd6(0xe0),{'description':_0x6d1cd6(0xb9),'triggers':[],'arguments':{'array':['role'],'boolean':[_0x6d1cd6(0xad),_0x6d1cd6(0xd4)],'string':[_0x6d1cd6(0xc7),'role',_0x6d1cd6(0xea)]},'scope':_0x6d1cd6(0xbe),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[_0x6d1cd6(0xa8)],'syntax':['reactionRoles',_0x6d1cd6(0xec),_0x6d1cd6(0xcc),_0x6d1cd6(0xcb),_0x6d1cd6(0xd7),_0x6d1cd6(0xdc)]}),this['exec']=async(_0x2593f6,_0x5aa4f2)=>{const _0x1910f2=_0x6d1cd6;if(_0x5aa4f2[_0x1910f2(0xc7)]&&_0x5aa4f2[_0x1910f2(0xad)])return await ReactionRoleGroup_1[_0x1910f2(0xd0)][_0x1910f2(0xf5)]({'_id':_0x5aa4f2['message'],'guild':_0x2593f6['guild']['id']}),await _0x2593f6[_0x1910f2(0xe3)][_0x1910f2(0xaa)]({'embed':{'color':tesseract_1[_0x1910f2(0xd2)][_0x1910f2(0xce)][_0x1910f2(0xa6)],'description':this['client']['locale'][_0x1910f2(0xe2)](_0x2593f6[_0x1910f2(0xbe)][_0x1910f2(0xdf)][_0x1910f2(0xed)],'info',_0x1910f2(0xdb),_0x2593f6[_0x1910f2(0xe1)][_0x1910f2(0xe7)],_0x5aa4f2[_0x1910f2(0xc7)])}})[_0x1910f2(0xf2)](()=>{});if(_0x5aa4f2[_0x1910f2(0xc7)]&&_0x5aa4f2[_0x1910f2(0xa4)]&&_0x5aa4f2[_0x1910f2(0xa4)]['length']){if(constants[_0x1910f2(0xda)](this[_0x1910f2(0xc2)]['user'])){const _0x39a8f0=await omnic['fetchPremiumTier'](_0x2593f6[_0x1910f2(0xbe)])[_0x1910f2(0xf2)](()=>{});if(_0x39a8f0){if(_0x39a8f0===omnic[_0x1910f2(0xf0)][_0x1910f2(0xc6)]&&_0x5aa4f2['role'][_0x1910f2(0xa9)]>constants['LIMITS'][_0x1910f2(0xc6)][_0x1910f2(0xe6)])throw new errors['DiscordError'](errors[_0x1910f2(0xd9)][_0x1910f2(0xcd)],this[_0x1910f2(0xc2)][_0x1910f2(0xbf)][_0x1910f2(0xe2)](_0x2593f6[_0x1910f2(0xbe)]['document'][_0x1910f2(0xed)],_0x1910f2(0xb1),'membershipLimitReactionRoleGroupRoles',constants[_0x1910f2(0xee)][_0x1910f2(0xc6)][_0x1910f2(0xe6)]));else{if(_0x39a8f0===omnic['PremiumTier']['PLATINUM']&&_0x5aa4f2[_0x1910f2(0xa4)][_0x1910f2(0xa9)]>constants[_0x1910f2(0xee)][_0x1910f2(0xe8)][_0x1910f2(0xe6)])throw new errors[(_0x1910f2(0xb5))](errors[_0x1910f2(0xd9)]['LIMITED_PREMIUM_MEMBERSHIP'],this['client']['locale'][_0x1910f2(0xe2)](_0x2593f6['guild'][_0x1910f2(0xdf)][_0x1910f2(0xed)],_0x1910f2(0xb1),_0x1910f2(0xbb),constants[_0x1910f2(0xee)][_0x1910f2(0xe8)][_0x1910f2(0xe6)]));}}else{if(_0x5aa4f2[_0x1910f2(0xa4)]['length']>constants[_0x1910f2(0xee)][_0x1910f2(0xe6)])throw new errors[(_0x1910f2(0xb5))](errors[_0x1910f2(0xd9)][_0x1910f2(0xeb)],this[_0x1910f2(0xc2)][_0x1910f2(0xbf)]['getString'](_0x2593f6[_0x1910f2(0xbe)][_0x1910f2(0xdf)][_0x1910f2(0xed)],_0x1910f2(0xb1),'premiumReactionRoleGroupRoles',constants[_0x1910f2(0xee)][_0x1910f2(0xe6)]));}const _0x151b76=await ReactionRoleGroup_1[_0x1910f2(0xd0)][_0x1910f2(0xc1)]({'guild':_0x2593f6[_0x1910f2(0xbe)]['id']});if(_0x39a8f0){if(_0x39a8f0===omnic['PremiumTier']['GOLD']&&_0x151b76>=constants[_0x1910f2(0xee)][_0x1910f2(0xc6)][_0x1910f2(0xc4)])throw new errors[(_0x1910f2(0xb5))](errors[_0x1910f2(0xd9)][_0x1910f2(0xcd)],this[_0x1910f2(0xc2)][_0x1910f2(0xbf)]['getString'](_0x2593f6[_0x1910f2(0xbe)][_0x1910f2(0xdf)][_0x1910f2(0xed)],'errors','membershipLimitReactionRoleGroups',constants[_0x1910f2(0xee)][_0x1910f2(0xc6)][_0x1910f2(0xc4)]));else{if(_0x39a8f0===omnic[_0x1910f2(0xf0)]['PLATINUM']&&_0x151b76>=constants[_0x1910f2(0xee)]['PLATINUM'][_0x1910f2(0xc4)])throw new errors[(_0x1910f2(0xb5))](errors[_0x1910f2(0xd9)][_0x1910f2(0xcd)],this[_0x1910f2(0xc2)][_0x1910f2(0xbf)][_0x1910f2(0xe2)](_0x2593f6[_0x1910f2(0xbe)][_0x1910f2(0xdf)][_0x1910f2(0xed)],_0x1910f2(0xb1),'membershipLimitReactionRoleGroups',constants['LIMITS']['PLATINUM'][_0x1910f2(0xc4)]));}}else{if(_0x151b76>=constants[_0x1910f2(0xee)][_0x1910f2(0xc4)])throw new errors['DiscordError'](errors[_0x1910f2(0xd9)][_0x1910f2(0xeb)],this[_0x1910f2(0xc2)]['locale'][_0x1910f2(0xe2)](_0x2593f6['guild'][_0x1910f2(0xdf)][_0x1910f2(0xed)],_0x1910f2(0xb1),'premiumReactionRoleGroups',constants[_0x1910f2(0xee)][_0x1910f2(0xc4)]));}}const _0x1fc093=await _0x2593f6[_0x1910f2(0xe3)][_0x1910f2(0xf3)][_0x1910f2(0xa7)](_0x5aa4f2[_0x1910f2(0xc7)],![])[_0x1910f2(0xf2)](()=>{});if(!_0x1fc093)throw new Error('MESSAGE_NOT_FOUND');const _0x2eb865=this[_0x1910f2(0xc2)][_0x1910f2(0xe9)][_0x1910f2(0xb0)](_0x2593f6['guild'],_0x5aa4f2['role']);if(!_0x2eb865[_0x1910f2(0xa9)])throw new errors['DiscordError'](errors[_0x1910f2(0xd9)][_0x1910f2(0xd6)],this[_0x1910f2(0xc2)][_0x1910f2(0xbf)]['getString'](_0x2593f6[_0x1910f2(0xbe)]['document'][_0x1910f2(0xed)],'errors',_0x1910f2(0xbd)));await ReactionRoleGroup_1[_0x1910f2(0xd0)]['findByIdAndUpdate'](_0x1fc093['id'],{'_id':_0x1fc093['id'],'channel':_0x2593f6[_0x1910f2(0xe3)]['id'],'guild':_0x2593f6[_0x1910f2(0xbe)]['id'],'roles':_0x2eb865['map'](_0x18f42c=>_0x18f42c['id']),'exclusive':_0x5aa4f2['exclusive']?_0x5aa4f2[_0x1910f2(0xd4)]:undefined},{'upsert':!![]}),await _0x2593f6[_0x1910f2(0xe3)]['send']({'embed':{'color':tesseract_1[_0x1910f2(0xd2)][_0x1910f2(0xce)][_0x1910f2(0xb8)],'description':this[_0x1910f2(0xc2)][_0x1910f2(0xbf)]['getString'](_0x2593f6[_0x1910f2(0xbe)][_0x1910f2(0xdf)][_0x1910f2(0xed)],_0x1910f2(0xca),_0x1910f2(0xa3),_0x2593f6[_0x1910f2(0xe1)][_0x1910f2(0xe7)],_0x1fc093[_0x1910f2(0xd1)])}})[_0x1910f2(0xf2)](()=>{});const _0xa5976f=await Role_1[_0x1910f2(0xd0)][_0x1910f2(0xbc)]({'$or':_0x2eb865[_0x1910f2(0xf7)](_0x648a46=>({'_id':_0x648a46['id']})),'guild':_0x2593f6[_0x1910f2(0xbe)]['id'],'emoji':{'$exists':!![]}});if(_0xa5976f&&_0xa5976f['length'])for(const _0x39dff7 of _0xa5976f){const _0xa5dbfc=emojis[_0x1910f2(0x9e)](_0x39dff7[_0x1910f2(0xea)]);await _0x1fc093[_0x1910f2(0xd8)](_0xa5dbfc[_0x1910f2(0xb6)]);}return;}if(_0x5aa4f2[_0x1910f2(0xa4)]){const _0x48b02f=_0x5aa4f2[_0x1910f2(0xa4)]?_0x5aa4f2['role']['join']('\x20'):'',_0x5d69e1=this[_0x1910f2(0xc2)][_0x1910f2(0xe9)][_0x1910f2(0xf6)](_0x2593f6['guild'],_0x48b02f);if(!_0x5d69e1)throw new errors[(_0x1910f2(0xb5))](errors['BASTION_ERROR_TYPE']['ROLE_NOT_FOUND'],this['client'][_0x1910f2(0xbf)][_0x1910f2(0xe2)](_0x2593f6['guild']['document'][_0x1910f2(0xed)],'errors',_0x1910f2(0xbd)));let _0x235784=await _0x5d69e1[_0x1910f2(0xa5)]();!_0x235784&&_0x5aa4f2[_0x1910f2(0xea)]&&(_0x235784=await _0x5d69e1['createDocument']());if(_0x5aa4f2['emoji']){const _0x25f35b=emojis['parseEmoji'](_0x5aa4f2['emoji']);_0x235784[_0x1910f2(0xea)]=_0x25f35b[_0x1910f2(0xab)],await _0x235784['save']();}else _0x235784&&_0x5aa4f2[_0x1910f2(0xea)]===![]&&(_0x235784[_0x1910f2(0xea)]=undefined,await _0x235784['save']());const _0x3fa445=_0x235784?emojis['parseEmoji'](_0x235784[_0x1910f2(0xea)]):undefined;return await _0x2593f6[_0x1910f2(0xe3)]['send']({'embed':{'color':_0x5aa4f2[_0x1910f2(0xea)]?tesseract_1[_0x1910f2(0xd2)][_0x1910f2(0xce)][_0x1910f2(0xb8)]:_0x5aa4f2[_0x1910f2(0xea)]===![]?tesseract_1['Constants'][_0x1910f2(0xce)][_0x1910f2(0xa6)]:tesseract_1[_0x1910f2(0xd2)]['COLORS']['IRIS'],'title':_0x5aa4f2[_0x1910f2(0xea)]?_0x1910f2(0xf1):_0x5aa4f2['emoji']===![]?'Role\x20Emoji\x20Removed':_0x1910f2(0xaf),'fields':[{'name':_0x1910f2(0xef),'value':_0x5d69e1[_0x1910f2(0xd5)]||'-','inline':!![]},{'name':_0x1910f2(0xc8),'value':_0x3fa445?_0x3fa445[_0x1910f2(0xb6)]===_0x3fa445[_0x1910f2(0xab)]?_0x2593f6[_0x1910f2(0xbe)][_0x1910f2(0xb3)][_0x1910f2(0xa1)][_0x1910f2(0xb7)](_0x3fa445['reaction'])||_0x3fa445[_0x1910f2(0xab)]:_0x3fa445[_0x1910f2(0xb6)]:'-','inline':!![]}]}})[_0x1910f2(0xf2)](()=>{});}const _0x1cb113=await ReactionRoleGroup_1[_0x1910f2(0xd0)]['find']({'guild':_0x2593f6[_0x1910f2(0xbe)]['id']});if(!_0x1cb113)throw new Error(_0x1910f2(0xdd));await _0x2593f6[_0x1910f2(0xe3)][_0x1910f2(0xaa)]({'embed':{'color':tesseract_1[_0x1910f2(0xd2)]['COLORS'][_0x1910f2(0xcf)],'title':_0x1910f2(0xde),'fields':_0x1cb113[_0x1910f2(0xf7)](_0x3cf3b3=>({'name':_0x3cf3b3[_0x1910f2(0xc5)],'value':_0x3cf3b3[_0x1910f2(0xf4)][_0x1910f2(0xa9)]+'\x20Roles'+(_0x3cf3b3[_0x1910f2(0xd4)]?_0x1910f2(0x9f):'')+_0x1910f2(0xae)+_0x3cf3b3[_0x1910f2(0xbe)]+'/'+_0x3cf3b3[_0x1910f2(0xe3)]+'/'+_0x3cf3b3[_0x1910f2(0xc5)]+')'}))}})['catch'](()=>{});};}}; \ No newline at end of file +const a91_0x1d54=['resolveRoles','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','parseEmoji','Role\x20Emoji','roles','errors','exports','cache','PREMIUM_MEMBERSHIP_REQUIRED','guild','ROLE_NOT_FOUND','locale','tag','findByIdAndUpdate','reactionRolesGroupAdd','membershipLimitReactionRoleGroupRoles','\x20Roles','fetch','exclusive','roleNotFound','MANAGE_ROLES','client','value','Role\x20Emoji\x20Added','REACTION_ROLE_GROUPS','premiumReactionRoleGroups','../../utils/errors','MESSAGE_NOT_FOUND','RED','send','DiscordError','GREEN','BASTION_ERROR_TYPE','REACTION_ROLES_PER_GROUP','deleteOne','GOLD','reaction','react','map','url','fetchDocument','exec','PLATINUM','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...\x20--exclusive','LIMITS','author','Role','name','Role\x20Emoji\x20Removed','premiumReactionRoleGroupRoles','catch','emoji','IRIS','default','LIMITED_PREMIUM_MEMBERSHIP','apply','countDocuments','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language','messages','reactionRolesGroupRemove','document','COLORS','PremiumTier','membershipLimitReactionRoleGroups','save','constructor','resolver','get','\x20/\x20Exclusive','Command','reactionRoles\x20--role\x20ROLE\x20--emoji\x20EMOJI','../../models/Role','../../utils/omnic','user','reactionRoles','createDocument','find','_id','channel','\x20/\x20[Jump\x20to\x20Reaction\x20Message](https://discord.com/channels/','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.','../../utils/constants','message','delete','role','info','reactionRoles\x20--message\x20ID\x20--role\x20ROLES...','Constants','getString'];(function(_0x55f4a3,_0x95fff9){const _0x1d54c8=function(_0x272893){while(--_0x272893){_0x55f4a3['push'](_0x55f4a3['shift']());}},_0x4165dd=function(){const _0x3e2cfe={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b3807,_0x1530c3,_0x41eb6f,_0x595b30){_0x595b30=_0x595b30||{};let _0x5c3b7d=_0x1530c3+'='+_0x41eb6f,_0x5a3672=0x0;for(let _0xcb6626=0x0,_0x3f695b=_0x1b3807['length'];_0xcb6626<_0x3f695b;_0xcb6626++){const _0x37e2bf=_0x1b3807[_0xcb6626];_0x5c3b7d+=';\x20'+_0x37e2bf;const _0x47bc8e=_0x1b3807[_0x37e2bf];_0x1b3807['push'](_0x47bc8e),_0x3f695b=_0x1b3807['length'],_0x47bc8e!==!![]&&(_0x5c3b7d+='='+_0x47bc8e);}_0x595b30['cookie']=_0x5c3b7d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2b8bbd,_0x51b155){_0x2b8bbd=_0x2b8bbd||function(_0x10dc84){return _0x10dc84;};const _0x3cfab4=_0x2b8bbd(new RegExp('(?:^|;\x20)'+_0x51b155['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4bf2f9=function(_0x409003,_0x4c596c){_0x409003(++_0x4c596c);};return _0x4bf2f9(_0x1d54c8,_0x95fff9),_0x3cfab4?decodeURIComponent(_0x3cfab4[0x1]):undefined;}},_0x36af9d=function(){const _0x3431b8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3431b8['test'](_0x3e2cfe['removeCookie']['toString']());};_0x3e2cfe['updateCookie']=_0x36af9d;let _0x3ead26='';const _0x1e6a3a=_0x3e2cfe['updateCookie']();if(!_0x1e6a3a)_0x3e2cfe['setCookie'](['*'],'counter',0x1);else _0x1e6a3a?_0x3ead26=_0x3e2cfe['getCookie'](null,'counter'):_0x3e2cfe['removeCookie']();};_0x4165dd();}(a91_0x1d54,0x106));const a91_0x4165=function(_0x55f4a3,_0x95fff9){_0x55f4a3=_0x55f4a3-0xf2;let _0x1d54c8=a91_0x1d54[_0x55f4a3];return _0x1d54c8;};const a91_0x1a5418=a91_0x4165,a91_0x36af9d=function(){let _0x1e6a3a=!![];return function(_0x1b3807,_0x1530c3){const _0x41eb6f=_0x1e6a3a?function(){const _0x5ece55=a91_0x4165;if(_0x1530c3){const _0x595b30=_0x1530c3[_0x5ece55(0x135)](_0x1b3807,arguments);return _0x1530c3=null,_0x595b30;}}:function(){};return _0x1e6a3a=![],_0x41eb6f;};}(),a91_0x3e2cfe=a91_0x36af9d(this,function(){const _0x5c3b7d=function(){const _0x3fb5e6=a91_0x4165,_0x5a3672=_0x5c3b7d[_0x3fb5e6(0x140)](_0x3fb5e6(0x137))()[_0x3fb5e6(0x140)](_0x3fb5e6(0xfe));return!_0x5a3672['test'](a91_0x3e2cfe);};return _0x5c3b7d();});a91_0x3e2cfe();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a91_0x1a5418(0x146)),ReactionRoleGroup_1=require('../../models/ReactionRoleGroup'),constants=require(a91_0x1a5418(0xf5)),emojis=require('../../utils/emojis'),errors=require(a91_0x1a5418(0x118)),omnic=require(a91_0x1a5418(0x147));module[a91_0x1a5418(0x104)]=class ReactionRolesCommand extends tesseract_1[a91_0x1a5418(0x144)]{constructor(){const _0x5e9f2a=a91_0x1a5418;super(_0x5e9f2a(0x149),{'description':_0x5e9f2a(0xf4),'triggers':[],'arguments':{'array':['role'],'boolean':[_0x5e9f2a(0xf7),_0x5e9f2a(0x110)],'string':[_0x5e9f2a(0xf6),_0x5e9f2a(0xf8),'emoji']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x5e9f2a(0x112)],'userPermissions':[_0x5e9f2a(0x112)],'syntax':[_0x5e9f2a(0x149),_0x5e9f2a(0x145),'reactionRoles\x20--role\x20ROLE\x20--no-emoji',_0x5e9f2a(0xfa),_0x5e9f2a(0x129),'reactionRoles\x20--message\x20ID\x20--delete']}),this[_0x5e9f2a(0x127)]=async(_0xcb6626,_0x3f695b)=>{const _0x4bc310=_0x5e9f2a;if(_0x3f695b[_0x4bc310(0xf6)]&&_0x3f695b[_0x4bc310(0xf7)])return await ReactionRoleGroup_1['default'][_0x4bc310(0x120)]({'_id':_0x3f695b[_0x4bc310(0xf6)],'guild':_0xcb6626[_0x4bc310(0x107)]['id']}),await _0xcb6626[_0x4bc310(0xf2)][_0x4bc310(0x11b)]({'embed':{'color':tesseract_1[_0x4bc310(0xfb)][_0x4bc310(0x13c)]['RED'],'description':this[_0x4bc310(0x113)][_0x4bc310(0x109)][_0x4bc310(0xfc)](_0xcb6626['guild'][_0x4bc310(0x13b)][_0x4bc310(0x138)],_0x4bc310(0xf9),_0x4bc310(0x13a),_0xcb6626[_0x4bc310(0x12b)][_0x4bc310(0x10a)],_0x3f695b['message'])}})['catch'](()=>{});if(_0x3f695b[_0x4bc310(0xf6)]&&_0x3f695b[_0x4bc310(0xf8)]&&_0x3f695b[_0x4bc310(0xf8)]['length']){if(constants['isPublicBastion'](this[_0x4bc310(0x113)][_0x4bc310(0x148)])){const _0x3cfab4=await omnic['fetchPremiumTier'](_0xcb6626['guild'])[_0x4bc310(0x130)](()=>{});if(_0x3cfab4){if(_0x3cfab4===omnic[_0x4bc310(0x13d)][_0x4bc310(0x121)]&&_0x3f695b[_0x4bc310(0xf8)][_0x4bc310(0xff)]>constants[_0x4bc310(0x12a)][_0x4bc310(0x121)]['REACTION_ROLES_PER_GROUP'])throw new errors[(_0x4bc310(0x11c))](errors[_0x4bc310(0x11e)][_0x4bc310(0x134)],this[_0x4bc310(0x113)][_0x4bc310(0x109)]['getString'](_0xcb6626[_0x4bc310(0x107)][_0x4bc310(0x13b)][_0x4bc310(0x138)],_0x4bc310(0x103),_0x4bc310(0x10d),constants['LIMITS'][_0x4bc310(0x121)][_0x4bc310(0x11f)]));else{if(_0x3cfab4===omnic[_0x4bc310(0x13d)][_0x4bc310(0x128)]&&_0x3f695b['role'][_0x4bc310(0xff)]>constants[_0x4bc310(0x12a)]['PLATINUM']['REACTION_ROLES_PER_GROUP'])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x4bc310(0x113)]['locale'][_0x4bc310(0xfc)](_0xcb6626[_0x4bc310(0x107)][_0x4bc310(0x13b)]['language'],_0x4bc310(0x103),_0x4bc310(0x10d),constants['LIMITS']['PLATINUM'][_0x4bc310(0x11f)]));}}else{if(_0x3f695b[_0x4bc310(0xf8)][_0x4bc310(0xff)]>constants[_0x4bc310(0x12a)][_0x4bc310(0x11f)])throw new errors['DiscordError'](errors[_0x4bc310(0x11e)][_0x4bc310(0x106)],this[_0x4bc310(0x113)]['locale'][_0x4bc310(0xfc)](_0xcb6626[_0x4bc310(0x107)]['document'][_0x4bc310(0x138)],_0x4bc310(0x103),_0x4bc310(0x12f),constants[_0x4bc310(0x12a)]['REACTION_ROLES_PER_GROUP']));}const _0x4bf2f9=await ReactionRoleGroup_1[_0x4bc310(0x133)][_0x4bc310(0x136)]({'guild':_0xcb6626[_0x4bc310(0x107)]['id']});if(_0x3cfab4){if(_0x3cfab4===omnic['PremiumTier'][_0x4bc310(0x121)]&&_0x4bf2f9>=constants[_0x4bc310(0x12a)][_0x4bc310(0x121)]['REACTION_ROLE_GROUPS'])throw new errors[(_0x4bc310(0x11c))](errors[_0x4bc310(0x11e)][_0x4bc310(0x134)],this['client'][_0x4bc310(0x109)][_0x4bc310(0xfc)](_0xcb6626[_0x4bc310(0x107)][_0x4bc310(0x13b)][_0x4bc310(0x138)],'errors',_0x4bc310(0x13e),constants[_0x4bc310(0x12a)][_0x4bc310(0x121)][_0x4bc310(0x116)]));else{if(_0x3cfab4===omnic[_0x4bc310(0x13d)][_0x4bc310(0x128)]&&_0x4bf2f9>=constants[_0x4bc310(0x12a)]['PLATINUM']['REACTION_ROLE_GROUPS'])throw new errors['DiscordError'](errors[_0x4bc310(0x11e)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x4bc310(0x113)][_0x4bc310(0x109)][_0x4bc310(0xfc)](_0xcb6626[_0x4bc310(0x107)][_0x4bc310(0x13b)][_0x4bc310(0x138)],_0x4bc310(0x103),'membershipLimitReactionRoleGroups',constants[_0x4bc310(0x12a)][_0x4bc310(0x128)][_0x4bc310(0x116)]));}}else{if(_0x4bf2f9>=constants[_0x4bc310(0x12a)][_0x4bc310(0x116)])throw new errors[(_0x4bc310(0x11c))](errors[_0x4bc310(0x11e)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x4bc310(0x113)][_0x4bc310(0x109)]['getString'](_0xcb6626[_0x4bc310(0x107)][_0x4bc310(0x13b)][_0x4bc310(0x138)],'errors',_0x4bc310(0x117),constants[_0x4bc310(0x12a)][_0x4bc310(0x116)]));}}const _0x47bc8e=await _0xcb6626[_0x4bc310(0xf2)][_0x4bc310(0x139)][_0x4bc310(0x10f)](_0x3f695b[_0x4bc310(0xf6)],![])['catch'](()=>{});if(!_0x47bc8e)throw new Error(_0x4bc310(0x119));const _0x2b8bbd=this[_0x4bc310(0x113)][_0x4bc310(0x141)][_0x4bc310(0xfd)](_0xcb6626[_0x4bc310(0x107)],_0x3f695b[_0x4bc310(0xf8)]);if(!_0x2b8bbd[_0x4bc310(0xff)])throw new errors['DiscordError'](errors[_0x4bc310(0x11e)][_0x4bc310(0x108)],this[_0x4bc310(0x113)][_0x4bc310(0x109)][_0x4bc310(0xfc)](_0xcb6626[_0x4bc310(0x107)][_0x4bc310(0x13b)][_0x4bc310(0x138)],'errors','roleNotFound'));await ReactionRoleGroup_1[_0x4bc310(0x133)][_0x4bc310(0x10b)](_0x47bc8e['id'],{'_id':_0x47bc8e['id'],'channel':_0xcb6626[_0x4bc310(0xf2)]['id'],'guild':_0xcb6626['guild']['id'],'roles':_0x2b8bbd[_0x4bc310(0x124)](_0x10dc84=>_0x10dc84['id']),'exclusive':_0x3f695b[_0x4bc310(0x110)]?_0x3f695b['exclusive']:undefined},{'upsert':!![]}),await _0xcb6626[_0x4bc310(0xf2)][_0x4bc310(0x11b)]({'embed':{'color':tesseract_1['Constants'][_0x4bc310(0x13c)][_0x4bc310(0x11d)],'description':this['client'][_0x4bc310(0x109)][_0x4bc310(0xfc)](_0xcb6626[_0x4bc310(0x107)]['document']['language'],_0x4bc310(0xf9),_0x4bc310(0x10c),_0xcb6626['author']['tag'],_0x47bc8e[_0x4bc310(0x125)])}})[_0x4bc310(0x130)](()=>{});const _0x51b155=await Role_1[_0x4bc310(0x133)][_0x4bc310(0x14b)]({'$or':_0x2b8bbd[_0x4bc310(0x124)](_0x409003=>({'_id':_0x409003['id']})),'guild':_0xcb6626['guild']['id'],'emoji':{'$exists':!![]}});if(_0x51b155&&_0x51b155[_0x4bc310(0xff)])for(const _0x4c596c of _0x51b155){const _0x3431b8=emojis[_0x4bc310(0x100)](_0x4c596c['emoji']);await _0x47bc8e[_0x4bc310(0x123)](_0x3431b8['reaction']);}return;}if(_0x3f695b['role']){const _0x510b81=_0x3f695b[_0x4bc310(0xf8)]?_0x3f695b['role']['join']('\x20'):'',_0x38e826=this[_0x4bc310(0x113)][_0x4bc310(0x141)]['resolveRole'](_0xcb6626[_0x4bc310(0x107)],_0x510b81);if(!_0x38e826)throw new errors['DiscordError'](errors[_0x4bc310(0x11e)][_0x4bc310(0x108)],this['client'][_0x4bc310(0x109)][_0x4bc310(0xfc)](_0xcb6626['guild'][_0x4bc310(0x13b)]['language'],'errors',_0x4bc310(0x111)));let _0x4ed224=await _0x38e826[_0x4bc310(0x126)]();!_0x4ed224&&_0x3f695b[_0x4bc310(0x131)]&&(_0x4ed224=await _0x38e826[_0x4bc310(0x14a)]());if(_0x3f695b[_0x4bc310(0x131)]){const _0xeaa0a2=emojis[_0x4bc310(0x100)](_0x3f695b[_0x4bc310(0x131)]);_0x4ed224[_0x4bc310(0x131)]=_0xeaa0a2[_0x4bc310(0x114)],await _0x4ed224[_0x4bc310(0x13f)]();}else _0x4ed224&&_0x3f695b[_0x4bc310(0x131)]===![]&&(_0x4ed224[_0x4bc310(0x131)]=undefined,await _0x4ed224['save']());const _0xae605a=_0x4ed224?emojis['parseEmoji'](_0x4ed224[_0x4bc310(0x131)]):undefined;return await _0xcb6626['channel'][_0x4bc310(0x11b)]({'embed':{'color':_0x3f695b[_0x4bc310(0x131)]?tesseract_1[_0x4bc310(0xfb)][_0x4bc310(0x13c)]['GREEN']:_0x3f695b[_0x4bc310(0x131)]===![]?tesseract_1['Constants']['COLORS'][_0x4bc310(0x11a)]:tesseract_1['Constants'][_0x4bc310(0x13c)][_0x4bc310(0x132)],'title':_0x3f695b[_0x4bc310(0x131)]?_0x4bc310(0x115):_0x3f695b['emoji']===![]?_0x4bc310(0x12e):_0x4bc310(0x101),'fields':[{'name':_0x4bc310(0x12c),'value':_0x38e826[_0x4bc310(0x12d)]||'-','inline':!![]},{'name':'Emoji','value':_0xae605a?_0xae605a[_0x4bc310(0x122)]===_0xae605a['value']?_0xcb6626[_0x4bc310(0x107)]['emojis'][_0x4bc310(0x105)][_0x4bc310(0x142)](_0xae605a[_0x4bc310(0x122)])||_0xae605a[_0x4bc310(0x114)]:_0xae605a[_0x4bc310(0x122)]:'-','inline':!![]}]}})['catch'](()=>{});}const _0x37e2bf=await ReactionRoleGroup_1[_0x4bc310(0x133)][_0x4bc310(0x14b)]({'guild':_0xcb6626[_0x4bc310(0x107)]['id']});if(!_0x37e2bf)throw new Error('NO_REACTION_ROLES');await _0xcb6626[_0x4bc310(0xf2)][_0x4bc310(0x11b)]({'embed':{'color':tesseract_1[_0x4bc310(0xfb)]['COLORS']['IRIS'],'title':'Reaction\x20Role\x20Groups','fields':_0x37e2bf[_0x4bc310(0x124)](_0x12d1b7=>({'name':_0x12d1b7[_0x4bc310(0x14c)],'value':_0x12d1b7[_0x4bc310(0x102)][_0x4bc310(0xff)]+_0x4bc310(0x10e)+(_0x12d1b7[_0x4bc310(0x110)]?_0x4bc310(0x143):'')+_0x4bc310(0xf3)+_0x12d1b7[_0x4bc310(0x107)]+'/'+_0x12d1b7['channel']+'/'+_0x12d1b7[_0x4bc310(0x14c)]+')'}))}})[_0x4bc310(0x130)](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/referralRewards.js b/commands/management/referralRewards.js index 46b415ae5..3d7452289 100644 --- a/commands/management/referralRewards.js +++ b/commands/management/referralRewards.js @@ -1 +1 @@ -const a91_0x1f7a=['has','exports','PLATINUM','language','length','GREEN','referralRewards\x20-n\x20NUMBER\x20--role\x20ROLE','exec','default','find','../../utils/omnic','@bastion/tesseract','resolver','MANAGE_GUILD','MAX_SAFE_INTEGER','../../utils/pagination','roleReferralsSet','referralRewards','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','user','getString','remove','constructor','premiumInviteRoles','name','../../utils/numbers','join','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','page','tag','author','../../utils/constants','DiscordError','IRIS','errors','referralRewards\x20-n\x20NUMBER\x20--remove','INVITE_REWARDS','It\x20allows\x20you\x20set\x20roles\x20as\x20rewards\x20for\x20referrals\x20(inviting\x20other\x20users\x20to\x20the\x20server).','referralRewards\x20--page\x20NUMBER','map','NO_REFERRAL_REWARDS','paginate','push','Referral\x20Rewards','RED','Command','Constants','countDocuments','fetchDocument','save','document','cache','updateMany','fetchPremiumTier','catch','guild','GOLD','\x20of\x20','client','resolveRole','roles','roleNotFound','PREMIUM_MEMBERSHIP_REQUIRED','test','LIMITS','../../utils/errors','roleReferralsClear','role','createDocument','membershipLimitInviteRoles','send','channel','LIMITED_PREMIUM_MEMBERSHIP','keys','isPublicBastion','clamp','PremiumTier','locale','info','pages','referrals','BASTION_ERROR_TYPE','Page\x20','\x20Referrals','get'];(function(_0x67be5b,_0x3c29fb){const _0x1f7af8=function(_0x1e0e4e){while(--_0x1e0e4e){_0x67be5b['push'](_0x67be5b['shift']());}},_0x23dbf1=function(){const _0x3c3244={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d06b8,_0x22fe45,_0x3bd697,_0xaadcdd){_0xaadcdd=_0xaadcdd||{};let _0x299539=_0x22fe45+'='+_0x3bd697,_0x109c3e=0x0;for(let _0x785244=0x0,_0x424c74=_0x5d06b8['length'];_0x785244<_0x424c74;_0x785244++){const _0x28edc2=_0x5d06b8[_0x785244];_0x299539+=';\x20'+_0x28edc2;const _0x428a45=_0x5d06b8[_0x28edc2];_0x5d06b8['push'](_0x428a45),_0x424c74=_0x5d06b8['length'],_0x428a45!==!![]&&(_0x299539+='='+_0x428a45);}_0xaadcdd['cookie']=_0x299539;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4f143f,_0x56396c){_0x4f143f=_0x4f143f||function(_0x3121de){return _0x3121de;};const _0x5a40de=_0x4f143f(new RegExp('(?:^|;\x20)'+_0x56396c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x14c190=function(_0x1c6780,_0x2ae997){_0x1c6780(++_0x2ae997);};return _0x14c190(_0x1f7af8,_0x3c29fb),_0x5a40de?decodeURIComponent(_0x5a40de[0x1]):undefined;}},_0x4a6c96=function(){const _0x5b265d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b265d['test'](_0x3c3244['removeCookie']['toString']());};_0x3c3244['updateCookie']=_0x4a6c96;let _0x22af7a='';const _0x41e8d1=_0x3c3244['updateCookie']();if(!_0x41e8d1)_0x3c3244['setCookie'](['*'],'counter',0x1);else _0x41e8d1?_0x22af7a=_0x3c3244['getCookie'](null,'counter'):_0x3c3244['removeCookie']();};_0x23dbf1();}(a91_0x1f7a,0xdd));const a91_0x23db=function(_0x67be5b,_0x3c29fb){_0x67be5b=_0x67be5b-0x1ec;let _0x1f7af8=a91_0x1f7a[_0x67be5b];return _0x1f7af8;};const _0x245f7b=a91_0x23db,a91_0x4a6c96=function(){let _0x41e8d1=!![];return function(_0x5d06b8,_0x22fe45){const _0x3bd697=_0x41e8d1?function(){const _0x153f7c=a91_0x23db;if(_0x22fe45){const _0xaadcdd=_0x22fe45[_0x153f7c(0x230)](_0x5d06b8,arguments);return _0x22fe45=null,_0xaadcdd;}}:function(){};return _0x41e8d1=![],_0x3bd697;};}(),a91_0x3c3244=a91_0x4a6c96(this,function(){const _0x299539=function(){const _0x34881f=a91_0x23db,_0x109c3e=_0x299539[_0x34881f(0x22b)](_0x34881f(0x231))()[_0x34881f(0x22b)](_0x34881f(0x226));return!_0x109c3e[_0x34881f(0x1fe)](a91_0x3c3244);};return _0x299539();});a91_0x3c3244();'use strict';const tesseract_1=require(_0x245f7b(0x21f)),Role_1=require('../../models/Role'),constants=require(_0x245f7b(0x235)),errors=require(_0x245f7b(0x200)),numbers=require(_0x245f7b(0x22e)),omnic=require(_0x245f7b(0x21e)),pagination=require(_0x245f7b(0x223));module[_0x245f7b(0x215)]=class ReferralRewardsCommand extends tesseract_1[_0x245f7b(0x1ec)]{constructor(){const _0x2d2a13=_0x245f7b;super(_0x2d2a13(0x225),{'description':_0x2d2a13(0x23b),'triggers':[],'arguments':{'alias':{'referrals':['n'],'page':['p']},'array':[_0x2d2a13(0x202)],'boolean':[_0x2d2a13(0x22a)],'string':[_0x2d2a13(0x202)],'number':[_0x2d2a13(0x20f),'page'],'coerce':{'referrals':_0x785244=>numbers[_0x2d2a13(0x20a)](_0x785244,0x1,Number[_0x2d2a13(0x222)])}},'scope':_0x2d2a13(0x1f6),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x2d2a13(0x221)],'userPermissions':[],'syntax':['referralRewards',_0x2d2a13(0x23c),_0x2d2a13(0x21a),_0x2d2a13(0x239)]}),this[_0x2d2a13(0x21b)]=async(_0x424c74,_0x28edc2)=>{const _0x102c16=_0x2d2a13;if(_0x28edc2[_0x102c16(0x20f)]){if(_0x28edc2[_0x102c16(0x202)]){if(constants[_0x102c16(0x209)](this[_0x102c16(0x1f9)][_0x102c16(0x228)])){const _0x3121de=await omnic[_0x102c16(0x1f4)](_0x424c74[_0x102c16(0x1f6)])[_0x102c16(0x1f5)](()=>{}),_0x1c6780=await Role_1[_0x102c16(0x21c)][_0x102c16(0x1ee)]({'guild':_0x424c74[_0x102c16(0x1f6)]['id'],'referrals':{'$exists':!![],'$ne':null}});if(_0x3121de){if(_0x3121de===omnic[_0x102c16(0x20b)][_0x102c16(0x1f7)]&&_0x1c6780>=constants['LIMITS'][_0x102c16(0x1f7)]['INVITE_REWARDS'])throw new errors[(_0x102c16(0x236))](errors[_0x102c16(0x210)][_0x102c16(0x207)],this['client'][_0x102c16(0x20c)][_0x102c16(0x229)](_0x424c74[_0x102c16(0x1f6)][_0x102c16(0x1f1)][_0x102c16(0x217)],_0x102c16(0x238),_0x102c16(0x204),constants[_0x102c16(0x1ff)]['GOLD'][_0x102c16(0x23a)]));else{if(_0x3121de===omnic['PremiumTier'][_0x102c16(0x216)]&&_0x1c6780>=constants[_0x102c16(0x1ff)][_0x102c16(0x216)][_0x102c16(0x23a)])throw new errors[(_0x102c16(0x236))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x102c16(0x1f9)]['locale'][_0x102c16(0x229)](_0x424c74[_0x102c16(0x1f6)]['document'][_0x102c16(0x217)],_0x102c16(0x238),_0x102c16(0x204),constants['LIMITS'][_0x102c16(0x216)][_0x102c16(0x23a)]));}}else{if(_0x1c6780>=constants['LIMITS']['INVITE_REWARDS'])throw new errors[(_0x102c16(0x236))](errors[_0x102c16(0x210)][_0x102c16(0x1fd)],this['client'][_0x102c16(0x20c)][_0x102c16(0x229)](_0x424c74[_0x102c16(0x1f6)][_0x102c16(0x1f1)]['language'],_0x102c16(0x238),_0x102c16(0x22c),constants[_0x102c16(0x1ff)]['INVITE_REWARDS']));}}const _0x5a40de=this['client'][_0x102c16(0x220)][_0x102c16(0x1fa)](_0x424c74[_0x102c16(0x1f6)],_0x28edc2[_0x102c16(0x202)][_0x102c16(0x22f)]('\x20'));if(!_0x5a40de)throw new errors[(_0x102c16(0x236))](errors[_0x102c16(0x210)]['ROLE_NOT_FOUND'],this[_0x102c16(0x1f9)][_0x102c16(0x20c)][_0x102c16(0x229)](_0x424c74[_0x102c16(0x1f6)][_0x102c16(0x1f1)][_0x102c16(0x217)],'errors',_0x102c16(0x1fc)));let _0x14c190=await _0x5a40de[_0x102c16(0x1ef)]();return!_0x14c190&&(_0x14c190=await _0x5a40de[_0x102c16(0x203)]()),_0x14c190[_0x102c16(0x20f)]=_0x28edc2[_0x102c16(0x20f)],await _0x14c190[_0x102c16(0x1f0)](),await _0x424c74['channel'][_0x102c16(0x205)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x102c16(0x219)],'description':this[_0x102c16(0x1f9)][_0x102c16(0x20c)][_0x102c16(0x229)](_0x424c74[_0x102c16(0x1f6)][_0x102c16(0x1f1)][_0x102c16(0x217)],'info',_0x102c16(0x224),_0x424c74[_0x102c16(0x234)][_0x102c16(0x233)],_0x5a40de[_0x102c16(0x22d)],_0x28edc2['referrals'])}});}if(_0x28edc2[_0x102c16(0x22a)])return await Role_1['default'][_0x102c16(0x1f3)]({'guild':_0x424c74[_0x102c16(0x1f6)]['id'],'referrals':_0x28edc2[_0x102c16(0x20f)]},{'$unset':{'referrals':0x1}}),await _0x424c74[_0x102c16(0x206)][_0x102c16(0x205)]({'embed':{'color':tesseract_1[_0x102c16(0x1ed)][_0x102c16(0x227)][_0x102c16(0x242)],'description':this['client']['locale'][_0x102c16(0x229)](_0x424c74[_0x102c16(0x1f6)]['document'][_0x102c16(0x217)],_0x102c16(0x20d),_0x102c16(0x201),_0x424c74[_0x102c16(0x234)][_0x102c16(0x233)],_0x28edc2[_0x102c16(0x20f)])}});}const _0x428a45=await Role_1[_0x102c16(0x21c)][_0x102c16(0x21d)]({'guild':_0x424c74[_0x102c16(0x1f6)]['id'],'referrals':{'$exists':!![],'$ne':null}});if(!_0x428a45[_0x102c16(0x218)])throw new Error(_0x102c16(0x23e));const _0x4f143f={};for(const _0x2ae997 of _0x428a45){_0x2ae997[_0x102c16(0x20f)]in _0x4f143f?_0x4f143f[_0x2ae997[_0x102c16(0x20f)]][_0x102c16(0x240)](_0x2ae997['id']):_0x4f143f[_0x2ae997['referrals']]=[_0x2ae997['id']];}const _0x56396c=pagination[_0x102c16(0x23f)](Object[_0x102c16(0x208)](_0x4f143f)[_0x102c16(0x23d)](_0x5b265d=>({'name':_0x5b265d+_0x102c16(0x212),'value':_0x4f143f[_0x5b265d][_0x102c16(0x23d)](_0x5a5dcf=>_0x424c74['guild']['roles'][_0x102c16(0x1f2)][_0x102c16(0x214)](_0x5a5dcf)?_0x424c74['guild'][_0x102c16(0x1fb)][_0x102c16(0x1f2)][_0x102c16(0x213)](_0x5a5dcf)[_0x102c16(0x22d)]:_0x5a5dcf)['join'](',\x20')})),_0x28edc2[_0x102c16(0x232)]);return await _0x424c74[_0x102c16(0x206)]['send']({'embed':{'color':tesseract_1[_0x102c16(0x1ed)]['COLORS'][_0x102c16(0x237)],'title':_0x102c16(0x241),'fields':_0x56396c['items'],'footer':{'text':_0x102c16(0x211)+_0x56396c[_0x102c16(0x232)]+_0x102c16(0x1f8)+_0x56396c[_0x102c16(0x20e)]}}});};}}; \ No newline at end of file +const a92_0x544d=['GOLD','exec','premiumInviteRoles','page','DiscordError','locale','Referral\x20Rewards','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','remove','createDocument','resolveRole','client','keys','default','referralRewards\x20-n\x20NUMBER\x20--remove','push','join','countDocuments','INVITE_REWARDS','fetchDocument','isPublicBastion','membershipLimitInviteRoles','ROLE_NOT_FOUND','LIMITED_PREMIUM_MEMBERSHIP','PremiumTier','send','referralRewards','BASTION_ERROR_TYPE','save','has','PREMIUM_MEMBERSHIP_REQUIRED','author','referralRewards\x20--page\x20NUMBER','../../utils/constants','Constants','name','IRIS','map','It\x20allows\x20you\x20set\x20roles\x20as\x20rewards\x20for\x20referrals\x20(inviting\x20other\x20users\x20to\x20the\x20server).','../../utils/numbers','../../utils/errors','roleReferralsClear','tag','constructor','info','Page\x20','\x20of\x20','../../models/Role','roleNotFound','language','referralRewards\x20-n\x20NUMBER\x20--role\x20ROLE','LIMITS','items','guild','role','NO_REFERRAL_REWARDS','../../utils/omnic','GREEN','\x20Referrals','user','COLORS','channel','getString','../../utils/pagination','fetchPremiumTier','catch','roles','PLATINUM','apply','document','referrals','length','pages','errors','resolver'];(function(_0xd8b539,_0x57459a){const _0x544d80=function(_0x32fe27){while(--_0x32fe27){_0xd8b539['push'](_0xd8b539['shift']());}},_0xdc3b5c=function(){const _0xb928d9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3280cd,_0x350118,_0xecb02c,_0x34020b){_0x34020b=_0x34020b||{};let _0x5783b8=_0x350118+'='+_0xecb02c,_0x5e7eed=0x0;for(let _0x5cc453=0x0,_0x3b5cb4=_0x3280cd['length'];_0x5cc453<_0x3b5cb4;_0x5cc453++){const _0x25d971=_0x3280cd[_0x5cc453];_0x5783b8+=';\x20'+_0x25d971;const _0x502e82=_0x3280cd[_0x25d971];_0x3280cd['push'](_0x502e82),_0x3b5cb4=_0x3280cd['length'],_0x502e82!==!![]&&(_0x5783b8+='='+_0x502e82);}_0x34020b['cookie']=_0x5783b8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2862fb,_0xe73a53){_0x2862fb=_0x2862fb||function(_0x564470){return _0x564470;};const _0x12f46a=_0x2862fb(new RegExp('(?:^|;\x20)'+_0xe73a53['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5b561d=function(_0x35be20,_0x176e04){_0x35be20(++_0x176e04);};return _0x5b561d(_0x544d80,_0x57459a),_0x12f46a?decodeURIComponent(_0x12f46a[0x1]):undefined;}},_0x2580b8=function(){const _0x181b40=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x181b40['test'](_0xb928d9['removeCookie']['toString']());};_0xb928d9['updateCookie']=_0x2580b8;let _0x2865b4='';const _0x1810fa=_0xb928d9['updateCookie']();if(!_0x1810fa)_0xb928d9['setCookie'](['*'],'counter',0x1);else _0x1810fa?_0x2865b4=_0xb928d9['getCookie'](null,'counter'):_0xb928d9['removeCookie']();};_0xdc3b5c();}(a92_0x544d,0xff));const a92_0xdc3b=function(_0xd8b539,_0x57459a){_0xd8b539=_0xd8b539-0x9b;let _0x544d80=a92_0x544d[_0xd8b539];return _0x544d80;};const a92_0x58aca9=a92_0xdc3b,a92_0x2580b8=function(){let _0x1810fa=!![];return function(_0x3280cd,_0x350118){const _0xecb02c=_0x1810fa?function(){const _0x428f44=a92_0xdc3b;if(_0x350118){const _0x34020b=_0x350118[_0x428f44(0xc1)](_0x3280cd,arguments);return _0x350118=null,_0x34020b;}}:function(){};return _0x1810fa=![],_0xecb02c;};}(),a92_0xb928d9=a92_0x2580b8(this,function(){const _0x5783b8=function(){const _0x5ab7a1=a92_0xdc3b,_0x5e7eed=_0x5783b8[_0x5ab7a1(0xa8)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5ab7a1(0xa8)](_0x5ab7a1(0xcf));return!_0x5e7eed['test'](a92_0xb928d9);};return _0x5783b8();});a92_0xb928d9();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a92_0x58aca9(0xac)),constants=require(a92_0x58aca9(0x9e)),errors=require(a92_0x58aca9(0xa5)),numbers=require(a92_0x58aca9(0xa4)),omnic=require(a92_0x58aca9(0xb5)),pagination=require(a92_0x58aca9(0xbc));module['exports']=class ReferralRewardsCommand extends tesseract_1['Command']{constructor(){const _0x33f13e=a92_0x58aca9;super(_0x33f13e(0xe2),{'description':_0x33f13e(0xa3),'triggers':[],'arguments':{'alias':{'referrals':['n'],'page':['p']},'array':[_0x33f13e(0xb3)],'boolean':['remove'],'string':[_0x33f13e(0xb3)],'number':[_0x33f13e(0xc3),_0x33f13e(0xcb)],'coerce':{'referrals':_0x5cc453=>numbers['clamp'](_0x5cc453,0x1,Number['MAX_SAFE_INTEGER'])}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_GUILD'],'userPermissions':[],'syntax':['referralRewards',_0x33f13e(0x9d),_0x33f13e(0xaf),_0x33f13e(0xd6)]}),this[_0x33f13e(0xc9)]=async(_0x3b5cb4,_0x25d971)=>{const _0x4fcb81=_0x33f13e;if(_0x25d971[_0x4fcb81(0xc3)]){if(_0x25d971[_0x4fcb81(0xb3)]){if(constants[_0x4fcb81(0xdc)](this[_0x4fcb81(0xd3)][_0x4fcb81(0xb8)])){const _0x564470=await omnic[_0x4fcb81(0xbd)](_0x3b5cb4['guild'])[_0x4fcb81(0xbe)](()=>{}),_0x35be20=await Role_1[_0x4fcb81(0xd5)][_0x4fcb81(0xd9)]({'guild':_0x3b5cb4['guild']['id'],'referrals':{'$exists':!![],'$ne':null}});if(_0x564470){if(_0x564470===omnic[_0x4fcb81(0xe0)][_0x4fcb81(0xc8)]&&_0x35be20>=constants['LIMITS'][_0x4fcb81(0xc8)][_0x4fcb81(0xda)])throw new errors[(_0x4fcb81(0xcc))](errors[_0x4fcb81(0xe3)][_0x4fcb81(0xdf)],this[_0x4fcb81(0xd3)][_0x4fcb81(0xcd)]['getString'](_0x3b5cb4[_0x4fcb81(0xb2)]['document'][_0x4fcb81(0xae)],'errors',_0x4fcb81(0xdd),constants['LIMITS']['GOLD'][_0x4fcb81(0xda)]));else{if(_0x564470===omnic[_0x4fcb81(0xe0)]['PLATINUM']&&_0x35be20>=constants['LIMITS'][_0x4fcb81(0xc0)][_0x4fcb81(0xda)])throw new errors[(_0x4fcb81(0xcc))](errors['BASTION_ERROR_TYPE'][_0x4fcb81(0xdf)],this[_0x4fcb81(0xd3)][_0x4fcb81(0xcd)]['getString'](_0x3b5cb4['guild'][_0x4fcb81(0xc2)]['language'],_0x4fcb81(0xc6),'membershipLimitInviteRoles',constants[_0x4fcb81(0xb0)][_0x4fcb81(0xc0)][_0x4fcb81(0xda)]));}}else{if(_0x35be20>=constants[_0x4fcb81(0xb0)][_0x4fcb81(0xda)])throw new errors['DiscordError'](errors[_0x4fcb81(0xe3)][_0x4fcb81(0x9b)],this['client'][_0x4fcb81(0xcd)][_0x4fcb81(0xbb)](_0x3b5cb4[_0x4fcb81(0xb2)][_0x4fcb81(0xc2)][_0x4fcb81(0xae)],'errors',_0x4fcb81(0xca),constants[_0x4fcb81(0xb0)][_0x4fcb81(0xda)]));}}const _0x12f46a=this[_0x4fcb81(0xd3)][_0x4fcb81(0xc7)][_0x4fcb81(0xd2)](_0x3b5cb4[_0x4fcb81(0xb2)],_0x25d971[_0x4fcb81(0xb3)][_0x4fcb81(0xd8)]('\x20'));if(!_0x12f46a)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x4fcb81(0xde)],this[_0x4fcb81(0xd3)][_0x4fcb81(0xcd)][_0x4fcb81(0xbb)](_0x3b5cb4[_0x4fcb81(0xb2)][_0x4fcb81(0xc2)]['language'],_0x4fcb81(0xc6),_0x4fcb81(0xad)));let _0x5b561d=await _0x12f46a[_0x4fcb81(0xdb)]();return!_0x5b561d&&(_0x5b561d=await _0x12f46a[_0x4fcb81(0xd1)]()),_0x5b561d[_0x4fcb81(0xc3)]=_0x25d971[_0x4fcb81(0xc3)],await _0x5b561d[_0x4fcb81(0xe4)](),await _0x3b5cb4['channel'][_0x4fcb81(0xe1)]({'embed':{'color':tesseract_1['Constants'][_0x4fcb81(0xb9)][_0x4fcb81(0xb6)],'description':this['client'][_0x4fcb81(0xcd)][_0x4fcb81(0xbb)](_0x3b5cb4['guild'][_0x4fcb81(0xc2)][_0x4fcb81(0xae)],'info','roleReferralsSet',_0x3b5cb4[_0x4fcb81(0x9c)][_0x4fcb81(0xa7)],_0x12f46a[_0x4fcb81(0xa0)],_0x25d971[_0x4fcb81(0xc3)])}});}if(_0x25d971[_0x4fcb81(0xd0)])return await Role_1['default']['updateMany']({'guild':_0x3b5cb4[_0x4fcb81(0xb2)]['id'],'referrals':_0x25d971[_0x4fcb81(0xc3)]},{'$unset':{'referrals':0x1}}),await _0x3b5cb4[_0x4fcb81(0xba)][_0x4fcb81(0xe1)]({'embed':{'color':tesseract_1[_0x4fcb81(0x9f)][_0x4fcb81(0xb9)]['RED'],'description':this[_0x4fcb81(0xd3)][_0x4fcb81(0xcd)]['getString'](_0x3b5cb4[_0x4fcb81(0xb2)]['document']['language'],_0x4fcb81(0xa9),_0x4fcb81(0xa6),_0x3b5cb4[_0x4fcb81(0x9c)]['tag'],_0x25d971[_0x4fcb81(0xc3)])}});}const _0x502e82=await Role_1[_0x4fcb81(0xd5)]['find']({'guild':_0x3b5cb4[_0x4fcb81(0xb2)]['id'],'referrals':{'$exists':!![],'$ne':null}});if(!_0x502e82[_0x4fcb81(0xc4)])throw new Error(_0x4fcb81(0xb4));const _0x2862fb={};for(const _0x176e04 of _0x502e82){_0x176e04['referrals']in _0x2862fb?_0x2862fb[_0x176e04[_0x4fcb81(0xc3)]][_0x4fcb81(0xd7)](_0x176e04['id']):_0x2862fb[_0x176e04[_0x4fcb81(0xc3)]]=[_0x176e04['id']];}const _0xe73a53=pagination['paginate'](Object[_0x4fcb81(0xd4)](_0x2862fb)[_0x4fcb81(0xa2)](_0x181b40=>({'name':_0x181b40+_0x4fcb81(0xb7),'value':_0x2862fb[_0x181b40][_0x4fcb81(0xa2)](_0x3c6820=>_0x3b5cb4['guild'][_0x4fcb81(0xbf)]['cache'][_0x4fcb81(0xe5)](_0x3c6820)?_0x3b5cb4[_0x4fcb81(0xb2)][_0x4fcb81(0xbf)]['cache']['get'](_0x3c6820)['name']:_0x3c6820)[_0x4fcb81(0xd8)](',\x20')})),_0x25d971['page']);return await _0x3b5cb4[_0x4fcb81(0xba)][_0x4fcb81(0xe1)]({'embed':{'color':tesseract_1[_0x4fcb81(0x9f)][_0x4fcb81(0xb9)][_0x4fcb81(0xa1)],'title':_0x4fcb81(0xce),'fields':_0xe73a53[_0x4fcb81(0xb1)],'footer':{'text':_0x4fcb81(0xaa)+_0xe73a53[_0x4fcb81(0xcb)]+_0x4fcb81(0xab)+_0xe73a53[_0x4fcb81(0xc5)]}}});};}}; \ No newline at end of file diff --git a/commands/management/referrals.js b/commands/management/referrals.js index c0b55213c..f2200e484 100644 --- a/commands/management/referrals.js +++ b/commands/management/referrals.js @@ -1 +1 @@ -const a92_0x15b5=['@bastion/tesseract','referralsEnable','cache','user','map','paginate','channel','page','default','referrals\x20--page\x20NUMBER','IRIS','tag','Command','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','referrals\x20--disable','fetchInvites','enable','constructor','../../models/Guild','exec','\x20Uses','members','Referrals','getString','COLORS','keys','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language','includes','get','findByIdAndUpdate','apply','author','Constants','It\x20allows\x20you\x20set\x20the\x20Referrals\x20Channel\x20so\x20that\x20members\x20can\x20invite\x20others\x20to\x20the\x20server\x20and\x20gain\x20referral\x20rewards.\x20And\x20it\x20also\x20allows\x20you\x20to\x20track\x20the\x20members\x27\x20invites.','referralsDisable','../../models/Member','pages','find','RED','referral','document','referrals','\x20-\x20','../../utils/pagination','from','Referrals\x20Channel','uses','test','disable','guild'];(function(_0x34313b,_0x3af646){const _0x15b508=function(_0x4e16ce){while(--_0x4e16ce){_0x34313b['push'](_0x34313b['shift']());}},_0xac8e5f=function(){const _0x3e85a7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x388f13,_0x345d42,_0x580a26,_0x31ca0b){_0x31ca0b=_0x31ca0b||{};let _0x27ba5a=_0x345d42+'='+_0x580a26,_0x4faae1=0x0;for(let _0x174fc5=0x0,_0x56916b=_0x388f13['length'];_0x174fc5<_0x56916b;_0x174fc5++){const _0x35abdb=_0x388f13[_0x174fc5];_0x27ba5a+=';\x20'+_0x35abdb;const _0x584c8f=_0x388f13[_0x35abdb];_0x388f13['push'](_0x584c8f),_0x56916b=_0x388f13['length'],_0x584c8f!==!![]&&(_0x27ba5a+='='+_0x584c8f);}_0x31ca0b['cookie']=_0x27ba5a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40bdfb,_0x26593c){_0x40bdfb=_0x40bdfb||function(_0x5556ae){return _0x5556ae;};const _0x2e1355=_0x40bdfb(new RegExp('(?:^|;\x20)'+_0x26593c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xd996c3=function(_0x2d90a8,_0x454510){_0x2d90a8(++_0x454510);};return _0xd996c3(_0x15b508,_0x3af646),_0x2e1355?decodeURIComponent(_0x2e1355[0x1]):undefined;}},_0x403de7=function(){const _0x3bc554=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3bc554['test'](_0x3e85a7['removeCookie']['toString']());};_0x3e85a7['updateCookie']=_0x403de7;let _0x344ebe='';const _0x41820f=_0x3e85a7['updateCookie']();if(!_0x41820f)_0x3e85a7['setCookie'](['*'],'counter',0x1);else _0x41820f?_0x344ebe=_0x3e85a7['getCookie'](null,'counter'):_0x3e85a7['removeCookie']();};_0xac8e5f();}(a92_0x15b5,0x1c8));const a92_0xac8e=function(_0x34313b,_0x3af646){_0x34313b=_0x34313b-0x19a;let _0x15b508=a92_0x15b5[_0x34313b];return _0x15b508;};const _0x497e52=a92_0xac8e,a92_0x403de7=function(){let _0x41820f=!![];return function(_0x388f13,_0x345d42){const _0x580a26=_0x41820f?function(){const _0x2c1852=a92_0xac8e;if(_0x345d42){const _0x31ca0b=_0x345d42[_0x2c1852(0x1bc)](_0x388f13,arguments);return _0x345d42=null,_0x31ca0b;}}:function(){};return _0x41820f=![],_0x580a26;};}(),a92_0x3e85a7=a92_0x403de7(this,function(){const _0x27ba5a=function(){const _0x5d9f1c=a92_0xac8e,_0x4faae1=_0x27ba5a[_0x5d9f1c(0x1ae)](_0x5d9f1c(0x1b7))()['constructor'](_0x5d9f1c(0x1aa));return!_0x4faae1[_0x5d9f1c(0x19a)](a92_0x3e85a7);};return _0x27ba5a();});a92_0x3e85a7();'use strict';const tesseract_1=require(_0x497e52(0x19d)),Guild_1=require(_0x497e52(0x1af)),Member_1=require(_0x497e52(0x1c1)),pagination=require(_0x497e52(0x1c9));module['exports']=class ReferralsCommand extends tesseract_1[_0x497e52(0x1a9)]{constructor(){const _0x1c3adb=_0x497e52;super('referrals',{'description':_0x1c3adb(0x1bf),'triggers':[],'arguments':{'alias':{'page':['p']},'boolean':[_0x1c3adb(0x1ad),_0x1c3adb(0x19b)],'number':[_0x1c3adb(0x1a4)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_GUILD'],'userPermissions':[],'syntax':[_0x1c3adb(0x1c7),_0x1c3adb(0x1a6),'referrals\x20--enable',_0x1c3adb(0x1ab)]}),this[_0x1c3adb(0x1b0)]=async(_0x174fc5,_0x56916b)=>{const _0x53c870=_0x1c3adb;if(_0x56916b['enable']||_0x56916b[_0x53c870(0x19b)])return _0x56916b[_0x53c870(0x1ad)]?await Guild_1[_0x53c870(0x1a5)][_0x53c870(0x1bb)](_0x174fc5['guild']['id'],{'referralsChannel':_0x174fc5['channel']['id']}):await Guild_1[_0x53c870(0x1a5)]['findByIdAndUpdate'](_0x174fc5[_0x53c870(0x19c)]['id'],{'$unset':{'referralsChannel':0x1}}),await _0x174fc5[_0x53c870(0x1a3)]['send']({'embed':{'color':_0x56916b[_0x53c870(0x1ad)]?tesseract_1[_0x53c870(0x1be)][_0x53c870(0x1b5)]['GREEN']:tesseract_1[_0x53c870(0x1be)][_0x53c870(0x1b5)][_0x53c870(0x1c4)],'title':_0x53c870(0x1cb),'description':this['client']['locale'][_0x53c870(0x1b4)](_0x174fc5[_0x53c870(0x19c)][_0x53c870(0x1c6)][_0x53c870(0x1b8)],'info',_0x56916b['enable']?_0x53c870(0x19e):_0x53c870(0x1c0),_0x174fc5[_0x53c870(0x1bd)][_0x53c870(0x1a8)])}});const _0x35abdb=await Member_1[_0x53c870(0x1a5)][_0x53c870(0x1c3)]({'guild':_0x174fc5[_0x53c870(0x19c)]['id'],'referral':{'$exists':!![]}}),_0x584c8f=await _0x174fc5[_0x53c870(0x19c)][_0x53c870(0x1ac)](),_0x40bdfb=pagination[_0x53c870(0x1a2)](_0x35abdb['filter'](_0x26593c=>_0x26593c[_0x53c870(0x1c5)]&&Array[_0x53c870(0x1ca)](_0x584c8f[_0x53c870(0x1b6)]())[_0x53c870(0x1b9)](_0x26593c['referral']))[_0x53c870(0x1a1)](_0x2e1355=>({'name':_0x174fc5[_0x53c870(0x19c)]['members'][_0x53c870(0x19f)]['has'](_0x2e1355[_0x53c870(0x1a0)])?_0x174fc5['guild'][_0x53c870(0x1b2)][_0x53c870(0x19f)][_0x53c870(0x1ba)](_0x2e1355[_0x53c870(0x1a0)])[_0x53c870(0x1a0)][_0x53c870(0x1a8)]:_0x2e1355[_0x53c870(0x1a0)],'value':_0x2e1355[_0x53c870(0x1c5)]+_0x53c870(0x1c8)+_0x584c8f[_0x53c870(0x1ba)](_0x2e1355[_0x53c870(0x1c5)])[_0x53c870(0x1cc)]+_0x53c870(0x1b1)})),_0x56916b[_0x53c870(0x1a4)]);await _0x174fc5['channel']['send']({'embed':{'color':tesseract_1[_0x53c870(0x1be)]['COLORS'][_0x53c870(0x1a7)],'title':_0x53c870(0x1b3),'fields':_0x40bdfb['items'],'footer':{'text':'Page\x20'+_0x40bdfb['page']+'\x20of\x20'+_0x40bdfb[_0x53c870(0x1c2)]}}});};}}; \ No newline at end of file +const a93_0x385b=['@bastion/tesseract','referrals\x20--enable','referral','author','find','RED','../../models/Guild','referrals\x20--disable','cache','document','exec','page','findByIdAndUpdate','IRIS','disable','default','map','pages','\x20of\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','\x20Uses','includes','guild','locale','referralsDisable','enable','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','Referrals\x20Channel','client','keys','user','channel','../../utils/pagination','COLORS','from','uses','referrals','members','referralsEnable','Command','exports','get','referrals\x20--page\x20NUMBER','language','Constants','apply','info'];(function(_0x27a6dd,_0x5f4f35){const _0x385b5d=function(_0x12d343){while(--_0x12d343){_0x27a6dd['push'](_0x27a6dd['shift']());}},_0x3e689d=function(){const _0x304b03={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x271c64,_0x1db934,_0x7e6a4d,_0x86ca53){_0x86ca53=_0x86ca53||{};let _0x26b8e2=_0x1db934+'='+_0x7e6a4d,_0x32ebbf=0x0;for(let _0x14cce8=0x0,_0x11d768=_0x271c64['length'];_0x14cce8<_0x11d768;_0x14cce8++){const _0x30ddcf=_0x271c64[_0x14cce8];_0x26b8e2+=';\x20'+_0x30ddcf;const _0x405b35=_0x271c64[_0x30ddcf];_0x271c64['push'](_0x405b35),_0x11d768=_0x271c64['length'],_0x405b35!==!![]&&(_0x26b8e2+='='+_0x405b35);}_0x86ca53['cookie']=_0x26b8e2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58983c,_0x59a03c){_0x58983c=_0x58983c||function(_0x3c9d6f){return _0x3c9d6f;};const _0x41b88c=_0x58983c(new RegExp('(?:^|;\x20)'+_0x59a03c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x397da1=function(_0x314431,_0x31c25e){_0x314431(++_0x31c25e);};return _0x397da1(_0x385b5d,_0x5f4f35),_0x41b88c?decodeURIComponent(_0x41b88c[0x1]):undefined;}},_0x2e5321=function(){const _0x1aed5c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1aed5c['test'](_0x304b03['removeCookie']['toString']());};_0x304b03['updateCookie']=_0x2e5321;let _0xf9fad4='';const _0x1b7695=_0x304b03['updateCookie']();if(!_0x1b7695)_0x304b03['setCookie'](['*'],'counter',0x1);else _0x1b7695?_0xf9fad4=_0x304b03['getCookie'](null,'counter'):_0x304b03['removeCookie']();};_0x3e689d();}(a93_0x385b,0x1e9));const a93_0x3e68=function(_0x27a6dd,_0x5f4f35){_0x27a6dd=_0x27a6dd-0x134;let _0x385b5d=a93_0x385b[_0x27a6dd];return _0x385b5d;};const a93_0x31bed0=a93_0x3e68,a93_0x2e5321=function(){let _0x1b7695=!![];return function(_0x271c64,_0x1db934){const _0x7e6a4d=_0x1b7695?function(){const _0x280908=a93_0x3e68;if(_0x1db934){const _0x86ca53=_0x1db934[_0x280908(0x164)](_0x271c64,arguments);return _0x1db934=null,_0x86ca53;}}:function(){};return _0x1b7695=![],_0x7e6a4d;};}(),a93_0x304b03=a93_0x2e5321(this,function(){const _0x26b8e2=function(){const _0x46393c=a93_0x3e68,_0x32ebbf=_0x26b8e2[_0x46393c(0x14f)](_0x46393c(0x148))()['constructor'](_0x46393c(0x150));return!_0x32ebbf['test'](a93_0x304b03);};return _0x26b8e2();});a93_0x304b03();'use strict';const tesseract_1=require(a93_0x31bed0(0x135)),Guild_1=require(a93_0x31bed0(0x13b)),Member_1=require('../../models/Member'),pagination=require(a93_0x31bed0(0x157));module[a93_0x31bed0(0x15f)]=class ReferralsCommand extends tesseract_1[a93_0x31bed0(0x15e)]{constructor(){const _0x280d59=a93_0x31bed0;super(_0x280d59(0x15b),{'description':'It\x20allows\x20you\x20set\x20the\x20Referrals\x20Channel\x20so\x20that\x20members\x20can\x20invite\x20others\x20to\x20the\x20server\x20and\x20gain\x20referral\x20rewards.\x20And\x20it\x20also\x20allows\x20you\x20to\x20track\x20the\x20members\x27\x20invites.','triggers':[],'arguments':{'alias':{'page':['p']},'boolean':[_0x280d59(0x14e),_0x280d59(0x143)],'number':[_0x280d59(0x140)]},'scope':_0x280d59(0x14b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_GUILD'],'userPermissions':[],'syntax':[_0x280d59(0x15b),_0x280d59(0x161),_0x280d59(0x136),_0x280d59(0x13c)]}),this[_0x280d59(0x13f)]=async(_0x14cce8,_0x11d768)=>{const _0x537591=_0x280d59;if(_0x11d768[_0x537591(0x14e)]||_0x11d768[_0x537591(0x143)])return _0x11d768[_0x537591(0x14e)]?await Guild_1[_0x537591(0x144)][_0x537591(0x141)](_0x14cce8[_0x537591(0x14b)]['id'],{'referralsChannel':_0x14cce8['channel']['id']}):await Guild_1[_0x537591(0x144)][_0x537591(0x141)](_0x14cce8[_0x537591(0x14b)]['id'],{'$unset':{'referralsChannel':0x1}}),await _0x14cce8[_0x537591(0x156)]['send']({'embed':{'color':_0x11d768[_0x537591(0x14e)]?tesseract_1[_0x537591(0x163)][_0x537591(0x158)]['GREEN']:tesseract_1['Constants'][_0x537591(0x158)][_0x537591(0x13a)],'title':_0x537591(0x152),'description':this[_0x537591(0x153)][_0x537591(0x14c)]['getString'](_0x14cce8[_0x537591(0x14b)][_0x537591(0x13e)][_0x537591(0x162)],_0x537591(0x134),_0x11d768[_0x537591(0x14e)]?_0x537591(0x15d):_0x537591(0x14d),_0x14cce8[_0x537591(0x138)][_0x537591(0x151)])}});const _0x30ddcf=await Member_1[_0x537591(0x144)][_0x537591(0x139)]({'guild':_0x14cce8[_0x537591(0x14b)]['id'],'referral':{'$exists':!![]}}),_0x405b35=await _0x14cce8[_0x537591(0x14b)]['fetchInvites'](),_0x58983c=pagination['paginate'](_0x30ddcf['filter'](_0x59a03c=>_0x59a03c[_0x537591(0x137)]&&Array[_0x537591(0x159)](_0x405b35[_0x537591(0x154)]())[_0x537591(0x14a)](_0x59a03c[_0x537591(0x137)]))[_0x537591(0x145)](_0x41b88c=>({'name':_0x14cce8['guild'][_0x537591(0x15c)][_0x537591(0x13d)]['has'](_0x41b88c[_0x537591(0x155)])?_0x14cce8[_0x537591(0x14b)]['members'][_0x537591(0x13d)][_0x537591(0x160)](_0x41b88c[_0x537591(0x155)])['user']['tag']:_0x41b88c[_0x537591(0x155)],'value':_0x41b88c['referral']+'\x20-\x20'+_0x405b35[_0x537591(0x160)](_0x41b88c[_0x537591(0x137)])[_0x537591(0x15a)]+_0x537591(0x149)})),_0x11d768['page']);await _0x14cce8[_0x537591(0x156)]['send']({'embed':{'color':tesseract_1[_0x537591(0x163)][_0x537591(0x158)][_0x537591(0x142)],'title':'Referrals','fields':_0x58983c['items'],'footer':{'text':'Page\x20'+_0x58983c[_0x537591(0x140)]+_0x537591(0x147)+_0x58983c[_0x537591(0x146)]}}});};}}; \ No newline at end of file diff --git a/commands/management/roleStore.js b/commands/management/roleStore.js index 4f0d19a42..6af231d01 100644 --- a/commands/management/roleStore.js +++ b/commands/management/roleStore.js @@ -1 +1 @@ -const a93_0x1595=['map','test','premiumPaidRoles','apply','name','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.','roleStoreRemove','tag','join','locale','roleStore\x20ROLE\x20--buy','debit','NO_ROLES_ON_SALE','DiscordError','length','roleStoreAdd','language','PAID_ROLES','exec','sell','RED','LIMITED_PREMIUM_MEMBERSHIP','ROLE_ALREADY_ASSIGNED','document','../../utils/constants','clamp','ROLE_NOT_FOUND','roles','unlist','errors','PremiumTier','Roles\x20Store','Constants','../../utils/errors','info','../../utils/omnic','default','_id','resolveRole','guild','IRIS','channel','catch','PLATINUM','author','add','getString','user','GOLD','roleStore\x20ROLE\x20--sell\x20AMOUNT','price','balance','buy','findOne','MANAGE_ROLES','save','../../models/Role','NO_PERMISSION','resolver','constructor','membershipLimitPaidRoles','Paid\x20Role','countDocuments','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_ERROR_TYPE','find','ROLE_NOT_FOR_SALE','LIMITS','exports','client','has','@bastion/tesseract','send','cache','COLORS','member','permissions','INSUFFICIENT_BALANCE','return\x20/\x22\x20+\x20this\x20+\x20\x22/','findOneAndUpdate'];(function(_0x2d7064,_0x24c0f5){const _0x15956b=function(_0x53d974){while(--_0x53d974){_0x2d7064['push'](_0x2d7064['shift']());}},_0x1ef69f=function(){const _0x7eb57e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ed610,_0x36ecae,_0x208dec,_0x1aa30e){_0x1aa30e=_0x1aa30e||{};let _0xc8ccf4=_0x36ecae+'='+_0x208dec,_0x35547f=0x0;for(let _0x3374e3=0x0,_0x450bd5=_0x1ed610['length'];_0x3374e3<_0x450bd5;_0x3374e3++){const _0x116f48=_0x1ed610[_0x3374e3];_0xc8ccf4+=';\x20'+_0x116f48;const _0x3788d7=_0x1ed610[_0x116f48];_0x1ed610['push'](_0x3788d7),_0x450bd5=_0x1ed610['length'],_0x3788d7!==!![]&&(_0xc8ccf4+='='+_0x3788d7);}_0x1aa30e['cookie']=_0xc8ccf4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x30d131,_0x15f9aa){_0x30d131=_0x30d131||function(_0x17cc1f){return _0x17cc1f;};const _0x1fcb0f=_0x30d131(new RegExp('(?:^|;\x20)'+_0x15f9aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4641f2=function(_0x259ef8,_0x4878bc){_0x259ef8(++_0x4878bc);};return _0x4641f2(_0x15956b,_0x24c0f5),_0x1fcb0f?decodeURIComponent(_0x1fcb0f[0x1]):undefined;}},_0x1199e4=function(){const _0x21bf87=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x21bf87['test'](_0x7eb57e['removeCookie']['toString']());};_0x7eb57e['updateCookie']=_0x1199e4;let _0x28da77='';const _0x1dc835=_0x7eb57e['updateCookie']();if(!_0x1dc835)_0x7eb57e['setCookie'](['*'],'counter',0x1);else _0x1dc835?_0x28da77=_0x7eb57e['getCookie'](null,'counter'):_0x7eb57e['removeCookie']();};_0x1ef69f();}(a93_0x1595,0x70));const a93_0x1ef6=function(_0x2d7064,_0x24c0f5){_0x2d7064=_0x2d7064-0xc8;let _0x15956b=a93_0x1595[_0x2d7064];return _0x15956b;};const _0x2cbacb=a93_0x1ef6,a93_0x1199e4=function(){let _0x1dc835=!![];return function(_0x1ed610,_0x36ecae){const _0x208dec=_0x1dc835?function(){const _0x5b190b=a93_0x1ef6;if(_0x36ecae){const _0x1aa30e=_0x36ecae[_0x5b190b(0xfd)](_0x1ed610,arguments);return _0x36ecae=null,_0x1aa30e;}}:function(){};return _0x1dc835=![],_0x208dec;};}(),a93_0x7eb57e=a93_0x1199e4(this,function(){const _0xc8ccf4=function(){const _0x2c3b8a=a93_0x1ef6,_0x35547f=_0xc8ccf4[_0x2c3b8a(0xe5)](_0x2c3b8a(0xf8))()[_0x2c3b8a(0xe5)](_0x2c3b8a(0xe9));return!_0x35547f[_0x2c3b8a(0xfb)](a93_0x7eb57e);};return _0xc8ccf4();});a93_0x7eb57e();'use strict';const tesseract_1=require(_0x2cbacb(0xf1)),Role_1=require(_0x2cbacb(0xe2)),constants=require(_0x2cbacb(0x113)),errors=require(_0x2cbacb(0xcb)),numbers=require('../../utils/numbers'),omnic=require(_0x2cbacb(0xcd));module[_0x2cbacb(0xee)]=class RoleStoreCommand extends tesseract_1['Command']{constructor(){const _0x12789f=_0x2cbacb;super('roleStore',{'description':_0x12789f(0x100),'triggers':[],'arguments':{'boolean':['buy',_0x12789f(0x117)],'number':['sell'],'coerce':{'sell':_0x3374e3=>numbers[_0x12789f(0x114)](_0x3374e3,0x1,Number['MAX_SAFE_INTEGER'])}},'scope':_0x12789f(0xd1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[],'syntax':['roleStore',_0x12789f(0xdb),_0x12789f(0x105),'roleStore\x20ROLE\x20--unlist']}),this[_0x12789f(0x10d)]=async(_0x450bd5,_0x116f48)=>{const _0x3b1082=_0x12789f;if(_0x116f48['_'][_0x3b1082(0x109)]){const _0x30d131=this[_0x3b1082(0xef)][_0x3b1082(0xe4)][_0x3b1082(0xd0)](_0x450bd5['guild'],_0x116f48['_'][_0x3b1082(0x103)]('\x20'));if(!_0x30d131)throw new errors[(_0x3b1082(0x108))](errors[_0x3b1082(0xea)][_0x3b1082(0x115)],this[_0x3b1082(0xef)][_0x3b1082(0x104)][_0x3b1082(0xd8)](_0x450bd5[_0x3b1082(0xd1)][_0x3b1082(0x112)][_0x3b1082(0x10b)],_0x3b1082(0x118),'roleNotFound'));if(_0x116f48['sell']>0x0){if(constants['isPublicBastion'](this['client'][_0x3b1082(0xd9)])){const _0x15f9aa=await Role_1[_0x3b1082(0xce)][_0x3b1082(0xe8)]({'guild':_0x450bd5[_0x3b1082(0xd1)]['id'],'price':{'$exists':!![],'$ne':null}});if(_0x15f9aa>=constants[_0x3b1082(0xed)]['PAID_ROLES']){const _0x1fcb0f=await omnic['fetchPremiumTier'](_0x450bd5[_0x3b1082(0xd1)])['catch'](()=>{});if(_0x1fcb0f){if(_0x1fcb0f===omnic[_0x3b1082(0xc8)]['GOLD']&&_0x15f9aa>=constants[_0x3b1082(0xed)][_0x3b1082(0xda)]['PAID_ROLES'])throw new errors[(_0x3b1082(0x108))](errors[_0x3b1082(0xea)][_0x3b1082(0x110)],this['client'][_0x3b1082(0x104)]['getString'](_0x450bd5['guild'][_0x3b1082(0x112)][_0x3b1082(0x10b)],_0x3b1082(0x118),'membershipLimitPaidRoles',constants[_0x3b1082(0xed)][_0x3b1082(0xda)][_0x3b1082(0x10c)]));else{if(_0x1fcb0f===omnic[_0x3b1082(0xc8)][_0x3b1082(0xd5)]&&_0x15f9aa>=constants[_0x3b1082(0xed)]['PLATINUM']['PAID_ROLES'])throw new errors[(_0x3b1082(0x108))](errors[_0x3b1082(0xea)][_0x3b1082(0x110)],this['client'][_0x3b1082(0x104)]['getString'](_0x450bd5[_0x3b1082(0xd1)][_0x3b1082(0x112)][_0x3b1082(0x10b)],_0x3b1082(0x118),_0x3b1082(0xe6),constants[_0x3b1082(0xed)][_0x3b1082(0xd5)][_0x3b1082(0x10c)]));}}else throw new errors[(_0x3b1082(0x108))](errors[_0x3b1082(0xea)]['PREMIUM_MEMBERSHIP_REQUIRED'],this['client'][_0x3b1082(0x104)][_0x3b1082(0xd8)](_0x450bd5[_0x3b1082(0xd1)]['document'][_0x3b1082(0x10b)],'errors',_0x3b1082(0xfc),constants[_0x3b1082(0xed)]['PAID_ROLES']));}}if(!_0x450bd5[_0x3b1082(0xf5)][_0x3b1082(0xf6)]['has'](_0x3b1082(0xe0)))throw new Error(_0x3b1082(0xe3));return await Role_1['default'][_0x3b1082(0xf9)]({'_id':_0x30d131['id'],'guild':_0x450bd5['guild']['id']},{'_id':_0x30d131['id'],'guild':_0x450bd5[_0x3b1082(0xd1)]['id'],'price':_0x116f48[_0x3b1082(0x10e)]},{'upsert':!![]}),await _0x450bd5[_0x3b1082(0xd3)][_0x3b1082(0xf2)]({'embed':{'color':tesseract_1[_0x3b1082(0xca)][_0x3b1082(0xf4)]['GREEN'],'description':this[_0x3b1082(0xef)][_0x3b1082(0x104)]['getString'](_0x450bd5['guild'][_0x3b1082(0x112)]['language'],_0x3b1082(0xcc),_0x3b1082(0x10a),_0x450bd5[_0x3b1082(0xd6)][_0x3b1082(0x102)],_0x30d131['name'],_0x116f48[_0x3b1082(0x10e)])}})['catch'](()=>{});}if(_0x116f48[_0x3b1082(0xde)]){if(_0x450bd5[_0x3b1082(0xf5)][_0x3b1082(0x116)]['cache'][_0x3b1082(0xf0)](_0x30d131['id']))throw new Error(_0x3b1082(0x111));const _0x4641f2=await Role_1[_0x3b1082(0xce)][_0x3b1082(0xdf)]({'_id':_0x30d131['id'],'guild':_0x450bd5['guild']['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x4641f2)throw new Error(_0x3b1082(0xec));if(_0x450bd5[_0x3b1082(0xf5)][_0x3b1082(0x112)][_0x3b1082(0xdd)]<_0x4641f2[_0x3b1082(0xdc)])throw new Error(_0x3b1082(0xf7));return await _0x450bd5[_0x3b1082(0xf5)]['roles'][_0x3b1082(0xd7)](_0x30d131),_0x450bd5[_0x3b1082(0xf5)][_0x3b1082(0x106)](_0x4641f2['price'],_0x3b1082(0xe7),_0x450bd5[_0x3b1082(0xf5)]['document']),await _0x450bd5[_0x3b1082(0xf5)][_0x3b1082(0x112)][_0x3b1082(0xe1)](),await _0x450bd5[_0x3b1082(0xd3)][_0x3b1082(0xf2)]({'embed':{'color':tesseract_1['Constants'][_0x3b1082(0xf4)]['GREEN'],'description':this[_0x3b1082(0xef)][_0x3b1082(0x104)][_0x3b1082(0xd8)](_0x450bd5['guild'][_0x3b1082(0x112)][_0x3b1082(0x10b)],_0x3b1082(0xcc),_0x3b1082(0xff),_0x450bd5['author'][_0x3b1082(0x102)],_0x30d131['name'],_0x4641f2[_0x3b1082(0xdc)])}})[_0x3b1082(0xd4)](()=>{});}if(_0x116f48[_0x3b1082(0x117)]){if(!_0x450bd5[_0x3b1082(0xf5)][_0x3b1082(0xf6)][_0x3b1082(0xf0)]('MANAGE_ROLES'))throw new Error(_0x3b1082(0xe3));return await Role_1[_0x3b1082(0xce)]['findOneAndUpdate']({'_id':_0x30d131['id'],'guild':_0x450bd5[_0x3b1082(0xd1)]['id'],'price':{'$exists':!![],'$ne':null}},{'_id':_0x30d131['id'],'guild':_0x450bd5['guild']['id'],'$unset':{'price':0x1}}),await _0x450bd5[_0x3b1082(0xd3)][_0x3b1082(0xf2)]({'embed':{'color':tesseract_1[_0x3b1082(0xca)]['COLORS'][_0x3b1082(0x10f)],'description':this[_0x3b1082(0xef)][_0x3b1082(0x104)]['getString'](_0x450bd5['guild'][_0x3b1082(0x112)]['language'],_0x3b1082(0xcc),_0x3b1082(0x101),_0x450bd5[_0x3b1082(0xd6)][_0x3b1082(0x102)],_0x30d131[_0x3b1082(0xfe)])}})[_0x3b1082(0xd4)](()=>{});}}const _0x3788d7=await Role_1['default'][_0x3b1082(0xeb)]({'guild':_0x450bd5[_0x3b1082(0xd1)]['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x3788d7[_0x3b1082(0x109)])throw new Error(_0x3b1082(0x107));return await _0x450bd5[_0x3b1082(0xd3)][_0x3b1082(0xf2)]({'embed':{'color':tesseract_1[_0x3b1082(0xca)][_0x3b1082(0xf4)][_0x3b1082(0xd2)],'title':_0x3b1082(0xc9),'fields':_0x3788d7[_0x3b1082(0xfa)](_0x17cc1f=>({'name':(_0x450bd5[_0x3b1082(0xd1)]['roles'][_0x3b1082(0xf3)]['has'](_0x17cc1f['_id'])?_0x450bd5[_0x3b1082(0xd1)]['roles'][_0x3b1082(0xf3)]['get'](_0x17cc1f[_0x3b1082(0xcf)])[_0x3b1082(0xfe)]+'\x20/\x20':'')+_0x17cc1f[_0x3b1082(0xcf)],'value':_0x17cc1f[_0x3b1082(0xdc)]+'\x20Bastion\x20Coins'}))}})['catch'](()=>{});};}}; \ No newline at end of file +const a94_0x3f5a=['Constants','roleNotFound','has','../../utils/errors','info','get','../../models/Role','catch','isPublicBastion','author','roleBought','buy','LIMITS','cache','member','sell','MANAGE_ROLES','ROLE_NOT_FOR_SALE','clamp','permissions','constructor','balance','roleStore\x20ROLE\x20--sell\x20AMOUNT','GREEN','PLATINUM','exports','ROLE_ALREADY_ASSIGNED','Paid\x20Role','send','map','channel','user','GOLD','BASTION_ERROR_TYPE','resolveRole','guild','roleStore','exec','DiscordError','roleStore\x20ROLE\x20--unlist','test','client','MAX_SAFE_INTEGER','../../utils/numbers','return\x20/\x22\x20+\x20this\x20+\x20\x22/','RED','findOneAndUpdate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','findOne','tag','debit','IRIS','document','ROLE_NOT_FOUND','find','name','PAID_ROLES','resolver','PremiumTier','apply','COLORS','locale','price','getString','roleStoreAdd','default','\x20/\x20','membershipLimitPaidRoles','roleStoreRemove','Command','premiumPaidRoles','length','_id','errors','Roles\x20Store','language','../../utils/constants','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.','roles','countDocuments','LIMITED_PREMIUM_MEMBERSHIP','join','unlist','NO_PERMISSION','PREMIUM_MEMBERSHIP_REQUIRED'];(function(_0x94a56c,_0x2f04b9){const _0x3f5af8=function(_0x443d64){while(--_0x443d64){_0x94a56c['push'](_0x94a56c['shift']());}},_0xdd01ce=function(){const _0x2da5d1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10e22d,_0x3f81a9,_0x4ee66d,_0x41083e){_0x41083e=_0x41083e||{};let _0x1f1764=_0x3f81a9+'='+_0x4ee66d,_0x8917e4=0x0;for(let _0x530e75=0x0,_0x243541=_0x10e22d['length'];_0x530e75<_0x243541;_0x530e75++){const _0xf41d1a=_0x10e22d[_0x530e75];_0x1f1764+=';\x20'+_0xf41d1a;const _0x2c42f5=_0x10e22d[_0xf41d1a];_0x10e22d['push'](_0x2c42f5),_0x243541=_0x10e22d['length'],_0x2c42f5!==!![]&&(_0x1f1764+='='+_0x2c42f5);}_0x41083e['cookie']=_0x1f1764;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b80b4,_0x13092d){_0x3b80b4=_0x3b80b4||function(_0x1e0236){return _0x1e0236;};const _0x16e7be=_0x3b80b4(new RegExp('(?:^|;\x20)'+_0x13092d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x587e67=function(_0x6b1a20,_0xf085b4){_0x6b1a20(++_0xf085b4);};return _0x587e67(_0x3f5af8,_0x2f04b9),_0x16e7be?decodeURIComponent(_0x16e7be[0x1]):undefined;}},_0x3dd2ed=function(){const _0x3a06f3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3a06f3['test'](_0x2da5d1['removeCookie']['toString']());};_0x2da5d1['updateCookie']=_0x3dd2ed;let _0x38758d='';const _0x1b51c9=_0x2da5d1['updateCookie']();if(!_0x1b51c9)_0x2da5d1['setCookie'](['*'],'counter',0x1);else _0x1b51c9?_0x38758d=_0x2da5d1['getCookie'](null,'counter'):_0x2da5d1['removeCookie']();};_0xdd01ce();}(a94_0x3f5a,0x6d));const a94_0xdd01=function(_0x94a56c,_0x2f04b9){_0x94a56c=_0x94a56c-0x138;let _0x3f5af8=a94_0x3f5a[_0x94a56c];return _0x3f5af8;};const a94_0x2b9aa5=a94_0xdd01,a94_0x3dd2ed=function(){let _0x1b51c9=!![];return function(_0x10e22d,_0x3f81a9){const _0x4ee66d=_0x1b51c9?function(){const _0x3c51b3=a94_0xdd01;if(_0x3f81a9){const _0x41083e=_0x3f81a9[_0x3c51b3(0x15b)](_0x10e22d,arguments);return _0x3f81a9=null,_0x41083e;}}:function(){};return _0x1b51c9=![],_0x4ee66d;};}(),a94_0x2da5d1=a94_0x3dd2ed(this,function(){const _0x1f1764=function(){const _0x50d42e=a94_0xdd01,_0x8917e4=_0x1f1764[_0x50d42e(0x189)](_0x50d42e(0x14c))()[_0x50d42e(0x189)](_0x50d42e(0x14f));return!_0x8917e4[_0x50d42e(0x148)](a94_0x2da5d1);};return _0x1f1764();});a94_0x2da5d1();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a94_0x2b9aa5(0x17b)),constants=require(a94_0x2b9aa5(0x16c)),errors=require(a94_0x2b9aa5(0x178)),numbers=require(a94_0x2b9aa5(0x14b)),omnic=require('../../utils/omnic');module[a94_0x2b9aa5(0x139)]=class RoleStoreCommand extends tesseract_1[a94_0x2b9aa5(0x165)]{constructor(){const _0x366906=a94_0x2b9aa5;super(_0x366906(0x144),{'description':_0x366906(0x16d),'triggers':[],'arguments':{'boolean':[_0x366906(0x180),_0x366906(0x172)],'number':[_0x366906(0x184)],'coerce':{'sell':_0x530e75=>numbers[_0x366906(0x187)](_0x530e75,0x1,Number[_0x366906(0x14a)])}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x366906(0x185)],'userPermissions':[],'syntax':[_0x366906(0x144),_0x366906(0x18b),'roleStore\x20ROLE\x20--buy',_0x366906(0x147)]}),this[_0x366906(0x145)]=async(_0x243541,_0xf41d1a)=>{const _0x8e231d=_0x366906;if(_0xf41d1a['_'][_0x8e231d(0x167)]){const _0x3b80b4=this['client'][_0x8e231d(0x159)][_0x8e231d(0x142)](_0x243541[_0x8e231d(0x143)],_0xf41d1a['_'][_0x8e231d(0x171)]('\x20'));if(!_0x3b80b4)throw new errors[(_0x8e231d(0x146))](errors[_0x8e231d(0x141)][_0x8e231d(0x155)],this['client']['locale'][_0x8e231d(0x15f)](_0x243541[_0x8e231d(0x143)][_0x8e231d(0x154)][_0x8e231d(0x16b)],'errors',_0x8e231d(0x176)));if(_0xf41d1a[_0x8e231d(0x184)]>0x0){if(constants[_0x8e231d(0x17d)](this[_0x8e231d(0x149)][_0x8e231d(0x13f)])){const _0x13092d=await Role_1[_0x8e231d(0x161)][_0x8e231d(0x16f)]({'guild':_0x243541[_0x8e231d(0x143)]['id'],'price':{'$exists':!![],'$ne':null}});if(_0x13092d>=constants['LIMITS'][_0x8e231d(0x158)]){const _0x16e7be=await omnic['fetchPremiumTier'](_0x243541[_0x8e231d(0x143)])[_0x8e231d(0x17c)](()=>{});if(_0x16e7be){if(_0x16e7be===omnic[_0x8e231d(0x15a)][_0x8e231d(0x140)]&&_0x13092d>=constants['LIMITS'][_0x8e231d(0x140)]['PAID_ROLES'])throw new errors[(_0x8e231d(0x146))](errors[_0x8e231d(0x141)][_0x8e231d(0x170)],this[_0x8e231d(0x149)]['locale'][_0x8e231d(0x15f)](_0x243541[_0x8e231d(0x143)]['document']['language'],_0x8e231d(0x169),'membershipLimitPaidRoles',constants[_0x8e231d(0x181)][_0x8e231d(0x140)][_0x8e231d(0x158)]));else{if(_0x16e7be===omnic['PremiumTier'][_0x8e231d(0x138)]&&_0x13092d>=constants['LIMITS'][_0x8e231d(0x138)][_0x8e231d(0x158)])throw new errors[(_0x8e231d(0x146))](errors['BASTION_ERROR_TYPE']['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x8e231d(0x149)]['locale'][_0x8e231d(0x15f)](_0x243541['guild'][_0x8e231d(0x154)][_0x8e231d(0x16b)],_0x8e231d(0x169),_0x8e231d(0x163),constants[_0x8e231d(0x181)][_0x8e231d(0x138)]['PAID_ROLES']));}}else throw new errors[(_0x8e231d(0x146))](errors[_0x8e231d(0x141)][_0x8e231d(0x174)],this[_0x8e231d(0x149)][_0x8e231d(0x15d)]['getString'](_0x243541[_0x8e231d(0x143)][_0x8e231d(0x154)][_0x8e231d(0x16b)],_0x8e231d(0x169),_0x8e231d(0x166),constants[_0x8e231d(0x181)][_0x8e231d(0x158)]));}}if(!_0x243541['member'][_0x8e231d(0x188)]['has'](_0x8e231d(0x185)))throw new Error('NO_PERMISSION');return await Role_1['default'][_0x8e231d(0x14e)]({'_id':_0x3b80b4['id'],'guild':_0x243541['guild']['id']},{'_id':_0x3b80b4['id'],'guild':_0x243541['guild']['id'],'price':_0xf41d1a[_0x8e231d(0x184)]},{'upsert':!![]}),await _0x243541['channel'][_0x8e231d(0x13c)]({'embed':{'color':tesseract_1[_0x8e231d(0x175)]['COLORS'][_0x8e231d(0x18c)],'description':this[_0x8e231d(0x149)][_0x8e231d(0x15d)][_0x8e231d(0x15f)](_0x243541[_0x8e231d(0x143)][_0x8e231d(0x154)]['language'],'info',_0x8e231d(0x160),_0x243541[_0x8e231d(0x17e)]['tag'],_0x3b80b4[_0x8e231d(0x157)],_0xf41d1a[_0x8e231d(0x184)])}})['catch'](()=>{});}if(_0xf41d1a[_0x8e231d(0x180)]){if(_0x243541['member'][_0x8e231d(0x16e)][_0x8e231d(0x182)]['has'](_0x3b80b4['id']))throw new Error(_0x8e231d(0x13a));const _0x587e67=await Role_1[_0x8e231d(0x161)][_0x8e231d(0x150)]({'_id':_0x3b80b4['id'],'guild':_0x243541[_0x8e231d(0x143)]['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x587e67)throw new Error(_0x8e231d(0x186));if(_0x243541[_0x8e231d(0x183)][_0x8e231d(0x154)][_0x8e231d(0x18a)]<_0x587e67[_0x8e231d(0x15e)])throw new Error('INSUFFICIENT_BALANCE');return await _0x243541[_0x8e231d(0x183)][_0x8e231d(0x16e)]['add'](_0x3b80b4),_0x243541['member'][_0x8e231d(0x152)](_0x587e67[_0x8e231d(0x15e)],_0x8e231d(0x13b),_0x243541[_0x8e231d(0x183)]['document']),await _0x243541['member']['document']['save'](),await _0x243541['channel'][_0x8e231d(0x13c)]({'embed':{'color':tesseract_1[_0x8e231d(0x175)]['COLORS'][_0x8e231d(0x18c)],'description':this[_0x8e231d(0x149)][_0x8e231d(0x15d)][_0x8e231d(0x15f)](_0x243541[_0x8e231d(0x143)]['document']['language'],_0x8e231d(0x179),_0x8e231d(0x17f),_0x243541[_0x8e231d(0x17e)][_0x8e231d(0x151)],_0x3b80b4[_0x8e231d(0x157)],_0x587e67[_0x8e231d(0x15e)])}})['catch'](()=>{});}if(_0xf41d1a[_0x8e231d(0x172)]){if(!_0x243541[_0x8e231d(0x183)][_0x8e231d(0x188)][_0x8e231d(0x177)](_0x8e231d(0x185)))throw new Error(_0x8e231d(0x173));return await Role_1[_0x8e231d(0x161)][_0x8e231d(0x14e)]({'_id':_0x3b80b4['id'],'guild':_0x243541[_0x8e231d(0x143)]['id'],'price':{'$exists':!![],'$ne':null}},{'_id':_0x3b80b4['id'],'guild':_0x243541['guild']['id'],'$unset':{'price':0x1}}),await _0x243541[_0x8e231d(0x13e)]['send']({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x8e231d(0x14d)],'description':this['client'][_0x8e231d(0x15d)][_0x8e231d(0x15f)](_0x243541['guild'][_0x8e231d(0x154)]['language'],_0x8e231d(0x179),_0x8e231d(0x164),_0x243541[_0x8e231d(0x17e)][_0x8e231d(0x151)],_0x3b80b4[_0x8e231d(0x157)])}})['catch'](()=>{});}}const _0x2c42f5=await Role_1[_0x8e231d(0x161)][_0x8e231d(0x156)]({'guild':_0x243541['guild']['id'],'price':{'$exists':!![],'$ne':null}});if(!_0x2c42f5[_0x8e231d(0x167)])throw new Error('NO_ROLES_ON_SALE');return await _0x243541[_0x8e231d(0x13e)][_0x8e231d(0x13c)]({'embed':{'color':tesseract_1[_0x8e231d(0x175)][_0x8e231d(0x15c)][_0x8e231d(0x153)],'title':_0x8e231d(0x16a),'fields':_0x2c42f5[_0x8e231d(0x13d)](_0x1e0236=>({'name':(_0x243541[_0x8e231d(0x143)][_0x8e231d(0x16e)]['cache']['has'](_0x1e0236[_0x8e231d(0x168)])?_0x243541[_0x8e231d(0x143)][_0x8e231d(0x16e)][_0x8e231d(0x182)][_0x8e231d(0x17a)](_0x1e0236[_0x8e231d(0x168)])[_0x8e231d(0x157)]+_0x8e231d(0x162):'')+_0x1e0236[_0x8e231d(0x168)],'value':_0x1e0236[_0x8e231d(0x15e)]+'\x20Bastion\x20Coins'}))}})[_0x8e231d(0x17c)](()=>{});};}}; \ No newline at end of file diff --git a/commands/management/roles.js b/commands/management/roles.js index fff74a513..ccbf3492b 100644 --- a/commands/management/roles.js +++ b/commands/management/roles.js @@ -1 +1 @@ -const a94_0x560f=['create','Command','catch','../../utils/confirmation','edit','INVALID_COMMAND_SYNTAX','resolveRole','info','Constants','It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20roles\x20in\x20the\x20server.','color','../../utils/errors','getString','document','resolver','roleCreate','roles\x20--create\x20NAME\x20--\x20REASON','GREEN','client','length','roles\x20--create\x20NAME\x20--hoist\x20--\x20REASON','join','COLOR','roles','ArgumentTypes','name','tag','channel','author','constructor','roleDelete','mentionable','rename','delete','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','roles\x20--rename\x20ROLE\x20--name\x20NAME\x20--\x20REASON','roleRename','MANAGE_ROLES','@bastion/tesseract','roles\x20--create\x20NAME\x20--mentionable\x20--\x20REASON','language','hoist','send','guild','BASTION_ERROR_TYPE','COLORS'];(function(_0x53c46d,_0x3b8e3a){const _0x560fe8=function(_0x19f974){while(--_0x19f974){_0x53c46d['push'](_0x53c46d['shift']());}},_0x5830cc=function(){const _0x478699={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b4c33,_0x17e952,_0x421d52,_0x2954ee){_0x2954ee=_0x2954ee||{};let _0x95ecf2=_0x17e952+'='+_0x421d52,_0x43b9f4=0x0;for(let _0x135d04=0x0,_0xa6cafe=_0x1b4c33['length'];_0x135d04<_0xa6cafe;_0x135d04++){const _0x2d4277=_0x1b4c33[_0x135d04];_0x95ecf2+=';\x20'+_0x2d4277;const _0x101842=_0x1b4c33[_0x2d4277];_0x1b4c33['push'](_0x101842),_0xa6cafe=_0x1b4c33['length'],_0x101842!==!![]&&(_0x95ecf2+='='+_0x101842);}_0x2954ee['cookie']=_0x95ecf2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52b9d5,_0x5efe96){_0x52b9d5=_0x52b9d5||function(_0x3f167b){return _0x3f167b;};const _0x2e2236=_0x52b9d5(new RegExp('(?:^|;\x20)'+_0x5efe96['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4b1f06=function(_0x3d2633,_0x510ab5){_0x3d2633(++_0x510ab5);};return _0x4b1f06(_0x560fe8,_0x3b8e3a),_0x2e2236?decodeURIComponent(_0x2e2236[0x1]):undefined;}},_0x4ccd41=function(){const _0x4ac0b2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ac0b2['test'](_0x478699['removeCookie']['toString']());};_0x478699['updateCookie']=_0x4ccd41;let _0x4a89d4='';const _0x41353f=_0x478699['updateCookie']();if(!_0x41353f)_0x478699['setCookie'](['*'],'counter',0x1);else _0x41353f?_0x4a89d4=_0x478699['getCookie'](null,'counter'):_0x478699['removeCookie']();};_0x5830cc();}(a94_0x560f,0x78));const a94_0x5830=function(_0x53c46d,_0x3b8e3a){_0x53c46d=_0x53c46d-0x1e4;let _0x560fe8=a94_0x560f[_0x53c46d];return _0x560fe8;};const _0x3f3335=a94_0x5830,a94_0x4ccd41=function(){let _0x41353f=!![];return function(_0x1b4c33,_0x17e952){const _0x421d52=_0x41353f?function(){if(_0x17e952){const _0x2954ee=_0x17e952['apply'](_0x1b4c33,arguments);return _0x17e952=null,_0x2954ee;}}:function(){};return _0x41353f=![],_0x421d52;};}(),a94_0x478699=a94_0x4ccd41(this,function(){const _0x95ecf2=function(){const _0x5a51ea=a94_0x5830,_0x43b9f4=_0x95ecf2[_0x5a51ea(0x1e7)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x5a51ea(0x1ed));return!_0x43b9f4['test'](a94_0x478699);};return _0x95ecf2();});a94_0x478699();'use strict';const tesseract_1=require(_0x3f3335(0x1f1)),confirmation_1=require(_0x3f3335(0x1fc)),errors=require(_0x3f3335(0x204));module['exports']=class RolesCommand extends tesseract_1[_0x3f3335(0x1fa)]{constructor(){const _0x44f164=_0x3f3335;super('roles',{'description':_0x44f164(0x202),'triggers':[],'arguments':{'array':[_0x44f164(0x1f9),'delete',_0x44f164(0x212),'rename'],'boolean':['hoist',_0x44f164(0x1e9)],'string':[_0x44f164(0x1f9),'delete','rename'],'coerce':{'color':tesseract_1[_0x44f164(0x201)][_0x44f164(0x211)][_0x44f164(0x20f)]}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x44f164(0x1f0)],'userPermissions':[_0x44f164(0x1f0)],'syntax':[_0x44f164(0x209),'roles\x20--create\x20NAME\x20--color\x20COLOR\x20--\x20REASON',_0x44f164(0x20d),_0x44f164(0x1f2),_0x44f164(0x1ee),'roles\x20--delete\x20ROLE\x20--\x20REASON']}),this['exec']=async(_0x135d04,_0xa6cafe)=>{const _0x3249c5=_0x44f164,_0x2d4277=_0xa6cafe['_']['join']('\x20')||'-';if(_0xa6cafe[_0x3249c5(0x1f9)]&&_0xa6cafe[_0x3249c5(0x1f9)][_0x3249c5(0x20c)]){const _0x101842=await _0x135d04[_0x3249c5(0x1f6)][_0x3249c5(0x210)][_0x3249c5(0x1f9)]({'data':{'name':_0xa6cafe[_0x3249c5(0x1f9)][_0x3249c5(0x20e)]('\x20'),'color':_0xa6cafe[_0x3249c5(0x203)],'hoist':_0xa6cafe[_0x3249c5(0x1f4)],'mentionable':_0xa6cafe[_0x3249c5(0x1e9)]},'reason':_0x2d4277});return await _0x135d04['channel'][_0x3249c5(0x1f5)]({'embed':{'color':tesseract_1['Constants'][_0x3249c5(0x1f8)][_0x3249c5(0x20a)],'description':this[_0x3249c5(0x20b)][_0x3249c5(0x1ec)][_0x3249c5(0x205)](_0x135d04[_0x3249c5(0x1f6)][_0x3249c5(0x206)][_0x3249c5(0x1f3)],'info',_0x3249c5(0x208),_0x135d04[_0x3249c5(0x1e6)][_0x3249c5(0x1e4)],_0x101842[_0x3249c5(0x212)],_0x2d4277)}})[_0x3249c5(0x1fb)](()=>{});}if(_0xa6cafe['delete']&&_0xa6cafe[_0x3249c5(0x1eb)][_0x3249c5(0x20c)]){const _0x52b9d5=this[_0x3249c5(0x20b)]['resolver']['resolveRole'](_0x135d04[_0x3249c5(0x1f6)],_0xa6cafe[_0x3249c5(0x1eb)][_0x3249c5(0x20e)]('\x20')),_0x5efe96=await confirmation_1['default'](_0x135d04,this[_0x3249c5(0x20b)]['locale'][_0x3249c5(0x205)](_0x135d04[_0x3249c5(0x1f6)]['document'][_0x3249c5(0x1f3)],_0x3249c5(0x200),'roleDeleteQuestion',_0x135d04['author']['tag'],_0x52b9d5['name']));if(_0x5efe96)return await _0x52b9d5[_0x3249c5(0x1eb)](_0x2d4277),await _0x135d04[_0x3249c5(0x1e5)][_0x3249c5(0x1f5)]({'embed':{'color':tesseract_1[_0x3249c5(0x201)]['COLORS'][_0x3249c5(0x20a)],'description':this[_0x3249c5(0x20b)][_0x3249c5(0x1ec)]['getString'](_0x135d04[_0x3249c5(0x1f6)][_0x3249c5(0x206)][_0x3249c5(0x1f3)],_0x3249c5(0x200),_0x3249c5(0x1e8),_0x135d04[_0x3249c5(0x1e6)][_0x3249c5(0x1e4)],_0x52b9d5[_0x3249c5(0x212)],_0x2d4277)}})['catch'](()=>{});return!![];}if(_0xa6cafe['rename']&&_0xa6cafe[_0x3249c5(0x1ea)][_0x3249c5(0x20c)]&&_0xa6cafe[_0x3249c5(0x212)]&&_0xa6cafe['name'][_0x3249c5(0x20c)]){let _0x2e2236=this['client'][_0x3249c5(0x207)][_0x3249c5(0x1ff)](_0x135d04[_0x3249c5(0x1f6)],_0xa6cafe[_0x3249c5(0x1ea)][_0x3249c5(0x20e)]('\x20'));return _0x2e2236=await _0x2e2236[_0x3249c5(0x1fd)]({'name':_0xa6cafe[_0x3249c5(0x212)][_0x3249c5(0x20e)]('\x20')}),await _0x135d04[_0x3249c5(0x1e5)][_0x3249c5(0x1f5)]({'embed':{'color':tesseract_1[_0x3249c5(0x201)]['COLORS'][_0x3249c5(0x20a)],'description':this[_0x3249c5(0x20b)]['locale'][_0x3249c5(0x205)](_0x135d04[_0x3249c5(0x1f6)][_0x3249c5(0x206)]['language'],'info',_0x3249c5(0x1ef),_0x135d04[_0x3249c5(0x1e6)][_0x3249c5(0x1e4)],_0x2e2236[_0x3249c5(0x212)],_0x2d4277)}})[_0x3249c5(0x1fb)](()=>{});}throw new errors['DiscordError'](errors[_0x3249c5(0x1f7)][_0x3249c5(0x1fe)],this[_0x3249c5(0x212)]);};}}; \ No newline at end of file +const a95_0x27a0=['default','language','roles\x20--delete\x20ROLE\x20--\x20REASON','MANAGE_ROLES','return\x20/\x22\x20+\x20this\x20+\x20\x22/','roles\x20--create\x20NAME\x20--color\x20COLOR\x20--\x20REASON','length','resolveRole','tag','exec','../../utils/confirmation','roleCreate','edit','document','name','roles\x20--rename\x20ROLE\x20--name\x20NAME\x20--\x20REASON','INVALID_COMMAND_SYNTAX','delete','author','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','roleRename','create','join','test','resolver','send','roles\x20--create\x20NAME\x20--\x20REASON','COLORS','guild','locale','hoist','roles','../../utils/errors','COLOR','getString','mentionable','roles\x20--create\x20NAME\x20--hoist\x20--\x20REASON','channel','ArgumentTypes','color','rename','client','GREEN','catch','info'];(function(_0xb0c9c,_0x5d5966){const _0x27a026=function(_0x57e963){while(--_0x57e963){_0xb0c9c['push'](_0xb0c9c['shift']());}},_0x5dbd2c=function(){const _0x4451da={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x380e35,_0x1648aa,_0x20c1a2,_0x3943c2){_0x3943c2=_0x3943c2||{};let _0x221efa=_0x1648aa+'='+_0x20c1a2,_0x1eef18=0x0;for(let _0x2597d8=0x0,_0x447b38=_0x380e35['length'];_0x2597d8<_0x447b38;_0x2597d8++){const _0x3c0e69=_0x380e35[_0x2597d8];_0x221efa+=';\x20'+_0x3c0e69;const _0x2ded26=_0x380e35[_0x3c0e69];_0x380e35['push'](_0x2ded26),_0x447b38=_0x380e35['length'],_0x2ded26!==!![]&&(_0x221efa+='='+_0x2ded26);}_0x3943c2['cookie']=_0x221efa;},'removeCookie':function(){return'dev';},'getCookie':function(_0x552ebf,_0x927b72){_0x552ebf=_0x552ebf||function(_0x14ff53){return _0x14ff53;};const _0x262af4=_0x552ebf(new RegExp('(?:^|;\x20)'+_0x927b72['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5b54e6=function(_0x4237c7,_0x492ded){_0x4237c7(++_0x492ded);};return _0x5b54e6(_0x27a026,_0x5d5966),_0x262af4?decodeURIComponent(_0x262af4[0x1]):undefined;}},_0x40b4f9=function(){const _0x246986=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x246986['test'](_0x4451da['removeCookie']['toString']());};_0x4451da['updateCookie']=_0x40b4f9;let _0x3b1bee='';const _0x234260=_0x4451da['updateCookie']();if(!_0x234260)_0x4451da['setCookie'](['*'],'counter',0x1);else _0x234260?_0x3b1bee=_0x4451da['getCookie'](null,'counter'):_0x4451da['removeCookie']();};_0x5dbd2c();}(a95_0x27a0,0x18d));const a95_0x5dbd=function(_0xb0c9c,_0x5d5966){_0xb0c9c=_0xb0c9c-0xa6;let _0x27a026=a95_0x27a0[_0xb0c9c];return _0x27a026;};const a95_0x29f177=a95_0x5dbd,a95_0x40b4f9=function(){let _0x234260=!![];return function(_0x380e35,_0x1648aa){const _0x20c1a2=_0x234260?function(){if(_0x1648aa){const _0x3943c2=_0x1648aa['apply'](_0x380e35,arguments);return _0x1648aa=null,_0x3943c2;}}:function(){};return _0x234260=![],_0x20c1a2;};}(),a95_0x4451da=a95_0x40b4f9(this,function(){const _0x221efa=function(){const _0xf51839=a95_0x5dbd,_0x1eef18=_0x221efa[_0xf51839(0xa6)](_0xf51839(0xc4))()[_0xf51839(0xa6)](_0xf51839(0xd4));return!_0x1eef18[_0xf51839(0xaa)](a95_0x4451da);};return _0x221efa();});a95_0x4451da();'use strict';const tesseract_1=require('@bastion/tesseract'),confirmation_1=require(a95_0x29f177(0xca)),errors=require(a95_0x29f177(0xb3));module['exports']=class RolesCommand extends tesseract_1['Command']{constructor(){const _0x274083=a95_0x29f177;super(_0x274083(0xb2),{'description':'It\x20allows\x20you\x20create,\x20delete\x20and\x20update\x20roles\x20in\x20the\x20server.','triggers':[],'arguments':{'array':[_0x274083(0xa8),_0x274083(0xd1),'name',_0x274083(0xbb)],'boolean':['hoist','mentionable'],'string':[_0x274083(0xa8),_0x274083(0xd1),_0x274083(0xbb)],'coerce':{'color':tesseract_1[_0x274083(0xd3)][_0x274083(0xb9)][_0x274083(0xb4)]}},'scope':_0x274083(0xaf),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[_0x274083(0xc3)],'syntax':[_0x274083(0xad),_0x274083(0xc5),_0x274083(0xb7),'roles\x20--create\x20NAME\x20--mentionable\x20--\x20REASON',_0x274083(0xcf),_0x274083(0xc2)]}),this[_0x274083(0xc9)]=async(_0x2597d8,_0x447b38)=>{const _0x5e885f=_0x274083,_0x3c0e69=_0x447b38['_'][_0x5e885f(0xa9)]('\x20')||'-';if(_0x447b38['create']&&_0x447b38[_0x5e885f(0xa8)]['length']){const _0x2ded26=await _0x2597d8['guild'][_0x5e885f(0xb2)][_0x5e885f(0xa8)]({'data':{'name':_0x447b38[_0x5e885f(0xa8)][_0x5e885f(0xa9)]('\x20'),'color':_0x447b38[_0x5e885f(0xba)],'hoist':_0x447b38[_0x5e885f(0xb1)],'mentionable':_0x447b38[_0x5e885f(0xb6)]},'reason':_0x3c0e69});return await _0x2597d8['channel']['send']({'embed':{'color':tesseract_1[_0x5e885f(0xd3)][_0x5e885f(0xae)][_0x5e885f(0xbd)],'description':this['client'][_0x5e885f(0xb0)]['getString'](_0x2597d8[_0x5e885f(0xaf)][_0x5e885f(0xcd)][_0x5e885f(0xc1)],'info',_0x5e885f(0xcb),_0x2597d8[_0x5e885f(0xd2)]['tag'],_0x2ded26[_0x5e885f(0xce)],_0x3c0e69)}})[_0x5e885f(0xbe)](()=>{});}if(_0x447b38[_0x5e885f(0xd1)]&&_0x447b38[_0x5e885f(0xd1)][_0x5e885f(0xc6)]){const _0x552ebf=this['client'][_0x5e885f(0xab)][_0x5e885f(0xc7)](_0x2597d8['guild'],_0x447b38[_0x5e885f(0xd1)][_0x5e885f(0xa9)]('\x20')),_0x927b72=await confirmation_1[_0x5e885f(0xc0)](_0x2597d8,this[_0x5e885f(0xbc)]['locale'][_0x5e885f(0xb5)](_0x2597d8['guild'][_0x5e885f(0xcd)][_0x5e885f(0xc1)],_0x5e885f(0xbf),'roleDeleteQuestion',_0x2597d8[_0x5e885f(0xd2)][_0x5e885f(0xc8)],_0x552ebf['name']));if(_0x927b72)return await _0x552ebf[_0x5e885f(0xd1)](_0x3c0e69),await _0x2597d8[_0x5e885f(0xb8)][_0x5e885f(0xac)]({'embed':{'color':tesseract_1[_0x5e885f(0xd3)][_0x5e885f(0xae)][_0x5e885f(0xbd)],'description':this[_0x5e885f(0xbc)][_0x5e885f(0xb0)][_0x5e885f(0xb5)](_0x2597d8[_0x5e885f(0xaf)][_0x5e885f(0xcd)][_0x5e885f(0xc1)],_0x5e885f(0xbf),'roleDelete',_0x2597d8[_0x5e885f(0xd2)][_0x5e885f(0xc8)],_0x552ebf[_0x5e885f(0xce)],_0x3c0e69)}})[_0x5e885f(0xbe)](()=>{});return!![];}if(_0x447b38[_0x5e885f(0xbb)]&&_0x447b38[_0x5e885f(0xbb)][_0x5e885f(0xc6)]&&_0x447b38[_0x5e885f(0xce)]&&_0x447b38[_0x5e885f(0xce)][_0x5e885f(0xc6)]){let _0x262af4=this[_0x5e885f(0xbc)][_0x5e885f(0xab)]['resolveRole'](_0x2597d8[_0x5e885f(0xaf)],_0x447b38[_0x5e885f(0xbb)]['join']('\x20'));return _0x262af4=await _0x262af4[_0x5e885f(0xcc)]({'name':_0x447b38[_0x5e885f(0xce)][_0x5e885f(0xa9)]('\x20')}),await _0x2597d8['channel'][_0x5e885f(0xac)]({'embed':{'color':tesseract_1[_0x5e885f(0xd3)][_0x5e885f(0xae)][_0x5e885f(0xbd)],'description':this[_0x5e885f(0xbc)][_0x5e885f(0xb0)][_0x5e885f(0xb5)](_0x2597d8[_0x5e885f(0xaf)][_0x5e885f(0xcd)][_0x5e885f(0xc1)],_0x5e885f(0xbf),_0x5e885f(0xa7),_0x2597d8[_0x5e885f(0xd2)][_0x5e885f(0xc8)],_0x262af4['name'],_0x3c0e69)}})['catch'](()=>{});}throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x5e885f(0xd0)],this[_0x5e885f(0xce)]);};}}; \ No newline at end of file diff --git a/commands/management/safeList.js b/commands/management/safeList.js index 80dd99724..8e70cdce3 100644 --- a/commands/management/safeList.js +++ b/commands/management/safeList.js @@ -1 +1 @@ -const a95_0x5a4f=['whitelist','safeList\x20--link','filters','test','overwrite','COLORS','locale','NO_INVITE_FILTER_SAFE_LIST_EXISTS','document','safeList\x20--invite','length','BASTION_ERROR_TYPE','client','map','language','constructor','push','RED','return\x20/\x22\x20+\x20this\x20+\x20\x22/','safeList\x20--link\x20CHANNEL\x20|\x20ROLE','exports','toObject','IRIS','NO_LINK_FILTER_SAFE_LIST_EXISTS','Constants','safeList\x20--invite\x20CHANNEL\x20|\x20ROLE\x20--delete','linkFilterSafeListRemove','resolveGuildChannel','MANAGE_GUILD','inviteFilter','role','../../models/Guild','name','resolveRole','Link\x20Filter\x20-\x20Safe\x20List','linkFilterSafeListAdd','link','delete','safeList\x20--invite\x20CHANNEL\x20|\x20ROLE','safeList\x20--link\x20CHANNEL\x20|\x20ROLE\x20--delete','apply','Invite\x20Filter\x20-\x20Safe\x20List','filter','GREEN','inviteFilterSafeListAdd','@bastion/tesseract','ROLE_OR_CHANNEL_NOT_FOUND','exec','inviteFilterSafeListRemove','news','Command','save','resolver','send','tag','default','invite','join','guild','findById','getString','channel','linkFilter'];(function(_0x4958a9,_0x3ade03){const _0x5a4fd4=function(_0x1c8143){while(--_0x1c8143){_0x4958a9['push'](_0x4958a9['shift']());}},_0x36dc35=function(){const _0x5c1035={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x233094,_0x52adc8,_0x426d1e,_0x136514){_0x136514=_0x136514||{};let _0x139a20=_0x52adc8+'='+_0x426d1e,_0x2ff26a=0x0;for(let _0x43f3e9=0x0,_0x548347=_0x233094['length'];_0x43f3e9<_0x548347;_0x43f3e9++){const _0x73f7a1=_0x233094[_0x43f3e9];_0x139a20+=';\x20'+_0x73f7a1;const _0x39e250=_0x233094[_0x73f7a1];_0x233094['push'](_0x39e250),_0x548347=_0x233094['length'],_0x39e250!==!![]&&(_0x139a20+='='+_0x39e250);}_0x136514['cookie']=_0x139a20;},'removeCookie':function(){return'dev';},'getCookie':function(_0xdeccf9,_0x586b8e){_0xdeccf9=_0xdeccf9||function(_0x3b8cef){return _0x3b8cef;};const _0x2e35ec=_0xdeccf9(new RegExp('(?:^|;\x20)'+_0x586b8e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x438396=function(_0x922051,_0x4cd24c){_0x922051(++_0x4cd24c);};return _0x438396(_0x5a4fd4,_0x3ade03),_0x2e35ec?decodeURIComponent(_0x2e35ec[0x1]):undefined;}},_0x3aafc4=function(){const _0x3a8fea=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3a8fea['test'](_0x5c1035['removeCookie']['toString']());};_0x5c1035['updateCookie']=_0x3aafc4;let _0xb020='';const _0x217217=_0x5c1035['updateCookie']();if(!_0x217217)_0x5c1035['setCookie'](['*'],'counter',0x1);else _0x217217?_0xb020=_0x5c1035['getCookie'](null,'counter'):_0x5c1035['removeCookie']();};_0x36dc35();}(a95_0x5a4f,0x123));const a95_0x36dc=function(_0x4958a9,_0x3ade03){_0x4958a9=_0x4958a9-0x9a;let _0x5a4fd4=a95_0x5a4f[_0x4958a9];return _0x5a4fd4;};const _0x52c1ef=a95_0x36dc,a95_0x3aafc4=function(){let _0x217217=!![];return function(_0x233094,_0x52adc8){const _0x426d1e=_0x217217?function(){const _0x76fc12=a95_0x36dc;if(_0x52adc8){const _0x136514=_0x52adc8[_0x76fc12(0x9b)](_0x233094,arguments);return _0x52adc8=null,_0x136514;}}:function(){};return _0x217217=![],_0x426d1e;};}(),a95_0x5c1035=a95_0x3aafc4(this,function(){const _0x139a20=function(){const _0x3f0141=a95_0x36dc,_0x2ff26a=_0x139a20[_0x3f0141(0xc1)](_0x3f0141(0xc4))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2ff26a[_0x3f0141(0xb5)](a95_0x5c1035);};return _0x139a20();});a95_0x5c1035();'use strict';const tesseract_1=require(_0x52c1ef(0xa0)),Guild_1=require(_0x52c1ef(0xd1)),errors=require('../../utils/errors');module[_0x52c1ef(0xc6)]=class SafeListCommand extends tesseract_1[_0x52c1ef(0xa5)]{constructor(){const _0x35fabd=_0x52c1ef;super('safeList',{'description':'It\x20allows\x20you\x20to\x20add\x20members\x20or\x20roles\x20to\x20a\x20safe\x20list\x20that\x20prevents\x20their\x20messages\x20from\x20being\x20filtered\x20by\x20invite\x20filter\x20or\x20link\x20filter\x20in\x20the\x20server.','triggers':[],'arguments':{'boolean':[_0x35fabd(0xab),_0x35fabd(0xd6),'delete']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x35fabd(0xce)],'syntax':[_0x35fabd(0xbb),_0x35fabd(0xd8),_0x35fabd(0xcb),_0x35fabd(0xb3),_0x35fabd(0xc5),_0x35fabd(0x9a)]}),this[_0x35fabd(0xa2)]=async(_0x43f3e9,_0x548347)=>{const _0x45fc53=_0x35fabd;if(_0x548347[_0x45fc53(0xab)]){const _0x73f7a1=await Guild_1['default'][_0x45fc53(0xae)](_0x43f3e9[_0x45fc53(0xad)]['id']);if(_0x548347['_']&&_0x548347['_']['length']){const _0x39e250=_0x548347['_'][_0x45fc53(0xac)]('\x20'),_0xdeccf9=this[_0x45fc53(0xbe)]['resolver'][_0x45fc53(0xcd)](_0x43f3e9['guild'],_0x39e250,['text',_0x45fc53(0xa4)]),_0x586b8e=this['client'][_0x45fc53(0xa7)][_0x45fc53(0xd3)](_0x43f3e9[_0x45fc53(0xad)],_0x39e250),_0x2e35ec=_0xdeccf9||_0x586b8e||undefined;if(!_0x2e35ec)throw new Error(_0x45fc53(0xa1));const _0x438396=_0x73f7a1['toObject']();if(_0x548347[_0x45fc53(0xd7)]){if(_0x438396[_0x45fc53(0xb4)]&&_0x438396[_0x45fc53(0xb4)][_0x45fc53(0xcf)]&&_0x438396[_0x45fc53(0xb4)]['inviteFilter'][_0x45fc53(0xb2)]){_0x438396[_0x45fc53(0xb4)]['inviteFilter']['whitelist']=_0x438396[_0x45fc53(0xb4)][_0x45fc53(0xcf)]['whitelist'][_0x45fc53(0x9d)](_0x3b8cef=>_0x3b8cef!==_0x2e35ec['id']);if(!_0x438396[_0x45fc53(0xb4)][_0x45fc53(0xcf)][_0x45fc53(0xb2)][_0x45fc53(0xbc)])delete _0x438396[_0x45fc53(0xb4)][_0x45fc53(0xcf)][_0x45fc53(0xb2)];}}else{if(!_0x438396[_0x45fc53(0xb4)])_0x438396['filters']={};if(_0x438396['filters'][_0x45fc53(0xcf)]){if(_0x438396['filters'][_0x45fc53(0xcf)]['whitelist'])_0x438396[_0x45fc53(0xb4)][_0x45fc53(0xcf)][_0x45fc53(0xb2)][_0x45fc53(0xc2)](_0x2e35ec['id']);else _0x438396[_0x45fc53(0xb4)]['inviteFilter'][_0x45fc53(0xb2)]=[_0x2e35ec['id']];}else _0x438396[_0x45fc53(0xb4)][_0x45fc53(0xcf)]={'enabled':!![],'whitelist':[_0x2e35ec['id']]};}return _0x73f7a1[_0x45fc53(0xb6)](_0x438396),await _0x73f7a1['save'](),await _0x43f3e9['channel'][_0x45fc53(0xa8)]({'embed':{'color':_0x548347[_0x45fc53(0xd7)]?tesseract_1['Constants'][_0x45fc53(0xb7)][_0x45fc53(0xc3)]:tesseract_1[_0x45fc53(0xca)][_0x45fc53(0xb7)][_0x45fc53(0x9e)],'description':this['client'][_0x45fc53(0xb8)][_0x45fc53(0xaf)](_0x43f3e9[_0x45fc53(0xad)][_0x45fc53(0xba)][_0x45fc53(0xc0)],'info',_0x548347[_0x45fc53(0xd7)]?_0x45fc53(0xa3):_0x45fc53(0x9f),_0x43f3e9['author'][_0x45fc53(0xa9)],_0x2e35ec[_0x45fc53(0xd2)])}});}if(_0x73f7a1[_0x45fc53(0xb4)]&&_0x73f7a1[_0x45fc53(0xb4)][_0x45fc53(0xcf)]&&_0x73f7a1[_0x45fc53(0xb4)][_0x45fc53(0xcf)][_0x45fc53(0xb2)])return await _0x43f3e9[_0x45fc53(0xb0)][_0x45fc53(0xa8)]({'embed':{'color':tesseract_1[_0x45fc53(0xca)][_0x45fc53(0xb7)][_0x45fc53(0xc8)],'title':_0x45fc53(0x9c),'description':_0x73f7a1[_0x45fc53(0xb4)][_0x45fc53(0xcf)]['whitelist'][_0x45fc53(0xbf)](_0x922051=>{const _0x303d4d=_0x45fc53,_0x4cd24c=this['client'][_0x303d4d(0xa7)]['resolveGuildChannel'](_0x43f3e9[_0x303d4d(0xad)],_0x922051),_0x3a8fea=this[_0x303d4d(0xbe)][_0x303d4d(0xa7)]['resolveRole'](_0x43f3e9[_0x303d4d(0xad)],_0x548347['role']),_0x311ce9=_0x4cd24c||_0x3a8fea||undefined;return _0x311ce9?_0x311ce9[_0x303d4d(0xd2)]:_0x922051;})[_0x45fc53(0xac)](',\x20')}});else throw new Error(_0x45fc53(0xb9));}if(_0x548347[_0x45fc53(0xd6)]){const _0x17f8d1=await Guild_1[_0x45fc53(0xaa)][_0x45fc53(0xae)](_0x43f3e9[_0x45fc53(0xad)]['id']);if(_0x548347['_']&&_0x548347['_'][_0x45fc53(0xbc)]){const _0xfd391c=_0x548347['_'][_0x45fc53(0xac)]('\x20'),_0x3d290c=this[_0x45fc53(0xbe)][_0x45fc53(0xa7)][_0x45fc53(0xcd)](_0x43f3e9['guild'],_0xfd391c,['text',_0x45fc53(0xa4)]),_0x2a56d1=this[_0x45fc53(0xbe)][_0x45fc53(0xa7)][_0x45fc53(0xd3)](_0x43f3e9[_0x45fc53(0xad)],_0xfd391c),_0x4cb6f9=_0x3d290c||_0x2a56d1||undefined;if(!_0x4cb6f9)throw new Error(_0x45fc53(0xa1));const _0x242264=_0x17f8d1[_0x45fc53(0xc7)]();if(_0x548347[_0x45fc53(0xd7)]){if(_0x242264[_0x45fc53(0xb4)]&&_0x242264[_0x45fc53(0xb4)]['linkFilter']&&_0x242264[_0x45fc53(0xb4)][_0x45fc53(0xb1)][_0x45fc53(0xb2)]){_0x242264[_0x45fc53(0xb4)][_0x45fc53(0xb1)][_0x45fc53(0xb2)]=_0x242264[_0x45fc53(0xb4)][_0x45fc53(0xb1)][_0x45fc53(0xb2)][_0x45fc53(0x9d)](_0x4e7eb1=>_0x4e7eb1!==_0x4cb6f9['id']);if(!_0x242264['filters'][_0x45fc53(0xb1)][_0x45fc53(0xb2)][_0x45fc53(0xbc)])delete _0x242264['filters']['linkFilter'][_0x45fc53(0xb2)];}}else{if(!_0x242264[_0x45fc53(0xb4)])_0x242264['filters']={};if(_0x242264['filters'][_0x45fc53(0xb1)]){if(_0x242264[_0x45fc53(0xb4)]['linkFilter'][_0x45fc53(0xb2)])_0x242264['filters']['linkFilter']['whitelist'][_0x45fc53(0xc2)](_0x4cb6f9['id']);else _0x242264[_0x45fc53(0xb4)][_0x45fc53(0xb1)]['whitelist']=[_0x4cb6f9['id']];}else _0x242264['filters'][_0x45fc53(0xb1)]={'enabled':!![],'whitelist':[_0x4cb6f9['id']]};}return _0x17f8d1[_0x45fc53(0xb6)](_0x242264),await _0x17f8d1[_0x45fc53(0xa6)](),await _0x43f3e9['channel']['send']({'embed':{'color':_0x548347[_0x45fc53(0xd7)]?tesseract_1[_0x45fc53(0xca)]['COLORS'][_0x45fc53(0xc3)]:tesseract_1[_0x45fc53(0xca)][_0x45fc53(0xb7)][_0x45fc53(0x9e)],'description':this[_0x45fc53(0xbe)][_0x45fc53(0xb8)][_0x45fc53(0xaf)](_0x43f3e9[_0x45fc53(0xad)][_0x45fc53(0xba)][_0x45fc53(0xc0)],'info',_0x548347[_0x45fc53(0xd7)]?_0x45fc53(0xcc):_0x45fc53(0xd5),_0x43f3e9['author'][_0x45fc53(0xa9)],_0x4cb6f9[_0x45fc53(0xd2)])}});}if(_0x17f8d1[_0x45fc53(0xb4)]&&_0x17f8d1[_0x45fc53(0xb4)][_0x45fc53(0xb1)]&&_0x17f8d1[_0x45fc53(0xb4)]['linkFilter'][_0x45fc53(0xb2)])return await _0x43f3e9[_0x45fc53(0xb0)][_0x45fc53(0xa8)]({'embed':{'color':tesseract_1[_0x45fc53(0xca)][_0x45fc53(0xb7)][_0x45fc53(0xc8)],'title':_0x45fc53(0xd4),'description':_0x17f8d1[_0x45fc53(0xb4)]['linkFilter']['whitelist'][_0x45fc53(0xbf)](_0x3e8bf0=>{const _0x193ad2=_0x45fc53,_0x3f1c2b=this['client'][_0x193ad2(0xa7)][_0x193ad2(0xcd)](_0x43f3e9['guild'],_0x3e8bf0),_0x3a9487=this['client']['resolver'][_0x193ad2(0xd3)](_0x43f3e9[_0x193ad2(0xad)],_0x548347[_0x193ad2(0xd0)]),_0x2bdbed=_0x3f1c2b||_0x3a9487||undefined;return _0x2bdbed?_0x2bdbed[_0x193ad2(0xd2)]:_0x3e8bf0;})[_0x45fc53(0xac)](',\x20')}});else throw new Error(_0x45fc53(0xc9));}throw new errors['DiscordError'](errors[_0x45fc53(0xbd)]['INVALID_COMMAND_SYNTAX'],this[_0x45fc53(0xd2)]);};}}; \ No newline at end of file +const a96_0x1bdc=['INVALID_COMMAND_SYNTAX','../../utils/errors','NO_LINK_FILTER_SAFE_LIST_EXISTS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','text','map','resolver','send','default','../../models/Guild','resolveGuildChannel','filter','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','MANAGE_GUILD','inviteFilterSafeListAdd','getString','inviteFilter','length','resolveRole','Command','exports','join','client','guild','link','info','Constants','channel','DiscordError','test','linkFilterSafeListAdd','findById','inviteFilterSafeListRemove','GREEN','news','ROLE_OR_CHANNEL_NOT_FOUND','document','role','tag','BASTION_ERROR_TYPE','NO_INVITE_FILTER_SAFE_LIST_EXISTS','apply','RED','save','toObject','exec','overwrite','safeList\x20--link','safeList\x20--invite\x20CHANNEL\x20|\x20ROLE\x20--delete','filters','locale','safeList\x20--link\x20CHANNEL\x20|\x20ROLE','name','delete','whitelist','constructor','linkFilter','author','safeList\x20--invite','push','IRIS','linkFilterSafeListRemove','COLORS','invite','safeList\x20--link\x20CHANNEL\x20|\x20ROLE\x20--delete','Invite\x20Filter\x20-\x20Safe\x20List','It\x20allows\x20you\x20to\x20add\x20members\x20or\x20roles\x20to\x20a\x20safe\x20list\x20that\x20prevents\x20their\x20messages\x20from\x20being\x20filtered\x20by\x20invite\x20filter\x20or\x20link\x20filter\x20in\x20the\x20server.'];(function(_0x1e1cd8,_0x3397c2){const _0x1bdc06=function(_0x2aea4f){while(--_0x2aea4f){_0x1e1cd8['push'](_0x1e1cd8['shift']());}},_0x213656=function(){const _0x2f92f0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f9db2,_0x2c1415,_0x369066,_0x250022){_0x250022=_0x250022||{};let _0x30b79d=_0x2c1415+'='+_0x369066,_0x2d4cb1=0x0;for(let _0x229a2d=0x0,_0x5c63e4=_0x4f9db2['length'];_0x229a2d<_0x5c63e4;_0x229a2d++){const _0x1279a6=_0x4f9db2[_0x229a2d];_0x30b79d+=';\x20'+_0x1279a6;const _0x478392=_0x4f9db2[_0x1279a6];_0x4f9db2['push'](_0x478392),_0x5c63e4=_0x4f9db2['length'],_0x478392!==!![]&&(_0x30b79d+='='+_0x478392);}_0x250022['cookie']=_0x30b79d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34a984,_0xe2f244){_0x34a984=_0x34a984||function(_0x4e320a){return _0x4e320a;};const _0x4fe487=_0x34a984(new RegExp('(?:^|;\x20)'+_0xe2f244['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4769ab=function(_0x5c9062,_0x47e38a){_0x5c9062(++_0x47e38a);};return _0x4769ab(_0x1bdc06,_0x3397c2),_0x4fe487?decodeURIComponent(_0x4fe487[0x1]):undefined;}},_0x572817=function(){const _0x58190e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58190e['test'](_0x2f92f0['removeCookie']['toString']());};_0x2f92f0['updateCookie']=_0x572817;let _0x450d5a='';const _0x2a859d=_0x2f92f0['updateCookie']();if(!_0x2a859d)_0x2f92f0['setCookie'](['*'],'counter',0x1);else _0x2a859d?_0x450d5a=_0x2f92f0['getCookie'](null,'counter'):_0x2f92f0['removeCookie']();};_0x213656();}(a96_0x1bdc,0x117));const a96_0x2136=function(_0x1e1cd8,_0x3397c2){_0x1e1cd8=_0x1e1cd8-0xa9;let _0x1bdc06=a96_0x1bdc[_0x1e1cd8];return _0x1bdc06;};const a96_0x1789b6=a96_0x2136,a96_0x572817=function(){let _0x2a859d=!![];return function(_0x4f9db2,_0x2c1415){const _0x369066=_0x2a859d?function(){const _0x88b337=a96_0x2136;if(_0x2c1415){const _0x250022=_0x2c1415[_0x88b337(0xcc)](_0x4f9db2,arguments);return _0x2c1415=null,_0x250022;}}:function(){};return _0x2a859d=![],_0x369066;};}(),a96_0x2f92f0=a96_0x572817(this,function(){const _0x30b79d=function(){const _0x533f12=a96_0x2136,_0x2d4cb1=_0x30b79d[_0x533f12(0xda)](_0x533f12(0xe9))()[_0x533f12(0xda)](_0x533f12(0xae));return!_0x2d4cb1[_0x533f12(0xc0)](a96_0x2f92f0);};return _0x30b79d();});a96_0x2f92f0();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(a96_0x1789b6(0xab)),errors=require(a96_0x1789b6(0xe7));module[a96_0x1789b6(0xb7)]=class SafeListCommand extends tesseract_1[a96_0x1789b6(0xb6)]{constructor(){const _0x26b52e=a96_0x1789b6;super('safeList',{'description':_0x26b52e(0xe5),'triggers':[],'arguments':{'boolean':[_0x26b52e(0xe2),_0x26b52e(0xbb),_0x26b52e(0xd8)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x26b52e(0xb0)],'syntax':[_0x26b52e(0xdd),'safeList\x20--invite\x20CHANNEL\x20|\x20ROLE',_0x26b52e(0xd3),_0x26b52e(0xd2),_0x26b52e(0xd6),_0x26b52e(0xe3)]}),this[_0x26b52e(0xd0)]=async(_0x229a2d,_0x5c63e4)=>{const _0x3d8fc3=_0x26b52e;if(_0x5c63e4[_0x3d8fc3(0xe2)]){const _0x1279a6=await Guild_1[_0x3d8fc3(0xaa)]['findById'](_0x229a2d['guild']['id']);if(_0x5c63e4['_']&&_0x5c63e4['_'][_0x3d8fc3(0xb4)]){const _0x478392=_0x5c63e4['_']['join']('\x20'),_0x34a984=this[_0x3d8fc3(0xb9)]['resolver'][_0x3d8fc3(0xac)](_0x229a2d['guild'],_0x478392,[_0x3d8fc3(0xea),_0x3d8fc3(0xc5)]),_0xe2f244=this[_0x3d8fc3(0xb9)][_0x3d8fc3(0xec)][_0x3d8fc3(0xb5)](_0x229a2d[_0x3d8fc3(0xba)],_0x478392),_0x4fe487=_0x34a984||_0xe2f244||undefined;if(!_0x4fe487)throw new Error(_0x3d8fc3(0xc6));const _0x4769ab=_0x1279a6[_0x3d8fc3(0xcf)]();if(_0x5c63e4[_0x3d8fc3(0xd8)]){if(_0x4769ab['filters']&&_0x4769ab[_0x3d8fc3(0xd4)]['inviteFilter']&&_0x4769ab[_0x3d8fc3(0xd4)][_0x3d8fc3(0xb3)]['whitelist']){_0x4769ab[_0x3d8fc3(0xd4)]['inviteFilter'][_0x3d8fc3(0xd9)]=_0x4769ab[_0x3d8fc3(0xd4)]['inviteFilter'][_0x3d8fc3(0xd9)]['filter'](_0x4e320a=>_0x4e320a!==_0x4fe487['id']);if(!_0x4769ab[_0x3d8fc3(0xd4)][_0x3d8fc3(0xb3)]['whitelist'][_0x3d8fc3(0xb4)])delete _0x4769ab[_0x3d8fc3(0xd4)][_0x3d8fc3(0xb3)][_0x3d8fc3(0xd9)];}}else{if(!_0x4769ab[_0x3d8fc3(0xd4)])_0x4769ab[_0x3d8fc3(0xd4)]={};if(_0x4769ab[_0x3d8fc3(0xd4)][_0x3d8fc3(0xb3)]){if(_0x4769ab['filters']['inviteFilter'][_0x3d8fc3(0xd9)])_0x4769ab[_0x3d8fc3(0xd4)][_0x3d8fc3(0xb3)][_0x3d8fc3(0xd9)][_0x3d8fc3(0xde)](_0x4fe487['id']);else _0x4769ab[_0x3d8fc3(0xd4)][_0x3d8fc3(0xb3)]['whitelist']=[_0x4fe487['id']];}else _0x4769ab['filters'][_0x3d8fc3(0xb3)]={'enabled':!![],'whitelist':[_0x4fe487['id']]};}return _0x1279a6[_0x3d8fc3(0xd1)](_0x4769ab),await _0x1279a6['save'](),await _0x229a2d[_0x3d8fc3(0xbe)][_0x3d8fc3(0xa9)]({'embed':{'color':_0x5c63e4[_0x3d8fc3(0xd8)]?tesseract_1[_0x3d8fc3(0xbd)][_0x3d8fc3(0xe1)][_0x3d8fc3(0xcd)]:tesseract_1['Constants'][_0x3d8fc3(0xe1)][_0x3d8fc3(0xc4)],'description':this[_0x3d8fc3(0xb9)]['locale']['getString'](_0x229a2d[_0x3d8fc3(0xba)][_0x3d8fc3(0xc7)]['language'],_0x3d8fc3(0xbc),_0x5c63e4[_0x3d8fc3(0xd8)]?_0x3d8fc3(0xc3):_0x3d8fc3(0xb1),_0x229a2d['author']['tag'],_0x4fe487[_0x3d8fc3(0xd7)])}});}if(_0x1279a6[_0x3d8fc3(0xd4)]&&_0x1279a6['filters']['inviteFilter']&&_0x1279a6['filters'][_0x3d8fc3(0xb3)]['whitelist'])return await _0x229a2d[_0x3d8fc3(0xbe)][_0x3d8fc3(0xa9)]({'embed':{'color':tesseract_1['Constants'][_0x3d8fc3(0xe1)][_0x3d8fc3(0xdf)],'title':_0x3d8fc3(0xe4),'description':_0x1279a6['filters'][_0x3d8fc3(0xb3)][_0x3d8fc3(0xd9)][_0x3d8fc3(0xeb)](_0x5c9062=>{const _0xa9af15=_0x3d8fc3,_0x47e38a=this[_0xa9af15(0xb9)][_0xa9af15(0xec)][_0xa9af15(0xac)](_0x229a2d[_0xa9af15(0xba)],_0x5c9062),_0x58190e=this[_0xa9af15(0xb9)]['resolver']['resolveRole'](_0x229a2d[_0xa9af15(0xba)],_0x5c63e4['role']),_0x261e73=_0x47e38a||_0x58190e||undefined;return _0x261e73?_0x261e73[_0xa9af15(0xd7)]:_0x5c9062;})[_0x3d8fc3(0xb8)](',\x20')}});else throw new Error(_0x3d8fc3(0xcb));}if(_0x5c63e4[_0x3d8fc3(0xbb)]){const _0x48285f=await Guild_1[_0x3d8fc3(0xaa)][_0x3d8fc3(0xc2)](_0x229a2d[_0x3d8fc3(0xba)]['id']);if(_0x5c63e4['_']&&_0x5c63e4['_']['length']){const _0x1af7d7=_0x5c63e4['_'][_0x3d8fc3(0xb8)]('\x20'),_0x13161e=this[_0x3d8fc3(0xb9)]['resolver'][_0x3d8fc3(0xac)](_0x229a2d[_0x3d8fc3(0xba)],_0x1af7d7,[_0x3d8fc3(0xea),_0x3d8fc3(0xc5)]),_0x27d48d=this['client'][_0x3d8fc3(0xec)][_0x3d8fc3(0xb5)](_0x229a2d['guild'],_0x1af7d7),_0x187526=_0x13161e||_0x27d48d||undefined;if(!_0x187526)throw new Error(_0x3d8fc3(0xc6));const _0x5dee4b=_0x48285f[_0x3d8fc3(0xcf)]();if(_0x5c63e4[_0x3d8fc3(0xd8)]){if(_0x5dee4b[_0x3d8fc3(0xd4)]&&_0x5dee4b['filters']['linkFilter']&&_0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)]['whitelist']){_0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)]=_0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)][_0x3d8fc3(0xad)](_0x5d71e3=>_0x5d71e3!==_0x187526['id']);if(!_0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)][_0x3d8fc3(0xb4)])delete _0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)];}}else{if(!_0x5dee4b['filters'])_0x5dee4b[_0x3d8fc3(0xd4)]={};if(_0x5dee4b['filters']['linkFilter']){if(_0x5dee4b[_0x3d8fc3(0xd4)]['linkFilter'][_0x3d8fc3(0xd9)])_0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)][_0x3d8fc3(0xde)](_0x187526['id']);else _0x5dee4b[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)]=[_0x187526['id']];}else _0x5dee4b[_0x3d8fc3(0xd4)]['linkFilter']={'enabled':!![],'whitelist':[_0x187526['id']]};}return _0x48285f[_0x3d8fc3(0xd1)](_0x5dee4b),await _0x48285f[_0x3d8fc3(0xce)](),await _0x229a2d[_0x3d8fc3(0xbe)][_0x3d8fc3(0xa9)]({'embed':{'color':_0x5c63e4[_0x3d8fc3(0xd8)]?tesseract_1[_0x3d8fc3(0xbd)][_0x3d8fc3(0xe1)]['RED']:tesseract_1['Constants'][_0x3d8fc3(0xe1)]['GREEN'],'description':this[_0x3d8fc3(0xb9)][_0x3d8fc3(0xd5)][_0x3d8fc3(0xb2)](_0x229a2d[_0x3d8fc3(0xba)][_0x3d8fc3(0xc7)][_0x3d8fc3(0xaf)],_0x3d8fc3(0xbc),_0x5c63e4[_0x3d8fc3(0xd8)]?_0x3d8fc3(0xe0):_0x3d8fc3(0xc1),_0x229a2d[_0x3d8fc3(0xdc)][_0x3d8fc3(0xc9)],_0x187526[_0x3d8fc3(0xd7)])}});}if(_0x48285f[_0x3d8fc3(0xd4)]&&_0x48285f[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)]&&_0x48285f[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)])return await _0x229a2d['channel']['send']({'embed':{'color':tesseract_1[_0x3d8fc3(0xbd)][_0x3d8fc3(0xe1)][_0x3d8fc3(0xdf)],'title':'Link\x20Filter\x20-\x20Safe\x20List','description':_0x48285f[_0x3d8fc3(0xd4)][_0x3d8fc3(0xdb)][_0x3d8fc3(0xd9)][_0x3d8fc3(0xeb)](_0x5b36da=>{const _0x237964=_0x3d8fc3,_0x46daea=this['client'][_0x237964(0xec)][_0x237964(0xac)](_0x229a2d['guild'],_0x5b36da),_0x5f0065=this[_0x237964(0xb9)][_0x237964(0xec)][_0x237964(0xb5)](_0x229a2d[_0x237964(0xba)],_0x5c63e4[_0x237964(0xc8)]),_0x4aeb61=_0x46daea||_0x5f0065||undefined;return _0x4aeb61?_0x4aeb61[_0x237964(0xd7)]:_0x5b36da;})[_0x3d8fc3(0xb8)](',\x20')}});else throw new Error(_0x3d8fc3(0xe8));}throw new errors[(_0x3d8fc3(0xbf))](errors[_0x3d8fc3(0xca)][_0x3d8fc3(0xe6)],this[_0x3d8fc3(0xd7)]);};}}; \ No newline at end of file diff --git a/commands/management/suggest.js b/commands/management/suggest.js index 3c6431289..049539a4a 100644 --- a/commands/management/suggest.js +++ b/commands/management/suggest.js @@ -1 +1 @@ -const a96_0x4e6a=['apply','send','suggest','Constants','react','locale','guild','exports','language','document','errors','BASTION_ERROR_TYPE','getString','suggest\x20SUGGESTION','name','We\x27ve\x20received\x20your\x20suggestion.\x20We\x27ll\x20get\x20back\x20to\x20you\x20with\x20updates.','ERROR','It\x20allows\x20you\x20send\x20a\x20suggestion\x20to\x20the\x20suggestion\x20staff,\x20provided\x20a\x20Suggestion\x20Channel\x20has\x20been\x20set\x20in\x20the\x20server.','IRIS','Suggestion\x20Command','COLORS','channel','catch','get','Command','displayAvatarURL','join','@bastion/tesseract','client','author','constructor','channels','../../utils/errors','delete','suggestionsChannelId','INDIGO','test','INVALID_COMMAND_SYNTAX','deletable','tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cache','noSuggestionChannel','DiscordError','Suggestion'];(function(_0x254efb,_0x556457){const _0x4e6a6e=function(_0x1405a1){while(--_0x1405a1){_0x254efb['push'](_0x254efb['shift']());}},_0xa6ac7e=function(){const _0x567ae3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x9ba34b,_0x320517,_0x5cff03,_0x1c8b56){_0x1c8b56=_0x1c8b56||{};let _0x2ec8c6=_0x320517+'='+_0x5cff03,_0x353247=0x0;for(let _0x1b5955=0x0,_0x3c8032=_0x9ba34b['length'];_0x1b5955<_0x3c8032;_0x1b5955++){const _0x3790bd=_0x9ba34b[_0x1b5955];_0x2ec8c6+=';\x20'+_0x3790bd;const _0x1aab32=_0x9ba34b[_0x3790bd];_0x9ba34b['push'](_0x1aab32),_0x3c8032=_0x9ba34b['length'],_0x1aab32!==!![]&&(_0x2ec8c6+='='+_0x1aab32);}_0x1c8b56['cookie']=_0x2ec8c6;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd82bc7,_0x14110d){_0xd82bc7=_0xd82bc7||function(_0x1ef308){return _0x1ef308;};const _0x1db7fe=_0xd82bc7(new RegExp('(?:^|;\x20)'+_0x14110d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4ed084=function(_0x4caaa8,_0xe68477){_0x4caaa8(++_0xe68477);};return _0x4ed084(_0x4e6a6e,_0x556457),_0x1db7fe?decodeURIComponent(_0x1db7fe[0x1]):undefined;}},_0x158fd2=function(){const _0x3e773d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e773d['test'](_0x567ae3['removeCookie']['toString']());};_0x567ae3['updateCookie']=_0x158fd2;let _0x48e2be='';const _0x41c820=_0x567ae3['updateCookie']();if(!_0x41c820)_0x567ae3['setCookie'](['*'],'counter',0x1);else _0x41c820?_0x48e2be=_0x567ae3['getCookie'](null,'counter'):_0x567ae3['removeCookie']();};_0xa6ac7e();}(a96_0x4e6a,0x1f4));const a96_0xa6ac=function(_0x254efb,_0x556457){_0x254efb=_0x254efb-0x9f;let _0x4e6a6e=a96_0x4e6a[_0x254efb];return _0x4e6a6e;};const _0x237931=a96_0xa6ac,a96_0x158fd2=function(){let _0x41c820=!![];return function(_0x9ba34b,_0x320517){const _0x5cff03=_0x41c820?function(){const _0x2d31c9=a96_0xa6ac;if(_0x320517){const _0x1c8b56=_0x320517[_0x2d31c9(0xc7)](_0x9ba34b,arguments);return _0x320517=null,_0x1c8b56;}}:function(){};return _0x41c820=![],_0x5cff03;};}(),a96_0x567ae3=a96_0x158fd2(this,function(){const _0x2ec8c6=function(){const _0x229315=a96_0xa6ac,_0x353247=_0x2ec8c6['constructor'](_0x229315(0xc2))()[_0x229315(0xb8)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x353247[_0x229315(0xbe)](a96_0x567ae3);};return _0x2ec8c6();});a96_0x567ae3();'use strict';const tesseract_1=require(_0x237931(0xb5)),errors=require(_0x237931(0xba));module[_0x237931(0xa1)]=class SuggestCommand extends tesseract_1[_0x237931(0xb2)]{constructor(){const _0x4dcb51=_0x237931;super(_0x4dcb51(0xc9),{'description':_0x4dcb51(0xab),'triggers':[],'arguments':{},'scope':_0x4dcb51(0xa0),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4dcb51(0xa7)]}),this['exec']=async(_0x1b5955,_0x3c8032)=>{const _0x55e3a8=_0x4dcb51;if(!_0x3c8032['_']['length'])throw new errors['DiscordError'](errors[_0x55e3a8(0xa5)][_0x55e3a8(0xbf)],this[_0x55e3a8(0xa8)]);const _0x3790bd=_0x1b5955[_0x55e3a8(0xa0)];if(!_0x3790bd[_0x55e3a8(0xa3)][_0x55e3a8(0xbc)]||!_0x1b5955[_0x55e3a8(0xa0)][_0x55e3a8(0xb9)]['cache']['has'](_0x3790bd[_0x55e3a8(0xa3)]['suggestionsChannelId']))throw new errors[(_0x55e3a8(0xc5))](errors['BASTION_ERROR_TYPE'][_0x55e3a8(0xaa)],this[_0x55e3a8(0xb6)][_0x55e3a8(0x9f)][_0x55e3a8(0xa6)](_0x1b5955[_0x55e3a8(0xa0)]['document'][_0x55e3a8(0xa2)],_0x55e3a8(0xa4),_0x55e3a8(0xc4),_0x1b5955[_0x55e3a8(0xb7)][_0x55e3a8(0xc1)]));const _0x1aab32=_0x1b5955[_0x55e3a8(0xa0)]['channels'][_0x55e3a8(0xc3)][_0x55e3a8(0xb1)](_0x3790bd[_0x55e3a8(0xa3)][_0x55e3a8(0xbc)]),_0xd82bc7=await _0x1aab32[_0x55e3a8(0xc8)]({'embed':{'color':tesseract_1[_0x55e3a8(0xca)][_0x55e3a8(0xae)][_0x55e3a8(0xbd)],'author':{'name':_0x1b5955[_0x55e3a8(0xb7)]['tag']+'\x20/\x20'+_0x1b5955[_0x55e3a8(0xb7)]['id'],'iconURL':_0x1b5955[_0x55e3a8(0xb7)][_0x55e3a8(0xb3)]({'dynamic':!![],'size':0x40})},'title':_0x55e3a8(0xc6),'description':_0x3c8032['_'][_0x55e3a8(0xb4)]('\x20')}});_0x1b5955[_0x55e3a8(0xc0)]&&_0x1b5955[_0x55e3a8(0xbb)]({'reason':_0x55e3a8(0xad)})['catch'](()=>{}),_0xd82bc7[_0x55e3a8(0xcb)]('✅')[_0x55e3a8(0xb0)](()=>{}),_0xd82bc7[_0x55e3a8(0xcb)]('❎')[_0x55e3a8(0xb0)](()=>{}),await _0x1b5955[_0x55e3a8(0xaf)][_0x55e3a8(0xc8)]({'embed':{'color':tesseract_1[_0x55e3a8(0xca)][_0x55e3a8(0xae)][_0x55e3a8(0xac)],'description':_0x55e3a8(0xa9)}})[_0x55e3a8(0xb0)](()=>{});};}}; \ No newline at end of file +const a97_0x528f=['INVALID_COMMAND_SYNTAX','../../utils/errors','get','send','exec','It\x20allows\x20you\x20send\x20a\x20suggestion\x20to\x20the\x20suggestion\x20staff,\x20provided\x20a\x20Suggestion\x20Channel\x20has\x20been\x20set\x20in\x20the\x20server.','\x20/\x20','COLORS','channels','locale','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','noSuggestionChannel','suggest\x20SUGGESTION','language','document','Command','name','INDIGO','Constants','delete','displayAvatarURL','tag','join','author','getString','DiscordError','cache','BASTION_ERROR_TYPE','ERROR','@bastion/tesseract','deletable','IRIS','suggest','react','suggestionsChannelId','guild','apply','length','errors','test','catch'];(function(_0x2e6ce6,_0x519b16){const _0x528f2b=function(_0x34a9d9){while(--_0x34a9d9){_0x2e6ce6['push'](_0x2e6ce6['shift']());}},_0x33810e=function(){const _0x30491d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32db0b,_0x44390d,_0x3e8724,_0x203c8b){_0x203c8b=_0x203c8b||{};let _0x3b35f6=_0x44390d+'='+_0x3e8724,_0x14f3b2=0x0;for(let _0x2af906=0x0,_0x53379b=_0x32db0b['length'];_0x2af906<_0x53379b;_0x2af906++){const _0x5dee08=_0x32db0b[_0x2af906];_0x3b35f6+=';\x20'+_0x5dee08;const _0x5b3eef=_0x32db0b[_0x5dee08];_0x32db0b['push'](_0x5b3eef),_0x53379b=_0x32db0b['length'],_0x5b3eef!==!![]&&(_0x3b35f6+='='+_0x5b3eef);}_0x203c8b['cookie']=_0x3b35f6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ba3da,_0x1b9b10){_0x4ba3da=_0x4ba3da||function(_0x1f99aa){return _0x1f99aa;};const _0x1aa07b=_0x4ba3da(new RegExp('(?:^|;\x20)'+_0x1b9b10['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x208b78=function(_0x4cc54e,_0x5d80e9){_0x4cc54e(++_0x5d80e9);};return _0x208b78(_0x528f2b,_0x519b16),_0x1aa07b?decodeURIComponent(_0x1aa07b[0x1]):undefined;}},_0x3b5083=function(){const _0xa11d71=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa11d71['test'](_0x30491d['removeCookie']['toString']());};_0x30491d['updateCookie']=_0x3b5083;let _0x440da5='';const _0x3ab139=_0x30491d['updateCookie']();if(!_0x3ab139)_0x30491d['setCookie'](['*'],'counter',0x1);else _0x3ab139?_0x440da5=_0x30491d['getCookie'](null,'counter'):_0x30491d['removeCookie']();};_0x33810e();}(a97_0x528f,0x80));const a97_0x3381=function(_0x2e6ce6,_0x519b16){_0x2e6ce6=_0x2e6ce6-0x192;let _0x528f2b=a97_0x528f[_0x2e6ce6];return _0x528f2b;};const a97_0x5cb410=a97_0x3381,a97_0x3b5083=function(){let _0x3ab139=!![];return function(_0x32db0b,_0x44390d){const _0x3e8724=_0x3ab139?function(){const _0x162849=a97_0x3381;if(_0x44390d){const _0x203c8b=_0x44390d[_0x162849(0x1b5)](_0x32db0b,arguments);return _0x44390d=null,_0x203c8b;}}:function(){};return _0x3ab139=![],_0x3e8724;};}(),a97_0x30491d=a97_0x3b5083(this,function(){const _0x3b35f6=function(){const _0x3557a3=a97_0x3381,_0x14f3b2=_0x3b35f6[_0x3557a3(0x19a)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x3557a3(0x19b));return!_0x14f3b2[_0x3557a3(0x1b8)](a97_0x30491d);};return _0x3b35f6();});a97_0x30491d();'use strict';const tesseract_1=require(a97_0x5cb410(0x1ae)),errors=require(a97_0x5cb410(0x1bb));module['exports']=class SuggestCommand extends tesseract_1[a97_0x5cb410(0x1a0)]{constructor(){const _0x3714d1=a97_0x5cb410;super(_0x3714d1(0x1b1),{'description':_0x3714d1(0x195),'triggers':[],'arguments':{},'scope':_0x3714d1(0x1b4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3714d1(0x19d)]}),this[_0x3714d1(0x194)]=async(_0x2af906,_0x53379b)=>{const _0x5c8b2a=_0x3714d1;if(!_0x53379b['_'][_0x5c8b2a(0x1b6)])throw new errors[(_0x5c8b2a(0x1aa))](errors[_0x5c8b2a(0x1ac)][_0x5c8b2a(0x1ba)],this[_0x5c8b2a(0x1a1)]);const _0x5dee08=_0x2af906[_0x5c8b2a(0x1b4)];if(!_0x5dee08[_0x5c8b2a(0x19f)][_0x5c8b2a(0x1b3)]||!_0x2af906[_0x5c8b2a(0x1b4)]['channels'][_0x5c8b2a(0x1ab)]['has'](_0x5dee08[_0x5c8b2a(0x19f)][_0x5c8b2a(0x1b3)]))throw new errors[(_0x5c8b2a(0x1aa))](errors['BASTION_ERROR_TYPE'][_0x5c8b2a(0x1ad)],this['client'][_0x5c8b2a(0x199)][_0x5c8b2a(0x1a9)](_0x2af906['guild'][_0x5c8b2a(0x19f)][_0x5c8b2a(0x19e)],_0x5c8b2a(0x1b7),_0x5c8b2a(0x19c),_0x2af906[_0x5c8b2a(0x1a8)][_0x5c8b2a(0x1a6)]));const _0x5b3eef=_0x2af906[_0x5c8b2a(0x1b4)][_0x5c8b2a(0x198)][_0x5c8b2a(0x1ab)][_0x5c8b2a(0x192)](_0x5dee08[_0x5c8b2a(0x19f)]['suggestionsChannelId']),_0x4ba3da=await _0x5b3eef['send']({'embed':{'color':tesseract_1[_0x5c8b2a(0x1a3)][_0x5c8b2a(0x197)][_0x5c8b2a(0x1a2)],'author':{'name':_0x2af906['author'][_0x5c8b2a(0x1a6)]+_0x5c8b2a(0x196)+_0x2af906[_0x5c8b2a(0x1a8)]['id'],'iconURL':_0x2af906['author'][_0x5c8b2a(0x1a5)]({'dynamic':!![],'size':0x40})},'title':'Suggestion','description':_0x53379b['_'][_0x5c8b2a(0x1a7)]('\x20')}});_0x2af906[_0x5c8b2a(0x1af)]&&_0x2af906[_0x5c8b2a(0x1a4)]({'reason':'Suggestion\x20Command'})[_0x5c8b2a(0x1b9)](()=>{}),_0x4ba3da[_0x5c8b2a(0x1b2)]('✅')[_0x5c8b2a(0x1b9)](()=>{}),_0x4ba3da['react']('❎')['catch'](()=>{}),await _0x2af906['channel'][_0x5c8b2a(0x193)]({'embed':{'color':tesseract_1[_0x5c8b2a(0x1a3)]['COLORS'][_0x5c8b2a(0x1b0)],'description':'We\x27ve\x20received\x20your\x20suggestion.\x20We\x27ll\x20get\x20back\x20to\x20you\x20with\x20updates.'}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 27e74a09e..3f7bb8f14 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -1 +1 @@ -const a97_0x198a=['Constants','send','name','has','ban\x20--user\x20USER_ID\x20--days\x20NUMBER\x20--\x20REASON','../../utils/errors','paginate','@bastion/tesseract','resolver','page','reason','ban\x20--user\x20USER_ID\x20--soft\x20--\x20REASON','DARK_BUT_NOT_BLACK','join','COLORS','errors','list','map','resolveUser','members','test','apply','catch','ORANGE','DiscordError','channel','document','Page\x20','\x20of\x20','pages','client','Reason','author','Command','user','INVALID_COMMAND_SYNTAX','BAN_MEMBERS','guildBanAdd','ownerID','constructor','Banned\x20Users','exec','language','ban\x20--user\x20USER_ID\x20--\x20REASON','tag','ban\x20--list','soft','canManage','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.','\x20/\x20','getString','member','days','BASTION_ERROR_TYPE','rolePosition','locale','values','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','unauthorized','info'];(function(_0x53fead,_0x5d1642){const _0x198af5=function(_0x3fe3c6){while(--_0x3fe3c6){_0x53fead['push'](_0x53fead['shift']());}},_0x252071=function(){const _0x42d3a4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5bf89d,_0x20aa3e,_0xa9ab53,_0xc34eb7){_0xc34eb7=_0xc34eb7||{};let _0x48d34f=_0x20aa3e+'='+_0xa9ab53,_0x6fdd8a=0x0;for(let _0xf400c2=0x0,_0x7d5faf=_0x5bf89d['length'];_0xf400c2<_0x7d5faf;_0xf400c2++){const _0x59d3f4=_0x5bf89d[_0xf400c2];_0x48d34f+=';\x20'+_0x59d3f4;const _0x3c7e82=_0x5bf89d[_0x59d3f4];_0x5bf89d['push'](_0x3c7e82),_0x7d5faf=_0x5bf89d['length'],_0x3c7e82!==!![]&&(_0x48d34f+='='+_0x3c7e82);}_0xc34eb7['cookie']=_0x48d34f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x515c94,_0x3500aa){_0x515c94=_0x515c94||function(_0x32aef9){return _0x32aef9;};const _0x159715=_0x515c94(new RegExp('(?:^|;\x20)'+_0x3500aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x13d7c5=function(_0x2b617f,_0x21d703){_0x2b617f(++_0x21d703);};return _0x13d7c5(_0x198af5,_0x5d1642),_0x159715?decodeURIComponent(_0x159715[0x1]):undefined;}},_0x5829e4=function(){const _0x4bb0ca=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4bb0ca['test'](_0x42d3a4['removeCookie']['toString']());};_0x42d3a4['updateCookie']=_0x5829e4;let _0x291370='';const _0x5d55ae=_0x42d3a4['updateCookie']();if(!_0x5d55ae)_0x42d3a4['setCookie'](['*'],'counter',0x1);else _0x5d55ae?_0x291370=_0x42d3a4['getCookie'](null,'counter'):_0x42d3a4['removeCookie']();};_0x252071();}(a97_0x198a,0x12f));const a97_0x2520=function(_0x53fead,_0x5d1642){_0x53fead=_0x53fead-0x196;let _0x198af5=a97_0x198a[_0x53fead];return _0x198af5;};const _0x5531f7=a97_0x2520,a97_0x5829e4=function(){let _0x5d55ae=!![];return function(_0x5bf89d,_0x20aa3e){const _0xa9ab53=_0x5d55ae?function(){const _0x485e29=a97_0x2520;if(_0x20aa3e){const _0xc34eb7=_0x20aa3e[_0x485e29(0x1ad)](_0x5bf89d,arguments);return _0x20aa3e=null,_0xc34eb7;}}:function(){};return _0x5d55ae=![],_0xa9ab53;};}(),a97_0x42d3a4=a97_0x5829e4(this,function(){const _0x48d34f=function(){const _0x29d5d7=a97_0x2520,_0x6fdd8a=_0x48d34f[_0x29d5d7(0x1bf)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x29d5d7(0x1d2));return!_0x6fdd8a[_0x29d5d7(0x1ac)](a97_0x42d3a4);};return _0x48d34f();});a97_0x42d3a4();'use strict';const tesseract_1=require(_0x5531f7(0x19f)),errors=require(_0x5531f7(0x19d)),pagination=require('../../utils/pagination');module['exports']=class Ban extends tesseract_1[_0x5531f7(0x1b9)]{constructor(){const _0x3d3861=_0x5531f7;super('ban',{'description':_0x3d3861(0x1c8),'triggers':[],'arguments':{'alias':{'days':'d','list':'l','page':'p','soft':'s','user':'u'},'boolean':[_0x3d3861(0x1a8),_0x3d3861(0x1c6)],'default':{'days':0x0,'page':0x1},'number':[_0x3d3861(0x1cc),_0x3d3861(0x1a1)],'string':[_0x3d3861(0x1ba)]},'scope':_0x3d3861(0x1d1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['BAN_MEMBERS'],'userPermissions':[_0x3d3861(0x1bc)],'syntax':[_0x3d3861(0x1c5),'ban\x20--list\x20--page\x203',_0x3d3861(0x1c3),_0x3d3861(0x1a3),_0x3d3861(0x19c)]}),this[_0x3d3861(0x1c1)]=async(_0xf400c2,_0x7d5faf)=>{const _0x27702a=_0x3d3861;if(_0x7d5faf[_0x27702a(0x1a8)]){const _0x515c94=await _0xf400c2['guild']['fetchBans'](),_0x3500aa=pagination[_0x27702a(0x19e)]([..._0x515c94[_0x27702a(0x1d0)]()],_0x7d5faf[_0x27702a(0x1a1)]);return await _0xf400c2[_0x27702a(0x1b1)][_0x27702a(0x199)]({'embed':{'color':tesseract_1[_0x27702a(0x198)][_0x27702a(0x1a6)][_0x27702a(0x1af)],'title':_0x27702a(0x1c0),'description':'Users\x20banned\x20in\x20'+_0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x19a)],'fields':_0x3500aa['items'][_0x27702a(0x1a9)](_0x159715=>({'name':_0x159715[_0x27702a(0x1ba)][_0x27702a(0x1c4)]+_0x27702a(0x1c9)+_0x159715['user']['id'],'value':_0x159715[_0x27702a(0x1a2)]||'-'})),'footer':{'text':_0x27702a(0x1b3)+_0x3500aa[_0x27702a(0x1a1)]+_0x27702a(0x1b4)+_0x3500aa[_0x27702a(0x1b5)]}}});}const _0x59d3f4=this['client'][_0x27702a(0x1a0)][_0x27702a(0x1aa)](_0x7d5faf['user']);if(!_0x59d3f4)throw new errors[(_0x27702a(0x1b0))](errors[_0x27702a(0x1cd)][_0x27702a(0x1bb)],this[_0x27702a(0x19a)]);if(_0xf400c2[_0x27702a(0x1b8)]['id']!==_0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x1be)]&&_0xf400c2[_0x27702a(0x1d1)]['members']['cache'][_0x27702a(0x19b)](_0x59d3f4['id'])&&!_0xf400c2[_0x27702a(0x1cb)][_0x27702a(0x1c7)](_0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x1ab)]['cache']['get'](_0x59d3f4['id'])))return await _0xf400c2[_0x27702a(0x1b1)][_0x27702a(0x199)]({'embed':{'color':tesseract_1[_0x27702a(0x198)]['COLORS']['RED'],'title':this['client'][_0x27702a(0x1cf)]['getString'](_0xf400c2['guild']['document'][_0x27702a(0x1c2)],_0x27702a(0x1a7),_0x27702a(0x196)),'description':this['client'][_0x27702a(0x1cf)][_0x27702a(0x1ca)](_0xf400c2[_0x27702a(0x1d1)]['document'][_0x27702a(0x1c2)],_0x27702a(0x1a7),_0x27702a(0x1ce),_0xf400c2['author'][_0x27702a(0x1c4)],_0x59d3f4[_0x27702a(0x1c4)])}})[_0x27702a(0x1ae)](()=>{});const _0x3c7e82=_0x7d5faf['_'][_0x27702a(0x1a5)]('\x20')||'-';await _0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x1ab)]['ban'](_0x59d3f4,{'days':_0x7d5faf[_0x27702a(0x1cc)],'reason':_0x3c7e82}),_0x7d5faf[_0x27702a(0x1c6)]&&await _0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x1ab)]['unban'](_0x59d3f4,_0x3c7e82),await _0xf400c2[_0x27702a(0x1b1)][_0x27702a(0x199)]({'embed':{'color':tesseract_1['Constants'][_0x27702a(0x1a6)][_0x27702a(0x1a4)],'description':_0x7d5faf[_0x27702a(0x1c6)]?this['client'][_0x27702a(0x1cf)]['getString'](_0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x1b2)][_0x27702a(0x1c2)],'info','memberSoftBan',_0xf400c2['author']['tag'],_0x59d3f4['tag']):this[_0x27702a(0x1b6)][_0x27702a(0x1cf)][_0x27702a(0x1ca)](_0xf400c2[_0x27702a(0x1d1)][_0x27702a(0x1b2)][_0x27702a(0x1c2)],_0x27702a(0x197),_0x27702a(0x1bd),_0xf400c2[_0x27702a(0x1b8)]['tag'],_0x59d3f4[_0x27702a(0x1c4)]),'fields':[{'name':_0x27702a(0x1b7),'value':_0x3c7e82}],'footer':{'text':_0x59d3f4['id']}}})[_0x27702a(0x1ae)](()=>{});};}}; \ No newline at end of file +const a98_0x6e30=['fetchBans','list','RED','INVALID_COMMAND_SYNTAX','channel','catch','exports','language','page','resolveUser','\x20of\x20','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','items','Reason','locale','member','map','COLORS','unban','document','Banned\x20Users','tag','pages','get','BAN_MEMBERS','guildBanAdd','ban\x20--list\x20--page\x203','ORANGE','guild','getString','exec','user','Constants','soft','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.','paginate','values','info','send','days','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/errors','rolePosition','resolver','memberSoftBan','Command','ownerID','ban','../../utils/pagination','has','author','ban\x20--user\x20USER_ID\x20--soft\x20--\x20REASON','join','members','constructor','ban\x20--list','test','name','canManage','cache','unauthorized','ban\x20--user\x20USER_ID\x20--\x20REASON','client','errors','ban\x20--user\x20USER_ID\x20--days\x20NUMBER\x20--\x20REASON'];(function(_0x73e2c7,_0x1d9677){const _0x6e307e=function(_0x169db9){while(--_0x169db9){_0x73e2c7['push'](_0x73e2c7['shift']());}},_0x16677d=function(){const _0x53c460={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55b14a,_0x436b4c,_0x32f324,_0x391e94){_0x391e94=_0x391e94||{};let _0x33d8ac=_0x436b4c+'='+_0x32f324,_0x4a0e26=0x0;for(let _0x53f32e=0x0,_0x1804d4=_0x55b14a['length'];_0x53f32e<_0x1804d4;_0x53f32e++){const _0x56a9c3=_0x55b14a[_0x53f32e];_0x33d8ac+=';\x20'+_0x56a9c3;const _0x2b9258=_0x55b14a[_0x56a9c3];_0x55b14a['push'](_0x2b9258),_0x1804d4=_0x55b14a['length'],_0x2b9258!==!![]&&(_0x33d8ac+='='+_0x2b9258);}_0x391e94['cookie']=_0x33d8ac;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d13c3,_0x4ec987){_0x1d13c3=_0x1d13c3||function(_0xbc78a0){return _0xbc78a0;};const _0xe94950=_0x1d13c3(new RegExp('(?:^|;\x20)'+_0x4ec987['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f849f=function(_0xf29c44,_0x115890){_0xf29c44(++_0x115890);};return _0x4f849f(_0x6e307e,_0x1d9677),_0xe94950?decodeURIComponent(_0xe94950[0x1]):undefined;}},_0x3b57ca=function(){const _0x5ac54f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5ac54f['test'](_0x53c460['removeCookie']['toString']());};_0x53c460['updateCookie']=_0x3b57ca;let _0x46c04b='';const _0x20b137=_0x53c460['updateCookie']();if(!_0x20b137)_0x53c460['setCookie'](['*'],'counter',0x1);else _0x20b137?_0x46c04b=_0x53c460['getCookie'](null,'counter'):_0x53c460['removeCookie']();};_0x16677d();}(a98_0x6e30,0xf4));const a98_0x1667=function(_0x73e2c7,_0x1d9677){_0x73e2c7=_0x73e2c7-0x185;let _0x6e307e=a98_0x6e30[_0x73e2c7];return _0x6e307e;};const a98_0xcb450b=a98_0x1667,a98_0x3b57ca=function(){let _0x20b137=!![];return function(_0x55b14a,_0x436b4c){const _0x32f324=_0x20b137?function(){if(_0x436b4c){const _0x391e94=_0x436b4c['apply'](_0x55b14a,arguments);return _0x436b4c=null,_0x391e94;}}:function(){};return _0x20b137=![],_0x32f324;};}(),a98_0x53c460=a98_0x3b57ca(this,function(){const _0x33d8ac=function(){const _0x5afc71=a98_0x1667,_0x4a0e26=_0x33d8ac[_0x5afc71(0x18a)](_0x5afc71(0x1bd))()['constructor'](_0x5afc71(0x1a0));return!_0x4a0e26[_0x5afc71(0x18c)](a98_0x53c460);};return _0x33d8ac();});a98_0x53c460();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a98_0xcb450b(0x1be)),pagination=require(a98_0xcb450b(0x1c5));module[a98_0xcb450b(0x19b)]=class Ban extends tesseract_1[a98_0xcb450b(0x1c2)]{constructor(){const _0x597a9e=a98_0xcb450b;super(_0x597a9e(0x1c4),{'description':_0x597a9e(0x1b7),'triggers':[],'arguments':{'alias':{'days':'d','list':'l','page':'p','soft':'s','user':'u'},'boolean':['list','soft'],'default':{'days':0x0,'page':0x1},'number':[_0x597a9e(0x1bc),'page'],'string':['user']},'scope':_0x597a9e(0x1b1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x597a9e(0x1ad)],'userPermissions':[_0x597a9e(0x1ad)],'syntax':[_0x597a9e(0x18b),_0x597a9e(0x1af),_0x597a9e(0x191),_0x597a9e(0x187),_0x597a9e(0x194)]}),this[_0x597a9e(0x1b3)]=async(_0x53f32e,_0x1804d4)=>{const _0x1f7207=_0x597a9e;if(_0x1804d4[_0x1f7207(0x196)]){const _0x1d13c3=await _0x53f32e['guild'][_0x1f7207(0x195)](),_0x4ec987=pagination[_0x1f7207(0x1b8)]([..._0x1d13c3[_0x1f7207(0x1b9)]()],_0x1804d4[_0x1f7207(0x19d)]);return await _0x53f32e[_0x1f7207(0x199)][_0x1f7207(0x1bb)]({'embed':{'color':tesseract_1[_0x1f7207(0x1b5)][_0x1f7207(0x1a6)][_0x1f7207(0x1b0)],'title':_0x1f7207(0x1a9),'description':'Users\x20banned\x20in\x20'+_0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x18d)],'fields':_0x4ec987[_0x1f7207(0x1a1)][_0x1f7207(0x1a5)](_0xe94950=>({'name':_0xe94950[_0x1f7207(0x1b4)]['tag']+'\x20/\x20'+_0xe94950['user']['id'],'value':_0xe94950['reason']||'-'})),'footer':{'text':'Page\x20'+_0x4ec987[_0x1f7207(0x19d)]+_0x1f7207(0x19f)+_0x4ec987[_0x1f7207(0x1ab)]}}});}const _0x56a9c3=this[_0x1f7207(0x192)][_0x1f7207(0x1c0)][_0x1f7207(0x19e)](_0x1804d4['user']);if(!_0x56a9c3)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x1f7207(0x198)],this[_0x1f7207(0x18d)]);if(_0x53f32e[_0x1f7207(0x186)]['id']!==_0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x1c3)]&&_0x53f32e['guild'][_0x1f7207(0x189)][_0x1f7207(0x18f)][_0x1f7207(0x185)](_0x56a9c3['id'])&&!_0x53f32e[_0x1f7207(0x1a4)][_0x1f7207(0x18e)](_0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x189)]['cache'][_0x1f7207(0x1ac)](_0x56a9c3['id'])))return await _0x53f32e['channel'][_0x1f7207(0x1bb)]({'embed':{'color':tesseract_1[_0x1f7207(0x1b5)][_0x1f7207(0x1a6)][_0x1f7207(0x197)],'title':this[_0x1f7207(0x192)][_0x1f7207(0x1a3)][_0x1f7207(0x1b2)](_0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x1a8)][_0x1f7207(0x19c)],_0x1f7207(0x193),_0x1f7207(0x190)),'description':this[_0x1f7207(0x192)][_0x1f7207(0x1a3)]['getString'](_0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x1a8)][_0x1f7207(0x19c)],'errors',_0x1f7207(0x1bf),_0x53f32e[_0x1f7207(0x186)][_0x1f7207(0x1aa)],_0x56a9c3['tag'])}})[_0x1f7207(0x19a)](()=>{});const _0x2b9258=_0x1804d4['_'][_0x1f7207(0x188)]('\x20')||'-';await _0x53f32e[_0x1f7207(0x1b1)]['members'][_0x1f7207(0x1c4)](_0x56a9c3,{'days':_0x1804d4[_0x1f7207(0x1bc)],'reason':_0x2b9258}),_0x1804d4['soft']&&await _0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x189)][_0x1f7207(0x1a7)](_0x56a9c3,_0x2b9258),await _0x53f32e[_0x1f7207(0x199)]['send']({'embed':{'color':tesseract_1[_0x1f7207(0x1b5)][_0x1f7207(0x1a6)]['DARK_BUT_NOT_BLACK'],'description':_0x1804d4[_0x1f7207(0x1b6)]?this[_0x1f7207(0x192)][_0x1f7207(0x1a3)][_0x1f7207(0x1b2)](_0x53f32e['guild']['document'][_0x1f7207(0x19c)],_0x1f7207(0x1ba),_0x1f7207(0x1c1),_0x53f32e[_0x1f7207(0x186)][_0x1f7207(0x1aa)],_0x56a9c3[_0x1f7207(0x1aa)]):this['client'][_0x1f7207(0x1a3)][_0x1f7207(0x1b2)](_0x53f32e[_0x1f7207(0x1b1)][_0x1f7207(0x1a8)][_0x1f7207(0x19c)],_0x1f7207(0x1ba),_0x1f7207(0x1ae),_0x53f32e[_0x1f7207(0x186)][_0x1f7207(0x1aa)],_0x56a9c3[_0x1f7207(0x1aa)]),'fields':[{'name':_0x1f7207(0x1a2),'value':_0x2b9258}],'footer':{'text':_0x56a9c3['id']}}})[_0x1f7207(0x19a)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/case.js b/commands/moderation/case.js index 935d02fd2..ede623d57 100644 --- a/commands/moderation/case.js +++ b/commands/moderation/case.js @@ -1 +1 @@ -const a98_0x5b2d=['type','guild','BASTION_ERROR_TYPE','findOne','DiscordError','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language','default','cache','document','moderationLogChannelId','name','locale','exec','MAX_SAFE_INTEGER','discord.js','case','floor','../../utils/errors','embeds','caseNotFound','MANAGE_GUILD','channels','Command','@bastion/tesseract','NewsChannel','TextChannel','apply','number','has','It\x20allows\x20you\x20to\x20see\x20the\x20moderation\x20case\x20log\x20for\x20the\x20specified\x20case\x20number.','INVALID_COMMAND_SYNTAX','exports','news','constructor','../../utils/numbers','text','client','test','send','filter'];(function(_0x52da2c,_0x58e5a8){const _0x5b2db4=function(_0x9e4b4a){while(--_0x9e4b4a){_0x52da2c['push'](_0x52da2c['shift']());}},_0x289c4d=function(){const _0x1aade7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2658fc,_0x412872,_0x5cf018,_0x2e1da9){_0x2e1da9=_0x2e1da9||{};let _0x14b283=_0x412872+'='+_0x5cf018,_0x45aae0=0x0;for(let _0x21addb=0x0,_0x9619f6=_0x2658fc['length'];_0x21addb<_0x9619f6;_0x21addb++){const _0x4b66cc=_0x2658fc[_0x21addb];_0x14b283+=';\x20'+_0x4b66cc;const _0x559300=_0x2658fc[_0x4b66cc];_0x2658fc['push'](_0x559300),_0x9619f6=_0x2658fc['length'],_0x559300!==!![]&&(_0x14b283+='='+_0x559300);}_0x2e1da9['cookie']=_0x14b283;},'removeCookie':function(){return'dev';},'getCookie':function(_0x12273a,_0xc7214b){_0x12273a=_0x12273a||function(_0x96a1c3){return _0x96a1c3;};const _0x1bc3ba=_0x12273a(new RegExp('(?:^|;\x20)'+_0xc7214b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x552a11=function(_0x1905f7,_0x3678a8){_0x1905f7(++_0x3678a8);};return _0x552a11(_0x5b2db4,_0x58e5a8),_0x1bc3ba?decodeURIComponent(_0x1bc3ba[0x1]):undefined;}},_0x272f4e=function(){const _0x13273f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13273f['test'](_0x1aade7['removeCookie']['toString']());};_0x1aade7['updateCookie']=_0x272f4e;let _0x2ed73f='';const _0xb5c11e=_0x1aade7['updateCookie']();if(!_0xb5c11e)_0x1aade7['setCookie'](['*'],'counter',0x1);else _0xb5c11e?_0x2ed73f=_0x1aade7['getCookie'](null,'counter'):_0x1aade7['removeCookie']();};_0x289c4d();}(a98_0x5b2d,0x108));const a98_0x289c=function(_0x52da2c,_0x58e5a8){_0x52da2c=_0x52da2c-0x66;let _0x5b2db4=a98_0x5b2d[_0x52da2c];return _0x5b2db4;};const _0x3434f2=a98_0x289c,a98_0x272f4e=function(){let _0xb5c11e=!![];return function(_0x2658fc,_0x412872){const _0x5cf018=_0xb5c11e?function(){const _0x315941=a98_0x289c;if(_0x412872){const _0x2e1da9=_0x412872[_0x315941(0x6f)](_0x2658fc,arguments);return _0x412872=null,_0x2e1da9;}}:function(){};return _0xb5c11e=![],_0x5cf018;};}(),a98_0x1aade7=a98_0x272f4e(this,function(){const _0x14b283=function(){const _0x3e7efe=a98_0x289c,_0x45aae0=_0x14b283[_0x3e7efe(0x76)](_0x3e7efe(0x82))()[_0x3e7efe(0x76)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x45aae0[_0x3e7efe(0x7a)](a98_0x1aade7);};return _0x14b283();});a98_0x1aade7();'use strict';const tesseract_1=require(_0x3434f2(0x6c)),discord_js_1=require(_0x3434f2(0x8c)),errors=require(_0x3434f2(0x66)),numbers=require(_0x3434f2(0x77)),Case_1=require('../../models/Case');module[_0x3434f2(0x74)]=class CaseCommand extends tesseract_1[_0x3434f2(0x6b)]{constructor(){const _0x86719c=_0x3434f2;super(_0x86719c(0x8d),{'description':_0x86719c(0x72),'triggers':[],'arguments':{'alias':{'number':'n'},'number':['number'],'coerce':{'number':_0x21addb=>Math[_0x86719c(0x8e)](numbers['clamp'](_0x21addb,0x1,Number[_0x86719c(0x8b)]))}},'scope':_0x86719c(0x7e),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x86719c(0x69)],'syntax':['case\x20--number\x20NUMBER']}),this[_0x86719c(0x8a)]=async(_0x9619f6,_0x4b66cc)=>{const _0x31f1d3=_0x86719c;if(!_0x4b66cc['number'])throw new errors[(_0x31f1d3(0x81))](errors[_0x31f1d3(0x7f)][_0x31f1d3(0x73)],this[_0x31f1d3(0x88)]);const _0x559300=await Case_1[_0x31f1d3(0x84)][_0x31f1d3(0x80)]({'guild':_0x9619f6[_0x31f1d3(0x7e)]['id'],'number':_0x4b66cc[_0x31f1d3(0x70)]});if(!_0x559300)throw new Error(this[_0x31f1d3(0x79)][_0x31f1d3(0x89)]['getString'](_0x9619f6[_0x31f1d3(0x7e)][_0x31f1d3(0x86)][_0x31f1d3(0x83)],'errors',_0x31f1d3(0x68)));const _0x12273a=_0x9619f6['guild'][_0x31f1d3(0x6a)][_0x31f1d3(0x85)][_0x31f1d3(0x7c)](_0xc7214b=>_0xc7214b[_0x31f1d3(0x7d)]===_0x31f1d3(0x78)||_0xc7214b[_0x31f1d3(0x7d)]===_0x31f1d3(0x75));if(_0x9619f6['guild'][_0x31f1d3(0x86)][_0x31f1d3(0x87)]&&_0x12273a[_0x31f1d3(0x71)](_0x9619f6[_0x31f1d3(0x7e)][_0x31f1d3(0x86)][_0x31f1d3(0x87)])){const _0x1bc3ba=_0x12273a['get'](_0x9619f6[_0x31f1d3(0x7e)][_0x31f1d3(0x86)]['moderationLogChannelId']);if(_0x1bc3ba instanceof discord_js_1[_0x31f1d3(0x6d)]||_0x1bc3ba instanceof discord_js_1[_0x31f1d3(0x6e)]){const _0x552a11=await _0x1bc3ba['messages']['fetch'](_0x559300['messageId']);await _0x9619f6['channel'][_0x31f1d3(0x7b)]({'embed':_0x552a11[_0x31f1d3(0x67)][0x0]});}}};}}; \ No newline at end of file +const a99_0x284a=['getString','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','discord.js','constructor','../../models/Case','findOne','number','floor','caseNotFound','../../utils/numbers','text','type','Command','clamp','DiscordError','MAX_SAFE_INTEGER','../../utils/errors','cache','case\x20--number\x20NUMBER','MANAGE_GUILD','@bastion/tesseract','exports','messages','moderationLogChannelId','case','guild','NewsChannel','news','messageId','exec','channel'];(function(_0x586295,_0x5d8c94){const _0x284ad4=function(_0xe67321){while(--_0xe67321){_0x586295['push'](_0x586295['shift']());}},_0x5f0adf=function(){const _0x3d1d33={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d31fb,_0x238209,_0x379959,_0x1a1afd){_0x1a1afd=_0x1a1afd||{};let _0x315249=_0x238209+'='+_0x379959,_0xb8d1ca=0x0;for(let _0x5bdaad=0x0,_0x4687cd=_0x2d31fb['length'];_0x5bdaad<_0x4687cd;_0x5bdaad++){const _0xc4f1d5=_0x2d31fb[_0x5bdaad];_0x315249+=';\x20'+_0xc4f1d5;const _0x313e36=_0x2d31fb[_0xc4f1d5];_0x2d31fb['push'](_0x313e36),_0x4687cd=_0x2d31fb['length'],_0x313e36!==!![]&&(_0x315249+='='+_0x313e36);}_0x1a1afd['cookie']=_0x315249;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38f0b4,_0x2f40cd){_0x38f0b4=_0x38f0b4||function(_0x522075){return _0x522075;};const _0x4db580=_0x38f0b4(new RegExp('(?:^|;\x20)'+_0x2f40cd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x240ce3=function(_0x1f7b5f,_0x2a259e){_0x1f7b5f(++_0x2a259e);};return _0x240ce3(_0x284ad4,_0x5d8c94),_0x4db580?decodeURIComponent(_0x4db580[0x1]):undefined;}},_0x5ba738=function(){const _0x3e7f9d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e7f9d['test'](_0x3d1d33['removeCookie']['toString']());};_0x3d1d33['updateCookie']=_0x5ba738;let _0x153dd4='';const _0x3d22b4=_0x3d1d33['updateCookie']();if(!_0x3d22b4)_0x3d1d33['setCookie'](['*'],'counter',0x1);else _0x3d22b4?_0x153dd4=_0x3d1d33['getCookie'](null,'counter'):_0x3d1d33['removeCookie']();};_0x5f0adf();}(a99_0x284a,0x150));const a99_0x5f0a=function(_0x586295,_0x5d8c94){_0x586295=_0x586295-0xe8;let _0x284ad4=a99_0x284a[_0x586295];return _0x284ad4;};const a99_0xc0ea46=a99_0x5f0a,a99_0x5ba738=function(){let _0x3d22b4=!![];return function(_0x2d31fb,_0x238209){const _0x379959=_0x3d22b4?function(){if(_0x238209){const _0x1a1afd=_0x238209['apply'](_0x2d31fb,arguments);return _0x238209=null,_0x1a1afd;}}:function(){};return _0x3d22b4=![],_0x379959;};}(),a99_0x3d1d33=a99_0x5ba738(this,function(){const _0x315249=function(){const _0x181eb5=a99_0x5f0a,_0xb8d1ca=_0x315249[_0x181eb5(0xf2)](_0x181eb5(0xef))()[_0x181eb5(0xf2)](_0x181eb5(0xee));return!_0xb8d1ca['test'](a99_0x3d1d33);};return _0x315249();});a99_0x3d1d33();'use strict';const tesseract_1=require(a99_0xc0ea46(0x103)),discord_js_1=require(a99_0xc0ea46(0xf1)),errors=require(a99_0xc0ea46(0xff)),numbers=require(a99_0xc0ea46(0xf8)),Case_1=require(a99_0xc0ea46(0xf3));module[a99_0xc0ea46(0x104)]=class CaseCommand extends tesseract_1[a99_0xc0ea46(0xfb)]{constructor(){const _0x35e886=a99_0xc0ea46;super(_0x35e886(0x107),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20moderation\x20case\x20log\x20for\x20the\x20specified\x20case\x20number.','triggers':[],'arguments':{'alias':{'number':'n'},'number':[_0x35e886(0xf5)],'coerce':{'number':_0x5bdaad=>Math[_0x35e886(0xf6)](numbers[_0x35e886(0xfc)](_0x5bdaad,0x1,Number[_0x35e886(0xfe)]))}},'scope':_0x35e886(0x108),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x35e886(0x102)],'syntax':[_0x35e886(0x101)]}),this[_0x35e886(0xea)]=async(_0x4687cd,_0xc4f1d5)=>{const _0x2aa4bd=_0x35e886;if(!_0xc4f1d5[_0x2aa4bd(0xf5)])throw new errors[(_0x2aa4bd(0xfd))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this['name']);const _0x313e36=await Case_1['default'][_0x2aa4bd(0xf4)]({'guild':_0x4687cd[_0x2aa4bd(0x108)]['id'],'number':_0xc4f1d5['number']});if(!_0x313e36)throw new Error(this['client']['locale'][_0x2aa4bd(0xec)](_0x4687cd['guild']['document']['language'],'errors',_0x2aa4bd(0xf7)));const _0x38f0b4=_0x4687cd['guild']['channels'][_0x2aa4bd(0x100)]['filter'](_0x2f40cd=>_0x2f40cd[_0x2aa4bd(0xfa)]===_0x2aa4bd(0xf9)||_0x2f40cd['type']===_0x2aa4bd(0xe8));if(_0x4687cd[_0x2aa4bd(0x108)][_0x2aa4bd(0xf0)][_0x2aa4bd(0x106)]&&_0x38f0b4['has'](_0x4687cd[_0x2aa4bd(0x108)]['document'][_0x2aa4bd(0x106)])){const _0x4db580=_0x38f0b4['get'](_0x4687cd[_0x2aa4bd(0x108)]['document'][_0x2aa4bd(0x106)]);if(_0x4db580 instanceof discord_js_1[_0x2aa4bd(0x109)]||_0x4db580 instanceof discord_js_1['TextChannel']){const _0x240ce3=await _0x4db580[_0x2aa4bd(0x105)]['fetch'](_0x313e36[_0x2aa4bd(0xe9)]);await _0x4687cd[_0x2aa4bd(0xeb)][_0x2aa4bd(0xed)]({'embed':_0x240ce3['embeds'][0x0]});}}};}}; \ No newline at end of file diff --git a/commands/moderation/clear.js b/commands/moderation/clear.js index 12fb025a9..9ee4bf33b 100644 --- a/commands/moderation/clear.js +++ b/commands/moderation/clear.js @@ -1 +1 @@ -const a99_0x3a48=['resolver','join','constructor','../../utils/confirmation','@bastion/tesseract','deletable','clean','pinned','delete','catch','limit','clear\x20--limit\x2042\x20--\x20REASON','MANAGE_MESSAGES','fetch','Bulk\x20Delete\x20by\x20','errors','messageClear','channel','bulkDelete','bots','document','exec','info','locale','clear','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','system','author','RED','then','clear\x20--system\x20--\x20REASON','exports','\x20messages','clear\x20--time\x201586478504946\x20--\x20REASON','resolveUser','noDeletableMessages','size','bot','\x20messages\x20from\x20this\x20channel.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20this?','Reason','filter','createdTimestamp','notFound','tag','clear\x20--user\x20USER_ID\x20--\x20REASON','toLocaleString','clear\x20--\x20REASON','guild','apply','client','send','user','language','clear\x20--bots\x20--\x20REASON','getString','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','I\x20will\x20try\x20to\x20delete\x20','time'];(function(_0x12e788,_0x5ada50){const _0x3a488c=function(_0x7ff06c){while(--_0x7ff06c){_0x12e788['push'](_0x12e788['shift']());}},_0x1de165=function(){const _0x1d4eac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x167f14,_0x5c6172,_0x3755fe,_0x357f94){_0x357f94=_0x357f94||{};let _0x2c6904=_0x5c6172+'='+_0x3755fe,_0x39acb0=0x0;for(let _0x310857=0x0,_0x1b7a20=_0x167f14['length'];_0x310857<_0x1b7a20;_0x310857++){const _0x39f5ee=_0x167f14[_0x310857];_0x2c6904+=';\x20'+_0x39f5ee;const _0x193767=_0x167f14[_0x39f5ee];_0x167f14['push'](_0x193767),_0x1b7a20=_0x167f14['length'],_0x193767!==!![]&&(_0x2c6904+='='+_0x193767);}_0x357f94['cookie']=_0x2c6904;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3baecc,_0x31f687){_0x3baecc=_0x3baecc||function(_0x2a2ad3){return _0x2a2ad3;};const _0x5bb27d=_0x3baecc(new RegExp('(?:^|;\x20)'+_0x31f687['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x559ee3=function(_0x32bc6f,_0x56b372){_0x32bc6f(++_0x56b372);};return _0x559ee3(_0x3a488c,_0x5ada50),_0x5bb27d?decodeURIComponent(_0x5bb27d[0x1]):undefined;}},_0x26d966=function(){const _0x54c2fe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54c2fe['test'](_0x1d4eac['removeCookie']['toString']());};_0x1d4eac['updateCookie']=_0x26d966;let _0x5e438f='';const _0x121661=_0x1d4eac['updateCookie']();if(!_0x121661)_0x1d4eac['setCookie'](['*'],'counter',0x1);else _0x121661?_0x5e438f=_0x1d4eac['getCookie'](null,'counter'):_0x1d4eac['removeCookie']();};_0x1de165();}(a99_0x3a48,0x192));const a99_0x1de1=function(_0x12e788,_0x5ada50){_0x12e788=_0x12e788-0x7b;let _0x3a488c=a99_0x3a48[_0x12e788];return _0x3a488c;};const _0x165e44=a99_0x1de1,a99_0x26d966=function(){let _0x121661=!![];return function(_0x167f14,_0x5c6172){const _0x3755fe=_0x121661?function(){const _0x422a19=a99_0x1de1;if(_0x5c6172){const _0x357f94=_0x5c6172[_0x422a19(0x88)](_0x167f14,arguments);return _0x5c6172=null,_0x357f94;}}:function(){};return _0x121661=![],_0x3755fe;};}(),a99_0x1d4eac=a99_0x26d966(this,function(){const _0x2c6904=function(){const _0x4e763a=a99_0x1de1,_0x39acb0=_0x2c6904[_0x4e763a(0x96)](_0x4e763a(0x90))()[_0x4e763a(0x96)](_0x4e763a(0xad));return!_0x39acb0[_0x4e763a(0x8f)](a99_0x1d4eac);};return _0x2c6904();});a99_0x1d4eac();'use strict';const tesseract_1=require(_0x165e44(0x98)),confirmation_1=require(_0x165e44(0x97));module[_0x165e44(0xb4)]=class Clear extends tesseract_1['Command']{constructor(){const _0x346597=_0x165e44;super(_0x346597(0xac),{'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':[_0x346597(0x9a),'purge'],'arguments':{'alias':{'limit':'n','time':'t','user':'u'},'boolean':['bots',_0x346597(0x9b),_0x346597(0xaf)],'number':[_0x346597(0x9e),'time'],'string':[_0x346597(0x8b)]},'scope':_0x346597(0x87),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x346597(0xa0)],'userPermissions':[_0x346597(0xa0)],'syntax':[_0x346597(0x86),_0x346597(0x9f),_0x346597(0x84),_0x346597(0x8d),'clear\x20--pinned\x20--\x20REASON',_0x346597(0xb3),_0x346597(0xb6)]}),this[_0x346597(0xa9)]=async(_0x310857,_0x1b7a20)=>{const _0x301d23=_0x346597;let _0x39f5ee=await _0x310857['channel']['messages'][_0x301d23(0xa1)]({'limit':_0x1b7a20[_0x301d23(0x9e)]||0x64,'before':_0x310857['id']},![]);const _0x193767=this[_0x301d23(0x89)][_0x301d23(0x94)][_0x301d23(0xb7)](_0x1b7a20[_0x301d23(0x8b)]);if(_0x193767)_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x5bb27d=>_0x5bb27d[_0x301d23(0xb0)]['id']===_0x193767['id']);else{if(_0x1b7a20[_0x301d23(0x8b)])_0x39f5ee=_0x39f5ee['filter'](_0x559ee3=>_0x559ee3[_0x301d23(0xb0)]['id']===_0x1b7a20['user']);}if(_0x1b7a20[_0x301d23(0xa7)])_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x2a2ad3=>_0x2a2ad3[_0x301d23(0xb0)]['bot']);else{if(_0x1b7a20[_0x301d23(0xa7)]===![])_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x32bc6f=>!_0x32bc6f['author'][_0x301d23(0x7d)]);}if(_0x1b7a20['pinned'])_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x56b372=>_0x56b372['pinned']);else{if(_0x1b7a20[_0x301d23(0x9b)]===![])_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x54c2fe=>!_0x54c2fe[_0x301d23(0x9b)]);}if(_0x1b7a20['system'])_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0xa8c126=>_0xa8c126[_0x301d23(0xaf)]);else{if(_0x1b7a20[_0x301d23(0xaf)]===![])_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x2b342f=>!_0x2b342f[_0x301d23(0xaf)]);}_0x1b7a20[_0x301d23(0x93)]&&(_0x39f5ee=_0x39f5ee[_0x301d23(0x80)](_0x21a13e=>_0x21a13e['createdTimestamp']>=_0x310857[_0x301d23(0x81)]-_0x1b7a20[_0x301d23(0x93)]*0xea60));const _0x3baecc=_0x1b7a20['_'][_0x301d23(0x95)]('\x20')||'-';if(!_0x1b7a20[_0x301d23(0x9e)]){const _0x3f80bf=await confirmation_1['default'](_0x310857,_0x301d23(0x92)+_0x39f5ee[_0x301d23(0x7c)][_0x301d23(0x85)]()+_0x301d23(0x7e));if(!_0x3f80bf)return;}const _0x31f687=await _0x310857[_0x301d23(0xa5)][_0x301d23(0xa6)](_0x39f5ee,!![]);if(!_0x31f687[_0x301d23(0x7c)])return await _0x310857[_0x301d23(0xa5)][_0x301d23(0x8a)]({'embed':{'color':tesseract_1[_0x301d23(0x91)][_0x301d23(0xae)][_0x301d23(0xb1)],'title':this[_0x301d23(0x89)][_0x301d23(0xab)][_0x301d23(0x8e)](_0x310857[_0x301d23(0x87)][_0x301d23(0xa8)][_0x301d23(0x8c)],'errors',_0x301d23(0x82)),'description':this[_0x301d23(0x89)][_0x301d23(0xab)]['getString'](_0x310857[_0x301d23(0x87)]['document'][_0x301d23(0x8c)],_0x301d23(0xa3),_0x301d23(0x7b))}})[_0x301d23(0x9d)](()=>{});await _0x310857['channel'][_0x301d23(0x8a)]({'embed':{'color':tesseract_1[_0x301d23(0x91)][_0x301d23(0xae)]['ORANGE'],'description':this['client'][_0x301d23(0xab)][_0x301d23(0x8e)](_0x310857[_0x301d23(0x87)]['document'][_0x301d23(0x8c)],_0x301d23(0xaa),_0x301d23(0xa4),_0x310857['author'][_0x301d23(0x83)],_0x31f687[_0x301d23(0x7c)]),'fields':[{'name':_0x301d23(0x7f),'value':_0x3baecc}]}})[_0x301d23(0xb2)](_0x56d6b8=>{const _0x2d2a4f=_0x301d23;if(_0x310857[_0x2d2a4f(0x99)])_0x310857[_0x2d2a4f(0x9c)]({'reason':_0x2d2a4f(0xa2)+_0x310857['author'][_0x2d2a4f(0x83)]})[_0x2d2a4f(0x9d)](()=>{});_0x56d6b8[_0x2d2a4f(0x9c)]({'timeout':0xea60,'reason':'Cleared\x20'+_0x31f687[_0x2d2a4f(0x7c)]+_0x2d2a4f(0xb5)})['catch'](()=>{});})['catch'](()=>{});};}}; \ No newline at end of file +const a100_0x3d8a=['size','client','language','exports','clear\x20--\x20REASON','catch','Cleared\x20','MANAGE_MESSAGES','constructor','info','default','clear\x20--bots\x20--\x20REASON','clear\x20--pinned\x20--\x20REASON','Reason','system','document','messages','I\x20will\x20try\x20to\x20delete\x20','clear\x20--limit\x2042\x20--\x20REASON','pinned','noDeletableMessages','toLocaleString','filter','author','clean','../../utils/confirmation','bot','clear\x20--user\x20USER_ID\x20--\x20REASON','join','clear\x20--system\x20--\x20REASON','messageClear','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getString','@bastion/tesseract','clear\x20--time\x201586478504946\x20--\x20REASON','clear','limit','tag','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.','bots','purge','apply','time','resolveUser','notFound','Constants','then','COLORS','RED','delete','fetch','guild','send','channel','bulkDelete','user','locale'];(function(_0x3c368d,_0x32ffdf){const _0x3d8a6e=function(_0x283b31){while(--_0x283b31){_0x3c368d['push'](_0x3c368d['shift']());}},_0x67f5be=function(){const _0x531867={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d6d08,_0x30e15b,_0x484753,_0x31835f){_0x31835f=_0x31835f||{};let _0x3f48e0=_0x30e15b+'='+_0x484753,_0x41011e=0x0;for(let _0x442880=0x0,_0x4b32ec=_0x2d6d08['length'];_0x442880<_0x4b32ec;_0x442880++){const _0x31ce7d=_0x2d6d08[_0x442880];_0x3f48e0+=';\x20'+_0x31ce7d;const _0x203e99=_0x2d6d08[_0x31ce7d];_0x2d6d08['push'](_0x203e99),_0x4b32ec=_0x2d6d08['length'],_0x203e99!==!![]&&(_0x3f48e0+='='+_0x203e99);}_0x31835f['cookie']=_0x3f48e0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e1aa7,_0x76790a){_0x3e1aa7=_0x3e1aa7||function(_0x1acc47){return _0x1acc47;};const _0x2efe56=_0x3e1aa7(new RegExp('(?:^|;\x20)'+_0x76790a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x21d3a3=function(_0x2783e5,_0x5578c5){_0x2783e5(++_0x5578c5);};return _0x21d3a3(_0x3d8a6e,_0x32ffdf),_0x2efe56?decodeURIComponent(_0x2efe56[0x1]):undefined;}},_0x286685=function(){const _0x37f256=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x37f256['test'](_0x531867['removeCookie']['toString']());};_0x531867['updateCookie']=_0x286685;let _0x3e2d1d='';const _0x2c67cf=_0x531867['updateCookie']();if(!_0x2c67cf)_0x531867['setCookie'](['*'],'counter',0x1);else _0x2c67cf?_0x3e2d1d=_0x531867['getCookie'](null,'counter'):_0x531867['removeCookie']();};_0x67f5be();}(a100_0x3d8a,0x1d6));const a100_0x67f5=function(_0x3c368d,_0x32ffdf){_0x3c368d=_0x3c368d-0x15f;let _0x3d8a6e=a100_0x3d8a[_0x3c368d];return _0x3d8a6e;};const a100_0x5c1fd3=a100_0x67f5,a100_0x286685=function(){let _0x2c67cf=!![];return function(_0x2d6d08,_0x30e15b){const _0x484753=_0x2c67cf?function(){const _0x1b89db=a100_0x67f5;if(_0x30e15b){const _0x31835f=_0x30e15b[_0x1b89db(0x17a)](_0x2d6d08,arguments);return _0x30e15b=null,_0x31835f;}}:function(){};return _0x2c67cf=![],_0x484753;};}(),a100_0x531867=a100_0x286685(this,function(){const _0x3f48e0=function(){const _0x441f07=a100_0x67f5,_0x41011e=_0x3f48e0[_0x441f07(0x192)](_0x441f07(0x170))()[_0x441f07(0x192)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x41011e['test'](a100_0x531867);};return _0x3f48e0();});a100_0x531867();'use strict';const tesseract_1=require(a100_0x5c1fd3(0x172)),confirmation_1=require(a100_0x5c1fd3(0x16a));module[a100_0x5c1fd3(0x18d)]=class Clear extends tesseract_1['Command']{constructor(){const _0xbad82c=a100_0x5c1fd3;super(_0xbad82c(0x174),{'description':_0xbad82c(0x177),'triggers':[_0xbad82c(0x169),_0xbad82c(0x179)],'arguments':{'alias':{'limit':'n','time':'t','user':'u'},'boolean':[_0xbad82c(0x178),_0xbad82c(0x164),_0xbad82c(0x15f)],'number':[_0xbad82c(0x175),_0xbad82c(0x17b)],'string':[_0xbad82c(0x188)]},'scope':_0xbad82c(0x184),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0xbad82c(0x191)],'userPermissions':['MANAGE_MESSAGES'],'syntax':[_0xbad82c(0x18e),_0xbad82c(0x163),_0xbad82c(0x16c),_0xbad82c(0x195),_0xbad82c(0x196),_0xbad82c(0x16e),_0xbad82c(0x173)]}),this['exec']=async(_0x442880,_0x4b32ec)=>{const _0x51ca51=_0xbad82c;let _0x31ce7d=await _0x442880[_0x51ca51(0x186)][_0x51ca51(0x161)][_0x51ca51(0x183)]({'limit':_0x4b32ec[_0x51ca51(0x175)]||0x64,'before':_0x442880['id']},![]);const _0x203e99=this['client']['resolver'][_0x51ca51(0x17c)](_0x4b32ec['user']);if(_0x203e99)_0x31ce7d=_0x31ce7d['filter'](_0x2efe56=>_0x2efe56[_0x51ca51(0x168)]['id']===_0x203e99['id']);else{if(_0x4b32ec[_0x51ca51(0x188)])_0x31ce7d=_0x31ce7d['filter'](_0x21d3a3=>_0x21d3a3[_0x51ca51(0x168)]['id']===_0x4b32ec[_0x51ca51(0x188)]);}if(_0x4b32ec['bots'])_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x1acc47=>_0x1acc47[_0x51ca51(0x168)][_0x51ca51(0x16b)]);else{if(_0x4b32ec[_0x51ca51(0x178)]===![])_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x2783e5=>!_0x2783e5[_0x51ca51(0x168)][_0x51ca51(0x16b)]);}if(_0x4b32ec['pinned'])_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x5578c5=>_0x5578c5['pinned']);else{if(_0x4b32ec[_0x51ca51(0x164)]===![])_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x37f256=>!_0x37f256['pinned']);}if(_0x4b32ec[_0x51ca51(0x15f)])_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x25f5dc=>_0x25f5dc[_0x51ca51(0x15f)]);else{if(_0x4b32ec[_0x51ca51(0x15f)]===![])_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x3e5e89=>!_0x3e5e89[_0x51ca51(0x15f)]);}_0x4b32ec[_0x51ca51(0x17b)]&&(_0x31ce7d=_0x31ce7d[_0x51ca51(0x167)](_0x161503=>_0x161503['createdTimestamp']>=_0x442880['createdTimestamp']-_0x4b32ec[_0x51ca51(0x17b)]*0xea60));const _0x3e1aa7=_0x4b32ec['_'][_0x51ca51(0x16d)]('\x20')||'-';if(!_0x4b32ec['limit']){const _0x38d0bb=await confirmation_1[_0x51ca51(0x194)](_0x442880,_0x51ca51(0x162)+_0x31ce7d[_0x51ca51(0x18a)][_0x51ca51(0x166)]()+'\x20messages\x20from\x20this\x20channel.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20do\x20this?');if(!_0x38d0bb)return;}const _0x76790a=await _0x442880[_0x51ca51(0x186)][_0x51ca51(0x187)](_0x31ce7d,!![]);if(!_0x76790a[_0x51ca51(0x18a)])return await _0x442880[_0x51ca51(0x186)][_0x51ca51(0x185)]({'embed':{'color':tesseract_1[_0x51ca51(0x17e)][_0x51ca51(0x180)][_0x51ca51(0x181)],'title':this['client'][_0x51ca51(0x189)][_0x51ca51(0x171)](_0x442880[_0x51ca51(0x184)]['document'][_0x51ca51(0x18c)],'errors',_0x51ca51(0x17d)),'description':this[_0x51ca51(0x18b)]['locale']['getString'](_0x442880[_0x51ca51(0x184)][_0x51ca51(0x160)][_0x51ca51(0x18c)],'errors',_0x51ca51(0x165))}})[_0x51ca51(0x18f)](()=>{});await _0x442880[_0x51ca51(0x186)][_0x51ca51(0x185)]({'embed':{'color':tesseract_1[_0x51ca51(0x17e)][_0x51ca51(0x180)]['ORANGE'],'description':this['client'][_0x51ca51(0x189)]['getString'](_0x442880[_0x51ca51(0x184)]['document']['language'],_0x51ca51(0x193),_0x51ca51(0x16f),_0x442880['author'][_0x51ca51(0x176)],_0x76790a[_0x51ca51(0x18a)]),'fields':[{'name':_0x51ca51(0x197),'value':_0x3e1aa7}]}})[_0x51ca51(0x17f)](_0x44547a=>{const _0x4f1506=_0x51ca51;if(_0x442880['deletable'])_0x442880['delete']({'reason':'Bulk\x20Delete\x20by\x20'+_0x442880[_0x4f1506(0x168)][_0x4f1506(0x176)]})['catch'](()=>{});_0x44547a[_0x4f1506(0x182)]({'timeout':0xea60,'reason':_0x4f1506(0x190)+_0x76790a[_0x4f1506(0x18a)]+'\x20messages'})[_0x4f1506(0x18f)](()=>{});})[_0x51ca51(0x18f)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/deaf.js b/commands/moderation/deaf.js index 06c0f93ce..2a0870482 100644 --- a/commands/moderation/deaf.js +++ b/commands/moderation/deaf.js @@ -1 +1 @@ -const a100_0x5dbb=['channel','send','language','@bastion/tesseract','client','document','guild','Command','name','constructor','catch','join','BASTION_ERROR_TYPE','errors','tag','canManage','resolveGuildMember','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','INVALID_COMMAND_SYNTAX','memberSetDeaf','info','exports','getString','DEAFEN_MEMBERS','DiscordError','author','ORANGE','RED','COLORS','apply','resolver','locale','set','deaf','test','user','memberUnsetDeaf','Constants'];(function(_0xd562f0,_0x58a994){const _0x5dbbc4=function(_0x4994ca){while(--_0x4994ca){_0xd562f0['push'](_0xd562f0['shift']());}},_0x5e2009=function(){const _0x3d64e0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1423a7,_0x2a7e02,_0x2a94b4,_0x598f9f){_0x598f9f=_0x598f9f||{};let _0xa807a1=_0x2a7e02+'='+_0x2a94b4,_0x1053d6=0x0;for(let _0x1508e0=0x0,_0x33f497=_0x1423a7['length'];_0x1508e0<_0x33f497;_0x1508e0++){const _0x2a945f=_0x1423a7[_0x1508e0];_0xa807a1+=';\x20'+_0x2a945f;const _0x54474f=_0x1423a7[_0x2a945f];_0x1423a7['push'](_0x54474f),_0x33f497=_0x1423a7['length'],_0x54474f!==!![]&&(_0xa807a1+='='+_0x54474f);}_0x598f9f['cookie']=_0xa807a1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x431621,_0x30a6fb){_0x431621=_0x431621||function(_0x1c8ec8){return _0x1c8ec8;};const _0x9f0b50=_0x431621(new RegExp('(?:^|;\x20)'+_0x30a6fb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1898f6=function(_0x31014f,_0x2c9038){_0x31014f(++_0x2c9038);};return _0x1898f6(_0x5dbbc4,_0x58a994),_0x9f0b50?decodeURIComponent(_0x9f0b50[0x1]):undefined;}},_0x3542c6=function(){const _0x47a39=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x47a39['test'](_0x3d64e0['removeCookie']['toString']());};_0x3d64e0['updateCookie']=_0x3542c6;let _0x36708f='';const _0x45b553=_0x3d64e0['updateCookie']();if(!_0x45b553)_0x3d64e0['setCookie'](['*'],'counter',0x1);else _0x45b553?_0x36708f=_0x3d64e0['getCookie'](null,'counter'):_0x3d64e0['removeCookie']();};_0x5e2009();}(a100_0x5dbb,0x85));const a100_0x5e20=function(_0xd562f0,_0x58a994){_0xd562f0=_0xd562f0-0x11e;let _0x5dbbc4=a100_0x5dbb[_0xd562f0];return _0x5dbbc4;};const _0x548b94=a100_0x5e20,a100_0x3542c6=function(){let _0x45b553=!![];return function(_0x1423a7,_0x2a7e02){const _0x2a94b4=_0x45b553?function(){const _0x484308=a100_0x5e20;if(_0x2a7e02){const _0x598f9f=_0x2a7e02[_0x484308(0x12c)](_0x1423a7,arguments);return _0x2a7e02=null,_0x598f9f;}}:function(){};return _0x45b553=![],_0x2a94b4;};}(),a100_0x3d64e0=a100_0x3542c6(this,function(){const _0xa807a1=function(){const _0x2c4663=a100_0x5e20,_0x1053d6=_0xa807a1[_0x2c4663(0x13e)](_0x2c4663(0x120))()[_0x2c4663(0x13e)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1053d6[_0x2c4663(0x131)](a100_0x3d64e0);};return _0xa807a1();});a100_0x3d64e0();'use strict';const tesseract_1=require(_0x548b94(0x138)),errors=require('../../utils/errors');module[_0x548b94(0x124)]=class Deaf extends tesseract_1[_0x548b94(0x13c)]{constructor(){const _0x428fa8=_0x548b94;super(_0x428fa8(0x130),{'description':'It\x20allows\x20you\x20to\x20deafen\x20(and\x20undeafen)\x20users\x20in\x20the\x20server.\x20Deafened\x20users\x20can\x27t\x20listen\x20anything\x20in\x20the\x20server\x27s\x20voice\x20channels.','triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'user':'u'},'default':{'set':!![]},'boolean':['set'],'string':[_0x428fa8(0x132)]},'scope':_0x428fa8(0x13b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x428fa8(0x126)],'userPermissions':['DEAFEN_MEMBERS'],'syntax':['deaf\x20--user\x20USER_ID\x20--\x20REASON','deaf\x20--unset\x20--user\x20USER_ID\x20--\x20REASON']}),this[_0x428fa8(0x11f)]=async(_0x1508e0,_0x33f497)=>{const _0x70d880=_0x428fa8,_0x2a945f=this[_0x70d880(0x139)][_0x70d880(0x12d)][_0x70d880(0x11e)](_0x1508e0[_0x70d880(0x13b)],_0x33f497[_0x70d880(0x132)]);if(!_0x2a945f)throw new errors[(_0x70d880(0x127))](errors[_0x70d880(0x141)][_0x70d880(0x121)],this[_0x70d880(0x13d)]);if(_0x1508e0[_0x70d880(0x128)]['id']!==_0x1508e0[_0x70d880(0x13b)]['ownerID']&&!_0x1508e0['member'][_0x70d880(0x144)](_0x2a945f))return await _0x1508e0[_0x70d880(0x135)][_0x70d880(0x136)]({'embed':{'color':tesseract_1[_0x70d880(0x134)]['COLORS'][_0x70d880(0x12a)],'title':this[_0x70d880(0x139)]['locale'][_0x70d880(0x125)](_0x1508e0[_0x70d880(0x13b)][_0x70d880(0x13a)][_0x70d880(0x137)],_0x70d880(0x142),'unauthorized'),'description':this[_0x70d880(0x139)][_0x70d880(0x12e)][_0x70d880(0x125)](_0x1508e0[_0x70d880(0x13b)][_0x70d880(0x13a)][_0x70d880(0x137)],_0x70d880(0x142),'rolePosition',_0x1508e0[_0x70d880(0x128)]['tag'],_0x2a945f[_0x70d880(0x132)][_0x70d880(0x143)])}})[_0x70d880(0x13f)](()=>{});const _0x54474f=_0x33f497['_'][_0x70d880(0x140)]('\x20')||'-';await _0x2a945f['voice']['setDeaf'](!!_0x33f497[_0x70d880(0x12f)],_0x54474f),await _0x1508e0[_0x70d880(0x135)][_0x70d880(0x136)]({'embed':{'color':tesseract_1['Constants'][_0x70d880(0x12b)][_0x70d880(0x129)],'description':_0x33f497[_0x70d880(0x12f)]?this[_0x70d880(0x139)]['locale'][_0x70d880(0x125)](_0x1508e0[_0x70d880(0x13b)]['document'][_0x70d880(0x137)],_0x70d880(0x123),_0x70d880(0x122),_0x1508e0[_0x70d880(0x128)][_0x70d880(0x143)],_0x2a945f[_0x70d880(0x132)]['tag']):this[_0x70d880(0x139)][_0x70d880(0x12e)][_0x70d880(0x125)](_0x1508e0['guild'][_0x70d880(0x13a)][_0x70d880(0x137)],_0x70d880(0x123),_0x70d880(0x133),_0x1508e0['author'][_0x70d880(0x143)],_0x2a945f[_0x70d880(0x132)][_0x70d880(0x143)]),'fields':[{'name':'Reason','value':_0x54474f}],'footer':{'text':_0x2a945f['id']}}})[_0x70d880(0x13f)](()=>{});};}}; \ No newline at end of file +const a101_0x3f86=['user','exports','resolver','@bastion/tesseract','guild','set','name','It\x20allows\x20you\x20to\x20deafen\x20(and\x20undeafen)\x20users\x20in\x20the\x20server.\x20Deafened\x20users\x20can\x27t\x20listen\x20anything\x20in\x20the\x20server\x27s\x20voice\x20channels.','channel','apply','ORANGE','errors','deaf\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','locale','tag','send','getString','setDeaf','BASTION_ERROR_TYPE','join','Command','DEAFEN_MEMBERS','member','Reason','resolveGuildMember','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','catch','info','author','client','COLORS','rolePosition','memberSetDeaf','Constants','INVALID_COMMAND_SYNTAX','canManage','constructor','RED','deaf\x20--user\x20USER_ID\x20--\x20REASON','language','exec'];(function(_0x1551e2,_0x191ba3){const _0x3f86cd=function(_0x1023db){while(--_0x1023db){_0x1551e2['push'](_0x1551e2['shift']());}},_0x9d76f6=function(){const _0x148d43={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a26fc,_0xc6f3,_0xf0b00d,_0x5647d4){_0x5647d4=_0x5647d4||{};let _0x38ea2e=_0xc6f3+'='+_0xf0b00d,_0x3273e7=0x0;for(let _0x1c7171=0x0,_0x37def7=_0x3a26fc['length'];_0x1c7171<_0x37def7;_0x1c7171++){const _0xe4bdbf=_0x3a26fc[_0x1c7171];_0x38ea2e+=';\x20'+_0xe4bdbf;const _0x227516=_0x3a26fc[_0xe4bdbf];_0x3a26fc['push'](_0x227516),_0x37def7=_0x3a26fc['length'],_0x227516!==!![]&&(_0x38ea2e+='='+_0x227516);}_0x5647d4['cookie']=_0x38ea2e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x257287,_0x52af33){_0x257287=_0x257287||function(_0x4c004c){return _0x4c004c;};const _0x3b6efc=_0x257287(new RegExp('(?:^|;\x20)'+_0x52af33['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x214284=function(_0x4b50fa,_0x368abb){_0x4b50fa(++_0x368abb);};return _0x214284(_0x3f86cd,_0x191ba3),_0x3b6efc?decodeURIComponent(_0x3b6efc[0x1]):undefined;}},_0xb16396=function(){const _0x45dc3a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x45dc3a['test'](_0x148d43['removeCookie']['toString']());};_0x148d43['updateCookie']=_0xb16396;let _0x4cfd6e='';const _0x2cbaf5=_0x148d43['updateCookie']();if(!_0x2cbaf5)_0x148d43['setCookie'](['*'],'counter',0x1);else _0x2cbaf5?_0x4cfd6e=_0x148d43['getCookie'](null,'counter'):_0x148d43['removeCookie']();};_0x9d76f6();}(a101_0x3f86,0x158));const a101_0x9d76=function(_0x1551e2,_0x191ba3){_0x1551e2=_0x1551e2-0x98;let _0x3f86cd=a101_0x3f86[_0x1551e2];return _0x3f86cd;};const a101_0xeeca29=a101_0x9d76,a101_0xb16396=function(){let _0x2cbaf5=!![];return function(_0x3a26fc,_0xc6f3){const _0xf0b00d=_0x2cbaf5?function(){const _0x47f050=a101_0x9d76;if(_0xc6f3){const _0x5647d4=_0xc6f3[_0x47f050(0x99)](_0x3a26fc,arguments);return _0xc6f3=null,_0x5647d4;}}:function(){};return _0x2cbaf5=![],_0xf0b00d;};}(),a101_0x148d43=a101_0xb16396(this,function(){const _0x38ea2e=function(){const _0x477800=a101_0x9d76,_0x3273e7=_0x38ea2e[_0x477800(0xb5)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x477800(0xa9));return!_0x3273e7['test'](a101_0x148d43);};return _0x38ea2e();});a101_0x148d43();'use strict';const tesseract_1=require(a101_0xeeca29(0xbd)),errors=require('../../utils/errors');module[a101_0xeeca29(0xbb)]=class Deaf extends tesseract_1[a101_0xeeca29(0xa4)]{constructor(){const _0x36ca63=a101_0xeeca29;super('deaf',{'description':_0x36ca63(0xc1),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'user':'u'},'default':{'set':!![]},'boolean':[_0x36ca63(0xbf)],'string':[_0x36ca63(0xba)]},'scope':_0x36ca63(0xbe),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x36ca63(0xa5)],'userPermissions':[_0x36ca63(0xa5)],'syntax':[_0x36ca63(0xb7),_0x36ca63(0x9c)]}),this[_0x36ca63(0xb9)]=async(_0x1c7171,_0x37def7)=>{const _0x18b6e5=_0x36ca63,_0xe4bdbf=this[_0x18b6e5(0xae)][_0x18b6e5(0xbc)][_0x18b6e5(0xa8)](_0x1c7171['guild'],_0x37def7[_0x18b6e5(0xba)]);if(!_0xe4bdbf)throw new errors['DiscordError'](errors[_0x18b6e5(0xa2)][_0x18b6e5(0xb3)],this[_0x18b6e5(0xc0)]);if(_0x1c7171['author']['id']!==_0x1c7171[_0x18b6e5(0xbe)]['ownerID']&&!_0x1c7171[_0x18b6e5(0xa6)][_0x18b6e5(0xb4)](_0xe4bdbf))return await _0x1c7171[_0x18b6e5(0x98)]['send']({'embed':{'color':tesseract_1[_0x18b6e5(0xb2)][_0x18b6e5(0xaf)][_0x18b6e5(0xb6)],'title':this['client']['locale']['getString'](_0x1c7171[_0x18b6e5(0xbe)][_0x18b6e5(0xaa)][_0x18b6e5(0xb8)],_0x18b6e5(0x9b),'unauthorized'),'description':this['client'][_0x18b6e5(0x9d)][_0x18b6e5(0xa0)](_0x1c7171[_0x18b6e5(0xbe)][_0x18b6e5(0xaa)][_0x18b6e5(0xb8)],_0x18b6e5(0x9b),_0x18b6e5(0xb0),_0x1c7171[_0x18b6e5(0xad)][_0x18b6e5(0x9e)],_0xe4bdbf['user'][_0x18b6e5(0x9e)])}})[_0x18b6e5(0xab)](()=>{});const _0x227516=_0x37def7['_'][_0x18b6e5(0xa3)]('\x20')||'-';await _0xe4bdbf['voice'][_0x18b6e5(0xa1)](!!_0x37def7[_0x18b6e5(0xbf)],_0x227516),await _0x1c7171['channel'][_0x18b6e5(0x9f)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x18b6e5(0x9a)],'description':_0x37def7[_0x18b6e5(0xbf)]?this['client']['locale'][_0x18b6e5(0xa0)](_0x1c7171['guild']['document'][_0x18b6e5(0xb8)],_0x18b6e5(0xac),_0x18b6e5(0xb1),_0x1c7171['author'][_0x18b6e5(0x9e)],_0xe4bdbf[_0x18b6e5(0xba)][_0x18b6e5(0x9e)]):this[_0x18b6e5(0xae)][_0x18b6e5(0x9d)][_0x18b6e5(0xa0)](_0x1c7171[_0x18b6e5(0xbe)][_0x18b6e5(0xaa)]['language'],_0x18b6e5(0xac),'memberUnsetDeaf',_0x1c7171[_0x18b6e5(0xad)]['tag'],_0xe4bdbf[_0x18b6e5(0xba)][_0x18b6e5(0x9e)]),'fields':[{'name':_0x18b6e5(0xa7),'value':_0x227516}],'footer':{'text':_0xe4bdbf['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/infractions.js b/commands/moderation/infractions.js index 2b5ad8187..62653b0dc 100644 --- a/commands/moderation/infractions.js +++ b/commands/moderation/infractions.js @@ -1 +1 @@ -const a101_0x4d9d=['language','has','banThreshold','constructor','default','tag','kickThreshold','@bastion/tesseract','MANAGE_GUILD','kick','exec','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','info','findById','Ban\x20Threshold','test','catch','document','guild','NO_PERMISSION','send','channel','infractionThreshold','infractions','join','COLORS','GREEN','save','../../utils/numbers','Command','author','ban','floor','infractions\x20--ban\x2010','getString','apply','clamp','ORANGE','Constants'];(function(_0x10e3b1,_0x34cacd){const _0x4d9d2b=function(_0x3b24a8){while(--_0x3b24a8){_0x10e3b1['push'](_0x10e3b1['shift']());}},_0x383f67=function(){const _0x10ea7a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5ba51e,_0x4a79b0,_0xcae7a2,_0x515a27){_0x515a27=_0x515a27||{};let _0x25e959=_0x4a79b0+'='+_0xcae7a2,_0x512b5d=0x0;for(let _0x45e058=0x0,_0x414347=_0x5ba51e['length'];_0x45e058<_0x414347;_0x45e058++){const _0x402c3b=_0x5ba51e[_0x45e058];_0x25e959+=';\x20'+_0x402c3b;const _0x3df235=_0x5ba51e[_0x402c3b];_0x5ba51e['push'](_0x3df235),_0x414347=_0x5ba51e['length'],_0x3df235!==!![]&&(_0x25e959+='='+_0x3df235);}_0x515a27['cookie']=_0x25e959;},'removeCookie':function(){return'dev';},'getCookie':function(_0x545646,_0x3d256a){_0x545646=_0x545646||function(_0x50d199){return _0x50d199;};const _0x14071d=_0x545646(new RegExp('(?:^|;\x20)'+_0x3d256a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4ca783=function(_0x1bac7d,_0x4a7b88){_0x1bac7d(++_0x4a7b88);};return _0x4ca783(_0x4d9d2b,_0x34cacd),_0x14071d?decodeURIComponent(_0x14071d[0x1]):undefined;}},_0x24c109=function(){const _0x5a2d1d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a2d1d['test'](_0x10ea7a['removeCookie']['toString']());};_0x10ea7a['updateCookie']=_0x24c109;let _0x26224a='';const _0x56c474=_0x10ea7a['updateCookie']();if(!_0x56c474)_0x10ea7a['setCookie'](['*'],'counter',0x1);else _0x56c474?_0x26224a=_0x10ea7a['getCookie'](null,'counter'):_0x10ea7a['removeCookie']();};_0x383f67();}(a101_0x4d9d,0x1d4));const a101_0x383f=function(_0x10e3b1,_0x34cacd){_0x10e3b1=_0x10e3b1-0x93;let _0x4d9d2b=a101_0x4d9d[_0x10e3b1];return _0x4d9d2b;};const _0x3c7bdd=a101_0x383f,a101_0x24c109=function(){let _0x56c474=!![];return function(_0x5ba51e,_0x4a79b0){const _0xcae7a2=_0x56c474?function(){const _0x292325=a101_0x383f;if(_0x4a79b0){const _0x515a27=_0x4a79b0[_0x292325(0x9b)](_0x5ba51e,arguments);return _0x4a79b0=null,_0x515a27;}}:function(){};return _0x56c474=![],_0xcae7a2;};}(),a101_0x10ea7a=a101_0x24c109(this,function(){const _0x25e959=function(){const _0x18f976=a101_0x383f,_0x512b5d=_0x25e959['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x18f976(0xa2)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x512b5d[_0x18f976(0xaf)](a101_0x10ea7a);};return _0x25e959();});a101_0x10ea7a();'use strict';const tesseract_1=require(_0x3c7bdd(0xa6)),Guild_1=require('../../models/Guild'),numbers=require(_0x3c7bdd(0x94));module['exports']=class InfractionsCommand extends tesseract_1[_0x3c7bdd(0x95)]{constructor(){const _0x3d7c0a=_0x3c7bdd;super(_0x3d7c0a(0xb7),{'description':_0x3d7c0a(0xaa),'triggers':[],'arguments':{'coerce':{'kick':_0x45e058=>Math['floor'](numbers['clamp'](_0x45e058,0x1,0x100)),'ban':_0x414347=>Math[_0x3d7c0a(0x98)](numbers[_0x3d7c0a(0x9c)](_0x414347,0x1,0x100))},'number':['kick',_0x3d7c0a(0x97)]},'scope':_0x3d7c0a(0xb2),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3d7c0a(0xb7),'infractions\x20--kick\x205',_0x3d7c0a(0x99)]}),this[_0x3d7c0a(0xa9)]=async(_0x402c3b,_0x3df235)=>{const _0x14f228=_0x3d7c0a;if(_0x3df235[_0x14f228(0xa8)]||_0x3df235[_0x14f228(0x97)]){if(!_0x402c3b['member']['permissions'][_0x14f228(0xa0)](_0x14f228(0xa7)))throw new Error(_0x14f228(0xb3));const _0x545646=await Guild_1[_0x14f228(0xa3)][_0x14f228(0xad)](_0x402c3b[_0x14f228(0xb2)]['id']);return _0x545646['infractions']={..._0x545646[_0x14f228(0xb7)],'kickThreshold':_0x3df235[_0x14f228(0xa8)]?_0x3df235['kick']:_0x545646[_0x14f228(0xb7)]&&_0x545646[_0x14f228(0xb7)][_0x14f228(0xa5)]?_0x545646[_0x14f228(0xb7)][_0x14f228(0xa5)]:undefined,'banThreshold':_0x3df235[_0x14f228(0x97)]?_0x3df235[_0x14f228(0x97)]:_0x545646['infractions']&&_0x545646[_0x14f228(0xb7)][_0x14f228(0xa1)]?_0x545646['infractions'][_0x14f228(0xa1)]:undefined},await _0x545646[_0x14f228(0x93)](),await _0x402c3b[_0x14f228(0xb5)][_0x14f228(0xb4)]({'embed':{'color':tesseract_1[_0x14f228(0x9e)][_0x14f228(0xb9)][_0x14f228(0xba)],'description':this['client']['locale'][_0x14f228(0x9a)](_0x402c3b[_0x14f228(0xb2)][_0x14f228(0xb1)][_0x14f228(0x9f)],_0x14f228(0xac),_0x14f228(0xb6),_0x402c3b[_0x14f228(0x96)][_0x14f228(0xa4)]),'fields':[{'name':'Kick\x20Threshold','value':_0x545646['infractions']&&_0x545646[_0x14f228(0xb7)][_0x14f228(0xa5)]?_0x545646[_0x14f228(0xb7)][_0x14f228(0xa5)]:'-','inline':!![]},{'name':_0x14f228(0xae),'value':_0x545646[_0x14f228(0xb7)]&&_0x545646[_0x14f228(0xb7)][_0x14f228(0xa1)]?_0x545646[_0x14f228(0xb7)][_0x14f228(0xa1)]:'-','inline':!![]}]}});}await _0x402c3b['channel'][_0x14f228(0xb4)]({'embed':{'color':_0x402c3b[_0x14f228(0xab)]['document'][_0x14f228(0xb7)]&&_0x402c3b[_0x14f228(0xab)][_0x14f228(0xb1)][_0x14f228(0xb7)]['length']?tesseract_1['Constants'][_0x14f228(0xb9)][_0x14f228(0x9d)]:tesseract_1[_0x14f228(0x9e)]['COLORS'][_0x14f228(0xba)],'author':{'name':_0x402c3b['author']['tag']},'title':'Infractions','description':_0x402c3b['member'][_0x14f228(0xb1)][_0x14f228(0xb7)]&&_0x402c3b[_0x14f228(0xab)][_0x14f228(0xb1)][_0x14f228(0xb7)]['length']?_0x402c3b[_0x14f228(0xab)]['document'][_0x14f228(0xb7)][_0x14f228(0xb8)]('\x0a'):'You\x20haven\x27t\x20caused\x20any\x20trouble,\x20yet.\x20Keep\x20it\x20up!'}})[_0x14f228(0xb0)](()=>{});};}}; \ No newline at end of file +const a102_0x2c36=['NO_PERMISSION','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','COLORS','Kick\x20Threshold','test','getString','You\x20haven\x27t\x20caused\x20any\x20trouble,\x20yet.\x20Keep\x20it\x20up!','constructor','../../models/Guild','document','GREEN','ban','infractions\x20--ban\x2010','Infractions','send','author','kickThreshold','default','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.','floor','save','length','guild','member','clamp','info','join','../../utils/numbers','banThreshold','infractions\x20--kick\x205','Constants','apply','Ban\x20Threshold','exports','language','infractions','catch','channel','has','kick','ORANGE'];(function(_0x5b2c34,_0x5ca1f4){const _0x2c36eb=function(_0x34c4aa){while(--_0x34c4aa){_0x5b2c34['push'](_0x5b2c34['shift']());}},_0xae3aab=function(){const _0x849d5d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x404240,_0x14b6ea,_0x35b757,_0x583eac){_0x583eac=_0x583eac||{};let _0x5c45da=_0x14b6ea+'='+_0x35b757,_0x2417f8=0x0;for(let _0x5c918b=0x0,_0x19e5f6=_0x404240['length'];_0x5c918b<_0x19e5f6;_0x5c918b++){const _0xdff9df=_0x404240[_0x5c918b];_0x5c45da+=';\x20'+_0xdff9df;const _0x2e2d85=_0x404240[_0xdff9df];_0x404240['push'](_0x2e2d85),_0x19e5f6=_0x404240['length'],_0x2e2d85!==!![]&&(_0x5c45da+='='+_0x2e2d85);}_0x583eac['cookie']=_0x5c45da;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40dcf5,_0x1486f5){_0x40dcf5=_0x40dcf5||function(_0x53f102){return _0x53f102;};const _0x4c6c73=_0x40dcf5(new RegExp('(?:^|;\x20)'+_0x1486f5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1c2f53=function(_0x5c2285,_0x52715b){_0x5c2285(++_0x52715b);};return _0x1c2f53(_0x2c36eb,_0x5ca1f4),_0x4c6c73?decodeURIComponent(_0x4c6c73[0x1]):undefined;}},_0x3e6a2b=function(){const _0x7ba7d6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7ba7d6['test'](_0x849d5d['removeCookie']['toString']());};_0x849d5d['updateCookie']=_0x3e6a2b;let _0x1b8a9e='';const _0x2549f0=_0x849d5d['updateCookie']();if(!_0x2549f0)_0x849d5d['setCookie'](['*'],'counter',0x1);else _0x2549f0?_0x1b8a9e=_0x849d5d['getCookie'](null,'counter'):_0x849d5d['removeCookie']();};_0xae3aab();}(a102_0x2c36,0x16a));const a102_0xae3a=function(_0x5b2c34,_0x5ca1f4){_0x5b2c34=_0x5b2c34-0x125;let _0x2c36eb=a102_0x2c36[_0x5b2c34];return _0x2c36eb;};const a102_0x375531=a102_0xae3a,a102_0x3e6a2b=function(){let _0x2549f0=!![];return function(_0x404240,_0x14b6ea){const _0x35b757=_0x2549f0?function(){const _0x2e2d64=a102_0xae3a;if(_0x14b6ea){const _0x583eac=_0x14b6ea[_0x2e2d64(0x12b)](_0x404240,arguments);return _0x14b6ea=null,_0x583eac;}}:function(){};return _0x2549f0=![],_0x35b757;};}(),a102_0x849d5d=a102_0x3e6a2b(this,function(){const _0x5c45da=function(){const _0x149b03=a102_0xae3a,_0x2417f8=_0x5c45da[_0x149b03(0x13d)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x149b03(0x136));return!_0x2417f8[_0x149b03(0x13a)](a102_0x849d5d);};return _0x5c45da();});a102_0x849d5d();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(a102_0x375531(0x13e)),numbers=require(a102_0x375531(0x127));module[a102_0x375531(0x12d)]=class InfractionsCommand extends tesseract_1['Command']{constructor(){const _0x28a1c4=a102_0x375531;super(_0x28a1c4(0x12f),{'description':_0x28a1c4(0x148),'triggers':[],'arguments':{'coerce':{'kick':_0x5c918b=>Math[_0x28a1c4(0x149)](numbers[_0x28a1c4(0x14e)](_0x5c918b,0x1,0x100)),'ban':_0x19e5f6=>Math[_0x28a1c4(0x149)](numbers[_0x28a1c4(0x14e)](_0x19e5f6,0x1,0x100))},'number':[_0x28a1c4(0x133),_0x28a1c4(0x141)]},'scope':_0x28a1c4(0x14c),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x28a1c4(0x12f),_0x28a1c4(0x129),_0x28a1c4(0x142)]}),this['exec']=async(_0xdff9df,_0x2e2d85)=>{const _0x2ed2d1=_0x28a1c4;if(_0x2e2d85[_0x2ed2d1(0x133)]||_0x2e2d85[_0x2ed2d1(0x141)]){if(!_0xdff9df[_0x2ed2d1(0x14d)]['permissions'][_0x2ed2d1(0x132)]('MANAGE_GUILD'))throw new Error(_0x2ed2d1(0x135));const _0x40dcf5=await Guild_1[_0x2ed2d1(0x147)]['findById'](_0xdff9df[_0x2ed2d1(0x14c)]['id']);return _0x40dcf5[_0x2ed2d1(0x12f)]={..._0x40dcf5['infractions'],'kickThreshold':_0x2e2d85[_0x2ed2d1(0x133)]?_0x2e2d85['kick']:_0x40dcf5['infractions']&&_0x40dcf5[_0x2ed2d1(0x12f)]['kickThreshold']?_0x40dcf5['infractions'][_0x2ed2d1(0x146)]:undefined,'banThreshold':_0x2e2d85['ban']?_0x2e2d85[_0x2ed2d1(0x141)]:_0x40dcf5[_0x2ed2d1(0x12f)]&&_0x40dcf5[_0x2ed2d1(0x12f)][_0x2ed2d1(0x128)]?_0x40dcf5['infractions'][_0x2ed2d1(0x128)]:undefined},await _0x40dcf5[_0x2ed2d1(0x14a)](),await _0xdff9df[_0x2ed2d1(0x131)][_0x2ed2d1(0x144)]({'embed':{'color':tesseract_1['Constants'][_0x2ed2d1(0x138)][_0x2ed2d1(0x140)],'description':this['client']['locale'][_0x2ed2d1(0x13b)](_0xdff9df[_0x2ed2d1(0x14c)][_0x2ed2d1(0x13f)][_0x2ed2d1(0x12e)],_0x2ed2d1(0x125),'infractionThreshold',_0xdff9df[_0x2ed2d1(0x145)]['tag']),'fields':[{'name':_0x2ed2d1(0x139),'value':_0x40dcf5[_0x2ed2d1(0x12f)]&&_0x40dcf5[_0x2ed2d1(0x12f)][_0x2ed2d1(0x146)]?_0x40dcf5['infractions'][_0x2ed2d1(0x146)]:'-','inline':!![]},{'name':_0x2ed2d1(0x12c),'value':_0x40dcf5['infractions']&&_0x40dcf5[_0x2ed2d1(0x12f)][_0x2ed2d1(0x128)]?_0x40dcf5['infractions']['banThreshold']:'-','inline':!![]}]}});}await _0xdff9df[_0x2ed2d1(0x131)]['send']({'embed':{'color':_0xdff9df[_0x2ed2d1(0x14d)][_0x2ed2d1(0x13f)][_0x2ed2d1(0x12f)]&&_0xdff9df[_0x2ed2d1(0x14d)]['document'][_0x2ed2d1(0x12f)][_0x2ed2d1(0x14b)]?tesseract_1[_0x2ed2d1(0x12a)]['COLORS'][_0x2ed2d1(0x134)]:tesseract_1[_0x2ed2d1(0x12a)][_0x2ed2d1(0x138)]['GREEN'],'author':{'name':_0xdff9df[_0x2ed2d1(0x145)][_0x2ed2d1(0x137)]},'title':_0x2ed2d1(0x143),'description':_0xdff9df[_0x2ed2d1(0x14d)][_0x2ed2d1(0x13f)]['infractions']&&_0xdff9df[_0x2ed2d1(0x14d)]['document']['infractions'][_0x2ed2d1(0x14b)]?_0xdff9df['member']['document']['infractions'][_0x2ed2d1(0x126)]('\x0a'):_0x2ed2d1(0x13c)}})[_0x2ed2d1(0x130)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 1f7788364..034dfed08 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -1 +1 @@ -const a102_0x168a=['client','guild','user','getString','Reason','language','join','KICK_MEMBERS','channel','resolver','RED','test','Constants','DiscordError','info','canManage','It\x20allows\x20you\x20to\x20kick\x20users\x20from\x20the\x20server.','apply','INVALID_COMMAND_SYNTAX','author','kick','COLORS','locale','send','tag','name','catch','exports','rolePosition','@bastion/tesseract','BASTION_ERROR_TYPE','errors','unauthorized','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','document','ownerID','constructor','resolveGuildMember'];(function(_0x32e6f7,_0x4e40f8){const _0x168a6c=function(_0x20579c){while(--_0x20579c){_0x32e6f7['push'](_0x32e6f7['shift']());}},_0x2a3133=function(){const _0x54df0f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x326056,_0x3fbbb6,_0x419eea,_0x436132){_0x436132=_0x436132||{};let _0xa9258f=_0x3fbbb6+'='+_0x419eea,_0xdbea44=0x0;for(let _0x20becf=0x0,_0x407835=_0x326056['length'];_0x20becf<_0x407835;_0x20becf++){const _0x12f278=_0x326056[_0x20becf];_0xa9258f+=';\x20'+_0x12f278;const _0x1ab1b9=_0x326056[_0x12f278];_0x326056['push'](_0x1ab1b9),_0x407835=_0x326056['length'],_0x1ab1b9!==!![]&&(_0xa9258f+='='+_0x1ab1b9);}_0x436132['cookie']=_0xa9258f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x345a45,_0x34b049){_0x345a45=_0x345a45||function(_0x253362){return _0x253362;};const _0x54a7d4=_0x345a45(new RegExp('(?:^|;\x20)'+_0x34b049['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x52e379=function(_0xb6ab84,_0x393929){_0xb6ab84(++_0x393929);};return _0x52e379(_0x168a6c,_0x4e40f8),_0x54a7d4?decodeURIComponent(_0x54a7d4[0x1]):undefined;}},_0x360fc8=function(){const _0x4dd887=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4dd887['test'](_0x54df0f['removeCookie']['toString']());};_0x54df0f['updateCookie']=_0x360fc8;let _0x2319ca='';const _0x1ba58d=_0x54df0f['updateCookie']();if(!_0x1ba58d)_0x54df0f['setCookie'](['*'],'counter',0x1);else _0x1ba58d?_0x2319ca=_0x54df0f['getCookie'](null,'counter'):_0x54df0f['removeCookie']();};_0x2a3133();}(a102_0x168a,0x137));const a102_0x2a31=function(_0x32e6f7,_0x4e40f8){_0x32e6f7=_0x32e6f7-0x186;let _0x168a6c=a102_0x168a[_0x32e6f7];return _0x168a6c;};const _0x30b492=a102_0x2a31,a102_0x360fc8=function(){let _0x1ba58d=!![];return function(_0x326056,_0x3fbbb6){const _0x419eea=_0x1ba58d?function(){const _0x495452=a102_0x2a31;if(_0x3fbbb6){const _0x436132=_0x3fbbb6[_0x495452(0x198)](_0x326056,arguments);return _0x3fbbb6=null,_0x436132;}}:function(){};return _0x1ba58d=![],_0x419eea;};}(),a102_0x54df0f=a102_0x360fc8(this,function(){const _0xa9258f=function(){const _0x349bcc=a102_0x2a31,_0xdbea44=_0xa9258f['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x349bcc(0x1ac)](_0x349bcc(0x1a8));return!_0xdbea44[_0x349bcc(0x192)](a102_0x54df0f);};return _0xa9258f();});a102_0x54df0f();'use strict';const tesseract_1=require(_0x30b492(0x1a4)),errors=require('../../utils/errors');module[_0x30b492(0x1a2)]=class Kick extends tesseract_1['Command']{constructor(){const _0xf3fd4c=_0x30b492;super(_0xf3fd4c(0x19b),{'description':_0xf3fd4c(0x197),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[_0xf3fd4c(0x189)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0xf3fd4c(0x18e)],'userPermissions':['KICK_MEMBERS'],'syntax':['kick\x20--user\x20USER_ID\x20--\x20REASON']}),this[_0xf3fd4c(0x1a9)]=async(_0x20becf,_0x407835)=>{const _0xb5dd06=_0xf3fd4c,_0x12f278=this[_0xb5dd06(0x187)][_0xb5dd06(0x190)][_0xb5dd06(0x186)](_0x20becf[_0xb5dd06(0x188)],_0x407835[_0xb5dd06(0x189)]);if(!_0x12f278)throw new errors[(_0xb5dd06(0x194))](errors[_0xb5dd06(0x1a5)][_0xb5dd06(0x199)],this[_0xb5dd06(0x1a0)]);if(_0x20becf['author']['id']!==_0x20becf['guild'][_0xb5dd06(0x1ab)]&&!_0x20becf['member'][_0xb5dd06(0x196)](_0x12f278))return await _0x20becf['channel'][_0xb5dd06(0x19e)]({'embed':{'color':tesseract_1[_0xb5dd06(0x193)][_0xb5dd06(0x19c)][_0xb5dd06(0x191)],'title':this['client']['locale'][_0xb5dd06(0x18a)](_0x20becf[_0xb5dd06(0x188)]['document']['language'],_0xb5dd06(0x1a6),_0xb5dd06(0x1a7)),'description':this[_0xb5dd06(0x187)][_0xb5dd06(0x19d)][_0xb5dd06(0x18a)](_0x20becf[_0xb5dd06(0x188)][_0xb5dd06(0x1aa)][_0xb5dd06(0x18c)],_0xb5dd06(0x1a6),_0xb5dd06(0x1a3),_0x20becf[_0xb5dd06(0x19a)][_0xb5dd06(0x19f)],_0x12f278[_0xb5dd06(0x189)][_0xb5dd06(0x19f)])}})['catch'](()=>{});const _0x1ab1b9=_0x407835['_'][_0xb5dd06(0x18d)]('\x20')||'-';await _0x12f278[_0xb5dd06(0x19b)](_0x1ab1b9),await _0x20becf[_0xb5dd06(0x18f)][_0xb5dd06(0x19e)]({'embed':{'color':tesseract_1[_0xb5dd06(0x193)][_0xb5dd06(0x19c)]['ORANGE'],'description':this['client'][_0xb5dd06(0x19d)]['getString'](_0x20becf[_0xb5dd06(0x188)][_0xb5dd06(0x1aa)][_0xb5dd06(0x18c)],_0xb5dd06(0x195),'memberKick',_0x20becf['author']['tag'],_0x12f278[_0xb5dd06(0x189)][_0xb5dd06(0x19f)]),'fields':[{'name':_0xb5dd06(0x18b),'value':_0x1ab1b9}],'footer':{'text':_0x12f278['id']}}})[_0xb5dd06(0x1a1)](()=>{});};}}; \ No newline at end of file +const a103_0x5126=['exec','errors','COLORS','RED','name','It\x20allows\x20you\x20to\x20kick\x20users\x20from\x20the\x20server.','rolePosition','DiscordError','ownerID','client','author','user','Constants','info','guild','apply','INVALID_COMMAND_SYNTAX','unauthorized','Command','send','KICK_MEMBERS','memberKick','ORANGE','language','kick','constructor','tag','kick\x20--user\x20USER_ID\x20--\x20REASON','test','document','join','getString','locale','Reason','canManage','channel','member'];(function(_0x4e2bf6,_0x43c2e0){const _0x5126ba=function(_0xe34ba6){while(--_0xe34ba6){_0x4e2bf6['push'](_0x4e2bf6['shift']());}},_0x6ba82=function(){const _0xd5f603={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b4764,_0x5d3f7e,_0x1fdee4,_0x3a11f8){_0x3a11f8=_0x3a11f8||{};let _0x4548d9=_0x5d3f7e+'='+_0x1fdee4,_0x4f9279=0x0;for(let _0x41211b=0x0,_0x4f59c1=_0x3b4764['length'];_0x41211b<_0x4f59c1;_0x41211b++){const _0x5ca469=_0x3b4764[_0x41211b];_0x4548d9+=';\x20'+_0x5ca469;const _0x22a16d=_0x3b4764[_0x5ca469];_0x3b4764['push'](_0x22a16d),_0x4f59c1=_0x3b4764['length'],_0x22a16d!==!![]&&(_0x4548d9+='='+_0x22a16d);}_0x3a11f8['cookie']=_0x4548d9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2646ac,_0x44cd8e){_0x2646ac=_0x2646ac||function(_0x3a89d5){return _0x3a89d5;};const _0x500c14=_0x2646ac(new RegExp('(?:^|;\x20)'+_0x44cd8e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d86dc=function(_0x2de286,_0x5f114c){_0x2de286(++_0x5f114c);};return _0x4d86dc(_0x5126ba,_0x43c2e0),_0x500c14?decodeURIComponent(_0x500c14[0x1]):undefined;}},_0x3ccbbf=function(){const _0x4ccc34=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ccc34['test'](_0xd5f603['removeCookie']['toString']());};_0xd5f603['updateCookie']=_0x3ccbbf;let _0x4d266b='';const _0x307494=_0xd5f603['updateCookie']();if(!_0x307494)_0xd5f603['setCookie'](['*'],'counter',0x1);else _0x307494?_0x4d266b=_0xd5f603['getCookie'](null,'counter'):_0xd5f603['removeCookie']();};_0x6ba82();}(a103_0x5126,0xb8));const a103_0x6ba8=function(_0x4e2bf6,_0x43c2e0){_0x4e2bf6=_0x4e2bf6-0x13a;let _0x5126ba=a103_0x5126[_0x4e2bf6];return _0x5126ba;};const a103_0x5be7be=a103_0x6ba8,a103_0x3ccbbf=function(){let _0x307494=!![];return function(_0x3b4764,_0x5d3f7e){const _0x1fdee4=_0x307494?function(){const _0x7db26a=a103_0x6ba8;if(_0x5d3f7e){const _0x3a11f8=_0x5d3f7e[_0x7db26a(0x14a)](_0x3b4764,arguments);return _0x5d3f7e=null,_0x3a11f8;}}:function(){};return _0x307494=![],_0x1fdee4;};}(),a103_0xd5f603=a103_0x3ccbbf(this,function(){const _0x4548d9=function(){const _0x2a41ec=a103_0x6ba8,_0x4f9279=_0x4548d9['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x2a41ec(0x154)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4f9279[_0x2a41ec(0x157)](a103_0xd5f603);};return _0x4548d9();});a103_0xd5f603();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module['exports']=class Kick extends tesseract_1[a103_0x5be7be(0x14d)]{constructor(){const _0x3c9cd6=a103_0x5be7be;super(_0x3c9cd6(0x153),{'description':_0x3c9cd6(0x140),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[_0x3c9cd6(0x146)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['KICK_MEMBERS'],'userPermissions':[_0x3c9cd6(0x14f)],'syntax':[_0x3c9cd6(0x156)]}),this[_0x3c9cd6(0x13b)]=async(_0x41211b,_0x4f59c1)=>{const _0x4dcf7a=_0x3c9cd6,_0x5ca469=this['client']['resolver']['resolveGuildMember'](_0x41211b[_0x4dcf7a(0x149)],_0x4f59c1[_0x4dcf7a(0x146)]);if(!_0x5ca469)throw new errors[(_0x4dcf7a(0x142))](errors['BASTION_ERROR_TYPE'][_0x4dcf7a(0x14b)],this[_0x4dcf7a(0x13f)]);if(_0x41211b[_0x4dcf7a(0x145)]['id']!==_0x41211b[_0x4dcf7a(0x149)][_0x4dcf7a(0x143)]&&!_0x41211b[_0x4dcf7a(0x13a)][_0x4dcf7a(0x15d)](_0x5ca469))return await _0x41211b[_0x4dcf7a(0x15e)][_0x4dcf7a(0x14e)]({'embed':{'color':tesseract_1[_0x4dcf7a(0x147)][_0x4dcf7a(0x13d)][_0x4dcf7a(0x13e)],'title':this[_0x4dcf7a(0x144)][_0x4dcf7a(0x15b)]['getString'](_0x41211b[_0x4dcf7a(0x149)][_0x4dcf7a(0x158)][_0x4dcf7a(0x152)],_0x4dcf7a(0x13c),_0x4dcf7a(0x14c)),'description':this[_0x4dcf7a(0x144)]['locale'][_0x4dcf7a(0x15a)](_0x41211b['guild']['document']['language'],_0x4dcf7a(0x13c),_0x4dcf7a(0x141),_0x41211b['author'][_0x4dcf7a(0x155)],_0x5ca469[_0x4dcf7a(0x146)][_0x4dcf7a(0x155)])}})['catch'](()=>{});const _0x22a16d=_0x4f59c1['_'][_0x4dcf7a(0x159)]('\x20')||'-';await _0x5ca469[_0x4dcf7a(0x153)](_0x22a16d),await _0x41211b['channel'][_0x4dcf7a(0x14e)]({'embed':{'color':tesseract_1[_0x4dcf7a(0x147)][_0x4dcf7a(0x13d)][_0x4dcf7a(0x151)],'description':this['client']['locale']['getString'](_0x41211b[_0x4dcf7a(0x149)]['document']['language'],_0x4dcf7a(0x148),_0x4dcf7a(0x150),_0x41211b['author'][_0x4dcf7a(0x155)],_0x5ca469[_0x4dcf7a(0x146)]['tag']),'fields':[{'name':_0x4dcf7a(0x15c),'value':_0x22a16d}],'footer':{'text':_0x5ca469['id']}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/nickname.js b/commands/moderation/nickname.js index 411b82c83..e3fb1c123 100644 --- a/commands/moderation/nickname.js +++ b/commands/moderation/nickname.js @@ -1 +1 @@ -const a103_0xd83c=['document','KICK_MEMBERS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','join','ORANGE','unauthorized','member','user','exports','apply','Command','name','nickname\x20--user\x20USER_ID\x20--\x20REASON','info','../../utils/errors','author','exec','language','Constants','constructor','getString','RED','Reason','DiscordError','@bastion/tesseract','nickUpdate','guild','channel','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20nicknames\x20of\x20the\x20server\x20members.','resolver','send','errors','resolveGuildMember','client','locale','ownerID','setNickname','tag','BASTION_ERROR_TYPE','catch','nick'];(function(_0x585df2,_0x916b20){const _0xd83cbd=function(_0x57a46c){while(--_0x57a46c){_0x585df2['push'](_0x585df2['shift']());}},_0x274cd1=function(){const _0x31caa3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3e75e1,_0x43f419,_0x234436,_0x2ae123){_0x2ae123=_0x2ae123||{};let _0x53abdf=_0x43f419+'='+_0x234436,_0x4dd509=0x0;for(let _0x4890a8=0x0,_0x6f0211=_0x3e75e1['length'];_0x4890a8<_0x6f0211;_0x4890a8++){const _0x58b31a=_0x3e75e1[_0x4890a8];_0x53abdf+=';\x20'+_0x58b31a;const _0x1d612e=_0x3e75e1[_0x58b31a];_0x3e75e1['push'](_0x1d612e),_0x6f0211=_0x3e75e1['length'],_0x1d612e!==!![]&&(_0x53abdf+='='+_0x1d612e);}_0x2ae123['cookie']=_0x53abdf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2c7af6,_0x283984){_0x2c7af6=_0x2c7af6||function(_0x9c94b9){return _0x9c94b9;};const _0x1b3b9e=_0x2c7af6(new RegExp('(?:^|;\x20)'+_0x283984['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d7083=function(_0x460578,_0x534d2d){_0x460578(++_0x534d2d);};return _0x3d7083(_0xd83cbd,_0x916b20),_0x1b3b9e?decodeURIComponent(_0x1b3b9e[0x1]):undefined;}},_0x2c5ecf=function(){const _0x345f65=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x345f65['test'](_0x31caa3['removeCookie']['toString']());};_0x31caa3['updateCookie']=_0x2c5ecf;let _0x2f5b75='';const _0x526b5d=_0x31caa3['updateCookie']();if(!_0x526b5d)_0x31caa3['setCookie'](['*'],'counter',0x1);else _0x526b5d?_0x2f5b75=_0x31caa3['getCookie'](null,'counter'):_0x31caa3['removeCookie']();};_0x274cd1();}(a103_0xd83c,0x180));const a103_0x274c=function(_0x585df2,_0x916b20){_0x585df2=_0x585df2-0x1ee;let _0xd83cbd=a103_0xd83c[_0x585df2];return _0xd83cbd;};const _0x407e9e=a103_0x274c,a103_0x2c5ecf=function(){let _0x526b5d=!![];return function(_0x3e75e1,_0x43f419){const _0x234436=_0x526b5d?function(){const _0xfe0869=a103_0x274c;if(_0x43f419){const _0x2ae123=_0x43f419[_0xfe0869(0x1f2)](_0x3e75e1,arguments);return _0x43f419=null,_0x2ae123;}}:function(){};return _0x526b5d=![],_0x234436;};}(),a103_0x31caa3=a103_0x2c5ecf(this,function(){const _0x53abdf=function(){const _0x27bf5e=a103_0x274c,_0x4dd509=_0x53abdf[_0x27bf5e(0x1fc)](_0x27bf5e(0x215))()['constructor'](_0x27bf5e(0x214));return!_0x4dd509['test'](a103_0x31caa3);};return _0x53abdf();});a103_0x31caa3();'use strict';const tesseract_1=require(_0x407e9e(0x201)),errors=require(_0x407e9e(0x1f7));module[_0x407e9e(0x1f1)]=class Nickname extends tesseract_1[_0x407e9e(0x1f3)]{constructor(){const _0x41a03f=_0x407e9e;super('nickname',{'description':_0x41a03f(0x205),'triggers':[],'arguments':{'alias':{'nick':'n','user':'u'},'array':['nick'],'string':[_0x41a03f(0x211),_0x41a03f(0x1f0)]},'scope':_0x41a03f(0x203),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['KICK_MEMBERS'],'userPermissions':[_0x41a03f(0x213)],'syntax':['nickname\x20--user\x20USER_ID\x20--nick\x20NICKNAME\x20--\x20REASON',_0x41a03f(0x1f5)]}),this[_0x41a03f(0x1f9)]=async(_0x4890a8,_0x6f0211)=>{const _0xd4e331=_0x41a03f,_0x58b31a=this[_0xd4e331(0x20a)][_0xd4e331(0x206)][_0xd4e331(0x209)](_0x4890a8[_0xd4e331(0x203)],_0x6f0211[_0xd4e331(0x1f0)]);if(!_0x58b31a)throw new errors[(_0xd4e331(0x200))](errors[_0xd4e331(0x20f)]['INVALID_COMMAND_SYNTAX'],this[_0xd4e331(0x1f4)]);if(_0x4890a8[_0xd4e331(0x1f8)]['id']!==_0x4890a8[_0xd4e331(0x203)][_0xd4e331(0x20c)]&&!_0x4890a8[_0xd4e331(0x1ef)]['canManage'](_0x58b31a))return await _0x4890a8['channel'][_0xd4e331(0x207)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0xd4e331(0x1fe)],'title':this['client'][_0xd4e331(0x20b)][_0xd4e331(0x1fd)](_0x4890a8[_0xd4e331(0x203)][_0xd4e331(0x212)][_0xd4e331(0x1fa)],_0xd4e331(0x208),_0xd4e331(0x1ee)),'description':this['client']['locale'][_0xd4e331(0x1fd)](_0x4890a8[_0xd4e331(0x203)][_0xd4e331(0x212)][_0xd4e331(0x1fa)],'errors','rolePosition',_0x4890a8[_0xd4e331(0x1f8)]['tag'],_0x58b31a[_0xd4e331(0x1f0)]['tag'])}})['catch'](()=>{});const _0x1d612e=_0x6f0211['_'][_0xd4e331(0x216)]('\x20')||'-';await _0x58b31a[_0xd4e331(0x20d)](_0x6f0211[_0xd4e331(0x211)][_0xd4e331(0x216)]('\x20')||'',_0x1d612e),await _0x4890a8[_0xd4e331(0x204)][_0xd4e331(0x207)]({'embed':{'color':tesseract_1[_0xd4e331(0x1fb)]['COLORS'][_0xd4e331(0x217)],'description':_0x6f0211[_0xd4e331(0x211)]?this['client'][_0xd4e331(0x20b)][_0xd4e331(0x1fd)](_0x4890a8[_0xd4e331(0x203)][_0xd4e331(0x212)][_0xd4e331(0x1fa)],_0xd4e331(0x1f6),_0xd4e331(0x202),_0x4890a8[_0xd4e331(0x1f8)]['tag'],_0x58b31a[_0xd4e331(0x1f0)][_0xd4e331(0x20e)],_0x6f0211[_0xd4e331(0x211)]):this[_0xd4e331(0x20a)][_0xd4e331(0x20b)]['getString'](_0x4890a8[_0xd4e331(0x203)][_0xd4e331(0x212)]['language'],'info','nickRemove',_0x4890a8['author']['tag'],_0x58b31a[_0xd4e331(0x1f0)][_0xd4e331(0x20e)]),'fields':[{'name':_0xd4e331(0x1ff),'value':_0x1d612e}],'footer':{'text':_0x58b31a['id']}}})[_0xd4e331(0x210)](()=>{});};}}; \ No newline at end of file +const a104_0x52cc=['ownerID','INVALID_COMMAND_SYNTAX','join','document','tag','canManage','../../utils/errors','nickUpdate','info','channel','BASTION_ERROR_TYPE','resolver','apply','language','ORANGE','author','DiscordError','nick','exec','setNickname','Command','member','locale','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','nickname\x20--user\x20USER_ID\x20--nick\x20NICKNAME\x20--\x20REASON','KICK_MEMBERS','resolveGuildMember','rolePosition','guild','client','nickname\x20--user\x20USER_ID\x20--\x20REASON','getString','unauthorized','catch','Reason','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20nicknames\x20of\x20the\x20server\x20members.','COLORS','RED','user','constructor','Constants','@bastion/tesseract'];(function(_0x16f580,_0x37bea6){const _0x52cc91=function(_0x53f9f5){while(--_0x53f9f5){_0x16f580['push'](_0x16f580['shift']());}},_0x4dc76a=function(){const _0x568b26={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44de4e,_0xe97b45,_0x49a210,_0x4a426d){_0x4a426d=_0x4a426d||{};let _0x57082e=_0xe97b45+'='+_0x49a210,_0x582683=0x0;for(let _0x1937f5=0x0,_0x4da8a7=_0x44de4e['length'];_0x1937f5<_0x4da8a7;_0x1937f5++){const _0x259e50=_0x44de4e[_0x1937f5];_0x57082e+=';\x20'+_0x259e50;const _0x53c2bb=_0x44de4e[_0x259e50];_0x44de4e['push'](_0x53c2bb),_0x4da8a7=_0x44de4e['length'],_0x53c2bb!==!![]&&(_0x57082e+='='+_0x53c2bb);}_0x4a426d['cookie']=_0x57082e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40bb07,_0x2f427a){_0x40bb07=_0x40bb07||function(_0x5ba53a){return _0x5ba53a;};const _0x40904e=_0x40bb07(new RegExp('(?:^|;\x20)'+_0x2f427a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3f81ef=function(_0x1f5e02,_0x3d7387){_0x1f5e02(++_0x3d7387);};return _0x3f81ef(_0x52cc91,_0x37bea6),_0x40904e?decodeURIComponent(_0x40904e[0x1]):undefined;}},_0x4cf9e4=function(){const _0xfb5d73=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xfb5d73['test'](_0x568b26['removeCookie']['toString']());};_0x568b26['updateCookie']=_0x4cf9e4;let _0x41161c='';const _0x26288f=_0x568b26['updateCookie']();if(!_0x26288f)_0x568b26['setCookie'](['*'],'counter',0x1);else _0x26288f?_0x41161c=_0x568b26['getCookie'](null,'counter'):_0x568b26['removeCookie']();};_0x4dc76a();}(a104_0x52cc,0x11c));const a104_0x4dc7=function(_0x16f580,_0x37bea6){_0x16f580=_0x16f580-0xf1;let _0x52cc91=a104_0x52cc[_0x16f580];return _0x52cc91;};const a104_0xa8bb83=a104_0x4dc7,a104_0x4cf9e4=function(){let _0x26288f=!![];return function(_0x44de4e,_0xe97b45){const _0x49a210=_0x26288f?function(){const _0x1271ff=a104_0x4dc7;if(_0xe97b45){const _0x4a426d=_0xe97b45[_0x1271ff(0x10e)](_0x44de4e,arguments);return _0xe97b45=null,_0x4a426d;}}:function(){};return _0x26288f=![],_0x49a210;};}(),a104_0x568b26=a104_0x4cf9e4(this,function(){const _0x57082e=function(){const _0x44ece5=a104_0x4dc7,_0x582683=_0x57082e[_0x44ece5(0xff)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x44ece5(0xff)](_0x44ece5(0x11a));return!_0x582683['test'](a104_0x568b26);};return _0x57082e();});a104_0x568b26();'use strict';const tesseract_1=require(a104_0xa8bb83(0x101)),errors=require(a104_0xa8bb83(0x108));module['exports']=class Nickname extends tesseract_1[a104_0xa8bb83(0x116)]{constructor(){const _0x1e251a=a104_0xa8bb83;super('nickname',{'description':_0x1e251a(0xfb),'triggers':[],'arguments':{'alias':{'nick':'n','user':'u'},'array':['nick'],'string':[_0x1e251a(0x113),_0x1e251a(0xfe)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x1e251a(0xf1)],'userPermissions':[_0x1e251a(0xf1)],'syntax':[_0x1e251a(0x11b),_0x1e251a(0xf6)]}),this[_0x1e251a(0x114)]=async(_0x1937f5,_0x4da8a7)=>{const _0x58793b=_0x1e251a,_0x259e50=this[_0x58793b(0xf5)][_0x58793b(0x10d)][_0x58793b(0xf2)](_0x1937f5[_0x58793b(0xf4)],_0x4da8a7[_0x58793b(0xfe)]);if(!_0x259e50)throw new errors[(_0x58793b(0x112))](errors[_0x58793b(0x10c)][_0x58793b(0x103)],this['name']);if(_0x1937f5[_0x58793b(0x111)]['id']!==_0x1937f5[_0x58793b(0xf4)][_0x58793b(0x102)]&&!_0x1937f5[_0x58793b(0x117)][_0x58793b(0x107)](_0x259e50))return await _0x1937f5[_0x58793b(0x10b)][_0x58793b(0x119)]({'embed':{'color':tesseract_1[_0x58793b(0x100)][_0x58793b(0xfc)][_0x58793b(0xfd)],'title':this[_0x58793b(0xf5)][_0x58793b(0x118)][_0x58793b(0xf7)](_0x1937f5['guild']['document'][_0x58793b(0x10f)],'errors',_0x58793b(0xf8)),'description':this[_0x58793b(0xf5)]['locale'][_0x58793b(0xf7)](_0x1937f5[_0x58793b(0xf4)][_0x58793b(0x105)][_0x58793b(0x10f)],'errors',_0x58793b(0xf3),_0x1937f5['author']['tag'],_0x259e50[_0x58793b(0xfe)][_0x58793b(0x106)])}})[_0x58793b(0xf9)](()=>{});const _0x53c2bb=_0x4da8a7['_']['join']('\x20')||'-';await _0x259e50[_0x58793b(0x115)](_0x4da8a7[_0x58793b(0x113)][_0x58793b(0x104)]('\x20')||'',_0x53c2bb),await _0x1937f5[_0x58793b(0x10b)][_0x58793b(0x119)]({'embed':{'color':tesseract_1[_0x58793b(0x100)][_0x58793b(0xfc)][_0x58793b(0x110)],'description':_0x4da8a7[_0x58793b(0x113)]?this[_0x58793b(0xf5)][_0x58793b(0x118)]['getString'](_0x1937f5[_0x58793b(0xf4)][_0x58793b(0x105)][_0x58793b(0x10f)],_0x58793b(0x10a),_0x58793b(0x109),_0x1937f5[_0x58793b(0x111)][_0x58793b(0x106)],_0x259e50[_0x58793b(0xfe)][_0x58793b(0x106)],_0x4da8a7['nick']):this[_0x58793b(0xf5)][_0x58793b(0x118)]['getString'](_0x1937f5[_0x58793b(0xf4)][_0x58793b(0x105)]['language'],_0x58793b(0x10a),'nickRemove',_0x1937f5['author'][_0x58793b(0x106)],_0x259e50[_0x58793b(0xfe)]['tag']),'fields':[{'name':_0x58793b(0xfa),'value':_0x53c2bb}],'footer':{'text':_0x259e50['id']}}})[_0x58793b(0xf9)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/reason.js b/commands/moderation/reason.js index 427f1251d..54123de97 100644 --- a/commands/moderation/reason.js +++ b/commands/moderation/reason.js @@ -1 +1 @@ -const a104_0x306a=['guild','getString','ownerID','INVALID_COMMAND_SYNTAX','apply','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','findOne','name','news','case','author','edit','BASTION_ERROR_TYPE','size','number','Reason','errors','member','MANAGE_GUILD','test','permissions','fetch','fields','TextChannel','length','Command','exec','get','../../models/Case','join','discord.js','Moderator\x20ID','filter','locale','value','messages','constructor','cache','reason','floor','default','caseNotFound','embeds','moderationLogChannelId','has','client','../../utils/errors','document','MAX_SAFE_INTEGER'];(function(_0x10625d,_0xc75bac){const _0x306abb=function(_0x1319e7){while(--_0x1319e7){_0x10625d['push'](_0x10625d['shift']());}},_0xdd747c=function(){const _0x23b423={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f6845,_0x5857d9,_0x298ee6,_0x4523f5){_0x4523f5=_0x4523f5||{};let _0x3145f6=_0x5857d9+'='+_0x298ee6,_0x48abe7=0x0;for(let _0x580961=0x0,_0x8f4308=_0x4f6845['length'];_0x580961<_0x8f4308;_0x580961++){const _0x2fcba8=_0x4f6845[_0x580961];_0x3145f6+=';\x20'+_0x2fcba8;const _0x499e31=_0x4f6845[_0x2fcba8];_0x4f6845['push'](_0x499e31),_0x8f4308=_0x4f6845['length'],_0x499e31!==!![]&&(_0x3145f6+='='+_0x499e31);}_0x4523f5['cookie']=_0x3145f6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x137d1d,_0x36b66e){_0x137d1d=_0x137d1d||function(_0x576062){return _0x576062;};const _0x11c95b=_0x137d1d(new RegExp('(?:^|;\x20)'+_0x36b66e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20b76c=function(_0x2eafc9,_0x44ddf4){_0x2eafc9(++_0x44ddf4);};return _0x20b76c(_0x306abb,_0xc75bac),_0x11c95b?decodeURIComponent(_0x11c95b[0x1]):undefined;}},_0x4e1818=function(){const _0x3b098=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b098['test'](_0x23b423['removeCookie']['toString']());};_0x23b423['updateCookie']=_0x4e1818;let _0x55bc27='';const _0x442768=_0x23b423['updateCookie']();if(!_0x442768)_0x23b423['setCookie'](['*'],'counter',0x1);else _0x442768?_0x55bc27=_0x23b423['getCookie'](null,'counter'):_0x23b423['removeCookie']();};_0xdd747c();}(a104_0x306a,0x9a));const a104_0xdd74=function(_0x10625d,_0xc75bac){_0x10625d=_0x10625d-0x1bb;let _0x306abb=a104_0x306a[_0x10625d];return _0x306abb;};const _0x22d07b=a104_0xdd74,a104_0x4e1818=function(){let _0x442768=!![];return function(_0x4f6845,_0x5857d9){const _0x298ee6=_0x442768?function(){const _0x4caa76=a104_0xdd74;if(_0x5857d9){const _0x4523f5=_0x5857d9[_0x4caa76(0x1bb)](_0x4f6845,arguments);return _0x5857d9=null,_0x4523f5;}}:function(){};return _0x442768=![],_0x298ee6;};}(),a104_0x23b423=a104_0x4e1818(this,function(){const _0x3145f6=function(){const _0x59cbc8=a104_0xdd74,_0x48abe7=_0x3145f6[_0x59cbc8(0x1dc)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x59cbc8(0x1dc)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x48abe7[_0x59cbc8(0x1cb)](a104_0x23b423);};return _0x3145f6();});a104_0x23b423();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(_0x22d07b(0x1d6)),Case_1=require(_0x22d07b(0x1d4)),numbers=require('../../utils/numbers'),errors=require(_0x22d07b(0x1e6));module['exports']=class ReasonCommand extends tesseract_1[_0x22d07b(0x1d1)]{constructor(){const _0x38a7ed=_0x22d07b;super(_0x38a7ed(0x1de),{'description':_0x38a7ed(0x1bc),'triggers':[],'arguments':{'alias':{'case':'n'},'number':[_0x38a7ed(0x1c1)],'coerce':{'case':_0x580961=>Math[_0x38a7ed(0x1df)](numbers['clamp'](_0x580961,0x1,Number[_0x38a7ed(0x1e8)]))}},'scope':_0x38a7ed(0x1e9),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['reason\x20--case\x20NUMBER\x20--\x20REASON']}),this[_0x38a7ed(0x1d2)]=async(_0x8f4308,_0x2fcba8)=>{const _0x343711=_0x38a7ed;if(_0x8f4308[_0x343711(0x1c2)]['id']!==_0x8f4308[_0x343711(0x1e9)][_0x343711(0x1eb)]||_0x8f4308[_0x343711(0x1c9)]['roles'][_0x343711(0x1dd)][_0x343711(0x1c5)]<0x2)return;if(!_0x2fcba8[_0x343711(0x1c6)]||!_0x2fcba8['_'][_0x343711(0x1d0)])throw new errors['DiscordError'](errors[_0x343711(0x1c4)][_0x343711(0x1ec)],this[_0x343711(0x1bf)]);const _0x499e31=await Case_1[_0x343711(0x1e0)][_0x343711(0x1be)]({'guild':_0x8f4308[_0x343711(0x1e9)]['id'],'number':_0x2fcba8[_0x343711(0x1c6)]});if(!_0x499e31)throw new Error(this[_0x343711(0x1e5)][_0x343711(0x1d9)][_0x343711(0x1ea)](_0x8f4308[_0x343711(0x1e9)][_0x343711(0x1e7)]['language'],_0x343711(0x1c8),_0x343711(0x1e1)));const _0x137d1d=_0x8f4308[_0x343711(0x1e9)]['channels'][_0x343711(0x1dd)][_0x343711(0x1d8)](_0x36b66e=>_0x36b66e[_0x343711(0x1bd)]==='text'||_0x36b66e[_0x343711(0x1bd)]===_0x343711(0x1c0));if(_0x8f4308['guild'][_0x343711(0x1e7)][_0x343711(0x1e3)]&&_0x137d1d[_0x343711(0x1e4)](_0x8f4308['guild'][_0x343711(0x1e7)]['moderationLogChannelId'])){const _0x11c95b=_0x137d1d[_0x343711(0x1d3)](_0x8f4308[_0x343711(0x1e9)]['document'][_0x343711(0x1e3)]);if(_0x11c95b instanceof discord_js_1['NewsChannel']||_0x11c95b instanceof discord_js_1[_0x343711(0x1cf)]){const _0x20b76c=await _0x11c95b[_0x343711(0x1db)][_0x343711(0x1cd)](_0x499e31['messageId']),_0x576062=_0x20b76c[_0x343711(0x1e2)][0x0];if(!_0x8f4308[_0x343711(0x1c9)][_0x343711(0x1cc)]['has'](_0x343711(0x1ca))||_0x576062['fields']['find'](_0x2eafc9=>_0x2eafc9[_0x343711(0x1bf)]===_0x343711(0x1d7))[_0x343711(0x1da)]!==_0x8f4308['author']['id'])return;_0x576062[_0x343711(0x1ce)]['find'](_0x44ddf4=>_0x44ddf4[_0x343711(0x1bf)]===_0x343711(0x1c7))['value']=_0x2fcba8['_'][_0x343711(0x1d5)]('\x20'),await _0x20b76c[_0x343711(0x1c3)]({'embed':_0x576062});}}};}}; \ No newline at end of file +const a105_0x40ba=['fields','DiscordError','reason','test','name','embeds','has','default','find','Command','Moderator\x20ID','NewsChannel','cache','caseNotFound','Reason','ownerID','TextChannel','getString','get','../../models/Case','fetch','filter','floor','case','messageId','permissions','type','findOne','clamp','channels','moderationLogChannelId','It\x20allows\x20you\x20to\x20update\x20the\x20reason\x20of\x20a\x20moderation\x20case.\x20Forgot\x20to\x20set\x20a\x20reason?\x20Did\x20a\x20typo?\x20Here\x27s\x20your\x20second\x20chance.','author','number','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','../../utils/numbers','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','language','length','INVALID_COMMAND_SYNTAX','BASTION_ERROR_TYPE','locale','apply','client','text','MAX_SAFE_INTEGER','join','document','edit','MANAGE_GUILD','member','value','guild'];(function(_0x5367af,_0x13b787){const _0x40baa8=function(_0x24db28){while(--_0x24db28){_0x5367af['push'](_0x5367af['shift']());}},_0x3a2670=function(){const _0x1f5b93={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3b01eb,_0x50c261,_0x1a7993,_0x987f63){_0x987f63=_0x987f63||{};let _0x192ccd=_0x50c261+'='+_0x1a7993,_0x2a4667=0x0;for(let _0x5a9375=0x0,_0x21514f=_0x3b01eb['length'];_0x5a9375<_0x21514f;_0x5a9375++){const _0x1e39b9=_0x3b01eb[_0x5a9375];_0x192ccd+=';\x20'+_0x1e39b9;const _0x2da1b9=_0x3b01eb[_0x1e39b9];_0x3b01eb['push'](_0x2da1b9),_0x21514f=_0x3b01eb['length'],_0x2da1b9!==!![]&&(_0x192ccd+='='+_0x2da1b9);}_0x987f63['cookie']=_0x192ccd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x520bf3,_0x3936c3){_0x520bf3=_0x520bf3||function(_0x39c56c){return _0x39c56c;};const _0x561dcb=_0x520bf3(new RegExp('(?:^|;\x20)'+_0x3936c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b6f66=function(_0x3b4451,_0x26c5f2){_0x3b4451(++_0x26c5f2);};return _0x3b6f66(_0x40baa8,_0x13b787),_0x561dcb?decodeURIComponent(_0x561dcb[0x1]):undefined;}},_0x4191a3=function(){const _0x88c5d9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x88c5d9['test'](_0x1f5b93['removeCookie']['toString']());};_0x1f5b93['updateCookie']=_0x4191a3;let _0x29d2bb='';const _0x118a9f=_0x1f5b93['updateCookie']();if(!_0x118a9f)_0x1f5b93['setCookie'](['*'],'counter',0x1);else _0x118a9f?_0x29d2bb=_0x1f5b93['getCookie'](null,'counter'):_0x1f5b93['removeCookie']();};_0x3a2670();}(a105_0x40ba,0x184));const a105_0x3a26=function(_0x5367af,_0x13b787){_0x5367af=_0x5367af-0x199;let _0x40baa8=a105_0x40ba[_0x5367af];return _0x40baa8;};const a105_0x81b2f2=a105_0x3a26,a105_0x4191a3=function(){let _0x118a9f=!![];return function(_0x3b01eb,_0x50c261){const _0x1a7993=_0x118a9f?function(){const _0xa4c7d8=a105_0x3a26;if(_0x50c261){const _0x987f63=_0x50c261[_0xa4c7d8(0x1ba)](_0x3b01eb,arguments);return _0x50c261=null,_0x987f63;}}:function(){};return _0x118a9f=![],_0x1a7993;};}(),a105_0x1f5b93=a105_0x4191a3(this,function(){const _0x192ccd=function(){const _0x142333=a105_0x3a26,_0x2a4667=_0x192ccd['constructor'](_0x142333(0x1b1))()['constructor'](_0x142333(0x1b4));return!_0x2a4667[_0x142333(0x1c8)](a105_0x1f5b93);};return _0x192ccd();});a105_0x1f5b93();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js'),Case_1=require(a105_0x81b2f2(0x1a2)),numbers=require(a105_0x81b2f2(0x1b3)),errors=require('../../utils/errors');module[a105_0x81b2f2(0x1b2)]=class ReasonCommand extends tesseract_1[a105_0x81b2f2(0x1ce)]{constructor(){const _0x95594c=a105_0x81b2f2;super(_0x95594c(0x1c7),{'description':_0x95594c(0x1ae),'triggers':[],'arguments':{'alias':{'case':'n'},'number':[_0x95594c(0x1a6)],'coerce':{'case':_0x5a9375=>Math[_0x95594c(0x1a5)](numbers[_0x95594c(0x1ab)](_0x5a9375,0x1,Number[_0x95594c(0x1bd)]))}},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['reason\x20--case\x20NUMBER\x20--\x20REASON']}),this['exec']=async(_0x21514f,_0x1e39b9)=>{const _0x51f537=_0x95594c;if(_0x21514f[_0x51f537(0x1af)]['id']!==_0x21514f['guild'][_0x51f537(0x19e)]||_0x21514f[_0x51f537(0x1c2)]['roles'][_0x51f537(0x19b)]['size']<0x2)return;if(!_0x1e39b9[_0x51f537(0x1b0)]||!_0x1e39b9['_'][_0x51f537(0x1b6)])throw new errors[(_0x51f537(0x1c6))](errors[_0x51f537(0x1b8)][_0x51f537(0x1b7)],this[_0x51f537(0x1c9)]);const _0x2da1b9=await Case_1[_0x51f537(0x1cc)][_0x51f537(0x1aa)]({'guild':_0x21514f[_0x51f537(0x1c4)]['id'],'number':_0x1e39b9[_0x51f537(0x1b0)]});if(!_0x2da1b9)throw new Error(this[_0x51f537(0x1bb)][_0x51f537(0x1b9)][_0x51f537(0x1a0)](_0x21514f[_0x51f537(0x1c4)][_0x51f537(0x1bf)][_0x51f537(0x1b5)],'errors',_0x51f537(0x19c)));const _0x520bf3=_0x21514f[_0x51f537(0x1c4)][_0x51f537(0x1ac)]['cache'][_0x51f537(0x1a4)](_0x3936c3=>_0x3936c3[_0x51f537(0x1a9)]===_0x51f537(0x1bc)||_0x3936c3['type']==='news');if(_0x21514f['guild'][_0x51f537(0x1bf)]['moderationLogChannelId']&&_0x520bf3[_0x51f537(0x1cb)](_0x21514f['guild'][_0x51f537(0x1bf)][_0x51f537(0x1ad)])){const _0x561dcb=_0x520bf3[_0x51f537(0x1a1)](_0x21514f[_0x51f537(0x1c4)][_0x51f537(0x1bf)][_0x51f537(0x1ad)]);if(_0x561dcb instanceof discord_js_1[_0x51f537(0x19a)]||_0x561dcb instanceof discord_js_1[_0x51f537(0x19f)]){const _0x3b6f66=await _0x561dcb['messages'][_0x51f537(0x1a3)](_0x2da1b9[_0x51f537(0x1a7)]),_0x39c56c=_0x3b6f66[_0x51f537(0x1ca)][0x0];if(!_0x21514f[_0x51f537(0x1c2)][_0x51f537(0x1a8)][_0x51f537(0x1cb)](_0x51f537(0x1c1))||_0x39c56c[_0x51f537(0x1c5)][_0x51f537(0x1cd)](_0x3b4451=>_0x3b4451['name']===_0x51f537(0x199))[_0x51f537(0x1c3)]!==_0x21514f[_0x51f537(0x1af)]['id'])return;_0x39c56c[_0x51f537(0x1c5)][_0x51f537(0x1cd)](_0x26c5f2=>_0x26c5f2[_0x51f537(0x1c9)]===_0x51f537(0x19d))[_0x51f537(0x1c3)]=_0x1e39b9['_'][_0x51f537(0x1be)]('\x20'),await _0x3b6f66[_0x51f537(0x1c0)]({'embed':_0x39c56c});}}};}}; \ No newline at end of file diff --git a/commands/moderation/report.js b/commands/moderation/report.js index 262da4fba..fb6914053 100644 --- a/commands/moderation/report.js +++ b/commands/moderation/report.js @@ -1 +1 @@ -const a105_0x5cff=['Report','User\x20Report','errors','getString','user','reportsChannelId','cache','noReportChannel','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASTION_ERROR_TYPE','catch','report','\x20/\x20','Command','tag','../../utils/errors','get','COLORS','apply','ORANGE','It\x20allows\x20you\x20to\x20report\x20a\x20server\x20member\x20to\x20the\x20moderators\x20of\x20the\x20server,\x20provided\x20a\x20Report\x20Channel\x20is\x20set.','guild','delete','resolver','Constants','deletable','client','INVALID_COMMAND_SYNTAX','channels','document','@bastion/tesseract','DiscordError','reportConfirmation','User','channel','send','locale','info','resolveUser','join','report\x20--user\x20USER_ID\x20--\x20REASON','exports','constructor'];(function(_0x36f2bd,_0x2c9ee2){const _0x5cffc6=function(_0x227ab6){while(--_0x227ab6){_0x36f2bd['push'](_0x36f2bd['shift']());}},_0x5c5288=function(){const _0x1ed00f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2124a9,_0x3d356b,_0x585b25,_0x1f1059){_0x1f1059=_0x1f1059||{};let _0x26bbde=_0x3d356b+'='+_0x585b25,_0x221dc5=0x0;for(let _0x534afe=0x0,_0x10715c=_0x2124a9['length'];_0x534afe<_0x10715c;_0x534afe++){const _0xcafe98=_0x2124a9[_0x534afe];_0x26bbde+=';\x20'+_0xcafe98;const _0xd71f30=_0x2124a9[_0xcafe98];_0x2124a9['push'](_0xd71f30),_0x10715c=_0x2124a9['length'],_0xd71f30!==!![]&&(_0x26bbde+='='+_0xd71f30);}_0x1f1059['cookie']=_0x26bbde;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa5e250,_0x504006){_0xa5e250=_0xa5e250||function(_0x26fd53){return _0x26fd53;};const _0x4183aa=_0xa5e250(new RegExp('(?:^|;\x20)'+_0x504006['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d48af=function(_0x1cfe4a,_0x21d1ab){_0x1cfe4a(++_0x21d1ab);};return _0x4d48af(_0x5cffc6,_0x2c9ee2),_0x4183aa?decodeURIComponent(_0x4183aa[0x1]):undefined;}},_0x286096=function(){const _0x17cae9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x17cae9['test'](_0x1ed00f['removeCookie']['toString']());};_0x1ed00f['updateCookie']=_0x286096;let _0xa0573a='';const _0x31a7ff=_0x1ed00f['updateCookie']();if(!_0x31a7ff)_0x1ed00f['setCookie'](['*'],'counter',0x1);else _0x31a7ff?_0xa0573a=_0x1ed00f['getCookie'](null,'counter'):_0x1ed00f['removeCookie']();};_0x5c5288();}(a105_0x5cff,0xf9));const a105_0x5c52=function(_0x36f2bd,_0x2c9ee2){_0x36f2bd=_0x36f2bd-0x1e7;let _0x5cffc6=a105_0x5cff[_0x36f2bd];return _0x5cffc6;};const _0x3467b3=a105_0x5c52,a105_0x286096=function(){let _0x31a7ff=!![];return function(_0x2124a9,_0x3d356b){const _0x585b25=_0x31a7ff?function(){const _0x313429=a105_0x5c52;if(_0x3d356b){const _0x1f1059=_0x3d356b[_0x313429(0x209)](_0x2124a9,arguments);return _0x3d356b=null,_0x1f1059;}}:function(){};return _0x31a7ff=![],_0x585b25;};}(),a105_0x1ed00f=a105_0x286096(this,function(){const _0x26bbde=function(){const _0x56d10d=a105_0x5c52,_0x221dc5=_0x26bbde[_0x56d10d(0x1f5)](_0x56d10d(0x1ff))()[_0x56d10d(0x1f5)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x221dc5['test'](a105_0x1ed00f);};return _0x26bbde();});a105_0x1ed00f();'use strict';const tesseract_1=require(_0x3467b3(0x1e9)),errors=require(_0x3467b3(0x206));module[_0x3467b3(0x1f4)]=class Report extends tesseract_1[_0x3467b3(0x204)]{constructor(){const _0x351d98=_0x3467b3;super(_0x351d98(0x202),{'description':_0x351d98(0x20b),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[_0x351d98(0x1fa)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x351d98(0x1f3)]}),this['exec']=async(_0x534afe,_0x10715c)=>{const _0x201924=_0x351d98,_0xcafe98=this['client'][_0x201924(0x20e)][_0x201924(0x1f1)](_0x10715c[_0x201924(0x1fa)]),_0xd71f30=_0x10715c['_'][_0x201924(0x1f2)]('\x20');if(!_0xcafe98||!_0xd71f30)throw new errors[(_0x201924(0x1ea))](errors[_0x201924(0x200)][_0x201924(0x212)],this['name']);if(_0x534afe[_0x201924(0x20c)][_0x201924(0x1e8)][_0x201924(0x1fb)]){await _0x534afe['guild'][_0x201924(0x1e7)][_0x201924(0x1fc)][_0x201924(0x207)](_0x534afe[_0x201924(0x20c)][_0x201924(0x1e8)][_0x201924(0x1fb)])[_0x201924(0x1ee)]({'embed':{'color':tesseract_1[_0x201924(0x20f)]['COLORS'][_0x201924(0x20a)],'title':_0x201924(0x1f7),'fields':[{'name':_0x201924(0x1ec),'value':_0xcafe98['tag']+_0x201924(0x203)+_0xcafe98['id']},{'name':_0x201924(0x1f6),'value':_0xd71f30}],'footer':{'text':'Reported\x20by\x20'+_0x534afe['author'][_0x201924(0x205)]+_0x201924(0x203)+_0x534afe[_0x201924(0x1fe)]['id']}}}),await _0x534afe[_0x201924(0x1ed)][_0x201924(0x1ee)]({'embed':{'color':tesseract_1[_0x201924(0x20f)]['COLORS'][_0x201924(0x20a)],'description':this[_0x201924(0x211)][_0x201924(0x1ef)][_0x201924(0x1f9)](_0x534afe['guild'][_0x201924(0x1e8)]['language'],_0x201924(0x1f0),_0x201924(0x1eb),_0x534afe['author'][_0x201924(0x205)])}})['catch'](()=>{});if(_0x534afe[_0x201924(0x210)])await _0x534afe[_0x201924(0x20d)]({'reason':'User\x20Report\x20Command'})[_0x201924(0x201)](()=>{});}else return await _0x534afe[_0x201924(0x1ed)][_0x201924(0x1ee)]({'embed':{'color':tesseract_1['Constants'][_0x201924(0x208)]['RED'],'description':this['client'][_0x201924(0x1ef)]['getString'](_0x534afe[_0x201924(0x20c)]['document']['language'],_0x201924(0x1f8),_0x201924(0x1fd))}})[_0x201924(0x201)](()=>{});};}}; \ No newline at end of file +const a106_0x77f0=['../../utils/errors','noReportChannel','resolver','test','catch','It\x20allows\x20you\x20to\x20report\x20a\x20server\x20member\x20to\x20the\x20moderators\x20of\x20the\x20server,\x20provided\x20a\x20Report\x20Channel\x20is\x20set.','Command','@bastion/tesseract','locale','guild','cache','language','deletable','info','exec','document','User\x20Report','report\x20--user\x20USER_ID\x20--\x20REASON','errors','getString','channels','author','get','join','INVALID_COMMAND_SYNTAX','client','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','\x20/\x20','ORANGE','delete','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','constructor','reportsChannelId','User\x20Report\x20Command','user','COLORS','DiscordError','reportConfirmation','Report','exports','Reported\x20by\x20'];(function(_0x4e6905,_0x44a85a){const _0x77f051=function(_0x517e43){while(--_0x517e43){_0x4e6905['push'](_0x4e6905['shift']());}},_0x4b2641=function(){const _0x2480f9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10291c,_0x503674,_0x229177,_0x2fc692){_0x2fc692=_0x2fc692||{};let _0x2c815c=_0x503674+'='+_0x229177,_0x4809e1=0x0;for(let _0x34dcb9=0x0,_0x2a8937=_0x10291c['length'];_0x34dcb9<_0x2a8937;_0x34dcb9++){const _0x2dbaa4=_0x10291c[_0x34dcb9];_0x2c815c+=';\x20'+_0x2dbaa4;const _0x49afd7=_0x10291c[_0x2dbaa4];_0x10291c['push'](_0x49afd7),_0x2a8937=_0x10291c['length'],_0x49afd7!==!![]&&(_0x2c815c+='='+_0x49afd7);}_0x2fc692['cookie']=_0x2c815c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x540992,_0x4f54b4){_0x540992=_0x540992||function(_0x355cd5){return _0x355cd5;};const _0x11ad8a=_0x540992(new RegExp('(?:^|;\x20)'+_0x4f54b4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x37a2d4=function(_0x1ef0a8,_0x126a3b){_0x1ef0a8(++_0x126a3b);};return _0x37a2d4(_0x77f051,_0x44a85a),_0x11ad8a?decodeURIComponent(_0x11ad8a[0x1]):undefined;}},_0x4bff1b=function(){const _0xcc6ea9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcc6ea9['test'](_0x2480f9['removeCookie']['toString']());};_0x2480f9['updateCookie']=_0x4bff1b;let _0xf070d3='';const _0x3e5cdd=_0x2480f9['updateCookie']();if(!_0x3e5cdd)_0x2480f9['setCookie'](['*'],'counter',0x1);else _0x3e5cdd?_0xf070d3=_0x2480f9['getCookie'](null,'counter'):_0x2480f9['removeCookie']();};_0x4b2641();}(a106_0x77f0,0xa6));const a106_0x4b26=function(_0x4e6905,_0x44a85a){_0x4e6905=_0x4e6905-0x184;let _0x77f051=a106_0x77f0[_0x4e6905];return _0x77f051;};const a106_0x233ee9=a106_0x4b26,a106_0x4bff1b=function(){let _0x3e5cdd=!![];return function(_0x10291c,_0x503674){const _0x229177=_0x3e5cdd?function(){if(_0x503674){const _0x2fc692=_0x503674['apply'](_0x10291c,arguments);return _0x503674=null,_0x2fc692;}}:function(){};return _0x3e5cdd=![],_0x229177;};}(),a106_0x2480f9=a106_0x4bff1b(this,function(){const _0x2c815c=function(){const _0x347de6=a106_0x4b26,_0x4809e1=_0x2c815c['constructor'](_0x347de6(0x1ae))()[_0x347de6(0x184)](_0x347de6(0x1a9));return!_0x4809e1[_0x347de6(0x191)](a106_0x2480f9);};return _0x2c815c();});a106_0x2480f9();'use strict';const tesseract_1=require(a106_0x233ee9(0x195)),errors=require(a106_0x233ee9(0x18e));module[a106_0x233ee9(0x18c)]=class Report extends tesseract_1[a106_0x233ee9(0x194)]{constructor(){const _0xf8d395=a106_0x233ee9;super('report',{'description':_0xf8d395(0x193),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[_0xf8d395(0x187)]},'scope':_0xf8d395(0x197),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xf8d395(0x19f)]}),this[_0xf8d395(0x19c)]=async(_0x34dcb9,_0x2a8937)=>{const _0x3fed47=_0xf8d395,_0x2dbaa4=this[_0x3fed47(0x1a7)][_0x3fed47(0x190)]['resolveUser'](_0x2a8937['user']),_0x49afd7=_0x2a8937['_'][_0x3fed47(0x1a5)]('\x20');if(!_0x2dbaa4||!_0x49afd7)throw new errors[(_0x3fed47(0x189))](errors['BASTION_ERROR_TYPE'][_0x3fed47(0x1a6)],this['name']);if(_0x34dcb9['guild']['document'][_0x3fed47(0x185)]){await _0x34dcb9[_0x3fed47(0x197)][_0x3fed47(0x1a2)][_0x3fed47(0x198)][_0x3fed47(0x1a4)](_0x34dcb9['guild'][_0x3fed47(0x19d)][_0x3fed47(0x185)])[_0x3fed47(0x1a8)]({'embed':{'color':tesseract_1[_0x3fed47(0x1af)][_0x3fed47(0x188)][_0x3fed47(0x1ac)],'title':_0x3fed47(0x19e),'fields':[{'name':'User','value':_0x2dbaa4[_0x3fed47(0x1aa)]+'\x20/\x20'+_0x2dbaa4['id']},{'name':_0x3fed47(0x18b),'value':_0x49afd7}],'footer':{'text':_0x3fed47(0x18d)+_0x34dcb9[_0x3fed47(0x1a3)][_0x3fed47(0x1aa)]+_0x3fed47(0x1ab)+_0x34dcb9['author']['id']}}}),await _0x34dcb9['channel'][_0x3fed47(0x1a8)]({'embed':{'color':tesseract_1['Constants'][_0x3fed47(0x188)][_0x3fed47(0x1ac)],'description':this[_0x3fed47(0x1a7)][_0x3fed47(0x196)][_0x3fed47(0x1a1)](_0x34dcb9[_0x3fed47(0x197)][_0x3fed47(0x19d)][_0x3fed47(0x199)],_0x3fed47(0x19b),_0x3fed47(0x18a),_0x34dcb9[_0x3fed47(0x1a3)][_0x3fed47(0x1aa)])}})[_0x3fed47(0x192)](()=>{});if(_0x34dcb9[_0x3fed47(0x19a)])await _0x34dcb9[_0x3fed47(0x1ad)]({'reason':_0x3fed47(0x186)})[_0x3fed47(0x192)](()=>{});}else return await _0x34dcb9['channel'][_0x3fed47(0x1a8)]({'embed':{'color':tesseract_1['Constants'][_0x3fed47(0x188)]['RED'],'description':this[_0x3fed47(0x1a7)][_0x3fed47(0x196)][_0x3fed47(0x1a1)](_0x34dcb9['guild'][_0x3fed47(0x19d)][_0x3fed47(0x199)],_0x3fed47(0x1a0),_0x3fed47(0x18f))}})[_0x3fed47(0x192)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/textMute.js b/commands/moderation/textMute.js index 263dba82b..07ccd7750 100644 --- a/commands/moderation/textMute.js +++ b/commands/moderation/textMute.js @@ -1 +1 @@ -const a106_0x1866=['server','join','toLowerCase','textMute','textMute\x20--user\x20USER_ID\x20--\x20REASON','MUTE_MEMBERS','document','getString','send','resolveGuildMember','DiscordError','channel','client','info','textMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','Constants','muted','create','locale','cache','exec','rolePosition','remove','member','roles','tag','BASTION_ERROR_TYPE','author','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','It\x20will\x20be\x20used\x20for\x20server-wide\x20mute','guild','textMute\x20--user\x20USER_ID\x20--channel\x20--\x20REASON','canManage','INVALID_COMMAND_SYNTAX','textMute\x20--user\x20USER_ID\x20--server\x20--\x20REASON','../../utils/errors','updateOverwrite','COLORS','constructor','set','apply','language','Muted','@bastion/tesseract','ORANGE','RED','user','find','errors','name'];(function(_0x18b0d3,_0x78ae8d){const _0x1866e3=function(_0x5d97e6){while(--_0x5d97e6){_0x18b0d3['push'](_0x18b0d3['shift']());}},_0x489422=function(){const _0x4fa1e1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x329260,_0x290d7f,_0x387871,_0x59b8e4){_0x59b8e4=_0x59b8e4||{};let _0x10ff90=_0x290d7f+'='+_0x387871,_0x1a5e52=0x0;for(let _0x228485=0x0,_0x21752e=_0x329260['length'];_0x228485<_0x21752e;_0x228485++){const _0x80b557=_0x329260[_0x228485];_0x10ff90+=';\x20'+_0x80b557;const _0x4489ba=_0x329260[_0x80b557];_0x329260['push'](_0x4489ba),_0x21752e=_0x329260['length'],_0x4489ba!==!![]&&(_0x10ff90+='='+_0x4489ba);}_0x59b8e4['cookie']=_0x10ff90;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24a533,_0x4feec5){_0x24a533=_0x24a533||function(_0x5657e4){return _0x5657e4;};const _0x1ed7f3=_0x24a533(new RegExp('(?:^|;\x20)'+_0x4feec5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x104128=function(_0x100fb5,_0x4882a4){_0x100fb5(++_0x4882a4);};return _0x104128(_0x1866e3,_0x78ae8d),_0x1ed7f3?decodeURIComponent(_0x1ed7f3[0x1]):undefined;}},_0x34d7fc=function(){const _0x4d693d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4d693d['test'](_0x4fa1e1['removeCookie']['toString']());};_0x4fa1e1['updateCookie']=_0x34d7fc;let _0x3781a0='';const _0x801174=_0x4fa1e1['updateCookie']();if(!_0x801174)_0x4fa1e1['setCookie'](['*'],'counter',0x1);else _0x801174?_0x3781a0=_0x4fa1e1['getCookie'](null,'counter'):_0x4fa1e1['removeCookie']();};_0x489422();}(a106_0x1866,0xa7));const a106_0x4894=function(_0x18b0d3,_0x78ae8d){_0x18b0d3=_0x18b0d3-0x81;let _0x1866e3=a106_0x1866[_0x18b0d3];return _0x1866e3;};const _0x5da796=a106_0x4894,a106_0x34d7fc=function(){let _0x801174=!![];return function(_0x329260,_0x290d7f){const _0x387871=_0x801174?function(){const _0x31b4b1=a106_0x4894;if(_0x290d7f){const _0x59b8e4=_0x290d7f[_0x31b4b1(0x98)](_0x329260,arguments);return _0x290d7f=null,_0x59b8e4;}}:function(){};return _0x801174=![],_0x387871;};}(),a106_0x4fa1e1=a106_0x34d7fc(this,function(){const _0x10ff90=function(){const _0x1cbb10=a106_0x4894,_0x1a5e52=_0x10ff90[_0x1cbb10(0x96)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1cbb10(0x96)](_0x1cbb10(0x8c));return!_0x1a5e52['test'](a106_0x4fa1e1);};return _0x10ff90();});a106_0x4fa1e1();'use strict';const tesseract_1=require(_0x5da796(0x9b)),errors=require(_0x5da796(0x93));module['exports']=class TextMute extends tesseract_1['Command']{constructor(){const _0x3f76f3=_0x5da796;super(_0x3f76f3(0xa5),{'description':'It\x20allows\x20you\x20to\x20text\x20mute\x20(and\x20unmute)\x20users\x20in\x20a\x20channel,\x20category,\x20or\x20the\x20server.\x20Text\x20muted\x20users\x20can\x27t\x20send\x20messages\x20in\x20the\x20channels\x20they\x20are\x20muted.','triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'channel':'c','user':'u'},'default':{'set':!![]},'boolean':[_0x3f76f3(0x97),'channel'],'string':[_0x3f76f3(0x9e)]},'scope':_0x3f76f3(0x8e),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x3f76f3(0xa7)],'userPermissions':[_0x3f76f3(0xa7)],'syntax':[_0x3f76f3(0xa6),_0x3f76f3(0x8f),_0x3f76f3(0x92),_0x3f76f3(0xb0),'textMute\x20--unset\x20--user\x20USER_ID\x20--channel\x20--\x20REASON','textMute\x20--unset\x20--user\x20USER_ID\x20--server\x20--\x20REASON']}),this[_0x3f76f3(0x84)]=async(_0x228485,_0x21752e)=>{const _0x21f3ad=_0x3f76f3,_0x80b557=this[_0x21f3ad(0xae)]['resolver'][_0x21f3ad(0xab)](_0x228485[_0x21f3ad(0x8e)],_0x21752e['user']);if(!_0x80b557)throw new errors[(_0x21f3ad(0xac))](errors[_0x21f3ad(0x8a)][_0x21f3ad(0x91)],this['name']);if(_0x228485[_0x21f3ad(0x8b)]['id']!==_0x228485[_0x21f3ad(0x8e)]['ownerID']&&!_0x228485[_0x21f3ad(0x87)][_0x21f3ad(0x90)](_0x80b557))return await _0x228485[_0x21f3ad(0xad)][_0x21f3ad(0xaa)]({'embed':{'color':tesseract_1[_0x21f3ad(0xb1)][_0x21f3ad(0x95)][_0x21f3ad(0x9d)],'title':this[_0x21f3ad(0xae)][_0x21f3ad(0x82)]['getString'](_0x228485['guild']['document'][_0x21f3ad(0x99)],'errors','unauthorized'),'description':this[_0x21f3ad(0xae)][_0x21f3ad(0x82)][_0x21f3ad(0xa9)](_0x228485[_0x21f3ad(0x8e)][_0x21f3ad(0xa8)][_0x21f3ad(0x99)],_0x21f3ad(0xa0),_0x21f3ad(0x85),_0x228485[_0x21f3ad(0x8b)][_0x21f3ad(0x89)],_0x80b557[_0x21f3ad(0x9e)][_0x21f3ad(0x89)])}})['catch'](()=>{});const _0x4489ba=_0x21752e['_'][_0x21f3ad(0xa3)]('\x20')||'-';let _0x24a533;if(_0x21752e[_0x21f3ad(0xa2)]){let _0x4feec5=_0x228485['guild'][_0x21f3ad(0x88)][_0x21f3ad(0x83)][_0x21f3ad(0x9f)](_0x1ed7f3=>_0x1ed7f3[_0x21f3ad(0xa1)]&&_0x1ed7f3['name'][_0x21f3ad(0xa4)]()===_0x21f3ad(0xb2));!_0x4feec5&&(_0x4feec5=await _0x228485[_0x21f3ad(0x8e)][_0x21f3ad(0x88)][_0x21f3ad(0x81)]({'data':{'name':_0x21f3ad(0x9a)},'reason':_0x21f3ad(0x8d)})),_0x21752e[_0x21f3ad(0x97)]?await _0x80b557[_0x21f3ad(0x88)]['add'](_0x4feec5):await _0x80b557[_0x21f3ad(0x88)][_0x21f3ad(0x86)](_0x4feec5);}else _0x24a533=!_0x21752e[_0x21f3ad(0xad)]&&_0x228485[_0x21f3ad(0xad)]['parent']?_0x228485[_0x21f3ad(0xad)]['parent']:_0x228485['channel'],await _0x24a533[_0x21f3ad(0x94)](_0x80b557['id'],{'SEND_MESSAGES':_0x21752e[_0x21f3ad(0x97)]?![]:null},_0x4489ba);await _0x228485[_0x21f3ad(0xad)][_0x21f3ad(0xaa)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x21f3ad(0x9c)],'description':_0x21752e[_0x21f3ad(0x97)]?this[_0x21f3ad(0xae)]['locale'][_0x21f3ad(0xa9)](_0x228485[_0x21f3ad(0x8e)][_0x21f3ad(0xa8)][_0x21f3ad(0x99)],_0x21f3ad(0xaf),'memberSetTextMute',_0x228485['author'][_0x21f3ad(0x89)],_0x80b557['user']['tag'],_0x24a533[_0x21f3ad(0xa1)]):this[_0x21f3ad(0xae)]['locale']['getString'](_0x228485[_0x21f3ad(0x8e)][_0x21f3ad(0xa8)][_0x21f3ad(0x99)],'info','memberUnsetTextMute',_0x228485[_0x21f3ad(0x8b)][_0x21f3ad(0x89)],_0x80b557['user'][_0x21f3ad(0x89)]),'fields':[{'name':'Reason','value':_0x4489ba}],'footer':{'text':_0x80b557['id']}}});};}}; \ No newline at end of file +const a107_0x2e67=['name','author','getString','test','muted','guild','Command','apply','join','COLORS','parent','errors','return\x20/\x22\x20+\x20this\x20+\x20\x22/','create','remove','memberSetTextMute','document','unauthorized','Constants','constructor','resolveGuildMember','exec','tag','rolePosition','language','client','locale','resolver','ownerID','toLowerCase','find','channel','set','BASTION_ERROR_TYPE','MUTE_MEMBERS','It\x20allows\x20you\x20to\x20text\x20mute\x20(and\x20unmute)\x20users\x20in\x20a\x20channel,\x20category,\x20or\x20the\x20server.\x20Text\x20muted\x20users\x20can\x27t\x20send\x20messages\x20in\x20the\x20channels\x20they\x20are\x20muted.','canManage','It\x20will\x20be\x20used\x20for\x20server-wide\x20mute','RED','textMute\x20--user\x20USER_ID\x20--\x20REASON','Muted','roles','textMute\x20--user\x20USER_ID\x20--server\x20--\x20REASON','cache','user','send','textMute\x20--unset\x20--user\x20USER_ID\x20--server\x20--\x20REASON','info','../../utils/errors','memberUnsetTextMute','textMute\x20--unset\x20--user\x20USER_ID\x20--channel\x20--\x20REASON','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','textMute'];(function(_0x53a317,_0x2397ca){const _0x2e6725=function(_0x1d0200){while(--_0x1d0200){_0x53a317['push'](_0x53a317['shift']());}},_0x18db38=function(){const _0x17631c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b66fe,_0x4097b9,_0x2c556c,_0x447eb6){_0x447eb6=_0x447eb6||{};let _0x5ea746=_0x4097b9+'='+_0x2c556c,_0x3c31dc=0x0;for(let _0x487fea=0x0,_0xa45c87=_0x4b66fe['length'];_0x487fea<_0xa45c87;_0x487fea++){const _0x2ac6e1=_0x4b66fe[_0x487fea];_0x5ea746+=';\x20'+_0x2ac6e1;const _0x1e25f8=_0x4b66fe[_0x2ac6e1];_0x4b66fe['push'](_0x1e25f8),_0xa45c87=_0x4b66fe['length'],_0x1e25f8!==!![]&&(_0x5ea746+='='+_0x1e25f8);}_0x447eb6['cookie']=_0x5ea746;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3aa318,_0x186f8e){_0x3aa318=_0x3aa318||function(_0x598f92){return _0x598f92;};const _0x140e8f=_0x3aa318(new RegExp('(?:^|;\x20)'+_0x186f8e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22d28b=function(_0x113df4,_0x28ffef){_0x113df4(++_0x28ffef);};return _0x22d28b(_0x2e6725,_0x2397ca),_0x140e8f?decodeURIComponent(_0x140e8f[0x1]):undefined;}},_0x44a38d=function(){const _0x3d0a7b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3d0a7b['test'](_0x17631c['removeCookie']['toString']());};_0x17631c['updateCookie']=_0x44a38d;let _0x52ed30='';const _0x21fff3=_0x17631c['updateCookie']();if(!_0x21fff3)_0x17631c['setCookie'](['*'],'counter',0x1);else _0x21fff3?_0x52ed30=_0x17631c['getCookie'](null,'counter'):_0x17631c['removeCookie']();};_0x18db38();}(a107_0x2e67,0x103));const a107_0x18db=function(_0x53a317,_0x2397ca){_0x53a317=_0x53a317-0x126;let _0x2e6725=a107_0x2e67[_0x53a317];return _0x2e6725;};const a107_0x4c2e0d=a107_0x18db,a107_0x44a38d=function(){let _0x21fff3=!![];return function(_0x4b66fe,_0x4097b9){const _0x2c556c=_0x21fff3?function(){const _0x5b013e=a107_0x18db;if(_0x4097b9){const _0x447eb6=_0x4097b9[_0x5b013e(0x133)](_0x4b66fe,arguments);return _0x4097b9=null,_0x447eb6;}}:function(){};return _0x21fff3=![],_0x2c556c;};}(),a107_0x17631c=a107_0x44a38d(this,function(){const _0x5ea746=function(){const _0x3cae2e=a107_0x18db,_0x3c31dc=_0x5ea746[_0x3cae2e(0x13f)](_0x3cae2e(0x138))()['constructor'](_0x3cae2e(0x12a));return!_0x3c31dc[_0x3cae2e(0x12f)](a107_0x17631c);};return _0x5ea746();});a107_0x17631c();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a107_0x4c2e0d(0x127));module['exports']=class TextMute extends tesseract_1[a107_0x4c2e0d(0x132)]{constructor(){const _0x3298d7=a107_0x4c2e0d;super(_0x3298d7(0x12b),{'description':_0x3298d7(0x14f),'triggers':[],'arguments':{'configuration':{'negation-prefix':'un'},'alias':{'channel':'c','user':'u'},'default':{'set':!![]},'boolean':[_0x3298d7(0x14c),_0x3298d7(0x14b)],'string':[_0x3298d7(0x158)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x3298d7(0x14e)],'userPermissions':[_0x3298d7(0x14e)],'syntax':[_0x3298d7(0x153),'textMute\x20--user\x20USER_ID\x20--channel\x20--\x20REASON',_0x3298d7(0x156),'textMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON',_0x3298d7(0x129),_0x3298d7(0x15a)]}),this[_0x3298d7(0x141)]=async(_0x487fea,_0xa45c87)=>{const _0x5c23e2=_0x3298d7,_0x2ac6e1=this[_0x5c23e2(0x145)][_0x5c23e2(0x147)][_0x5c23e2(0x140)](_0x487fea['guild'],_0xa45c87[_0x5c23e2(0x158)]);if(!_0x2ac6e1)throw new errors['DiscordError'](errors[_0x5c23e2(0x14d)]['INVALID_COMMAND_SYNTAX'],this[_0x5c23e2(0x12c)]);if(_0x487fea[_0x5c23e2(0x12d)]['id']!==_0x487fea[_0x5c23e2(0x131)][_0x5c23e2(0x148)]&&!_0x487fea['member'][_0x5c23e2(0x150)](_0x2ac6e1))return await _0x487fea[_0x5c23e2(0x14b)][_0x5c23e2(0x159)]({'embed':{'color':tesseract_1[_0x5c23e2(0x13e)][_0x5c23e2(0x135)][_0x5c23e2(0x152)],'title':this[_0x5c23e2(0x145)][_0x5c23e2(0x146)][_0x5c23e2(0x12e)](_0x487fea['guild'][_0x5c23e2(0x13c)]['language'],_0x5c23e2(0x137),_0x5c23e2(0x13d)),'description':this[_0x5c23e2(0x145)][_0x5c23e2(0x146)][_0x5c23e2(0x12e)](_0x487fea[_0x5c23e2(0x131)][_0x5c23e2(0x13c)][_0x5c23e2(0x144)],'errors',_0x5c23e2(0x143),_0x487fea[_0x5c23e2(0x12d)][_0x5c23e2(0x142)],_0x2ac6e1['user'][_0x5c23e2(0x142)])}})['catch'](()=>{});const _0x1e25f8=_0xa45c87['_'][_0x5c23e2(0x134)]('\x20')||'-';let _0x3aa318;if(_0xa45c87['server']){let _0x186f8e=_0x487fea[_0x5c23e2(0x131)]['roles'][_0x5c23e2(0x157)][_0x5c23e2(0x14a)](_0x140e8f=>_0x140e8f['name']&&_0x140e8f[_0x5c23e2(0x12c)][_0x5c23e2(0x149)]()===_0x5c23e2(0x130));!_0x186f8e&&(_0x186f8e=await _0x487fea['guild']['roles'][_0x5c23e2(0x139)]({'data':{'name':_0x5c23e2(0x154)},'reason':_0x5c23e2(0x151)})),_0xa45c87['set']?await _0x2ac6e1[_0x5c23e2(0x155)]['add'](_0x186f8e):await _0x2ac6e1[_0x5c23e2(0x155)][_0x5c23e2(0x13a)](_0x186f8e);}else _0x3aa318=!_0xa45c87[_0x5c23e2(0x14b)]&&_0x487fea[_0x5c23e2(0x14b)][_0x5c23e2(0x136)]?_0x487fea[_0x5c23e2(0x14b)][_0x5c23e2(0x136)]:_0x487fea[_0x5c23e2(0x14b)],await _0x3aa318['updateOverwrite'](_0x2ac6e1['id'],{'SEND_MESSAGES':_0xa45c87[_0x5c23e2(0x14c)]?![]:null},_0x1e25f8);await _0x487fea[_0x5c23e2(0x14b)][_0x5c23e2(0x159)]({'embed':{'color':tesseract_1['Constants']['COLORS']['ORANGE'],'description':_0xa45c87[_0x5c23e2(0x14c)]?this[_0x5c23e2(0x145)][_0x5c23e2(0x146)][_0x5c23e2(0x12e)](_0x487fea['guild'][_0x5c23e2(0x13c)][_0x5c23e2(0x144)],_0x5c23e2(0x126),_0x5c23e2(0x13b),_0x487fea[_0x5c23e2(0x12d)][_0x5c23e2(0x142)],_0x2ac6e1[_0x5c23e2(0x158)][_0x5c23e2(0x142)],_0x3aa318[_0x5c23e2(0x12c)]):this[_0x5c23e2(0x145)]['locale'][_0x5c23e2(0x12e)](_0x487fea[_0x5c23e2(0x131)]['document'][_0x5c23e2(0x144)],_0x5c23e2(0x126),_0x5c23e2(0x128),_0x487fea[_0x5c23e2(0x12d)][_0x5c23e2(0x142)],_0x2ac6e1[_0x5c23e2(0x158)][_0x5c23e2(0x142)]),'fields':[{'name':'Reason','value':_0x1e25f8}],'footer':{'text':_0x2ac6e1['id']}}});};}}; \ No newline at end of file diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index 10f5025ab..b3649390a 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -1 +1 @@ -const a107_0x55fb=['catch','apply','info','ORANGE','BAN_MEMBERS','locale','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client','@bastion/tesseract','constructor','It\x20allows\x20you\x20to\x20unban\x20the\x20users\x20who\x27re\x20banned\x20in\x20the\x20server.','resolver','test','send','BASTION_ERROR_TYPE','guild','Reason','../../utils/errors','unban\x20--user\x20USER_ID\x20--\x20REASON','user','name','getString','resolveUser','author','members','join','channel','COLORS','guildBanRemove','tag','exec'];(function(_0x11436c,_0x28c11a){const _0x55fb54=function(_0xc6cd86){while(--_0xc6cd86){_0x11436c['push'](_0x11436c['shift']());}},_0x36323a=function(){const _0x2fdec5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5b6d91,_0x154e3e,_0x4d01ac,_0x487b6d){_0x487b6d=_0x487b6d||{};let _0x44e470=_0x154e3e+'='+_0x4d01ac,_0x4563bb=0x0;for(let _0xb65c8=0x0,_0x2843a8=_0x5b6d91['length'];_0xb65c8<_0x2843a8;_0xb65c8++){const _0x1e4b39=_0x5b6d91[_0xb65c8];_0x44e470+=';\x20'+_0x1e4b39;const _0x446083=_0x5b6d91[_0x1e4b39];_0x5b6d91['push'](_0x446083),_0x2843a8=_0x5b6d91['length'],_0x446083!==!![]&&(_0x44e470+='='+_0x446083);}_0x487b6d['cookie']=_0x44e470;},'removeCookie':function(){return'dev';},'getCookie':function(_0x45d83d,_0x2883f8){_0x45d83d=_0x45d83d||function(_0x41ba57){return _0x41ba57;};const _0x53b73b=_0x45d83d(new RegExp('(?:^|;\x20)'+_0x2883f8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ba4a9=function(_0x41a9f7,_0x3f046d){_0x41a9f7(++_0x3f046d);};return _0x5ba4a9(_0x55fb54,_0x28c11a),_0x53b73b?decodeURIComponent(_0x53b73b[0x1]):undefined;}},_0x5bad39=function(){const _0x8bf348=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8bf348['test'](_0x2fdec5['removeCookie']['toString']());};_0x2fdec5['updateCookie']=_0x5bad39;let _0x302fe0='';const _0x59f9f2=_0x2fdec5['updateCookie']();if(!_0x59f9f2)_0x2fdec5['setCookie'](['*'],'counter',0x1);else _0x59f9f2?_0x302fe0=_0x2fdec5['getCookie'](null,'counter'):_0x2fdec5['removeCookie']();};_0x36323a();}(a107_0x55fb,0x1e6));const a107_0x3632=function(_0x11436c,_0x28c11a){_0x11436c=_0x11436c-0x1c7;let _0x55fb54=a107_0x55fb[_0x11436c];return _0x55fb54;};const _0x1619a=a107_0x3632,a107_0x5bad39=function(){let _0x59f9f2=!![];return function(_0x5b6d91,_0x154e3e){const _0x4d01ac=_0x59f9f2?function(){const _0x9a9485=a107_0x3632;if(_0x154e3e){const _0x487b6d=_0x154e3e[_0x9a9485(0x1d2)](_0x5b6d91,arguments);return _0x154e3e=null,_0x487b6d;}}:function(){};return _0x59f9f2=![],_0x4d01ac;};}(),a107_0x2fdec5=a107_0x5bad39(this,function(){const _0x44e470=function(){const _0x1fed5d=a107_0x3632,_0x4563bb=_0x44e470['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1fed5d(0x1da)](_0x1fed5d(0x1d7));return!_0x4563bb[_0x1fed5d(0x1dd)](a107_0x2fdec5);};return _0x44e470();});a107_0x2fdec5();'use strict';const tesseract_1=require(_0x1619a(0x1d9)),errors=require(_0x1619a(0x1e2));module['exports']=class Unban extends tesseract_1['Command']{constructor(){const _0x3a16a7=_0x1619a;super('unban',{'description':_0x3a16a7(0x1db),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[_0x3a16a7(0x1e4)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x3a16a7(0x1d5)],'userPermissions':[_0x3a16a7(0x1d5)],'syntax':[_0x3a16a7(0x1e3)]}),this[_0x3a16a7(0x1d0)]=async(_0xb65c8,_0x2843a8)=>{const _0x5a6606=_0x3a16a7,_0x1e4b39=this[_0x5a6606(0x1d8)][_0x5a6606(0x1dc)][_0x5a6606(0x1c8)](_0x2843a8[_0x5a6606(0x1e4)]);if(!_0x1e4b39)throw new errors['DiscordError'](errors[_0x5a6606(0x1df)]['INVALID_COMMAND_SYNTAX'],this[_0x5a6606(0x1e5)]);const _0x446083=_0x2843a8['_'][_0x5a6606(0x1cb)]('\x20')||'-';await _0xb65c8['guild'][_0x5a6606(0x1ca)]['unban'](_0x1e4b39,_0x446083),await _0xb65c8[_0x5a6606(0x1cc)][_0x5a6606(0x1de)]({'embed':{'color':tesseract_1['Constants'][_0x5a6606(0x1cd)][_0x5a6606(0x1d4)],'description':this[_0x5a6606(0x1d8)][_0x5a6606(0x1d6)][_0x5a6606(0x1c7)](_0xb65c8[_0x5a6606(0x1e0)]['document']['language'],_0x5a6606(0x1d3),_0x5a6606(0x1ce),_0xb65c8[_0x5a6606(0x1c9)]['tag'],_0x1e4b39[_0x5a6606(0x1cf)]),'fields':[{'name':_0x5a6606(0x1e1),'value':_0x446083}],'footer':{'text':_0x1e4b39['id']}}})[_0x5a6606(0x1d1)](()=>{});};}}; \ No newline at end of file +const a108_0x2f0d=['user','info','DiscordError','getString','join','send','tag','members','guild','It\x20allows\x20you\x20to\x20unban\x20the\x20users\x20who\x27re\x20banned\x20in\x20the\x20server.','Command','apply','Reason','@bastion/tesseract','BAN_MEMBERS','locale','exports','exec','unban','client','language','catch','ORANGE','resolveUser','COLORS','guildBanRemove','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x23c5c9,_0x47e366){const _0x2f0d07=function(_0x4b4f35){while(--_0x4b4f35){_0x23c5c9['push'](_0x23c5c9['shift']());}},_0x42dabd=function(){const _0x1c9f19={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x52bb4d,_0x571549,_0x14d2a5,_0x351ac4){_0x351ac4=_0x351ac4||{};let _0x449ad7=_0x571549+'='+_0x14d2a5,_0x31837c=0x0;for(let _0x1cbfc6=0x0,_0x16f737=_0x52bb4d['length'];_0x1cbfc6<_0x16f737;_0x1cbfc6++){const _0x1043e5=_0x52bb4d[_0x1cbfc6];_0x449ad7+=';\x20'+_0x1043e5;const _0x4580ed=_0x52bb4d[_0x1043e5];_0x52bb4d['push'](_0x4580ed),_0x16f737=_0x52bb4d['length'],_0x4580ed!==!![]&&(_0x449ad7+='='+_0x4580ed);}_0x351ac4['cookie']=_0x449ad7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x9f3684,_0x54f545){_0x9f3684=_0x9f3684||function(_0x4f9b17){return _0x4f9b17;};const _0x493278=_0x9f3684(new RegExp('(?:^|;\x20)'+_0x54f545['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31e5e8=function(_0x5a7c9b,_0x543a81){_0x5a7c9b(++_0x543a81);};return _0x31e5e8(_0x2f0d07,_0x47e366),_0x493278?decodeURIComponent(_0x493278[0x1]):undefined;}},_0x3fc90e=function(){const _0x5e3767=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e3767['test'](_0x1c9f19['removeCookie']['toString']());};_0x1c9f19['updateCookie']=_0x3fc90e;let _0x3e7d84='';const _0x38e97b=_0x1c9f19['updateCookie']();if(!_0x38e97b)_0x1c9f19['setCookie'](['*'],'counter',0x1);else _0x38e97b?_0x3e7d84=_0x1c9f19['getCookie'](null,'counter'):_0x1c9f19['removeCookie']();};_0x42dabd();}(a108_0x2f0d,0xc3));const a108_0x42da=function(_0x23c5c9,_0x47e366){_0x23c5c9=_0x23c5c9-0xaf;let _0x2f0d07=a108_0x2f0d[_0x23c5c9];return _0x2f0d07;};const a108_0x4c7eba=a108_0x42da,a108_0x3fc90e=function(){let _0x38e97b=!![];return function(_0x52bb4d,_0x571549){const _0x14d2a5=_0x38e97b?function(){const _0x2146f0=a108_0x42da;if(_0x571549){const _0x351ac4=_0x571549[_0x2146f0(0xb4)](_0x52bb4d,arguments);return _0x571549=null,_0x351ac4;}}:function(){};return _0x38e97b=![],_0x14d2a5;};}(),a108_0x1c9f19=a108_0x3fc90e(this,function(){const _0x449ad7=function(){const _0xd5aea3=a108_0x42da,_0x31837c=_0x449ad7['constructor'](_0xd5aea3(0xc3))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x31837c['test'](a108_0x1c9f19);};return _0x449ad7();});a108_0x1c9f19();'use strict';const tesseract_1=require(a108_0x4c7eba(0xb6)),errors=require('../../utils/errors');module[a108_0x4c7eba(0xb9)]=class Unban extends tesseract_1[a108_0x4c7eba(0xb3)]{constructor(){const _0x250e36=a108_0x4c7eba;super(_0x250e36(0xbb),{'description':_0x250e36(0xb2),'triggers':[],'arguments':{'alias':{'user':'u'},'string':[_0x250e36(0xc4)]},'scope':_0x250e36(0xb1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x250e36(0xb7)],'userPermissions':[_0x250e36(0xb7)],'syntax':['unban\x20--user\x20USER_ID\x20--\x20REASON']}),this[_0x250e36(0xba)]=async(_0x1cbfc6,_0x16f737)=>{const _0x17e6ec=_0x250e36,_0x1043e5=this[_0x17e6ec(0xbc)]['resolver'][_0x17e6ec(0xc0)](_0x16f737[_0x17e6ec(0xc4)]);if(!_0x1043e5)throw new errors[(_0x17e6ec(0xc6))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this['name']);const _0x4580ed=_0x16f737['_'][_0x17e6ec(0xc8)]('\x20')||'-';await _0x1cbfc6['guild'][_0x17e6ec(0xb0)][_0x17e6ec(0xbb)](_0x1043e5,_0x4580ed),await _0x1cbfc6['channel'][_0x17e6ec(0xc9)]({'embed':{'color':tesseract_1['Constants'][_0x17e6ec(0xc1)][_0x17e6ec(0xbf)],'description':this[_0x17e6ec(0xbc)][_0x17e6ec(0xb8)][_0x17e6ec(0xc7)](_0x1cbfc6['guild']['document'][_0x17e6ec(0xbd)],_0x17e6ec(0xc5),_0x17e6ec(0xc2),_0x1cbfc6['author'][_0x17e6ec(0xaf)],_0x1043e5[_0x17e6ec(0xaf)]),'fields':[{'name':_0x17e6ec(0xb5),'value':_0x4580ed}],'footer':{'text':_0x1043e5['id']}}})[_0x17e6ec(0xbe)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/updateRoles.js b/commands/moderation/updateRoles.js index 80768290e..00a77b269 100644 --- a/commands/moderation/updateRoles.js +++ b/commands/moderation/updateRoles.js @@ -1 +1 @@ -const a108_0x2673=['client','ownerID','locale','resolveGuildMember','remove','highest','updateRoles\x20--user\x20USER_ID\x20--add\x20ROLE_ID','Constants','comparePositionTo','updateRoles\x20--user\x20USER_ID\x20--remove-all','updateRoles','@bastion/tesseract','ORANGE','map','set','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','updateRoles\x20--user\x20USER_ID\x20--remove\x20ROLE_ID','It\x20allows\x20you\x20to\x20update\x20roles\x20of\x20server\x20members.','Reason','test','```diff\x0a','MANAGE_ROLES','author','document','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','unauthorized','guild','Command','errors','BASTION_ERROR_TYPE','tag','```','language','removeAll','member','resolver','catch','roles','exports','info','user','memberRoleUpdate','INVALID_COMMAND_SYNTAX','getString','Role\x20Changes','resolveRoles','../../utils/errors','length','../../utils/arrays','COLORS','filter','add','channel','toBulletList','exec','RED'];(function(_0x19bf13,_0x55a44c){const _0x26738d=function(_0x2f198d){while(--_0x2f198d){_0x19bf13['push'](_0x19bf13['shift']());}},_0x71c9be=function(){const _0x5dd9f5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x29ce2d,_0x2ad09d,_0x1978de,_0x4c15d9){_0x4c15d9=_0x4c15d9||{};let _0xf2822b=_0x2ad09d+'='+_0x1978de,_0x1bc4b=0x0;for(let _0x47359d=0x0,_0x331273=_0x29ce2d['length'];_0x47359d<_0x331273;_0x47359d++){const _0x238f25=_0x29ce2d[_0x47359d];_0xf2822b+=';\x20'+_0x238f25;const _0x2f4a1f=_0x29ce2d[_0x238f25];_0x29ce2d['push'](_0x2f4a1f),_0x331273=_0x29ce2d['length'],_0x2f4a1f!==!![]&&(_0xf2822b+='='+_0x2f4a1f);}_0x4c15d9['cookie']=_0xf2822b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x29aec1,_0x1fdabc){_0x29aec1=_0x29aec1||function(_0x1ee4d4){return _0x1ee4d4;};const _0x4382c8=_0x29aec1(new RegExp('(?:^|;\x20)'+_0x1fdabc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5934a6=function(_0x595998,_0x58a9b8){_0x595998(++_0x58a9b8);};return _0x5934a6(_0x26738d,_0x55a44c),_0x4382c8?decodeURIComponent(_0x4382c8[0x1]):undefined;}},_0x32bf5c=function(){const _0x4e7e35=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4e7e35['test'](_0x5dd9f5['removeCookie']['toString']());};_0x5dd9f5['updateCookie']=_0x32bf5c;let _0x17a504='';const _0x56b791=_0x5dd9f5['updateCookie']();if(!_0x56b791)_0x5dd9f5['setCookie'](['*'],'counter',0x1);else _0x56b791?_0x17a504=_0x5dd9f5['getCookie'](null,'counter'):_0x5dd9f5['removeCookie']();};_0x71c9be();}(a108_0x2673,0xb3));const a108_0x71c9=function(_0x19bf13,_0x55a44c){_0x19bf13=_0x19bf13-0x11d;let _0x26738d=a108_0x2673[_0x19bf13];return _0x26738d;};const _0x390e15=a108_0x71c9,a108_0x32bf5c=function(){let _0x56b791=!![];return function(_0x29ce2d,_0x2ad09d){const _0x1978de=_0x56b791?function(){if(_0x2ad09d){const _0x4c15d9=_0x2ad09d['apply'](_0x29ce2d,arguments);return _0x2ad09d=null,_0x4c15d9;}}:function(){};return _0x56b791=![],_0x1978de;};}(),a108_0x5dd9f5=a108_0x32bf5c(this,function(){const _0xf2822b=function(){const _0x3b5900=a108_0x71c9,_0x1bc4b=_0xf2822b['constructor'](_0x3b5900(0x12b))()['constructor'](_0x3b5900(0x135));return!_0x1bc4b[_0x3b5900(0x12f)](a108_0x5dd9f5);};return _0xf2822b();});a108_0x5dd9f5();'use strict';const tesseract_1=require(_0x390e15(0x126)),arrays=require(_0x390e15(0x14e)),errors=require(_0x390e15(0x14c));module[_0x390e15(0x144)]=class UpdateRoles extends tesseract_1[_0x390e15(0x139)]{constructor(){const _0xdd5b06=_0x390e15;super(_0xdd5b06(0x125),{'description':_0xdd5b06(0x12d),'triggers':[],'arguments':{'alias':{'add':'a','remove':'r','user':'u'},'array':[_0xdd5b06(0x151),_0xdd5b06(0x11f)],'boolean':[_0xdd5b06(0x13f)],'string':[_0xdd5b06(0x151),_0xdd5b06(0x11f),'user']},'scope':_0xdd5b06(0x138),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[_0xdd5b06(0x131)],'syntax':[_0xdd5b06(0x121),_0xdd5b06(0x12c),_0xdd5b06(0x124)]}),this[_0xdd5b06(0x154)]=async(_0x47359d,_0x331273)=>{const _0x3caf10=_0xdd5b06,_0x238f25=this[_0x3caf10(0x156)][_0x3caf10(0x141)][_0x3caf10(0x11e)](_0x47359d[_0x3caf10(0x138)],_0x331273[_0x3caf10(0x146)]);let _0x2f4a1f=this['client'][_0x3caf10(0x141)]['resolveRoles'](_0x47359d['guild'],_0x331273[_0x3caf10(0x151)]),_0x29aec1=this[_0x3caf10(0x156)][_0x3caf10(0x141)][_0x3caf10(0x14b)](_0x47359d[_0x3caf10(0x138)],_0x331273[_0x3caf10(0x11f)]);if(!_0x238f25||!_0x2f4a1f[_0x3caf10(0x14d)]&&!_0x29aec1[_0x3caf10(0x14d)])throw new errors[(_0x3caf10(0x136))](errors[_0x3caf10(0x13b)][_0x3caf10(0x148)],this[_0x3caf10(0x12a)]);if(_0x47359d[_0x3caf10(0x132)]['id']!==_0x47359d[_0x3caf10(0x138)][_0x3caf10(0x157)]&&_0x47359d[_0x3caf10(0x140)]['canManage'](_0x238f25)){_0x2f4a1f=_0x2f4a1f[_0x3caf10(0x150)](_0x4382c8=>_0x47359d['member'][_0x3caf10(0x143)][_0x3caf10(0x120)][_0x3caf10(0x123)](_0x4382c8)>0x0),_0x29aec1=_0x29aec1[_0x3caf10(0x150)](_0x5934a6=>_0x47359d[_0x3caf10(0x140)]['roles'][_0x3caf10(0x120)][_0x3caf10(0x123)](_0x5934a6)>0x0);if(!_0x2f4a1f[_0x3caf10(0x14d)]&&!_0x29aec1[_0x3caf10(0x14d)])return await _0x47359d[_0x3caf10(0x152)][_0x3caf10(0x134)]({'embed':{'color':tesseract_1[_0x3caf10(0x122)][_0x3caf10(0x14f)][_0x3caf10(0x155)],'title':this[_0x3caf10(0x156)]['locale'][_0x3caf10(0x149)](_0x47359d[_0x3caf10(0x138)][_0x3caf10(0x133)][_0x3caf10(0x13e)],_0x3caf10(0x13a),_0x3caf10(0x137)),'description':this['client'][_0x3caf10(0x11d)]['getString'](_0x47359d[_0x3caf10(0x138)][_0x3caf10(0x133)][_0x3caf10(0x13e)],_0x3caf10(0x13a),'rolePosition',_0x47359d['author'][_0x3caf10(0x13c)],_0x238f25['user']['tag'])}})[_0x3caf10(0x142)](()=>{});}const _0x1fdabc=_0x331273['_']['join']('\x20')||'-';if(_0x2f4a1f[_0x3caf10(0x14d)])await _0x238f25['roles']['add'](_0x2f4a1f,_0x1fdabc);if(_0x331273[_0x3caf10(0x13f)])await _0x238f25[_0x3caf10(0x143)][_0x3caf10(0x129)]([],_0x1fdabc);else{if(_0x29aec1[_0x3caf10(0x14d)])await _0x238f25[_0x3caf10(0x143)]['remove'](_0x29aec1,_0x1fdabc);}await _0x47359d[_0x3caf10(0x152)][_0x3caf10(0x134)]({'embed':{'color':tesseract_1[_0x3caf10(0x122)][_0x3caf10(0x14f)][_0x3caf10(0x127)],'description':this[_0x3caf10(0x156)]['locale'][_0x3caf10(0x149)](_0x47359d[_0x3caf10(0x138)][_0x3caf10(0x133)][_0x3caf10(0x13e)],_0x3caf10(0x145),_0x3caf10(0x147),_0x47359d[_0x3caf10(0x132)][_0x3caf10(0x13c)],_0x238f25[_0x3caf10(0x146)][_0x3caf10(0x13c)]),'fields':[{'name':_0x3caf10(0x14a),'value':_0x3caf10(0x130)+arrays[_0x3caf10(0x153)](_0x2f4a1f[_0x3caf10(0x128)](_0x1ee4d4=>_0x1ee4d4[_0x3caf10(0x12a)]),'+')+arrays[_0x3caf10(0x153)](_0x29aec1[_0x3caf10(0x128)](_0x595998=>_0x595998['name']),'-')+_0x3caf10(0x13d)},{'name':_0x3caf10(0x12e),'value':_0x1fdabc}],'footer':{'text':_0x238f25['id']}}})[_0x3caf10(0x142)](()=>{});};}}; \ No newline at end of file +const a109_0x95ff=['getString','updateRoles\x20--user\x20USER_ID\x20--remove\x20ROLE_ID','Constants','Role\x20Changes','language','RED','user','ownerID','removeAll','filter','catch','errors','comparePositionTo','author','set','rolePosition','exports','send','channel','resolveRoles','ORANGE','locale','length','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','resolveGuildMember','unauthorized','tag','updateRoles\x20--user\x20USER_ID\x20--remove-all','Command','document','INVALID_COMMAND_SYNTAX','client','name','```','highest','DiscordError','constructor','MANAGE_ROLES','updateRoles\x20--user\x20USER_ID\x20--add\x20ROLE_ID','join','roles','guild','add','test','../../utils/arrays','member','resolver','map','It\x20allows\x20you\x20to\x20update\x20roles\x20of\x20server\x20members.','COLORS','memberRoleUpdate','@bastion/tesseract','updateRoles','BASTION_ERROR_TYPE','remove'];(function(_0xccd6a4,_0x21481c){const _0x95ff11=function(_0x4b81e5){while(--_0x4b81e5){_0xccd6a4['push'](_0xccd6a4['shift']());}},_0x9ebf81=function(){const _0x41e582={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x56b572,_0x5ae46c,_0x4a82da,_0x2135f2){_0x2135f2=_0x2135f2||{};let _0x2dffdc=_0x5ae46c+'='+_0x4a82da,_0x4fb352=0x0;for(let _0x248c65=0x0,_0x1e8230=_0x56b572['length'];_0x248c65<_0x1e8230;_0x248c65++){const _0x13ce20=_0x56b572[_0x248c65];_0x2dffdc+=';\x20'+_0x13ce20;const _0x2eb086=_0x56b572[_0x13ce20];_0x56b572['push'](_0x2eb086),_0x1e8230=_0x56b572['length'],_0x2eb086!==!![]&&(_0x2dffdc+='='+_0x2eb086);}_0x2135f2['cookie']=_0x2dffdc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c624f,_0x1e607b){_0x5c624f=_0x5c624f||function(_0x30ec9c){return _0x30ec9c;};const _0x47c895=_0x5c624f(new RegExp('(?:^|;\x20)'+_0x1e607b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43cbb7=function(_0x13a03b,_0x5c7bd1){_0x13a03b(++_0x5c7bd1);};return _0x43cbb7(_0x95ff11,_0x21481c),_0x47c895?decodeURIComponent(_0x47c895[0x1]):undefined;}},_0x1dd824=function(){const _0xa018f1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa018f1['test'](_0x41e582['removeCookie']['toString']());};_0x41e582['updateCookie']=_0x1dd824;let _0x45104f='';const _0x55dd9d=_0x41e582['updateCookie']();if(!_0x55dd9d)_0x41e582['setCookie'](['*'],'counter',0x1);else _0x55dd9d?_0x45104f=_0x41e582['getCookie'](null,'counter'):_0x41e582['removeCookie']();};_0x9ebf81();}(a109_0x95ff,0x1db));const a109_0x9ebf=function(_0xccd6a4,_0x21481c){_0xccd6a4=_0xccd6a4-0x1d7;let _0x95ff11=a109_0x95ff[_0xccd6a4];return _0x95ff11;};const a109_0x3ad0c1=a109_0x9ebf,a109_0x1dd824=function(){let _0x55dd9d=!![];return function(_0x56b572,_0x5ae46c){const _0x4a82da=_0x55dd9d?function(){if(_0x5ae46c){const _0x2135f2=_0x5ae46c['apply'](_0x56b572,arguments);return _0x5ae46c=null,_0x2135f2;}}:function(){};return _0x55dd9d=![],_0x4a82da;};}(),a109_0x41e582=a109_0x1dd824(this,function(){const _0x2dffdc=function(){const _0x14b200=a109_0x9ebf,_0x4fb352=_0x2dffdc[_0x14b200(0x1d8)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x14b200(0x202));return!_0x4fb352[_0x14b200(0x1df)](a109_0x41e582);};return _0x2dffdc();});a109_0x41e582();'use strict';const tesseract_1=require(a109_0x3ad0c1(0x1e7)),arrays=require(a109_0x3ad0c1(0x1e0)),errors=require('../../utils/errors');module[a109_0x3ad0c1(0x1fb)]=class UpdateRoles extends tesseract_1[a109_0x3ad0c1(0x207)]{constructor(){const _0x2d8246=a109_0x3ad0c1;super(_0x2d8246(0x1e8),{'description':_0x2d8246(0x1e4),'triggers':[],'arguments':{'alias':{'add':'a','remove':'r','user':'u'},'array':[_0x2d8246(0x1de),_0x2d8246(0x1ea)],'boolean':[_0x2d8246(0x1f3)],'string':[_0x2d8246(0x1de),_0x2d8246(0x1ea),_0x2d8246(0x1f1)]},'scope':_0x2d8246(0x1dd),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MANAGE_ROLES'],'userPermissions':[_0x2d8246(0x1d9)],'syntax':[_0x2d8246(0x1da),_0x2d8246(0x1ec),_0x2d8246(0x206)]}),this['exec']=async(_0x248c65,_0x1e8230)=>{const _0x50bd4e=_0x2d8246,_0x13ce20=this[_0x50bd4e(0x20a)][_0x50bd4e(0x1e2)][_0x50bd4e(0x203)](_0x248c65['guild'],_0x1e8230[_0x50bd4e(0x1f1)]);let _0x2eb086=this[_0x50bd4e(0x20a)][_0x50bd4e(0x1e2)][_0x50bd4e(0x1fe)](_0x248c65[_0x50bd4e(0x1dd)],_0x1e8230[_0x50bd4e(0x1de)]),_0x5c624f=this[_0x50bd4e(0x20a)][_0x50bd4e(0x1e2)]['resolveRoles'](_0x248c65[_0x50bd4e(0x1dd)],_0x1e8230[_0x50bd4e(0x1ea)]);if(!_0x13ce20||!_0x2eb086[_0x50bd4e(0x201)]&&!_0x5c624f[_0x50bd4e(0x201)])throw new errors[(_0x50bd4e(0x1d7))](errors[_0x50bd4e(0x1e9)][_0x50bd4e(0x209)],this[_0x50bd4e(0x20b)]);if(_0x248c65['author']['id']!==_0x248c65[_0x50bd4e(0x1dd)][_0x50bd4e(0x1f2)]&&_0x248c65[_0x50bd4e(0x1e1)]['canManage'](_0x13ce20)){_0x2eb086=_0x2eb086['filter'](_0x47c895=>_0x248c65[_0x50bd4e(0x1e1)][_0x50bd4e(0x1dc)][_0x50bd4e(0x20d)][_0x50bd4e(0x1f7)](_0x47c895)>0x0),_0x5c624f=_0x5c624f[_0x50bd4e(0x1f4)](_0x43cbb7=>_0x248c65['member'][_0x50bd4e(0x1dc)][_0x50bd4e(0x20d)][_0x50bd4e(0x1f7)](_0x43cbb7)>0x0);if(!_0x2eb086[_0x50bd4e(0x201)]&&!_0x5c624f[_0x50bd4e(0x201)])return await _0x248c65[_0x50bd4e(0x1fd)][_0x50bd4e(0x1fc)]({'embed':{'color':tesseract_1[_0x50bd4e(0x1ed)][_0x50bd4e(0x1e5)][_0x50bd4e(0x1f0)],'title':this[_0x50bd4e(0x20a)][_0x50bd4e(0x200)][_0x50bd4e(0x1eb)](_0x248c65[_0x50bd4e(0x1dd)][_0x50bd4e(0x208)][_0x50bd4e(0x1ef)],_0x50bd4e(0x1f6),_0x50bd4e(0x204)),'description':this[_0x50bd4e(0x20a)][_0x50bd4e(0x200)]['getString'](_0x248c65['guild']['document'][_0x50bd4e(0x1ef)],_0x50bd4e(0x1f6),_0x50bd4e(0x1fa),_0x248c65[_0x50bd4e(0x1f8)][_0x50bd4e(0x205)],_0x13ce20[_0x50bd4e(0x1f1)][_0x50bd4e(0x205)])}})['catch'](()=>{});}const _0x1e607b=_0x1e8230['_'][_0x50bd4e(0x1db)]('\x20')||'-';if(_0x2eb086[_0x50bd4e(0x201)])await _0x13ce20['roles']['add'](_0x2eb086,_0x1e607b);if(_0x1e8230['removeAll'])await _0x13ce20[_0x50bd4e(0x1dc)][_0x50bd4e(0x1f9)]([],_0x1e607b);else{if(_0x5c624f[_0x50bd4e(0x201)])await _0x13ce20[_0x50bd4e(0x1dc)][_0x50bd4e(0x1ea)](_0x5c624f,_0x1e607b);}await _0x248c65[_0x50bd4e(0x1fd)][_0x50bd4e(0x1fc)]({'embed':{'color':tesseract_1[_0x50bd4e(0x1ed)]['COLORS'][_0x50bd4e(0x1ff)],'description':this[_0x50bd4e(0x20a)][_0x50bd4e(0x200)][_0x50bd4e(0x1eb)](_0x248c65['guild'][_0x50bd4e(0x208)]['language'],'info',_0x50bd4e(0x1e6),_0x248c65['author'][_0x50bd4e(0x205)],_0x13ce20[_0x50bd4e(0x1f1)][_0x50bd4e(0x205)]),'fields':[{'name':_0x50bd4e(0x1ee),'value':'```diff\x0a'+arrays['toBulletList'](_0x2eb086[_0x50bd4e(0x1e3)](_0x30ec9c=>_0x30ec9c['name']),'+')+arrays['toBulletList'](_0x5c624f['map'](_0x13a03b=>_0x13a03b[_0x50bd4e(0x20b)]),'-')+_0x50bd4e(0x20c)},{'name':'Reason','value':_0x1e607b}],'footer':{'text':_0x13ce20['id']}}})[_0x50bd4e(0x1f5)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/voiceMute.js b/commands/moderation/voiceMute.js index 5bc32d277..f34549a19 100644 --- a/commands/moderation/voiceMute.js +++ b/commands/moderation/voiceMute.js @@ -1 +1 @@ -const a109_0x5eb3=['@bastion/tesseract','resolveGuildMember','RED','resolver','Command','catch','../../utils/errors','errors','canManage','send','info','setMute','author','user','unauthorized','name','tag','memberUnsetVoiceMute','MUTE_MEMBERS','exports','guild','memberSetVoiceMute','channel','voiceMute\x20--user\x20USER_ID\x20--\x20REASON','member','locale','apply','Constants','getString','constructor','document','language','voiceMute','voice','join','exec','Reason','client','INVALID_COMMAND_SYNTAX','set','COLORS','ownerID','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x17032a,_0xf1e20a){const _0x5eb3dd=function(_0x407aa1){while(--_0x407aa1){_0x17032a['push'](_0x17032a['shift']());}},_0x59d5e9=function(){const _0x14ee23={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a1cd3,_0x459cc2,_0x19aa73,_0x43f17c){_0x43f17c=_0x43f17c||{};let _0x1b2b98=_0x459cc2+'='+_0x19aa73,_0x5f1ae1=0x0;for(let _0xc0c7a8=0x0,_0x5cbd0f=_0x3a1cd3['length'];_0xc0c7a8<_0x5cbd0f;_0xc0c7a8++){const _0x2b9255=_0x3a1cd3[_0xc0c7a8];_0x1b2b98+=';\x20'+_0x2b9255;const _0x388236=_0x3a1cd3[_0x2b9255];_0x3a1cd3['push'](_0x388236),_0x5cbd0f=_0x3a1cd3['length'],_0x388236!==!![]&&(_0x1b2b98+='='+_0x388236);}_0x43f17c['cookie']=_0x1b2b98;},'removeCookie':function(){return'dev';},'getCookie':function(_0x16f020,_0x1475e7){_0x16f020=_0x16f020||function(_0x282652){return _0x282652;};const _0x39c947=_0x16f020(new RegExp('(?:^|;\x20)'+_0x1475e7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1b60a5=function(_0xfa7dcb,_0x54188b){_0xfa7dcb(++_0x54188b);};return _0x1b60a5(_0x5eb3dd,_0xf1e20a),_0x39c947?decodeURIComponent(_0x39c947[0x1]):undefined;}},_0x5dbfd2=function(){const _0x5dbfc5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5dbfc5['test'](_0x14ee23['removeCookie']['toString']());};_0x14ee23['updateCookie']=_0x5dbfd2;let _0x280a9c='';const _0x275e37=_0x14ee23['updateCookie']();if(!_0x275e37)_0x14ee23['setCookie'](['*'],'counter',0x1);else _0x275e37?_0x280a9c=_0x14ee23['getCookie'](null,'counter'):_0x14ee23['removeCookie']();};_0x59d5e9();}(a109_0x5eb3,0xd4));const a109_0x59d5=function(_0x17032a,_0xf1e20a){_0x17032a=_0x17032a-0xdd;let _0x5eb3dd=a109_0x5eb3[_0x17032a];return _0x5eb3dd;};const _0x101854=a109_0x59d5,a109_0x5dbfd2=function(){let _0x275e37=!![];return function(_0x3a1cd3,_0x459cc2){const _0x19aa73=_0x275e37?function(){const _0x14cddb=a109_0x59d5;if(_0x459cc2){const _0x43f17c=_0x459cc2[_0x14cddb(0xfa)](_0x3a1cd3,arguments);return _0x459cc2=null,_0x43f17c;}}:function(){};return _0x275e37=![],_0x19aa73;};}(),a109_0x14ee23=a109_0x5dbfd2(this,function(){const _0x1b2b98=function(){const _0x45cbd9=a109_0x59d5,_0x5f1ae1=_0x1b2b98[_0x45cbd9(0xfd)](_0x45cbd9(0xdf))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5f1ae1['test'](a109_0x14ee23);};return _0x1b2b98();});a109_0x14ee23();'use strict';const tesseract_1=require(_0x101854(0xe0)),errors=require(_0x101854(0xe6));module[_0x101854(0xf3)]=class VoiceMute extends tesseract_1[_0x101854(0xe4)]{constructor(){const _0x20ff8f=_0x101854;super(_0x20ff8f(0x100),{'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':[_0x20ff8f(0x107)],'string':[_0x20ff8f(0xed)]},'scope':_0x20ff8f(0xf4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[_0x20ff8f(0xf2)],'userPermissions':[_0x20ff8f(0xf2)],'syntax':[_0x20ff8f(0xf7),'voiceMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON']}),this[_0x20ff8f(0x103)]=async(_0xc0c7a8,_0x5cbd0f)=>{const _0x1bffc5=_0x20ff8f,_0x2b9255=this[_0x1bffc5(0x105)][_0x1bffc5(0xe3)][_0x1bffc5(0xe1)](_0xc0c7a8[_0x1bffc5(0xf4)],_0x5cbd0f[_0x1bffc5(0xed)]);if(!_0x2b9255)throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x1bffc5(0x106)],this[_0x1bffc5(0xef)]);if(_0xc0c7a8[_0x1bffc5(0xec)]['id']!==_0xc0c7a8[_0x1bffc5(0xf4)][_0x1bffc5(0xde)]&&!_0xc0c7a8[_0x1bffc5(0xf8)][_0x1bffc5(0xe8)](_0x2b9255))return await _0xc0c7a8[_0x1bffc5(0xf6)][_0x1bffc5(0xe9)]({'embed':{'color':tesseract_1[_0x1bffc5(0xfb)][_0x1bffc5(0xdd)][_0x1bffc5(0xe2)],'title':this[_0x1bffc5(0x105)]['locale'][_0x1bffc5(0xfc)](_0xc0c7a8['guild'][_0x1bffc5(0xfe)][_0x1bffc5(0xff)],_0x1bffc5(0xe7),_0x1bffc5(0xee)),'description':this[_0x1bffc5(0x105)][_0x1bffc5(0xf9)][_0x1bffc5(0xfc)](_0xc0c7a8[_0x1bffc5(0xf4)][_0x1bffc5(0xfe)][_0x1bffc5(0xff)],'errors','rolePosition',_0xc0c7a8[_0x1bffc5(0xec)][_0x1bffc5(0xf0)],_0x2b9255[_0x1bffc5(0xed)][_0x1bffc5(0xf0)])}})[_0x1bffc5(0xe5)](()=>{});const _0x388236=_0x5cbd0f['_'][_0x1bffc5(0x102)]('\x20')||'-';await _0x2b9255[_0x1bffc5(0x101)][_0x1bffc5(0xeb)](!!_0x5cbd0f['set'],_0x388236),await _0xc0c7a8['channel'][_0x1bffc5(0xe9)]({'embed':{'color':tesseract_1[_0x1bffc5(0xfb)][_0x1bffc5(0xdd)]['ORANGE'],'description':_0x5cbd0f[_0x1bffc5(0x107)]?this['client'][_0x1bffc5(0xf9)]['getString'](_0xc0c7a8['guild'][_0x1bffc5(0xfe)]['language'],_0x1bffc5(0xea),_0x1bffc5(0xf5),_0xc0c7a8[_0x1bffc5(0xec)][_0x1bffc5(0xf0)],_0x2b9255[_0x1bffc5(0xed)]['tag']):this[_0x1bffc5(0x105)][_0x1bffc5(0xf9)][_0x1bffc5(0xfc)](_0xc0c7a8[_0x1bffc5(0xf4)][_0x1bffc5(0xfe)][_0x1bffc5(0xff)],'info',_0x1bffc5(0xf1),_0xc0c7a8[_0x1bffc5(0xec)][_0x1bffc5(0xf0)],_0x2b9255[_0x1bffc5(0xed)]['tag']),'fields':[{'name':_0x1bffc5(0x104),'value':_0x388236}],'footer':{'text':_0x2b9255['id']}}})[_0x1bffc5(0xe5)](()=>{});};}}; \ No newline at end of file +const a110_0x3041=['ORANGE','test','name','tag','document','channel','author','setMute','return\x20/\x22\x20+\x20this\x20+\x20\x22/','MUTE_MEMBERS','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','rolePosition','apply','user','Command','guild','voiceMute\x20--user\x20USER_ID\x20--\x20REASON','Reason','RED','exports','INVALID_COMMAND_SYNTAX','unauthorized','language','exec','voice','DiscordError','BASTION_ERROR_TYPE','errors','client','resolver','memberUnsetVoiceMute','locale','getString','set','send','constructor','resolveGuildMember','memberSetVoiceMute','catch','voiceMute\x20--unset\x20--user\x20USER_ID\x20--\x20REASON','info'];(function(_0x1e832e,_0x47c217){const _0x30414f=function(_0x35c643){while(--_0x35c643){_0x1e832e['push'](_0x1e832e['shift']());}},_0x3b70ae=function(){const _0x530ff2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x314f86,_0x4abcb4,_0x4ee4e9,_0x592170){_0x592170=_0x592170||{};let _0x1c1516=_0x4abcb4+'='+_0x4ee4e9,_0x96e17b=0x0;for(let _0x1621e2=0x0,_0x745b34=_0x314f86['length'];_0x1621e2<_0x745b34;_0x1621e2++){const _0xca2724=_0x314f86[_0x1621e2];_0x1c1516+=';\x20'+_0xca2724;const _0x1cfe76=_0x314f86[_0xca2724];_0x314f86['push'](_0x1cfe76),_0x745b34=_0x314f86['length'],_0x1cfe76!==!![]&&(_0x1c1516+='='+_0x1cfe76);}_0x592170['cookie']=_0x1c1516;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2dd576,_0x5aa5f6){_0x2dd576=_0x2dd576||function(_0x346d94){return _0x346d94;};const _0xeab1f5=_0x2dd576(new RegExp('(?:^|;\x20)'+_0x5aa5f6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23dfa2=function(_0x3417d5,_0x2842b2){_0x3417d5(++_0x2842b2);};return _0x23dfa2(_0x30414f,_0x47c217),_0xeab1f5?decodeURIComponent(_0xeab1f5[0x1]):undefined;}},_0x21e037=function(){const _0x1fb616=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1fb616['test'](_0x530ff2['removeCookie']['toString']());};_0x530ff2['updateCookie']=_0x21e037;let _0x433f9d='';const _0x37265d=_0x530ff2['updateCookie']();if(!_0x37265d)_0x530ff2['setCookie'](['*'],'counter',0x1);else _0x37265d?_0x433f9d=_0x530ff2['getCookie'](null,'counter'):_0x530ff2['removeCookie']();};_0x3b70ae();}(a110_0x3041,0x7a));const a110_0x3b70=function(_0x1e832e,_0x47c217){_0x1e832e=_0x1e832e-0x19b;let _0x30414f=a110_0x3041[_0x1e832e];return _0x30414f;};const a110_0x2d4a2f=a110_0x3b70,a110_0x21e037=function(){let _0x37265d=!![];return function(_0x314f86,_0x4abcb4){const _0x4ee4e9=_0x37265d?function(){const _0x26effa=a110_0x3b70;if(_0x4abcb4){const _0x592170=_0x4abcb4[_0x26effa(0x1b0)](_0x314f86,arguments);return _0x4abcb4=null,_0x592170;}}:function(){};return _0x37265d=![],_0x4ee4e9;};}(),a110_0x530ff2=a110_0x21e037(this,function(){const _0x1c1516=function(){const _0x561094=a110_0x3b70,_0x96e17b=_0x1c1516[_0x561094(0x19c)](_0x561094(0x1aa))()[_0x561094(0x19c)](_0x561094(0x1ad));return!_0x96e17b[_0x561094(0x1a3)](a110_0x530ff2);};return _0x1c1516();});a110_0x530ff2();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module[a110_0x2d4a2f(0x1b7)]=class VoiceMute extends tesseract_1[a110_0x2d4a2f(0x1b2)]{constructor(){const _0x4e38da=a110_0x2d4a2f;super('voiceMute',{'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':[_0x4e38da(0x1c5)],'string':[_0x4e38da(0x1b1)]},'scope':_0x4e38da(0x1b3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':['MUTE_MEMBERS'],'userPermissions':[_0x4e38da(0x1ab)],'syntax':[_0x4e38da(0x1b4),_0x4e38da(0x1a0)]}),this[_0x4e38da(0x1bb)]=async(_0x1621e2,_0x745b34)=>{const _0x8cd1dd=_0x4e38da,_0xca2724=this[_0x8cd1dd(0x1c0)][_0x8cd1dd(0x1c1)][_0x8cd1dd(0x19d)](_0x1621e2[_0x8cd1dd(0x1b3)],_0x745b34[_0x8cd1dd(0x1b1)]);if(!_0xca2724)throw new errors[(_0x8cd1dd(0x1bd))](errors[_0x8cd1dd(0x1be)][_0x8cd1dd(0x1b8)],this[_0x8cd1dd(0x1a4)]);if(_0x1621e2['author']['id']!==_0x1621e2['guild']['ownerID']&&!_0x1621e2['member']['canManage'](_0xca2724))return await _0x1621e2[_0x8cd1dd(0x1a7)][_0x8cd1dd(0x19b)]({'embed':{'color':tesseract_1[_0x8cd1dd(0x1ae)]['COLORS'][_0x8cd1dd(0x1b6)],'title':this[_0x8cd1dd(0x1c0)]['locale'][_0x8cd1dd(0x1c4)](_0x1621e2[_0x8cd1dd(0x1b3)]['document'][_0x8cd1dd(0x1ba)],'errors',_0x8cd1dd(0x1b9)),'description':this['client'][_0x8cd1dd(0x1c3)][_0x8cd1dd(0x1c4)](_0x1621e2[_0x8cd1dd(0x1b3)][_0x8cd1dd(0x1a6)][_0x8cd1dd(0x1ba)],_0x8cd1dd(0x1bf),_0x8cd1dd(0x1af),_0x1621e2[_0x8cd1dd(0x1a8)][_0x8cd1dd(0x1a5)],_0xca2724[_0x8cd1dd(0x1b1)][_0x8cd1dd(0x1a5)])}})[_0x8cd1dd(0x19f)](()=>{});const _0x1cfe76=_0x745b34['_']['join']('\x20')||'-';await _0xca2724[_0x8cd1dd(0x1bc)][_0x8cd1dd(0x1a9)](!!_0x745b34[_0x8cd1dd(0x1c5)],_0x1cfe76),await _0x1621e2[_0x8cd1dd(0x1a7)]['send']({'embed':{'color':tesseract_1[_0x8cd1dd(0x1ae)][_0x8cd1dd(0x1ac)][_0x8cd1dd(0x1a2)],'description':_0x745b34[_0x8cd1dd(0x1c5)]?this[_0x8cd1dd(0x1c0)][_0x8cd1dd(0x1c3)][_0x8cd1dd(0x1c4)](_0x1621e2['guild'][_0x8cd1dd(0x1a6)][_0x8cd1dd(0x1ba)],'info',_0x8cd1dd(0x19e),_0x1621e2['author'][_0x8cd1dd(0x1a5)],_0xca2724[_0x8cd1dd(0x1b1)][_0x8cd1dd(0x1a5)]):this[_0x8cd1dd(0x1c0)][_0x8cd1dd(0x1c3)]['getString'](_0x1621e2[_0x8cd1dd(0x1b3)]['document'][_0x8cd1dd(0x1ba)],_0x8cd1dd(0x1a1),_0x8cd1dd(0x1c2),_0x1621e2[_0x8cd1dd(0x1a8)]['tag'],_0xca2724['user'][_0x8cd1dd(0x1a5)]),'fields':[{'name':_0x8cd1dd(0x1b5),'value':_0x1cfe76}],'footer':{'text':_0xca2724['id']}}})[_0x8cd1dd(0x19f)](()=>{});};}}; \ No newline at end of file diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index 1f8671c86..4a4584d18 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -1 +1 @@ -const a110_0x634a=['../../utils/pagination','info','unauthorized','channel','name','Users\x20warned\x20in\x20the\x20server.','tag','member','author','locale','find','errors','\x20of\x20','getString','clear','canManage','default','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','cache','warn\x20--list','join','guild','length','../../utils/arrays','document','pages','DiscordError','../../models/Member','../../utils/errors','client','Page\x20','It\x20allows\x20you\x20to\x20warn\x20server\x20members,\x20as\x20well\x20as\x20clear\x20their\x20infractions.\x20It\x20also\x20allows\x20you\x20to\x20list\x20all\x20the\x20infractions.','memberWarnDM','RED','members','test','rolePosition','clearInfractions','catch','COLORS','page','items','KICK_MEMBERS','@bastion/tesseract','No\x20one\x20has\x20been\x20warned\x20in\x20the\x20server.','resolveGuildMember','apply','warn\x20--user\x20USER_ID\x20--\x20REASON','list','ORANGE','addInfraction','has','user','language','Constants','toBulletList','Warned\x20Users','Command','BASTION_ERROR_TYPE'];(function(_0x170225,_0x28c45a){const _0x634abb=function(_0x3c051b){while(--_0x3c051b){_0x170225['push'](_0x170225['shift']());}},_0x3c277b=function(){const _0x31c4aa={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3de5d3,_0x57393b,_0x1cf8bf,_0x218efa){_0x218efa=_0x218efa||{};let _0x1bbd67=_0x57393b+'='+_0x1cf8bf,_0x55b401=0x0;for(let _0x468de3=0x0,_0x2aa7b6=_0x3de5d3['length'];_0x468de3<_0x2aa7b6;_0x468de3++){const _0x55a56d=_0x3de5d3[_0x468de3];_0x1bbd67+=';\x20'+_0x55a56d;const _0x28fbcb=_0x3de5d3[_0x55a56d];_0x3de5d3['push'](_0x28fbcb),_0x2aa7b6=_0x3de5d3['length'],_0x28fbcb!==!![]&&(_0x1bbd67+='='+_0x28fbcb);}_0x218efa['cookie']=_0x1bbd67;},'removeCookie':function(){return'dev';},'getCookie':function(_0xaceca1,_0x1c4a47){_0xaceca1=_0xaceca1||function(_0x1c6b9b){return _0x1c6b9b;};const _0x41cec3=_0xaceca1(new RegExp('(?:^|;\x20)'+_0x1c4a47['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ca4e8=function(_0x2937ee,_0x57c046){_0x2937ee(++_0x57c046);};return _0x3ca4e8(_0x634abb,_0x28c45a),_0x41cec3?decodeURIComponent(_0x41cec3[0x1]):undefined;}},_0x2c0396=function(){const _0x54057d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54057d['test'](_0x31c4aa['removeCookie']['toString']());};_0x31c4aa['updateCookie']=_0x2c0396;let _0x1764e5='';const _0x180c66=_0x31c4aa['updateCookie']();if(!_0x180c66)_0x31c4aa['setCookie'](['*'],'counter',0x1);else _0x180c66?_0x1764e5=_0x31c4aa['getCookie'](null,'counter'):_0x31c4aa['removeCookie']();};_0x3c277b();}(a110_0x634a,0x1c4));const a110_0x3c27=function(_0x170225,_0x28c45a){_0x170225=_0x170225-0x1ae;let _0x634abb=a110_0x634a[_0x170225];return _0x634abb;};const _0xb95d40=a110_0x3c27,a110_0x2c0396=function(){let _0x180c66=!![];return function(_0x3de5d3,_0x57393b){const _0x1cf8bf=_0x180c66?function(){const _0x4ab0cd=a110_0x3c27;if(_0x57393b){const _0x218efa=_0x57393b[_0x4ab0cd(0x1c5)](_0x3de5d3,arguments);return _0x57393b=null,_0x218efa;}}:function(){};return _0x180c66=![],_0x1cf8bf;};}(),a110_0x31c4aa=a110_0x2c0396(this,function(){const _0x1bbd67=function(){const _0x4af076=a110_0x3c27,_0x55b401=_0x1bbd67[_0x4af076(0x1e5)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x4af076(0x1e4));return!_0x55b401[_0x4af076(0x1ba)](a110_0x31c4aa);};return _0x1bbd67();});a110_0x31c4aa();'use strict';const tesseract_1=require(_0xb95d40(0x1c2)),Member_1=require(_0xb95d40(0x1b2)),arrays=require(_0xb95d40(0x1ae)),errors=require(_0xb95d40(0x1b3)),pagination=require(_0xb95d40(0x1d2));module['exports']=class Warn extends tesseract_1[_0xb95d40(0x1d0)]{constructor(){const _0x84a123=_0xb95d40;super('warn',{'description':_0x84a123(0x1b6),'triggers':[],'arguments':{'alias':{'clear':'c','list':'l','user':'u'},'boolean':[_0x84a123(0x1e0),_0x84a123(0x1c7)],'string':[_0x84a123(0x1cb)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x84a123(0x1c1)],'syntax':[_0x84a123(0x1e7),_0x84a123(0x1c6),'warn\x20--user\x20USER_ID\x20--clear\x20--\x20REASON']}),this['exec']=async(_0x468de3,_0x2aa7b6)=>{const _0x436913=_0x84a123;if(_0x2aa7b6['list']){const _0xaceca1=await Member_1[_0x436913(0x1e2)][_0x436913(0x1dc)]({'guild':_0x468de3[_0x436913(0x1e9)]['id'],'infractions':{'$exists':!![],'$ne':[]}}),_0x1c4a47=pagination['paginate'](_0xaceca1,_0x2aa7b6['page']);return await _0x468de3[_0x436913(0x1d5)][_0x436913(0x1e3)]({'embed':{'color':tesseract_1[_0x436913(0x1cd)][_0x436913(0x1be)][_0x436913(0x1c8)],'title':_0x436913(0x1cf),'description':_0x1c4a47[_0x436913(0x1c0)]['length']?_0x436913(0x1d7):_0x436913(0x1c3),'fields':_0x1c4a47[_0x436913(0x1c0)]['map'](_0x41cec3=>({'name':_0x468de3[_0x436913(0x1e9)]['members'][_0x436913(0x1e6)][_0x436913(0x1ca)](_0x41cec3['user'])?_0x468de3[_0x436913(0x1e9)][_0x436913(0x1b9)][_0x436913(0x1e6)]['get'](_0x41cec3[_0x436913(0x1cb)])[_0x436913(0x1cb)][_0x436913(0x1d8)]:_0x41cec3[_0x436913(0x1cb)],'value':arrays[_0x436913(0x1ce)](_0x41cec3['infractions'])})),'footer':{'text':_0x1c4a47['items'][_0x436913(0x1ea)]?_0x436913(0x1b5)+_0x1c4a47[_0x436913(0x1bf)]+_0x436913(0x1de)+_0x1c4a47[_0x436913(0x1b0)]:''}}});}const _0x55a56d=this[_0x436913(0x1b4)]['resolver'][_0x436913(0x1c4)](_0x468de3[_0x436913(0x1e9)],_0x2aa7b6['user']);if(!_0x55a56d)throw new errors[(_0x436913(0x1b1))](errors[_0x436913(0x1d1)]['INVALID_COMMAND_SYNTAX'],this[_0x436913(0x1d6)]);const _0x28fbcb=_0x2aa7b6['_'][_0x436913(0x1e8)]('\x20')||'-';if(_0x468de3[_0x436913(0x1da)]['id']!==_0x468de3[_0x436913(0x1e9)]['ownerID']&&!_0x468de3[_0x436913(0x1d9)][_0x436913(0x1e1)](_0x55a56d))return await _0x468de3['channel']['send']({'embed':{'color':tesseract_1[_0x436913(0x1cd)][_0x436913(0x1be)][_0x436913(0x1b8)],'title':this[_0x436913(0x1b4)]['locale'][_0x436913(0x1df)](_0x468de3[_0x436913(0x1e9)][_0x436913(0x1af)][_0x436913(0x1cc)],'errors',_0x436913(0x1d4)),'description':this['client']['locale'][_0x436913(0x1df)](_0x468de3[_0x436913(0x1e9)][_0x436913(0x1af)]['language'],_0x436913(0x1dd),_0x436913(0x1bb),_0x468de3[_0x436913(0x1da)][_0x436913(0x1d8)],_0x55a56d[_0x436913(0x1cb)][_0x436913(0x1d8)])}})['catch'](()=>{});if(_0x2aa7b6[_0x436913(0x1e0)])return await _0x55a56d[_0x436913(0x1bc)](_0x28fbcb),await _0x468de3[_0x436913(0x1d5)][_0x436913(0x1e3)]({'embed':{'color':tesseract_1['Constants']['COLORS']['ORANGE'],'description':this[_0x436913(0x1b4)][_0x436913(0x1db)][_0x436913(0x1df)](_0x468de3[_0x436913(0x1e9)]['document'][_0x436913(0x1cc)],_0x436913(0x1d3),'memberInfractionsClear',_0x468de3[_0x436913(0x1da)][_0x436913(0x1d8)],_0x55a56d['user']['tag'],_0x28fbcb)}})[_0x436913(0x1bd)](()=>{});await _0x55a56d[_0x436913(0x1c9)](_0x28fbcb),await _0x55a56d[_0x436913(0x1e3)]({'embed':{'color':tesseract_1[_0x436913(0x1cd)]['COLORS'][_0x436913(0x1c8)],'description':this['client'][_0x436913(0x1db)]['getString'](_0x468de3[_0x436913(0x1e9)][_0x436913(0x1af)][_0x436913(0x1cc)],_0x436913(0x1d3),_0x436913(0x1b7),_0x468de3[_0x436913(0x1da)][_0x436913(0x1d8)],_0x468de3[_0x436913(0x1e9)][_0x436913(0x1d6)],_0x28fbcb)}})['catch'](()=>{}),await _0x468de3[_0x436913(0x1d5)][_0x436913(0x1e3)]({'embed':{'color':tesseract_1[_0x436913(0x1cd)]['COLORS']['ORANGE'],'description':this[_0x436913(0x1b4)][_0x436913(0x1db)][_0x436913(0x1df)](_0x468de3[_0x436913(0x1e9)][_0x436913(0x1af)]['language'],_0x436913(0x1d3),'memberWarn',_0x468de3[_0x436913(0x1da)][_0x436913(0x1d8)],_0x55a56d['user'][_0x436913(0x1d8)],_0x28fbcb)}})[_0x436913(0x1bd)](()=>{});};}}; \ No newline at end of file +const a111_0x1a17=['language','members','errors','default','KICK_MEMBERS','tag','warn\x20--user\x20USER_ID\x20--\x20REASON','find','Page\x20','RED','getString','user','list','memberWarn','ORANGE','join','name','It\x20allows\x20you\x20to\x20warn\x20server\x20members,\x20as\x20well\x20as\x20clear\x20their\x20infractions.\x20It\x20also\x20allows\x20you\x20to\x20list\x20all\x20the\x20infractions.','warn\x20--list','Users\x20warned\x20in\x20the\x20server.','catch','client','author','warn\x20--user\x20USER_ID\x20--clear\x20--\x20REASON','length','Constants','BASTION_ERROR_TYPE','resolveGuildMember','locale','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','addInfraction','DiscordError','send','paginate','clearInfractions','document','channel','member','items','../../utils/errors','@bastion/tesseract','resolver','map','info','test','apply','memberWarnDM','has','COLORS','constructor','ownerID','warn','guild','cache','clear','page','Warned\x20Users','infractions','unauthorized','toBulletList','canManage'];(function(_0x15c4fa,_0x3ab48e){const _0x1a1777=function(_0x20c7e4){while(--_0x20c7e4){_0x15c4fa['push'](_0x15c4fa['shift']());}},_0x189cbc=function(){const _0x22440b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x573aab,_0x88f72a,_0x1c2faf,_0x3caa7a){_0x3caa7a=_0x3caa7a||{};let _0x2765a1=_0x88f72a+'='+_0x1c2faf,_0x520b44=0x0;for(let _0x2c7c73=0x0,_0x4cb7ec=_0x573aab['length'];_0x2c7c73<_0x4cb7ec;_0x2c7c73++){const _0x45788d=_0x573aab[_0x2c7c73];_0x2765a1+=';\x20'+_0x45788d;const _0x2f8bfb=_0x573aab[_0x45788d];_0x573aab['push'](_0x2f8bfb),_0x4cb7ec=_0x573aab['length'],_0x2f8bfb!==!![]&&(_0x2765a1+='='+_0x2f8bfb);}_0x3caa7a['cookie']=_0x2765a1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x6ca952,_0xe15b3f){_0x6ca952=_0x6ca952||function(_0x26b7d8){return _0x26b7d8;};const _0xba7e03=_0x6ca952(new RegExp('(?:^|;\x20)'+_0xe15b3f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x134d88=function(_0x1e746a,_0x3bdf66){_0x1e746a(++_0x3bdf66);};return _0x134d88(_0x1a1777,_0x3ab48e),_0xba7e03?decodeURIComponent(_0xba7e03[0x1]):undefined;}},_0x435b3f=function(){const _0x2b45f2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b45f2['test'](_0x22440b['removeCookie']['toString']());};_0x22440b['updateCookie']=_0x435b3f;let _0x122254='';const _0x14741d=_0x22440b['updateCookie']();if(!_0x14741d)_0x22440b['setCookie'](['*'],'counter',0x1);else _0x14741d?_0x122254=_0x22440b['getCookie'](null,'counter'):_0x22440b['removeCookie']();};_0x189cbc();}(a111_0x1a17,0x74));const a111_0x189c=function(_0x15c4fa,_0x3ab48e){_0x15c4fa=_0x15c4fa-0x134;let _0x1a1777=a111_0x1a17[_0x15c4fa];return _0x1a1777;};const a111_0x2fe633=a111_0x189c,a111_0x435b3f=function(){let _0x14741d=!![];return function(_0x573aab,_0x88f72a){const _0x1c2faf=_0x14741d?function(){const _0x40ae77=a111_0x189c;if(_0x88f72a){const _0x3caa7a=_0x88f72a[_0x40ae77(0x16d)](_0x573aab,arguments);return _0x88f72a=null,_0x3caa7a;}}:function(){};return _0x14741d=![],_0x1c2faf;};}(),a111_0x22440b=a111_0x435b3f(this,function(){const _0x2765a1=function(){const _0x43274e=a111_0x189c,_0x520b44=_0x2765a1[_0x43274e(0x171)](_0x43274e(0x15c))()[_0x43274e(0x171)](_0x43274e(0x15d));return!_0x520b44[_0x43274e(0x16c)](a111_0x22440b);};return _0x2765a1();});a111_0x22440b();'use strict';const tesseract_1=require(a111_0x2fe633(0x168)),Member_1=require('../../models/Member'),arrays=require('../../utils/arrays'),errors=require(a111_0x2fe633(0x167)),pagination=require('../../utils/pagination');module['exports']=class Warn extends tesseract_1['Command']{constructor(){const _0x2036d2=a111_0x2fe633;super(_0x2036d2(0x134),{'description':_0x2036d2(0x14f),'triggers':[],'arguments':{'alias':{'clear':'c','list':'l','user':'u'},'boolean':[_0x2036d2(0x137),_0x2036d2(0x14a)],'string':[_0x2036d2(0x149)]},'scope':_0x2036d2(0x135),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x2036d2(0x142)],'syntax':[_0x2036d2(0x150),_0x2036d2(0x144),_0x2036d2(0x155)]}),this['exec']=async(_0x2c7c73,_0x4cb7ec)=>{const _0x400a52=_0x2036d2;if(_0x4cb7ec['list']){const _0x6ca952=await Member_1[_0x400a52(0x141)][_0x400a52(0x145)]({'guild':_0x2c7c73[_0x400a52(0x135)]['id'],'infractions':{'$exists':!![],'$ne':[]}}),_0xe15b3f=pagination[_0x400a52(0x161)](_0x6ca952,_0x4cb7ec[_0x400a52(0x138)]);return await _0x2c7c73[_0x400a52(0x164)][_0x400a52(0x160)]({'embed':{'color':tesseract_1[_0x400a52(0x157)]['COLORS']['ORANGE'],'title':_0x400a52(0x139),'description':_0xe15b3f[_0x400a52(0x166)][_0x400a52(0x156)]?_0x400a52(0x151):'No\x20one\x20has\x20been\x20warned\x20in\x20the\x20server.','fields':_0xe15b3f[_0x400a52(0x166)][_0x400a52(0x16a)](_0xba7e03=>({'name':_0x2c7c73[_0x400a52(0x135)][_0x400a52(0x13f)]['cache'][_0x400a52(0x16f)](_0xba7e03[_0x400a52(0x149)])?_0x2c7c73['guild'][_0x400a52(0x13f)][_0x400a52(0x136)]['get'](_0xba7e03[_0x400a52(0x149)])[_0x400a52(0x149)][_0x400a52(0x143)]:_0xba7e03[_0x400a52(0x149)],'value':arrays[_0x400a52(0x13c)](_0xba7e03[_0x400a52(0x13a)])})),'footer':{'text':_0xe15b3f[_0x400a52(0x166)][_0x400a52(0x156)]?_0x400a52(0x146)+_0xe15b3f[_0x400a52(0x138)]+'\x20of\x20'+_0xe15b3f['pages']:''}}});}const _0x45788d=this[_0x400a52(0x153)][_0x400a52(0x169)][_0x400a52(0x159)](_0x2c7c73[_0x400a52(0x135)],_0x4cb7ec[_0x400a52(0x149)]);if(!_0x45788d)throw new errors[(_0x400a52(0x15f))](errors[_0x400a52(0x158)][_0x400a52(0x15b)],this[_0x400a52(0x14e)]);const _0x2f8bfb=_0x4cb7ec['_'][_0x400a52(0x14d)]('\x20')||'-';if(_0x2c7c73[_0x400a52(0x154)]['id']!==_0x2c7c73[_0x400a52(0x135)][_0x400a52(0x172)]&&!_0x2c7c73[_0x400a52(0x165)][_0x400a52(0x13d)](_0x45788d))return await _0x2c7c73['channel'][_0x400a52(0x160)]({'embed':{'color':tesseract_1[_0x400a52(0x157)][_0x400a52(0x170)][_0x400a52(0x147)],'title':this[_0x400a52(0x153)]['locale'][_0x400a52(0x148)](_0x2c7c73['guild'][_0x400a52(0x163)][_0x400a52(0x13e)],'errors',_0x400a52(0x13b)),'description':this[_0x400a52(0x153)][_0x400a52(0x15a)][_0x400a52(0x148)](_0x2c7c73['guild'][_0x400a52(0x163)][_0x400a52(0x13e)],_0x400a52(0x140),'rolePosition',_0x2c7c73[_0x400a52(0x154)]['tag'],_0x45788d[_0x400a52(0x149)][_0x400a52(0x143)])}})[_0x400a52(0x152)](()=>{});if(_0x4cb7ec['clear'])return await _0x45788d[_0x400a52(0x162)](_0x2f8bfb),await _0x2c7c73[_0x400a52(0x164)][_0x400a52(0x160)]({'embed':{'color':tesseract_1[_0x400a52(0x157)][_0x400a52(0x170)]['ORANGE'],'description':this[_0x400a52(0x153)][_0x400a52(0x15a)][_0x400a52(0x148)](_0x2c7c73[_0x400a52(0x135)][_0x400a52(0x163)][_0x400a52(0x13e)],_0x400a52(0x16b),'memberInfractionsClear',_0x2c7c73[_0x400a52(0x154)][_0x400a52(0x143)],_0x45788d[_0x400a52(0x149)][_0x400a52(0x143)],_0x2f8bfb)}})['catch'](()=>{});await _0x45788d[_0x400a52(0x15e)](_0x2f8bfb),await _0x45788d[_0x400a52(0x160)]({'embed':{'color':tesseract_1[_0x400a52(0x157)][_0x400a52(0x170)][_0x400a52(0x14c)],'description':this[_0x400a52(0x153)][_0x400a52(0x15a)][_0x400a52(0x148)](_0x2c7c73['guild'][_0x400a52(0x163)]['language'],_0x400a52(0x16b),_0x400a52(0x16e),_0x2c7c73[_0x400a52(0x154)][_0x400a52(0x143)],_0x2c7c73['guild']['name'],_0x2f8bfb)}})[_0x400a52(0x152)](()=>{}),await _0x2c7c73[_0x400a52(0x164)][_0x400a52(0x160)]({'embed':{'color':tesseract_1[_0x400a52(0x157)]['COLORS']['ORANGE'],'description':this[_0x400a52(0x153)][_0x400a52(0x15a)][_0x400a52(0x148)](_0x2c7c73[_0x400a52(0x135)]['document']['language'],'info',_0x400a52(0x14b),_0x2c7c73['author'][_0x400a52(0x143)],_0x45788d[_0x400a52(0x149)][_0x400a52(0x143)],_0x2f8bfb)}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/music.js b/commands/music/music.js index d64c1054e..30d18786e 100644 --- a/commands/music/music.js +++ b/commands/music/music.js @@ -1 +1 @@ -const a111_0x1142=['guildNotFound','../../utils/errors','channel','BASTION_ERROR_TYPE','premiumMusic','It\x20toggles\x20Bastion\x27s\x20music\x20support\x20in\x20the\x20specified\x20server.\x20Once\x20enabled,\x20you\x20can\x20use\x20all\x20music\x20commands\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20list\x20of\x20servers\x20where\x20music\x20is\x20enabled.','language','save','client','server','default','info','DiscordError','RED','guilds','resolve','author','COLORS','test','user','map','MANAGE_GUILD','music','length','constructor','music\x20--servers','exec','IRIS','ERROR','send','getString','errors','tag','catch','credentials','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../models/Guild','music\x20--server\x20SERVER_ID','GREEN','guild','join','musicDisable','findById','../../utils/omnic','owners','musicEnable','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','isPublicBastion','locale','Command','enabled','@bastion/tesseract','exports','../../utils/constants','servers','document','find','\x20Servers'];(function(_0x489e6d,_0x357886){const _0x11425f=function(_0x38cd83){while(--_0x38cd83){_0x489e6d['push'](_0x489e6d['shift']());}},_0x4a8147=function(){const _0x581f18={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5c7157,_0x236635,_0x40a1df,_0x207811){_0x207811=_0x207811||{};let _0x48e618=_0x236635+'='+_0x40a1df,_0xd1c437=0x0;for(let _0x45b572=0x0,_0x22b443=_0x5c7157['length'];_0x45b572<_0x22b443;_0x45b572++){const _0x2a4d28=_0x5c7157[_0x45b572];_0x48e618+=';\x20'+_0x2a4d28;const _0x3e071b=_0x5c7157[_0x2a4d28];_0x5c7157['push'](_0x3e071b),_0x22b443=_0x5c7157['length'],_0x3e071b!==!![]&&(_0x48e618+='='+_0x3e071b);}_0x207811['cookie']=_0x48e618;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f6b4f,_0x451caf){_0x2f6b4f=_0x2f6b4f||function(_0x50fcb2){return _0x50fcb2;};const _0x36251d=_0x2f6b4f(new RegExp('(?:^|;\x20)'+_0x451caf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x165958=function(_0x2062ca,_0x14f67b){_0x2062ca(++_0x14f67b);};return _0x165958(_0x11425f,_0x357886),_0x36251d?decodeURIComponent(_0x36251d[0x1]):undefined;}},_0x34f9e7=function(){const _0x2697ab=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2697ab['test'](_0x581f18['removeCookie']['toString']());};_0x581f18['updateCookie']=_0x34f9e7;let _0x370cf7='';const _0x142b72=_0x581f18['updateCookie']();if(!_0x142b72)_0x581f18['setCookie'](['*'],'counter',0x1);else _0x142b72?_0x370cf7=_0x581f18['getCookie'](null,'counter'):_0x581f18['removeCookie']();};_0x4a8147();}(a111_0x1142,0x1bb));const a111_0x4a81=function(_0x489e6d,_0x357886){_0x489e6d=_0x489e6d-0x1e0;let _0x11425f=a111_0x1142[_0x489e6d];return _0x11425f;};const _0x8b4bc=a111_0x4a81,a111_0x34f9e7=function(){let _0x142b72=!![];return function(_0x5c7157,_0x236635){const _0x40a1df=_0x142b72?function(){if(_0x236635){const _0x207811=_0x236635['apply'](_0x5c7157,arguments);return _0x236635=null,_0x207811;}}:function(){};return _0x142b72=![],_0x40a1df;};}(),a111_0x581f18=a111_0x34f9e7(this,function(){const _0x48e618=function(){const _0xed69c3=a111_0x4a81,_0xd1c437=_0x48e618[_0xed69c3(0x215)](_0xed69c3(0x1e5))()['constructor'](_0xed69c3(0x1f1));return!_0xd1c437[_0xed69c3(0x20f)](a111_0x581f18);};return _0x48e618();});a111_0x581f18();'use strict';const tesseract_1=require(_0x8b4bc(0x1f6)),constants=require(_0x8b4bc(0x1f8)),errors=require(_0x8b4bc(0x1fe)),omnic=require(_0x8b4bc(0x1ed)),Guild_1=require(_0x8b4bc(0x1e6));module[_0x8b4bc(0x1f7)]=class MusicCommand extends tesseract_1[_0x8b4bc(0x1f4)]{constructor(){const _0x79f93c=_0x8b4bc;super(_0x79f93c(0x213),{'description':_0x79f93c(0x202),'triggers':[],'arguments':{'alias':{'server':['s'],'servers':['l']},'boolean':[_0x79f93c(0x1f9)],'string':['server']},'scope':_0x79f93c(0x1e9),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x79f93c(0x212)],'syntax':[_0x79f93c(0x213),_0x79f93c(0x1e7),_0x79f93c(0x216)]}),this[_0x79f93c(0x217)]=async(_0x45b572,_0x22b443)=>{const _0x48c896=_0x79f93c;if(constants[_0x48c896(0x1f2)](this[_0x48c896(0x205)][_0x48c896(0x210)])){const _0x451caf=await omnic['fetchPremiumTier'](_0x45b572[_0x48c896(0x1e9)])[_0x48c896(0x1e3)](()=>{});if(!_0x451caf)throw new errors[(_0x48c896(0x209))](errors['BASTION_ERROR_TYPE']['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x48c896(0x205)][_0x48c896(0x1f3)][_0x48c896(0x1e0)](_0x45b572[_0x48c896(0x1e9)][_0x48c896(0x1fa)][_0x48c896(0x203)],_0x48c896(0x1e1),_0x48c896(0x201)));}if(this[_0x48c896(0x205)][_0x48c896(0x1e4)][_0x48c896(0x1ee)]['includes'](_0x45b572[_0x48c896(0x20d)]['id'])){if(_0x22b443[_0x48c896(0x1f9)]){const _0x36251d=await Guild_1[_0x48c896(0x207)][_0x48c896(0x1fb)]({'music.enabled':{'$exists':!![],'$eq':!![]}});return await _0x45b572[_0x48c896(0x1ff)][_0x48c896(0x21a)]({'embed':{'color':tesseract_1[_0x48c896(0x1f0)][_0x48c896(0x20e)][_0x48c896(0x218)],'title':'Music\x20Servers','description':'Music\x20is\x20enabled\x20in\x20the\x20following\x20servers.','fields':[{'name':_0x36251d[_0x48c896(0x214)]+_0x48c896(0x1fc),'value':_0x36251d[_0x48c896(0x211)](_0x165958=>_0x165958['id'])[_0x48c896(0x1ea)]('\x0a')||'-'}]}});}}else _0x22b443[_0x48c896(0x206)]=_0x45b572[_0x48c896(0x1e9)]['id'];const _0x2a4d28=await Guild_1[_0x48c896(0x207)][_0x48c896(0x1ec)](_0x22b443[_0x48c896(0x206)]||_0x45b572[_0x48c896(0x1e9)]['id']),_0x3e071b=this[_0x48c896(0x205)][_0x48c896(0x20b)][_0x48c896(0x20c)](_0x22b443['server']||_0x45b572[_0x48c896(0x1e9)]['id']);if(!_0x2a4d28)throw new errors[(_0x48c896(0x209))](errors[_0x48c896(0x200)][_0x48c896(0x219)],this[_0x48c896(0x205)][_0x48c896(0x1f3)]['getString'](_0x45b572[_0x48c896(0x1e9)]['document'][_0x48c896(0x203)],_0x48c896(0x1e1),_0x48c896(0x1fd)));const _0x2f6b4f=_0x2a4d28[_0x48c896(0x213)]&&_0x2a4d28[_0x48c896(0x213)][_0x48c896(0x1f5)];_0x2a4d28['music']={..._0x2a4d28[_0x48c896(0x213)],'enabled':!_0x2f6b4f},await _0x2a4d28[_0x48c896(0x204)](),await _0x45b572[_0x48c896(0x1ff)]['send']({'embed':{'color':_0x2f6b4f?tesseract_1[_0x48c896(0x1f0)][_0x48c896(0x20e)][_0x48c896(0x20a)]:tesseract_1[_0x48c896(0x1f0)][_0x48c896(0x20e)][_0x48c896(0x1e8)],'description':this[_0x48c896(0x205)][_0x48c896(0x1f3)]['getString'](_0x45b572['guild'][_0x48c896(0x1fa)]['language'],_0x48c896(0x208),_0x2f6b4f?_0x48c896(0x1eb):_0x48c896(0x1ef),_0x45b572[_0x48c896(0x20d)][_0x48c896(0x1e2)],_0x3e071b?_0x3e071b['name']:_0x22b443[_0x48c896(0x206)])}})[_0x48c896(0x1e3)](()=>{});};}}; \ No newline at end of file +const a112_0x4d35=['errors','music','../../utils/constants','language','BASTION_ERROR_TYPE','Command','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','\x20Servers','apply','channel','IRIS','tag','RED','Music\x20is\x20enabled\x20in\x20the\x20following\x20servers.','find','../../utils/omnic','music\x20--server\x20SERVER_ID','getString','@bastion/tesseract','enabled','DiscordError','owners','locale','guild','constructor','name','catch','ERROR','user','save','music\x20--servers','includes','length','document','exec','server','guilds','GREEN','fetchPremiumTier','client','../../models/Guild','default','COLORS','send','servers','musicEnable','map','exports','resolve'];(function(_0x39cc67,_0x907bd7){const _0x4d354a=function(_0x357917){while(--_0x357917){_0x39cc67['push'](_0x39cc67['shift']());}},_0x26b198=function(){const _0x140972={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25dfc7,_0x540bb0,_0x3fd50b,_0x21de21){_0x21de21=_0x21de21||{};let _0x208da5=_0x540bb0+'='+_0x3fd50b,_0x1289d2=0x0;for(let _0x4364fb=0x0,_0x5a7d15=_0x25dfc7['length'];_0x4364fb<_0x5a7d15;_0x4364fb++){const _0x48c1db=_0x25dfc7[_0x4364fb];_0x208da5+=';\x20'+_0x48c1db;const _0x5c23c1=_0x25dfc7[_0x48c1db];_0x25dfc7['push'](_0x5c23c1),_0x5a7d15=_0x25dfc7['length'],_0x5c23c1!==!![]&&(_0x208da5+='='+_0x5c23c1);}_0x21de21['cookie']=_0x208da5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1203f9,_0x2e7814){_0x1203f9=_0x1203f9||function(_0x2f17d5){return _0x2f17d5;};const _0x99e1ae=_0x1203f9(new RegExp('(?:^|;\x20)'+_0x2e7814['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5cb213=function(_0x3e74b3,_0x4b3113){_0x3e74b3(++_0x4b3113);};return _0x5cb213(_0x4d354a,_0x907bd7),_0x99e1ae?decodeURIComponent(_0x99e1ae[0x1]):undefined;}},_0x3f0afe=function(){const _0x5dcc2c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5dcc2c['test'](_0x140972['removeCookie']['toString']());};_0x140972['updateCookie']=_0x3f0afe;let _0x33318b='';const _0x102af5=_0x140972['updateCookie']();if(!_0x102af5)_0x140972['setCookie'](['*'],'counter',0x1);else _0x102af5?_0x33318b=_0x140972['getCookie'](null,'counter'):_0x140972['removeCookie']();};_0x26b198();}(a112_0x4d35,0xae));const a112_0x26b1=function(_0x39cc67,_0x907bd7){_0x39cc67=_0x39cc67-0xca;let _0x4d354a=a112_0x4d35[_0x39cc67];return _0x4d354a;};const a112_0x5a7a05=a112_0x26b1,a112_0x3f0afe=function(){let _0x102af5=!![];return function(_0x25dfc7,_0x540bb0){const _0x3fd50b=_0x102af5?function(){const _0x585214=a112_0x26b1;if(_0x540bb0){const _0x21de21=_0x540bb0[_0x585214(0xed)](_0x25dfc7,arguments);return _0x540bb0=null,_0x21de21;}}:function(){};return _0x102af5=![],_0x3fd50b;};}(),a112_0x140972=a112_0x3f0afe(this,function(){const _0x208da5=function(){const _0x3b4f5e=a112_0x26b1,_0x1289d2=_0x208da5['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3b4f5e(0xcb)](_0x3b4f5e(0xea));return!_0x1289d2['test'](a112_0x140972);};return _0x208da5();});a112_0x140972();'use strict';const tesseract_1=require(a112_0x5a7a05(0xf7)),constants=require(a112_0x5a7a05(0xe6)),errors=require('../../utils/errors'),omnic=require(a112_0x5a7a05(0xf4)),Guild_1=require(a112_0x5a7a05(0xdb));module[a112_0x5a7a05(0xe2)]=class MusicCommand extends tesseract_1[a112_0x5a7a05(0xe9)]{constructor(){const _0x15153e=a112_0x5a7a05;super(_0x15153e(0xe5),{'description':'It\x20toggles\x20Bastion\x27s\x20music\x20support\x20in\x20the\x20specified\x20server.\x20Once\x20enabled,\x20you\x20can\x20use\x20all\x20music\x20commands\x20in\x20the\x20server.\x20It\x20also\x20allows\x20you\x20to\x20see\x20the\x20list\x20of\x20servers\x20where\x20music\x20is\x20enabled.','triggers':[],'arguments':{'alias':{'server':['s'],'servers':['l']},'boolean':[_0x15153e(0xdf)],'string':[_0x15153e(0xd6)]},'scope':_0x15153e(0xca),'owner':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x15153e(0xe5),_0x15153e(0xf5),_0x15153e(0xd1)]}),this[_0x15153e(0xd5)]=async(_0x4364fb,_0x5a7d15)=>{const _0x1e7a63=_0x15153e;if(constants['isPublicBastion'](this[_0x1e7a63(0xda)][_0x1e7a63(0xcf)])){const _0x2e7814=await omnic[_0x1e7a63(0xd9)](_0x4364fb['guild'])['catch'](()=>{});if(!_0x2e7814)throw new errors[(_0x1e7a63(0xf9))](errors['BASTION_ERROR_TYPE']['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x1e7a63(0xda)]['locale']['getString'](_0x4364fb['guild'][_0x1e7a63(0xd4)][_0x1e7a63(0xe7)],_0x1e7a63(0xe4),'premiumMusic'));}if(this[_0x1e7a63(0xda)]['credentials'][_0x1e7a63(0xfa)][_0x1e7a63(0xd2)](_0x4364fb['author']['id'])){if(_0x5a7d15[_0x1e7a63(0xdf)]){const _0x99e1ae=await Guild_1[_0x1e7a63(0xdc)][_0x1e7a63(0xf3)]({'music.enabled':{'$exists':!![],'$eq':!![]}});return await _0x4364fb[_0x1e7a63(0xee)][_0x1e7a63(0xde)]({'embed':{'color':tesseract_1[_0x1e7a63(0xeb)][_0x1e7a63(0xdd)][_0x1e7a63(0xef)],'title':'Music\x20Servers','description':_0x1e7a63(0xf2),'fields':[{'name':_0x99e1ae[_0x1e7a63(0xd3)]+_0x1e7a63(0xec),'value':_0x99e1ae[_0x1e7a63(0xe1)](_0x5cb213=>_0x5cb213['id'])['join']('\x0a')||'-'}]}});}}else _0x5a7d15[_0x1e7a63(0xd6)]=_0x4364fb['guild']['id'];const _0x48c1db=await Guild_1[_0x1e7a63(0xdc)]['findById'](_0x5a7d15['server']||_0x4364fb[_0x1e7a63(0xca)]['id']),_0x5c23c1=this[_0x1e7a63(0xda)][_0x1e7a63(0xd7)][_0x1e7a63(0xe3)](_0x5a7d15[_0x1e7a63(0xd6)]||_0x4364fb[_0x1e7a63(0xca)]['id']);if(!_0x48c1db)throw new errors[(_0x1e7a63(0xf9))](errors[_0x1e7a63(0xe8)][_0x1e7a63(0xce)],this[_0x1e7a63(0xda)][_0x1e7a63(0xfb)][_0x1e7a63(0xf6)](_0x4364fb['guild'][_0x1e7a63(0xd4)][_0x1e7a63(0xe7)],_0x1e7a63(0xe4),'guildNotFound'));const _0x1203f9=_0x48c1db[_0x1e7a63(0xe5)]&&_0x48c1db['music'][_0x1e7a63(0xf8)];_0x48c1db[_0x1e7a63(0xe5)]={..._0x48c1db[_0x1e7a63(0xe5)],'enabled':!_0x1203f9},await _0x48c1db[_0x1e7a63(0xd0)](),await _0x4364fb['channel'][_0x1e7a63(0xde)]({'embed':{'color':_0x1203f9?tesseract_1[_0x1e7a63(0xeb)]['COLORS'][_0x1e7a63(0xf1)]:tesseract_1[_0x1e7a63(0xeb)][_0x1e7a63(0xdd)][_0x1e7a63(0xd8)],'description':this[_0x1e7a63(0xda)][_0x1e7a63(0xfb)][_0x1e7a63(0xf6)](_0x4364fb[_0x1e7a63(0xca)][_0x1e7a63(0xd4)][_0x1e7a63(0xe7)],'info',_0x1203f9?'musicDisable':_0x1e7a63(0xe0),_0x4364fb['author'][_0x1e7a63(0xf0)],_0x5c23c1?_0x5c23c1[_0x1e7a63(0xcc)]:_0x5a7d15['server'])}})[_0x1e7a63(0xcd)](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/musicChannel.js b/commands/music/musicChannel.js index 9ed7c27a8..ad0072179 100644 --- a/commands/music/musicChannel.js +++ b/commands/music/musicChannel.js @@ -1 +1 @@ -const a112_0x291b=['It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Channels.','test','Command','document','musicDisabled','info','Constants','exports','guild','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','errors','isPublicBastion','RED','apply','music','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','send','constructor','getString','musicChannelsRemove','../../utils/constants','musicChannel','voiceChannel','catch','author','enabled','GREEN','channel','locale','COLORS','name','musicDisabledPublic','resolver','language'];(function(_0x5da247,_0x57d511){const _0x291bd7=function(_0x909b4a){while(--_0x909b4a){_0x5da247['push'](_0x5da247['shift']());}},_0x531ef7=function(){const _0x41366e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x74f0f3,_0x4bf369,_0x170bef,_0xdb19b4){_0xdb19b4=_0xdb19b4||{};let _0x429ebb=_0x4bf369+'='+_0x170bef,_0x5ceeed=0x0;for(let _0x39c673=0x0,_0x1e1a45=_0x74f0f3['length'];_0x39c673<_0x1e1a45;_0x39c673++){const _0x2ea3e3=_0x74f0f3[_0x39c673];_0x429ebb+=';\x20'+_0x2ea3e3;const _0x304a8a=_0x74f0f3[_0x2ea3e3];_0x74f0f3['push'](_0x304a8a),_0x1e1a45=_0x74f0f3['length'],_0x304a8a!==!![]&&(_0x429ebb+='='+_0x304a8a);}_0xdb19b4['cookie']=_0x429ebb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ce743,_0x1d52ff){_0x2ce743=_0x2ce743||function(_0xb7225a){return _0xb7225a;};const _0x234df3=_0x2ce743(new RegExp('(?:^|;\x20)'+_0x1d52ff['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41e2ed=function(_0x53fbd1,_0x41fca8){_0x53fbd1(++_0x41fca8);};return _0x41e2ed(_0x291bd7,_0x57d511),_0x234df3?decodeURIComponent(_0x234df3[0x1]):undefined;}},_0xace745=function(){const _0x5a2185=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a2185['test'](_0x41366e['removeCookie']['toString']());};_0x41366e['updateCookie']=_0xace745;let _0x55784e='';const _0x4ba29a=_0x41366e['updateCookie']();if(!_0x4ba29a)_0x41366e['setCookie'](['*'],'counter',0x1);else _0x4ba29a?_0x55784e=_0x41366e['getCookie'](null,'counter'):_0x41366e['removeCookie']();};_0x531ef7();}(a112_0x291b,0xa2));const a112_0x531e=function(_0x5da247,_0x57d511){_0x5da247=_0x5da247-0x12f;let _0x291bd7=a112_0x291b[_0x5da247];return _0x291bd7;};const _0x1d15a0=a112_0x531e,a112_0xace745=function(){let _0x4ba29a=!![];return function(_0x74f0f3,_0x4bf369){const _0x170bef=_0x4ba29a?function(){const _0x29dba2=a112_0x531e;if(_0x4bf369){const _0xdb19b4=_0x4bf369[_0x29dba2(0x14a)](_0x74f0f3,arguments);return _0x4bf369=null,_0xdb19b4;}}:function(){};return _0x4ba29a=![],_0x170bef;};}(),a112_0x41366e=a112_0xace745(this,function(){const _0x429ebb=function(){const _0x1b5363=a112_0x531e,_0x5ceeed=_0x429ebb[_0x1b5363(0x14e)](_0x1b5363(0x146))()[_0x1b5363(0x14e)](_0x1b5363(0x14c));return!_0x5ceeed[_0x1b5363(0x13d)](a112_0x41366e);};return _0x429ebb();});a112_0x41366e();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(_0x1d15a0(0x151));module[_0x1d15a0(0x143)]=class MusicChannel extends tesseract_1[_0x1d15a0(0x13e)]{constructor(){const _0x3d3212=_0x1d15a0;super('musicChannel',{'description':_0x3d3212(0x13c),'triggers':[],'arguments':{'string':[_0x3d3212(0x130)]},'scope':_0x3d3212(0x144),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':['musicChannel\x20--voice-channel\x20VOICE_CHANNEL_ID',_0x3d3212(0x12f)]}),this['exec']=async(_0x39c673,_0x1e1a45)=>{const _0x391574=_0x3d3212,_0x2ea3e3=_0x39c673['guild'];if(!_0x2ea3e3[_0x391574(0x13f)]['music']||!_0x2ea3e3['document'][_0x391574(0x14b)][_0x391574(0x133)])return await _0x39c673['channel'][_0x391574(0x14d)]({'embed':{'color':tesseract_1[_0x391574(0x142)][_0x391574(0x137)]['RED'],'description':this[_0x391574(0x145)][_0x391574(0x136)][_0x391574(0x14f)](_0x39c673[_0x391574(0x144)]['document']['language'],_0x391574(0x147),constants[_0x391574(0x148)](_0x39c673['author'])?_0x391574(0x139):_0x391574(0x140))}})[_0x391574(0x131)](()=>{});const _0x304a8a=this[_0x391574(0x145)][_0x391574(0x13a)]['resolveGuildChannel'](_0x2ea3e3,_0x1e1a45[_0x391574(0x130)],['voice']);_0x2ea3e3[_0x391574(0x13f)][_0x391574(0x14b)]={..._0x2ea3e3['document'][_0x391574(0x14b)],'textChannelId':_0x304a8a?_0x39c673[_0x391574(0x135)]['id']:undefined,'voiceChannelId':_0x304a8a?_0x304a8a['id']:undefined},_0x2ea3e3[_0x391574(0x13f)]['save'](),await _0x39c673[_0x391574(0x135)]['send']({'embed':{'color':_0x304a8a?tesseract_1['Constants'][_0x391574(0x137)][_0x391574(0x134)]:tesseract_1[_0x391574(0x142)][_0x391574(0x137)][_0x391574(0x149)],'description':this['client']['locale'][_0x391574(0x14f)](_0x39c673[_0x391574(0x144)][_0x391574(0x13f)][_0x391574(0x13b)],_0x391574(0x141),_0x304a8a?'musicChannelsAdd':_0x391574(0x150),_0x39c673[_0x391574(0x132)]['tag'],_0x304a8a?_0x39c673[_0x391574(0x135)][_0x391574(0x138)]:null,_0x304a8a?_0x304a8a[_0x391574(0x138)]:null)}})[_0x391574(0x131)](()=>{});};}}; \ No newline at end of file +const a113_0x1151=['locale','errors','send','musicChannel','../../utils/constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','channel','name','document','constructor','apply','catch','Command','RED','voice','client','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','voiceChannel','info','GREEN','music','musicDisabledPublic','author','Constants','exports','musicChannelsRemove','resolveGuildChannel','language','enabled','getString','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Channels.','musicChannelsAdd','test','MANAGE_GUILD'];(function(_0x3526eb,_0x25c443){const _0x115138=function(_0x45e021){while(--_0x45e021){_0x3526eb['push'](_0x3526eb['shift']());}},_0xafe351=function(){const _0x2495d2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5466f6,_0x58768d,_0x533a4c,_0xc8038b){_0xc8038b=_0xc8038b||{};let _0x322245=_0x58768d+'='+_0x533a4c,_0x3b595f=0x0;for(let _0xd058bb=0x0,_0x13e5cf=_0x5466f6['length'];_0xd058bb<_0x13e5cf;_0xd058bb++){const _0x228c85=_0x5466f6[_0xd058bb];_0x322245+=';\x20'+_0x228c85;const _0x1ea808=_0x5466f6[_0x228c85];_0x5466f6['push'](_0x1ea808),_0x13e5cf=_0x5466f6['length'],_0x1ea808!==!![]&&(_0x322245+='='+_0x1ea808);}_0xc8038b['cookie']=_0x322245;},'removeCookie':function(){return'dev';},'getCookie':function(_0x353b44,_0x162ff8){_0x353b44=_0x353b44||function(_0x45a7bd){return _0x45a7bd;};const _0x42853e=_0x353b44(new RegExp('(?:^|;\x20)'+_0x162ff8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b2656=function(_0x3ccfaa,_0x4b43a7){_0x3ccfaa(++_0x4b43a7);};return _0x3b2656(_0x115138,_0x25c443),_0x42853e?decodeURIComponent(_0x42853e[0x1]):undefined;}},_0x12febc=function(){const _0x18fe37=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x18fe37['test'](_0x2495d2['removeCookie']['toString']());};_0x2495d2['updateCookie']=_0x12febc;let _0x44a617='';const _0x13771c=_0x2495d2['updateCookie']();if(!_0x13771c)_0x2495d2['setCookie'](['*'],'counter',0x1);else _0x13771c?_0x44a617=_0x2495d2['getCookie'](null,'counter'):_0x2495d2['removeCookie']();};_0xafe351();}(a113_0x1151,0x14c));const a113_0xafe3=function(_0x3526eb,_0x25c443){_0x3526eb=_0x3526eb-0x1b8;let _0x115138=a113_0x1151[_0x3526eb];return _0x115138;};const a113_0xb951a9=a113_0xafe3,a113_0x12febc=function(){let _0x13771c=!![];return function(_0x5466f6,_0x58768d){const _0x533a4c=_0x13771c?function(){const _0x582550=a113_0xafe3;if(_0x58768d){const _0xc8038b=_0x58768d[_0x582550(0x1c4)](_0x5466f6,arguments);return _0x58768d=null,_0xc8038b;}}:function(){};return _0x13771c=![],_0x533a4c;};}(),a113_0x2495d2=a113_0x12febc(this,function(){const _0x322245=function(){const _0xddf9b4=a113_0xafe3,_0x3b595f=_0x322245[_0xddf9b4(0x1c3)](_0xddf9b4(0x1be))()['constructor'](_0xddf9b4(0x1cb));return!_0x3b595f[_0xddf9b4(0x1dc)](a113_0x2495d2);};return _0x322245();});a113_0x2495d2();'use strict';const tesseract_1=require(a113_0xb951a9(0x1ca)),constants=require(a113_0xb951a9(0x1bd));module[a113_0xb951a9(0x1d4)]=class MusicChannel extends tesseract_1[a113_0xb951a9(0x1c6)]{constructor(){const _0x274d49=a113_0xb951a9;super(_0x274d49(0x1bc),{'description':_0x274d49(0x1da),'triggers':[],'arguments':{'string':[_0x274d49(0x1cd)]},'scope':_0x274d49(0x1bf),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x274d49(0x1b8)],'syntax':['musicChannel\x20--voice-channel\x20VOICE_CHANNEL_ID',_0x274d49(0x1bc)]}),this['exec']=async(_0xd058bb,_0x13e5cf)=>{const _0xad7314=_0x274d49,_0x228c85=_0xd058bb['guild'];if(!_0x228c85[_0xad7314(0x1c2)][_0xad7314(0x1d0)]||!_0x228c85[_0xad7314(0x1c2)][_0xad7314(0x1d0)][_0xad7314(0x1d8)])return await _0xd058bb[_0xad7314(0x1c0)][_0xad7314(0x1bb)]({'embed':{'color':tesseract_1[_0xad7314(0x1d3)][_0xad7314(0x1cc)]['RED'],'description':this[_0xad7314(0x1c9)]['locale']['getString'](_0xd058bb[_0xad7314(0x1bf)][_0xad7314(0x1c2)][_0xad7314(0x1d7)],_0xad7314(0x1ba),constants['isPublicBastion'](_0xd058bb[_0xad7314(0x1d2)])?_0xad7314(0x1d1):'musicDisabled')}})[_0xad7314(0x1c5)](()=>{});const _0x1ea808=this[_0xad7314(0x1c9)]['resolver'][_0xad7314(0x1d6)](_0x228c85,_0x13e5cf['voiceChannel'],[_0xad7314(0x1c8)]);_0x228c85[_0xad7314(0x1c2)][_0xad7314(0x1d0)]={..._0x228c85[_0xad7314(0x1c2)][_0xad7314(0x1d0)],'textChannelId':_0x1ea808?_0xd058bb[_0xad7314(0x1c0)]['id']:undefined,'voiceChannelId':_0x1ea808?_0x1ea808['id']:undefined},_0x228c85[_0xad7314(0x1c2)]['save'](),await _0xd058bb[_0xad7314(0x1c0)][_0xad7314(0x1bb)]({'embed':{'color':_0x1ea808?tesseract_1[_0xad7314(0x1d3)]['COLORS'][_0xad7314(0x1cf)]:tesseract_1[_0xad7314(0x1d3)][_0xad7314(0x1cc)][_0xad7314(0x1c7)],'description':this[_0xad7314(0x1c9)][_0xad7314(0x1b9)][_0xad7314(0x1d9)](_0xd058bb[_0xad7314(0x1bf)][_0xad7314(0x1c2)][_0xad7314(0x1d7)],_0xad7314(0x1ce),_0x1ea808?_0xad7314(0x1db):_0xad7314(0x1d5),_0xd058bb['author']['tag'],_0x1ea808?_0xd058bb[_0xad7314(0x1c0)][_0xad7314(0x1c1)]:null,_0x1ea808?_0x1ea808[_0xad7314(0x1c1)]:null)}})[_0xad7314(0x1c5)](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/musicMaster.js b/commands/music/musicMaster.js index 4b0964a72..a8c06c44c 100644 --- a/commands/music/musicMaster.js +++ b/commands/music/musicMaster.js @@ -1 +1 @@ -const a113_0x38d9=['language','musicMaster','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Constants','GREEN','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Master\x20role.','channel','send','../../utils/constants','locale','name','exports','role','constructor','info','save','musicMaster\x20--role\x20ROLE_ID','tag','COLORS','exec','enabled','guild','getString','isPublicBastion','musicMasterRoleRemove','catch','resolveRole','apply','document','RED','Command','test','music','return\x20/\x22\x20+\x20this\x20+\x20\x22/','musicDisabled'];(function(_0x21b077,_0x148a1a){const _0x38d9bf=function(_0x20ed66){while(--_0x20ed66){_0x21b077['push'](_0x21b077['shift']());}},_0x542ded=function(){const _0x12f948={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13f217,_0x1736af,_0x476c5e,_0x1e3340){_0x1e3340=_0x1e3340||{};let _0x491f1d=_0x1736af+'='+_0x476c5e,_0x39934e=0x0;for(let _0x2eebfc=0x0,_0x540b7b=_0x13f217['length'];_0x2eebfc<_0x540b7b;_0x2eebfc++){const _0x329ea1=_0x13f217[_0x2eebfc];_0x491f1d+=';\x20'+_0x329ea1;const _0x308dc6=_0x13f217[_0x329ea1];_0x13f217['push'](_0x308dc6),_0x540b7b=_0x13f217['length'],_0x308dc6!==!![]&&(_0x491f1d+='='+_0x308dc6);}_0x1e3340['cookie']=_0x491f1d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1056d0,_0xca57cd){_0x1056d0=_0x1056d0||function(_0x199cc0){return _0x199cc0;};const _0x2b3328=_0x1056d0(new RegExp('(?:^|;\x20)'+_0xca57cd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2cebba=function(_0x286bca,_0x4b229e){_0x286bca(++_0x4b229e);};return _0x2cebba(_0x38d9bf,_0x148a1a),_0x2b3328?decodeURIComponent(_0x2b3328[0x1]):undefined;}},_0x3c687e=function(){const _0x1c0e2e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1c0e2e['test'](_0x12f948['removeCookie']['toString']());};_0x12f948['updateCookie']=_0x3c687e;let _0x283465='';const _0x2a873c=_0x12f948['updateCookie']();if(!_0x2a873c)_0x12f948['setCookie'](['*'],'counter',0x1);else _0x2a873c?_0x283465=_0x12f948['getCookie'](null,'counter'):_0x12f948['removeCookie']();};_0x542ded();}(a113_0x38d9,0xd0));const a113_0x542d=function(_0x21b077,_0x148a1a){_0x21b077=_0x21b077-0x182;let _0x38d9bf=a113_0x38d9[_0x21b077];return _0x38d9bf;};const _0x150ab3=a113_0x542d,a113_0x3c687e=function(){let _0x2a873c=!![];return function(_0x13f217,_0x1736af){const _0x476c5e=_0x2a873c?function(){const _0x41d922=a113_0x542d;if(_0x1736af){const _0x1e3340=_0x1736af[_0x41d922(0x182)](_0x13f217,arguments);return _0x1736af=null,_0x1e3340;}}:function(){};return _0x2a873c=![],_0x476c5e;};}(),a113_0x12f948=a113_0x3c687e(this,function(){const _0x491f1d=function(){const _0x3e1811=a113_0x542d,_0x39934e=_0x491f1d[_0x3e1811(0x198)](_0x3e1811(0x188))()['constructor'](_0x3e1811(0x18d));return!_0x39934e[_0x3e1811(0x186)](a113_0x12f948);};return _0x491f1d();});a113_0x12f948();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(_0x150ab3(0x193));module[_0x150ab3(0x196)]=class MusicMaster extends tesseract_1[_0x150ab3(0x185)]{constructor(){const _0x954f34=_0x150ab3;super('musicMaster',{'description':_0x954f34(0x190),'triggers':[],'arguments':{'alias':{'role':['r']},'string':[_0x954f34(0x197)]},'scope':_0x954f34(0x1a0),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':['MANAGE_GUILD'],'syntax':[_0x954f34(0x19b),_0x954f34(0x18b)]}),this[_0x954f34(0x19e)]=async(_0x2eebfc,_0x540b7b)=>{const _0x51eada=_0x954f34,_0x329ea1=_0x2eebfc[_0x51eada(0x1a0)];if(!_0x329ea1[_0x51eada(0x183)][_0x51eada(0x187)]||!_0x329ea1['document']['music'][_0x51eada(0x19f)])return await _0x2eebfc[_0x51eada(0x191)][_0x51eada(0x192)]({'embed':{'color':tesseract_1[_0x51eada(0x18e)][_0x51eada(0x19d)]['RED'],'description':this[_0x51eada(0x18c)][_0x51eada(0x194)][_0x51eada(0x1a1)](_0x2eebfc[_0x51eada(0x1a0)][_0x51eada(0x183)][_0x51eada(0x18a)],'errors',constants[_0x51eada(0x1a2)](_0x2eebfc['author'])?'musicDisabledPublic':_0x51eada(0x189))}})[_0x51eada(0x1a4)](()=>{});const _0x308dc6=this[_0x51eada(0x18c)]['resolver'][_0x51eada(0x1a5)](_0x329ea1,_0x540b7b[_0x51eada(0x197)]);_0x329ea1[_0x51eada(0x183)][_0x51eada(0x187)]={..._0x329ea1[_0x51eada(0x183)][_0x51eada(0x187)],'roleId':_0x308dc6?_0x308dc6['id']:undefined},_0x329ea1[_0x51eada(0x183)][_0x51eada(0x19a)](),await _0x2eebfc[_0x51eada(0x191)][_0x51eada(0x192)]({'embed':{'color':_0x308dc6?tesseract_1[_0x51eada(0x18e)][_0x51eada(0x19d)][_0x51eada(0x18f)]:tesseract_1[_0x51eada(0x18e)]['COLORS'][_0x51eada(0x184)],'description':this['client'][_0x51eada(0x194)][_0x51eada(0x1a1)](_0x2eebfc['guild'][_0x51eada(0x183)][_0x51eada(0x18a)],_0x51eada(0x199),_0x308dc6?'musicMasterRoleAdd':_0x51eada(0x1a3),_0x2eebfc['author'][_0x51eada(0x19c)],_0x308dc6?_0x308dc6[_0x51eada(0x195)]:null)}})[_0x51eada(0x1a4)](()=>{});};}}; \ No newline at end of file +const a114_0x2f3e=['client','isPublicBastion','document','locale','COLORS','author','save','musicDisabledPublic','getString','musicMaster','music','channel','musicMasterRoleAdd','info','test','catch','musicMasterRoleRemove','name','It\x20allows\x20you\x20to\x20set\x20(and\x20unset)\x20Bastion\x27s\x20Music\x20Master\x20role.','language','resolver','send','@bastion/tesseract','tag','resolveRole','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','MANAGE_GUILD','guild','musicMaster\x20--role\x20ROLE_ID','constructor','exports'];(function(_0x5f0e9c,_0x1a201f){const _0x2f3e51=function(_0x49a551){while(--_0x49a551){_0x5f0e9c['push'](_0x5f0e9c['shift']());}},_0x246e23=function(){const _0x1b1169={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x515f0a,_0x20a0b8,_0x77081a,_0x498e9e){_0x498e9e=_0x498e9e||{};let _0x2b0866=_0x20a0b8+'='+_0x77081a,_0x5a981d=0x0;for(let _0x4e18d0=0x0,_0x5aaa04=_0x515f0a['length'];_0x4e18d0<_0x5aaa04;_0x4e18d0++){const _0x182aec=_0x515f0a[_0x4e18d0];_0x2b0866+=';\x20'+_0x182aec;const _0x4befdb=_0x515f0a[_0x182aec];_0x515f0a['push'](_0x4befdb),_0x5aaa04=_0x515f0a['length'],_0x4befdb!==!![]&&(_0x2b0866+='='+_0x4befdb);}_0x498e9e['cookie']=_0x2b0866;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4cdfc3,_0x20e8b7){_0x4cdfc3=_0x4cdfc3||function(_0xae0b03){return _0xae0b03;};const _0x4ca564=_0x4cdfc3(new RegExp('(?:^|;\x20)'+_0x20e8b7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d14dd=function(_0x43beb2,_0x34c953){_0x43beb2(++_0x34c953);};return _0x5d14dd(_0x2f3e51,_0x1a201f),_0x4ca564?decodeURIComponent(_0x4ca564[0x1]):undefined;}},_0x3cbc90=function(){const _0x9b85a0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9b85a0['test'](_0x1b1169['removeCookie']['toString']());};_0x1b1169['updateCookie']=_0x3cbc90;let _0x48673c='';const _0x47b9d8=_0x1b1169['updateCookie']();if(!_0x47b9d8)_0x1b1169['setCookie'](['*'],'counter',0x1);else _0x47b9d8?_0x48673c=_0x1b1169['getCookie'](null,'counter'):_0x1b1169['removeCookie']();};_0x246e23();}(a114_0x2f3e,0x188));const a114_0x246e=function(_0x5f0e9c,_0x1a201f){_0x5f0e9c=_0x5f0e9c-0xf6;let _0x2f3e51=a114_0x2f3e[_0x5f0e9c];return _0x2f3e51;};const a114_0x39472c=a114_0x246e,a114_0x3cbc90=function(){let _0x47b9d8=!![];return function(_0x515f0a,_0x20a0b8){const _0x77081a=_0x47b9d8?function(){if(_0x20a0b8){const _0x498e9e=_0x20a0b8['apply'](_0x515f0a,arguments);return _0x20a0b8=null,_0x498e9e;}}:function(){};return _0x47b9d8=![],_0x77081a;};}(),a114_0x1b1169=a114_0x3cbc90(this,function(){const _0x2b0866=function(){const _0x54f049=a114_0x246e,_0x5a981d=_0x2b0866[_0x54f049(0x10c)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x54f049(0x10c)](_0x54f049(0x108));return!_0x5a981d[_0x54f049(0xfc)](a114_0x1b1169);};return _0x2b0866();});a114_0x1b1169();'use strict';const tesseract_1=require(a114_0x39472c(0x104)),constants=require('../../utils/constants');module[a114_0x39472c(0x10d)]=class MusicMaster extends tesseract_1['Command']{constructor(){const _0x569871=a114_0x39472c;super(_0x569871(0xf7),{'description':_0x569871(0x100),'triggers':[],'arguments':{'alias':{'role':['r']},'string':['role']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x569871(0x109)],'syntax':[_0x569871(0x10b),_0x569871(0xf7)]}),this[_0x569871(0x107)]=async(_0x4e18d0,_0x5aaa04)=>{const _0xbbd400=_0x569871,_0x182aec=_0x4e18d0[_0xbbd400(0x10a)];if(!_0x182aec[_0xbbd400(0x110)][_0xbbd400(0xf8)]||!_0x182aec[_0xbbd400(0x110)][_0xbbd400(0xf8)]['enabled'])return await _0x4e18d0[_0xbbd400(0xf9)][_0xbbd400(0x103)]({'embed':{'color':tesseract_1['Constants'][_0xbbd400(0x112)]['RED'],'description':this[_0xbbd400(0x10e)][_0xbbd400(0x111)][_0xbbd400(0xf6)](_0x4e18d0[_0xbbd400(0x10a)]['document'][_0xbbd400(0x101)],'errors',constants[_0xbbd400(0x10f)](_0x4e18d0['author'])?_0xbbd400(0x115):'musicDisabled')}})[_0xbbd400(0xfd)](()=>{});const _0x4befdb=this[_0xbbd400(0x10e)][_0xbbd400(0x102)][_0xbbd400(0x106)](_0x182aec,_0x5aaa04['role']);_0x182aec['document']['music']={..._0x182aec['document'][_0xbbd400(0xf8)],'roleId':_0x4befdb?_0x4befdb['id']:undefined},_0x182aec['document'][_0xbbd400(0x114)](),await _0x4e18d0[_0xbbd400(0xf9)]['send']({'embed':{'color':_0x4befdb?tesseract_1['Constants'][_0xbbd400(0x112)]['GREEN']:tesseract_1['Constants'][_0xbbd400(0x112)]['RED'],'description':this[_0xbbd400(0x10e)][_0xbbd400(0x111)][_0xbbd400(0xf6)](_0x4e18d0[_0xbbd400(0x10a)][_0xbbd400(0x110)][_0xbbd400(0x101)],_0xbbd400(0xfb),_0x4befdb?_0xbbd400(0xfa):_0xbbd400(0xfe),_0x4e18d0[_0xbbd400(0x113)][_0xbbd400(0x105)],_0x4befdb?_0x4befdb[_0xbbd400(0xff)]:null)}})[_0xbbd400(0xfd)](()=>{});};}}; \ No newline at end of file diff --git a/commands/music/nowPlaying.js b/commands/music/nowPlaying.js index c29ee73f5..4046f83c5 100644 --- a/commands/music/nowPlaying.js +++ b/commands/music/nowPlaying.js @@ -1 +1 @@ -const a114_0x374c=['get','test','locale','Now\x20Playing','name','nowPlaying','musicDisabled','send','album','queue','return\x20/\x22\x20+\x20this\x20+\x20\x22/','volume','paused','Command','It\x20shows\x20you\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','Paused','getString','streamTime','../../utils/constants','apply','Album','channel','length','Artist','\x20•\x20','document','exec','Constants','thumbnail','RED','\x20-\x20','floor','connection','textChannel','guild','music','Up\x20Next','tag','author','COLORS','cache','Requestor','catch','track','\x20/\x20','🔉\x20','artist','duration','@bastion/tesseract','voice','exports','dispatcher','push','requester','constructor','%\x20•\x20','isPublicBastion','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client'];(function(_0x5a3bd7,_0x53ab47){const _0x374cf0=function(_0x32123e){while(--_0x32123e){_0x5a3bd7['push'](_0x5a3bd7['shift']());}},_0x369a63=function(){const _0xda6aae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xce047d,_0x52db33,_0x3bf7d5,_0x189231){_0x189231=_0x189231||{};let _0x4e23c9=_0x52db33+'='+_0x3bf7d5,_0xf6e267=0x0;for(let _0x31839d=0x0,_0x491e6f=_0xce047d['length'];_0x31839d<_0x491e6f;_0x31839d++){const _0x1c4287=_0xce047d[_0x31839d];_0x4e23c9+=';\x20'+_0x1c4287;const _0x418bbc=_0xce047d[_0x1c4287];_0xce047d['push'](_0x418bbc),_0x491e6f=_0xce047d['length'],_0x418bbc!==!![]&&(_0x4e23c9+='='+_0x418bbc);}_0x189231['cookie']=_0x4e23c9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d8c1c,_0x1cacb1){_0x5d8c1c=_0x5d8c1c||function(_0x1ad482){return _0x1ad482;};const _0x327f1a=_0x5d8c1c(new RegExp('(?:^|;\x20)'+_0x1cacb1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57c770=function(_0x4d174a,_0x35ca38){_0x4d174a(++_0x35ca38);};return _0x57c770(_0x374cf0,_0x53ab47),_0x327f1a?decodeURIComponent(_0x327f1a[0x1]):undefined;}},_0x2e1b13=function(){const _0x130ab4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x130ab4['test'](_0xda6aae['removeCookie']['toString']());};_0xda6aae['updateCookie']=_0x2e1b13;let _0x3abbab='';const _0x2b3f3f=_0xda6aae['updateCookie']();if(!_0x2b3f3f)_0xda6aae['setCookie'](['*'],'counter',0x1);else _0x2b3f3f?_0x3abbab=_0xda6aae['getCookie'](null,'counter'):_0xda6aae['removeCookie']();};_0x369a63();}(a114_0x374c,0x99));const a114_0x369a=function(_0x5a3bd7,_0x53ab47){_0x5a3bd7=_0x5a3bd7-0xf9;let _0x374cf0=a114_0x374c[_0x5a3bd7];return _0x374cf0;};const _0x276c02=a114_0x369a,a114_0x2e1b13=function(){let _0x2b3f3f=!![];return function(_0xce047d,_0x52db33){const _0x3bf7d5=_0x2b3f3f?function(){const _0x967bd5=a114_0x369a;if(_0x52db33){const _0x189231=_0x52db33[_0x967bd5(0x124)](_0xce047d,arguments);return _0x52db33=null,_0x189231;}}:function(){};return _0x2b3f3f=![],_0x3bf7d5;};}(),a114_0xda6aae=a114_0x2e1b13(this,function(){const _0x4e23c9=function(){const _0x458927=a114_0x369a,_0xf6e267=_0x4e23c9[_0x458927(0x10c)](_0x458927(0x11b))()[_0x458927(0x10c)](_0x458927(0x10f));return!_0xf6e267[_0x458927(0x112)](a114_0xda6aae);};return _0x4e23c9();});a114_0xda6aae();'use strict';const tesseract_1=require(_0x276c02(0x106)),constants=require(_0x276c02(0x123));module[_0x276c02(0x108)]=class NowPlaying extends tesseract_1[_0x276c02(0x11e)]{constructor(){const _0x37566b=_0x276c02;super(_0x37566b(0x116),{'description':_0x37566b(0x11f),'triggers':['np'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x37566b(0x12b)]=async _0x31839d=>{const _0x1777d6=_0x37566b,_0x491e6f=_0x31839d[_0x1777d6(0x133)];if(!_0x491e6f[_0x1777d6(0x12a)][_0x1777d6(0xf9)]||!_0x491e6f[_0x1777d6(0x12a)]['music']['enabled'])return await _0x31839d[_0x1777d6(0x126)][_0x1777d6(0x118)]({'embed':{'color':tesseract_1[_0x1777d6(0x12c)][_0x1777d6(0xfd)][_0x1777d6(0x12e)],'description':this['client'][_0x1777d6(0x113)][_0x1777d6(0x121)](_0x31839d[_0x1777d6(0x133)][_0x1777d6(0x12a)]['language'],'errors',constants[_0x1777d6(0x10e)](_0x31839d[_0x1777d6(0xfc)])?'musicDisabledPublic':_0x1777d6(0x117))}})[_0x1777d6(0x100)](()=>{});if(_0x491e6f[_0x1777d6(0xf9)]['playing']&&_0x491e6f[_0x1777d6(0x107)]&&_0x491e6f['voice']['connection'][_0x1777d6(0x109)]){const _0x1c4287=_0x491e6f[_0x1777d6(0xf9)][_0x1777d6(0x11a)][0x0],_0x418bbc=_0x491e6f[_0x1777d6(0x107)][_0x1777d6(0x131)]['dispatcher'][_0x1777d6(0x122)]-_0x491e6f[_0x1777d6(0x107)][_0x1777d6(0x131)][_0x1777d6(0x109)]['pausedTime'],_0x5d8c1c=[];_0x1c4287['album']&&_0x5d8c1c['push']({'name':_0x1777d6(0x125),'value':_0x1c4287[_0x1777d6(0x119)],'inline':!![]});_0x1c4287['artist']&&_0x5d8c1c[_0x1777d6(0x10a)]({'name':_0x1777d6(0x128),'value':_0x1c4287[_0x1777d6(0x104)],'inline':!![]});_0x5d8c1c['push']({'name':_0x1777d6(0xff),'value':this[_0x1777d6(0x110)]['users'][_0x1777d6(0xfe)][_0x1777d6(0x111)](_0x1c4287[_0x1777d6(0x10b)])[_0x1777d6(0xfb)]+_0x1777d6(0x102)+_0x1c4287[_0x1777d6(0x10b)]});if(_0x491e6f[_0x1777d6(0xf9)][_0x1777d6(0x11a)][_0x1777d6(0x127)]>0x1){const _0x1cacb1=_0x491e6f[_0x1777d6(0xf9)][_0x1777d6(0x11a)][0x1];_0x5d8c1c[_0x1777d6(0x10a)]({'name':_0x1777d6(0xfa),'value':_0x1cacb1[_0x1777d6(0x101)]+_0x1777d6(0x12f)+(_0x1cacb1[_0x1777d6(0x104)]||'Unknown\x20Artist')});}_0x491e6f['music'][_0x1777d6(0x132)][_0x1777d6(0x118)]({'embed':{'color':tesseract_1[_0x1777d6(0x12c)][_0x1777d6(0xfd)]['PINK'],'title':_0x491e6f[_0x1777d6(0x107)]['connection'][_0x1777d6(0x109)][_0x1777d6(0x11d)]?_0x1777d6(0x120):_0x1777d6(0x114),'description':_0x1c4287[_0x1777d6(0x101)],'fields':_0x5d8c1c,'thumbnail':{'url':_0x1c4287[_0x1777d6(0x12d)]},'footer':{'text':_0x1777d6(0x103)+_0x491e6f[_0x1777d6(0x107)][_0x1777d6(0x131)]['dispatcher'][_0x1777d6(0x11c)]*0x64+_0x1777d6(0x10d)+Math['floor'](_0x418bbc/0xea60)+':'+Math[_0x1777d6(0x130)](_0x418bbc%0xea60/0x3e8)+_0x1777d6(0x102)+_0x1c4287[_0x1777d6(0x105)]+_0x1777d6(0x129)+_0x491e6f[_0x1777d6(0x107)][_0x1777d6(0x131)][_0x1777d6(0x126)][_0x1777d6(0x115)]}}})['catch'](()=>{});}};}}; \ No newline at end of file +const a115_0xe431=['music','document','Artist','users','RED','playing','locale','Paused','requester','Now\x20Playing','\x20/\x20','client','thumbnail','connection','getString','🔉\x20','isPublicBastion','COLORS','catch','volume','musicDisabled','PINK','\x20•\x20','Unknown\x20Artist','Album','../../utils/constants','send','channel','cache','It\x20shows\x20you\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','length','guild','streamTime','voice','artist','album','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','duration','push','get','@bastion/tesseract','\x20-\x20','paused','constructor','Up\x20Next','track','exports','errors','dispatcher','floor'];(function(_0x3c1b2f,_0x410d70){const _0xe4312=function(_0x5a6bc4){while(--_0x5a6bc4){_0x3c1b2f['push'](_0x3c1b2f['shift']());}},_0x52eb3e=function(){const _0x13e9da={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x575b19,_0x4e93de,_0x4df40e,_0xaaff70){_0xaaff70=_0xaaff70||{};let _0x410bf7=_0x4e93de+'='+_0x4df40e,_0x5296a7=0x0;for(let _0x2f9a26=0x0,_0x2af174=_0x575b19['length'];_0x2f9a26<_0x2af174;_0x2f9a26++){const _0x20eb70=_0x575b19[_0x2f9a26];_0x410bf7+=';\x20'+_0x20eb70;const _0x56fe5e=_0x575b19[_0x20eb70];_0x575b19['push'](_0x56fe5e),_0x2af174=_0x575b19['length'],_0x56fe5e!==!![]&&(_0x410bf7+='='+_0x56fe5e);}_0xaaff70['cookie']=_0x410bf7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x94ff86,_0xbb560e){_0x94ff86=_0x94ff86||function(_0x36ff92){return _0x36ff92;};const _0x4912b9=_0x94ff86(new RegExp('(?:^|;\x20)'+_0xbb560e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x148629=function(_0x4ac376,_0xd591eb){_0x4ac376(++_0xd591eb);};return _0x148629(_0xe4312,_0x410d70),_0x4912b9?decodeURIComponent(_0x4912b9[0x1]):undefined;}},_0x157139=function(){const _0x4d7e44=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4d7e44['test'](_0x13e9da['removeCookie']['toString']());};_0x13e9da['updateCookie']=_0x157139;let _0x44b18c='';const _0xaa352=_0x13e9da['updateCookie']();if(!_0xaa352)_0x13e9da['setCookie'](['*'],'counter',0x1);else _0xaa352?_0x44b18c=_0x13e9da['getCookie'](null,'counter'):_0x13e9da['removeCookie']();};_0x52eb3e();}(a115_0xe431,0x148));const a115_0x52eb=function(_0x3c1b2f,_0x410d70){_0x3c1b2f=_0x3c1b2f-0x102;let _0xe4312=a115_0xe431[_0x3c1b2f];return _0xe4312;};const a115_0x537f58=a115_0x52eb,a115_0x157139=function(){let _0xaa352=!![];return function(_0x575b19,_0x4e93de){const _0x4df40e=_0xaa352?function(){if(_0x4e93de){const _0xaaff70=_0x4e93de['apply'](_0x575b19,arguments);return _0x4e93de=null,_0xaaff70;}}:function(){};return _0xaa352=![],_0x4df40e;};}(),a115_0x13e9da=a115_0x157139(this,function(){const _0x410bf7=function(){const _0x4c57e1=a115_0x52eb,_0x5296a7=_0x410bf7[_0x4c57e1(0x118)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4c57e1(0x118)](_0x4c57e1(0x111));return!_0x5296a7['test'](a115_0x13e9da);};return _0x410bf7();});a115_0x13e9da();'use strict';const tesseract_1=require(a115_0x537f58(0x115)),constants=require(a115_0x537f58(0x105));module[a115_0x537f58(0x11b)]=class NowPlaying extends tesseract_1['Command']{constructor(){const _0x1f2f20=a115_0x537f58;super('nowPlaying',{'description':_0x1f2f20(0x109),'triggers':['np'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this['exec']=async _0x2f9a26=>{const _0xca4889=_0x1f2f20,_0x2af174=_0x2f9a26['guild'];if(!_0x2af174[_0xca4889(0x120)][_0xca4889(0x11f)]||!_0x2af174[_0xca4889(0x120)][_0xca4889(0x11f)]['enabled'])return await _0x2f9a26[_0xca4889(0x107)][_0xca4889(0x106)]({'embed':{'color':tesseract_1[_0xca4889(0x110)]['COLORS'][_0xca4889(0x123)],'description':this[_0xca4889(0x12a)][_0xca4889(0x125)][_0xca4889(0x12d)](_0x2f9a26[_0xca4889(0x10b)][_0xca4889(0x120)]['language'],_0xca4889(0x11c),constants[_0xca4889(0x12f)](_0x2f9a26['author'])?'musicDisabledPublic':_0xca4889(0x133))}})['catch'](()=>{});if(_0x2af174['music'][_0xca4889(0x124)]&&_0x2af174[_0xca4889(0x10d)]&&_0x2af174['voice'][_0xca4889(0x12c)][_0xca4889(0x11d)]){const _0x20eb70=_0x2af174[_0xca4889(0x11f)]['queue'][0x0],_0x56fe5e=_0x2af174[_0xca4889(0x10d)][_0xca4889(0x12c)][_0xca4889(0x11d)][_0xca4889(0x10c)]-_0x2af174[_0xca4889(0x10d)]['connection'][_0xca4889(0x11d)]['pausedTime'],_0x94ff86=[];_0x20eb70['album']&&_0x94ff86['push']({'name':_0xca4889(0x104),'value':_0x20eb70[_0xca4889(0x10f)],'inline':!![]});_0x20eb70[_0xca4889(0x10e)]&&_0x94ff86[_0xca4889(0x113)]({'name':_0xca4889(0x121),'value':_0x20eb70[_0xca4889(0x10e)],'inline':!![]});_0x94ff86[_0xca4889(0x113)]({'name':'Requestor','value':this[_0xca4889(0x12a)][_0xca4889(0x122)][_0xca4889(0x108)][_0xca4889(0x114)](_0x20eb70['requester'])['tag']+_0xca4889(0x129)+_0x20eb70[_0xca4889(0x127)]});if(_0x2af174['music']['queue'][_0xca4889(0x10a)]>0x1){const _0xbb560e=_0x2af174['music']['queue'][0x1];_0x94ff86[_0xca4889(0x113)]({'name':_0xca4889(0x119),'value':_0xbb560e['track']+_0xca4889(0x116)+(_0xbb560e['artist']||_0xca4889(0x103))});}_0x2af174[_0xca4889(0x11f)]['textChannel'][_0xca4889(0x106)]({'embed':{'color':tesseract_1[_0xca4889(0x110)][_0xca4889(0x130)][_0xca4889(0x134)],'title':_0x2af174['voice'][_0xca4889(0x12c)]['dispatcher'][_0xca4889(0x117)]?_0xca4889(0x126):_0xca4889(0x128),'description':_0x20eb70[_0xca4889(0x11a)],'fields':_0x94ff86,'thumbnail':{'url':_0x20eb70[_0xca4889(0x12b)]},'footer':{'text':_0xca4889(0x12e)+_0x2af174[_0xca4889(0x10d)][_0xca4889(0x12c)][_0xca4889(0x11d)][_0xca4889(0x132)]*0x64+'%\x20•\x20'+Math[_0xca4889(0x11e)](_0x56fe5e/0xea60)+':'+Math[_0xca4889(0x11e)](_0x56fe5e%0xea60/0x3e8)+'\x20/\x20'+_0x20eb70[_0xca4889(0x112)]+_0xca4889(0x102)+_0x2af174[_0xca4889(0x10d)][_0xca4889(0x12c)][_0xca4889(0x107)]['name']}}})[_0xca4889(0x131)](()=>{});}};}}; \ No newline at end of file diff --git a/commands/music/pause.js b/commands/music/pause.js index a4345db49..4936da391 100644 --- a/commands/music/pause.js +++ b/commands/music/pause.js @@ -1 +1 @@ -const a115_0x182c=['tag','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Command','pause','queue','music','\x20•\x20','enabled','constructor','send','duration','author','streamTime','isPublicBastion','PINK','track','../../utils/constants','exports','Paused\x20Playback','Constants','guild','@bastion/tesseract','paused','connection','document','channel','test','errors','name','getString','voice','playing','COLORS','musicDisabledPublic','dispatcher','floor','language','textChannel','isMusicMaster','playbackPause','musicDisabled','catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale'];(function(_0x27bb7e,_0x202c2f){const _0x182c04=function(_0x2ab96c){while(--_0x2ab96c){_0x27bb7e['push'](_0x27bb7e['shift']());}},_0x26e8ea=function(){const _0x19fd0a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11ecec,_0x4bed42,_0x2c0c7c,_0xa1e9d1){_0xa1e9d1=_0xa1e9d1||{};let _0x5f121e=_0x4bed42+'='+_0x2c0c7c,_0x1425f1=0x0;for(let _0x13f666=0x0,_0x2f7ecb=_0x11ecec['length'];_0x13f666<_0x2f7ecb;_0x13f666++){const _0x2e0dfa=_0x11ecec[_0x13f666];_0x5f121e+=';\x20'+_0x2e0dfa;const _0x2b4733=_0x11ecec[_0x2e0dfa];_0x11ecec['push'](_0x2b4733),_0x2f7ecb=_0x11ecec['length'],_0x2b4733!==!![]&&(_0x5f121e+='='+_0x2b4733);}_0xa1e9d1['cookie']=_0x5f121e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ddf48,_0x569a58){_0x4ddf48=_0x4ddf48||function(_0x1e3caa){return _0x1e3caa;};const _0x151496=_0x4ddf48(new RegExp('(?:^|;\x20)'+_0x569a58['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x559a88=function(_0x4a14ae,_0x2c101f){_0x4a14ae(++_0x2c101f);};return _0x559a88(_0x182c04,_0x202c2f),_0x151496?decodeURIComponent(_0x151496[0x1]):undefined;}},_0x289c96=function(){const _0x1cff97=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1cff97['test'](_0x19fd0a['removeCookie']['toString']());};_0x19fd0a['updateCookie']=_0x289c96;let _0x1c3d27='';const _0x18486d=_0x19fd0a['updateCookie']();if(!_0x18486d)_0x19fd0a['setCookie'](['*'],'counter',0x1);else _0x18486d?_0x1c3d27=_0x19fd0a['getCookie'](null,'counter'):_0x19fd0a['removeCookie']();};_0x26e8ea();}(a115_0x182c,0xdf));const a115_0x26e8=function(_0x27bb7e,_0x202c2f){_0x27bb7e=_0x27bb7e-0x69;let _0x182c04=a115_0x182c[_0x27bb7e];return _0x182c04;};const _0x4f17be=a115_0x26e8,a115_0x289c96=function(){let _0x18486d=!![];return function(_0x11ecec,_0x4bed42){const _0x2c0c7c=_0x18486d?function(){if(_0x4bed42){const _0xa1e9d1=_0x4bed42['apply'](_0x11ecec,arguments);return _0x4bed42=null,_0xa1e9d1;}}:function(){};return _0x18486d=![],_0x2c0c7c;};}(),a115_0x19fd0a=a115_0x289c96(this,function(){const _0x5f121e=function(){const _0x279391=a115_0x26e8,_0x1425f1=_0x5f121e['constructor'](_0x279391(0x93))()[_0x279391(0x6e)](_0x279391(0x90));return!_0x1425f1[_0x279391(0x80)](a115_0x19fd0a);};return _0x5f121e();});a115_0x19fd0a();'use strict';const tesseract_1=require(_0x4f17be(0x7b)),constants=require(_0x4f17be(0x76));module[_0x4f17be(0x77)]=class Pause extends tesseract_1[_0x4f17be(0x94)]{constructor(){const _0x58c816=_0x4f17be;super(_0x58c816(0x69),{'description':'It\x20allows\x20you\x20to\x20pause\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':_0x58c816(0x7a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this['exec']=async _0x13f666=>{const _0xc8974b=_0x58c816,_0x2f7ecb=_0x13f666[_0xc8974b(0x7a)];if(!_0x2f7ecb['document']['music']||!_0x2f7ecb[_0xc8974b(0x7e)]['music'][_0xc8974b(0x6d)])return await _0x13f666['channel']['send']({'embed':{'color':tesseract_1['Constants'][_0xc8974b(0x86)]['RED'],'description':this['client'][_0xc8974b(0x91)]['getString'](_0x13f666['guild'][_0xc8974b(0x7e)][_0xc8974b(0x8a)],_0xc8974b(0x81),constants[_0xc8974b(0x73)](_0x13f666[_0xc8974b(0x71)])?_0xc8974b(0x87):_0xc8974b(0x8e))}})[_0xc8974b(0x8f)](()=>{});if(!_0x13f666['member'][_0xc8974b(0x8c)]())return;if(_0x2f7ecb[_0xc8974b(0x6b)][_0xc8974b(0x85)]&&_0x2f7ecb[_0xc8974b(0x84)]&&_0x2f7ecb[_0xc8974b(0x84)]['connection'][_0xc8974b(0x88)]&&!_0x2f7ecb[_0xc8974b(0x84)][_0xc8974b(0x7d)][_0xc8974b(0x88)][_0xc8974b(0x7c)]){_0x2f7ecb['voice'][_0xc8974b(0x7d)]['dispatcher'][_0xc8974b(0x69)](!![]);const _0x2e0dfa=_0x2f7ecb[_0xc8974b(0x6b)][_0xc8974b(0x6a)][0x0],_0x2b4733=_0x2f7ecb[_0xc8974b(0x84)][_0xc8974b(0x7d)][_0xc8974b(0x88)][_0xc8974b(0x72)]-_0x2f7ecb[_0xc8974b(0x84)][_0xc8974b(0x7d)][_0xc8974b(0x88)]['pausedTime'];_0x2f7ecb[_0xc8974b(0x6b)][_0xc8974b(0x8b)][_0xc8974b(0x6f)]({'embed':{'color':tesseract_1[_0xc8974b(0x79)][_0xc8974b(0x86)][_0xc8974b(0x74)],'title':_0xc8974b(0x78),'description':this['client'][_0xc8974b(0x91)][_0xc8974b(0x83)](_0x13f666[_0xc8974b(0x7a)][_0xc8974b(0x7e)]['language'],'info',_0xc8974b(0x8d),_0x13f666[_0xc8974b(0x71)][_0xc8974b(0x92)],_0x2e0dfa[_0xc8974b(0x75)]),'footer':{'text':Math[_0xc8974b(0x89)](_0x2b4733/0xea60)+':'+Math[_0xc8974b(0x89)](_0x2b4733%0xea60/0x3e8)+'\x20/\x20'+_0x2e0dfa[_0xc8974b(0x70)]+_0xc8974b(0x6c)+_0x2f7ecb[_0xc8974b(0x84)][_0xc8974b(0x7d)][_0xc8974b(0x7f)][_0xc8974b(0x82)]}}})[_0xc8974b(0x8f)](()=>{});}};}}; \ No newline at end of file +const a116_0x1a4d=['playing','textChannel','It\x20allows\x20you\x20to\x20pause\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','getString','exports','errors','pausedTime','musicDisabled','dispatcher','locale','musicDisabledPublic','guild','member','exec','playbackPause','language','connection','COLORS','constructor','\x20•\x20','\x20/\x20','music','pause','@bastion/tesseract','queue','name','paused','RED','channel','send','catch','isMusicMaster','apply','Constants','Paused\x20Playback','enabled','document','voice','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x576ee3,_0x46ae8e){const _0x1a4de5=function(_0x19f5b7){while(--_0x19f5b7){_0x576ee3['push'](_0x576ee3['shift']());}},_0x539f6b=function(){const _0x52badf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5167e4,_0x5e6687,_0xea90d6,_0xff080d){_0xff080d=_0xff080d||{};let _0x3779f8=_0x5e6687+'='+_0xea90d6,_0x5e05c7=0x0;for(let _0x480d35=0x0,_0x3d55ad=_0x5167e4['length'];_0x480d35<_0x3d55ad;_0x480d35++){const _0x4f9f0e=_0x5167e4[_0x480d35];_0x3779f8+=';\x20'+_0x4f9f0e;const _0x30bc28=_0x5167e4[_0x4f9f0e];_0x5167e4['push'](_0x30bc28),_0x3d55ad=_0x5167e4['length'],_0x30bc28!==!![]&&(_0x3779f8+='='+_0x30bc28);}_0xff080d['cookie']=_0x3779f8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x296e8d,_0x50e5d5){_0x296e8d=_0x296e8d||function(_0x1d8879){return _0x1d8879;};const _0x2d1de3=_0x296e8d(new RegExp('(?:^|;\x20)'+_0x50e5d5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x40a77c=function(_0xecf9b,_0xc47e9){_0xecf9b(++_0xc47e9);};return _0x40a77c(_0x1a4de5,_0x46ae8e),_0x2d1de3?decodeURIComponent(_0x2d1de3[0x1]):undefined;}},_0x5c029d=function(){const _0x150e30=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x150e30['test'](_0x52badf['removeCookie']['toString']());};_0x52badf['updateCookie']=_0x5c029d;let _0x46c5f2='';const _0x51e853=_0x52badf['updateCookie']();if(!_0x51e853)_0x52badf['setCookie'](['*'],'counter',0x1);else _0x51e853?_0x46c5f2=_0x52badf['getCookie'](null,'counter'):_0x52badf['removeCookie']();};_0x539f6b();}(a116_0x1a4d,0xa4));const a116_0x539f=function(_0x576ee3,_0x46ae8e){_0x576ee3=_0x576ee3-0x6b;let _0x1a4de5=a116_0x1a4d[_0x576ee3];return _0x1a4de5;};const a116_0x17123c=a116_0x539f,a116_0x5c029d=function(){let _0x51e853=!![];return function(_0x5167e4,_0x5e6687){const _0xea90d6=_0x51e853?function(){const _0x19838c=a116_0x539f;if(_0x5e6687){const _0xff080d=_0x5e6687[_0x19838c(0x8f)](_0x5167e4,arguments);return _0x5e6687=null,_0xff080d;}}:function(){};return _0x51e853=![],_0xea90d6;};}(),a116_0x52badf=a116_0x5c029d(this,function(){const _0x3779f8=function(){const _0x14b736=a116_0x539f,_0x5e05c7=_0x3779f8[_0x14b736(0x81)](_0x14b736(0x6c))()[_0x14b736(0x81)](_0x14b736(0x6e));return!_0x5e05c7['test'](a116_0x52badf);};return _0x3779f8();});a116_0x52badf();'use strict';const tesseract_1=require(a116_0x17123c(0x86)),constants=require('../../utils/constants');module[a116_0x17123c(0x73)]=class Pause extends tesseract_1['Command']{constructor(){const _0x569afe=a116_0x17123c;super(_0x569afe(0x85),{'description':_0x569afe(0x71),'triggers':[],'arguments':{},'scope':_0x569afe(0x7a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x569afe(0x7c)]=async _0x480d35=>{const _0x575c97=_0x569afe,_0x3d55ad=_0x480d35['guild'];if(!_0x3d55ad['document']['music']||!_0x3d55ad[_0x575c97(0x93)][_0x575c97(0x84)][_0x575c97(0x92)])return await _0x480d35[_0x575c97(0x8b)][_0x575c97(0x8c)]({'embed':{'color':tesseract_1[_0x575c97(0x90)][_0x575c97(0x80)][_0x575c97(0x8a)],'description':this['client']['locale'][_0x575c97(0x72)](_0x480d35[_0x575c97(0x7a)][_0x575c97(0x93)][_0x575c97(0x7e)],_0x575c97(0x74),constants['isPublicBastion'](_0x480d35['author'])?_0x575c97(0x79):_0x575c97(0x76))}})[_0x575c97(0x8d)](()=>{});if(!_0x480d35[_0x575c97(0x7b)][_0x575c97(0x8e)]())return;if(_0x3d55ad['music'][_0x575c97(0x6f)]&&_0x3d55ad[_0x575c97(0x94)]&&_0x3d55ad[_0x575c97(0x94)][_0x575c97(0x7f)][_0x575c97(0x77)]&&!_0x3d55ad[_0x575c97(0x94)][_0x575c97(0x7f)][_0x575c97(0x77)][_0x575c97(0x89)]){_0x3d55ad[_0x575c97(0x94)][_0x575c97(0x7f)]['dispatcher'][_0x575c97(0x85)](!![]);const _0x4f9f0e=_0x3d55ad['music'][_0x575c97(0x87)][0x0],_0x30bc28=_0x3d55ad[_0x575c97(0x94)]['connection']['dispatcher']['streamTime']-_0x3d55ad[_0x575c97(0x94)][_0x575c97(0x7f)][_0x575c97(0x77)][_0x575c97(0x75)];_0x3d55ad[_0x575c97(0x84)][_0x575c97(0x70)][_0x575c97(0x8c)]({'embed':{'color':tesseract_1[_0x575c97(0x90)][_0x575c97(0x80)]['PINK'],'title':_0x575c97(0x91),'description':this[_0x575c97(0x6b)][_0x575c97(0x78)][_0x575c97(0x72)](_0x480d35[_0x575c97(0x7a)][_0x575c97(0x93)][_0x575c97(0x7e)],'info',_0x575c97(0x7d),_0x480d35['author'][_0x575c97(0x6d)],_0x4f9f0e['track']),'footer':{'text':Math['floor'](_0x30bc28/0xea60)+':'+Math['floor'](_0x30bc28%0xea60/0x3e8)+_0x575c97(0x83)+_0x4f9f0e['duration']+_0x575c97(0x82)+_0x3d55ad[_0x575c97(0x94)][_0x575c97(0x7f)][_0x575c97(0x8b)][_0x575c97(0x88)]}}})['catch'](()=>{});}};}}; \ No newline at end of file diff --git a/commands/music/play.js b/commands/music/play.js index 74083e9c2..e8919775d 100644 --- a/commands/music/play.js +++ b/commands/music/play.js @@ -1 +1 @@ -const a116_0x22c1=['fetchPremiumTier','BASTION_ERROR_TYPE','errors','URI','Artist','It\x20allows\x20you\x20to\x20play\x20a\x20music\x20in\x20the\x20server,\x20from\x20the\x20given\x20query\x20or\x20from\x20any\x20supported\x20source.','author','setActivity','textChannel','channels','music','guild','finish','PINK','--flat-playlist','textChannelId','google','pipe','requester','user','prepareStream','name','Added\x20to\x20Queue','Logger','DiscordError','../../utils/constants','youtube.com','./music/','videoId','queue','premiumMusic','get','isPublicBastion','test','speakable','startsWith','items','statusText','member','voiceChannelId','constructor','--quiet','--no-warnings','\x20•\x20','url','track','type','unjoinable','promises','youtube-dl','error','return\x20/\x22\x20+\x20this\x20+\x20\x22/','filter','uuid','configurations','Up\x20Next','length','Command','--no-cache-dir','thumbnail','rmdir','apiKey','setMute','musicDirectory','streamEndHandler','startStreamDispatcher','Stopping\x20Playback','https://youtu.be/','Constants','creator','tag','play\x20Remember\x20The\x20Name\x20by\x20Ed\x20Sheeran','join','channel','--force-ipv4','enabled','No\x20results\x20found\x20for\x20the\x20specified\x20query.','unspeakable','client','catch','COLORS','locale','artist','has','LISTENING','exports','document','activity','history','../../utils/omnic','push','../../utils/errors','--no-playlist','play','https://youtube.com/watch?v=','--dump-json','dispatcherFinishHandler','end','--geo-bypass-country=US','voiceChannel','musicDisabledPublic','--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','getString','createWriteStream','noMusicChannelsAsOwner','send','getSongInfo','http','duration','streamInfoHandler','playing','searchYouTube','.mp3','isMusicMaster','credentials','voice','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','ytsearch:','@bastion/tesseract','presence','language','--yes-playlist','--referer=https://bastion.traction.one','playlist','includes','cache','--ignore-errors','alt_title','members','--format=bestaudio[protocol^=http]','entries','RED','skipVotes','fulltitle','musicDisabled','mkdir','noMusicChannels','album','setDeaf','apply'];(function(_0xa9fa91,_0x5a050a){const _0x22c1a6=function(_0xcfe159){while(--_0xcfe159){_0xa9fa91['push'](_0xa9fa91['shift']());}},_0x1df96f=function(){const _0x2f4979={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x30e18d,_0x1dd795,_0x33366a,_0x1e5a2b){_0x1e5a2b=_0x1e5a2b||{};let _0x13c053=_0x1dd795+'='+_0x33366a,_0x1a03b4=0x0;for(let _0x46c5bf=0x0,_0x14f714=_0x30e18d['length'];_0x46c5bf<_0x14f714;_0x46c5bf++){const _0x10bd03=_0x30e18d[_0x46c5bf];_0x13c053+=';\x20'+_0x10bd03;const _0x5dde63=_0x30e18d[_0x10bd03];_0x30e18d['push'](_0x5dde63),_0x14f714=_0x30e18d['length'],_0x5dde63!==!![]&&(_0x13c053+='='+_0x5dde63);}_0x1e5a2b['cookie']=_0x13c053;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23c07f,_0x4bc5c1){_0x23c07f=_0x23c07f||function(_0x3740cf){return _0x3740cf;};const _0x429f30=_0x23c07f(new RegExp('(?:^|;\x20)'+_0x4bc5c1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5deba3=function(_0x23843f,_0x302cfc){_0x23843f(++_0x302cfc);};return _0x5deba3(_0x22c1a6,_0x5a050a),_0x429f30?decodeURIComponent(_0x429f30[0x1]):undefined;}},_0x8eaf05=function(){const _0x59e656=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x59e656['test'](_0x2f4979['removeCookie']['toString']());};_0x2f4979['updateCookie']=_0x8eaf05;let _0x449417='';const _0x35cd91=_0x2f4979['updateCookie']();if(!_0x35cd91)_0x2f4979['setCookie'](['*'],'counter',0x1);else _0x35cd91?_0x449417=_0x2f4979['getCookie'](null,'counter'):_0x2f4979['removeCookie']();};_0x1df96f();}(a116_0x22c1,0x12d));const a116_0x1df9=function(_0xa9fa91,_0x5a050a){_0xa9fa91=_0xa9fa91-0xd1;let _0x22c1a6=a116_0x22c1[_0xa9fa91];return _0x22c1a6;};const _0x18b7ed=a116_0x1df9,a116_0x8eaf05=function(){let _0x35cd91=!![];return function(_0x30e18d,_0x1dd795){const _0x33366a=_0x35cd91?function(){const _0x7aaf0d=a116_0x1df9;if(_0x1dd795){const _0x1e5a2b=_0x1dd795[_0x7aaf0d(0x14a)](_0x30e18d,arguments);return _0x1dd795=null,_0x1e5a2b;}}:function(){};return _0x35cd91=![],_0x33366a;};}(),a116_0x2f4979=a116_0x8eaf05(this,function(){const _0x13c053=function(){const _0x89f293=a116_0x1df9,_0x1a03b4=_0x13c053['constructor'](_0x89f293(0xf1))()[_0x89f293(0xe6)](_0x89f293(0x133));return!_0x1a03b4[_0x89f293(0xdf)](a116_0x2f4979);};return _0x13c053();});a116_0x2f4979();'use strict';const fs=require('fs'),tesseract_1=require(_0x18b7ed(0x135)),node_fetch_1=require('node-fetch'),youtube=require(_0x18b7ed(0xef)),uuid_1=require(_0x18b7ed(0xf3)),constants=require(_0x18b7ed(0xd7)),errors=require(_0x18b7ed(0x119)),omnic=require(_0x18b7ed(0x117)),regex=require('../../utils/regex');module[_0x18b7ed(0x113)]=class Play extends tesseract_1[_0x18b7ed(0xf7)]{constructor(){const _0x1d584c=_0x18b7ed;super('play',{'description':_0x1d584c(0x150),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1d584c(0x105),'play\x20https://www.youtube.com/watch?v=dQw4w9WgXcQ']}),this[_0x1d584c(0x12d)]=async _0x46c5bf=>{const _0x598e26=_0x1d584c,_0x14f714=await node_fetch_1['default']('https://youtube.googleapis.com/youtube/v3/search?part=id®ionCode=US&type=video&maxResults=5&q='+encodeURIComponent(_0x46c5bf)+'&key='+this[_0x598e26(0x10c)][_0x598e26(0x130)]['google'][_0x598e26(0xfb)]);if(_0x14f714['ok']){const _0x10bd03=await _0x14f714['json']();if(_0x10bd03['items'][_0x598e26(0xf6)])return _0x10bd03[_0x598e26(0xe2)][0x0]['id'][_0x598e26(0xda)];throw _0x598e26(0x10a);}else throw _0x14f714[_0x598e26(0xe3)];},this[_0x1d584c(0xd2)]=(_0x5dde63,_0x23c07f,_0x4bc5c1)=>{return new Promise((_0x429f30,_0x5deba3)=>{const _0x1df0da=a116_0x1df9,_0x3740cf=uuid_1['v4'](),_0x23843f=youtube(_0x5dde63,[_0x1df0da(0x13d),_0x1df0da(0x108),_0x1df0da(0x120),'--no-playlist','--no-cache-dir',_0x1df0da(0x11d),_0x1df0da(0xe7),'--no-warnings',_0x1df0da(0x123),_0x1df0da(0x139),_0x1df0da(0x140),'--youtube-skip-dash-manifest'],{});_0x23843f['on'](_0x1df0da(0x132),_0x302cfc=>this[_0x1df0da(0x12b)](_0x23c07f[_0x1df0da(0x156)],{..._0x302cfc,'id':_0x3740cf,'requester':_0x23c07f['author']['id']})),_0x23843f['on'](_0x1df0da(0x11f),()=>{this['streamEndHandler'](_0x23c07f['guild']),_0x429f30(!![]);}),_0x23843f['on'](_0x1df0da(0xf0),()=>{const _0x2b97fd=_0x1df0da;_0x4bc5c1&&_0x23c07f[_0x2b97fd(0x107)]['send']({'embed':{'color':tesseract_1['Constants'][_0x2b97fd(0x10e)][_0x2b97fd(0x142)],'description':this[_0x2b97fd(0x10c)][_0x2b97fd(0x10f)][_0x2b97fd(0x124)](_0x23c07f[_0x2b97fd(0x156)]['document']['language'],'errors','musicDownloadError')}})['catch'](()=>{}),_0x5deba3(this[_0x2b97fd(0x10c)][_0x2b97fd(0x10f)][_0x2b97fd(0x124)](_0x23c07f[_0x2b97fd(0x156)][_0x2b97fd(0x114)][_0x2b97fd(0x137)],_0x2b97fd(0x14d),'musicDownloadError'));}),_0x23843f[_0x1df0da(0x15c)](fs[_0x1df0da(0x125)](this[_0x1df0da(0xfd)]+_0x23c07f[_0x1df0da(0x156)]['id']+'/'+_0x3740cf+_0x1df0da(0x12e)));});},this['streamInfoHandler']=(_0x59e656,_0x403d35)=>{const _0x4f99dc=_0x1d584c,_0x170f8=_0x403d35['id'],_0x44fdb8=_0x403d35[_0x4f99dc(0xeb)]||_0x403d35['title']||_0x403d35[_0x4f99dc(0x144)]||_0x403d35[_0x4f99dc(0x13e)],_0x555e3c=_0x403d35['album'],_0x5992c9=_0x403d35[_0x4f99dc(0x110)]||_0x403d35[_0x4f99dc(0x103)]||_0x403d35['uploader'],_0x1f3887=_0x403d35['duration'],_0x3495fb=_0x403d35[_0x4f99dc(0xf9)],_0x8817b0=_0x403d35[_0x4f99dc(0x15d)];_0x59e656['music'][_0x4f99dc(0xdb)][_0x4f99dc(0x118)]({'id':_0x170f8,'track':_0x44fdb8,'album':_0x555e3c,'artist':_0x5992c9,'duration':_0x1f3887,'thumbnail':_0x3495fb,'requester':_0x8817b0});const _0x2c91b5=[];_0x555e3c&&_0x2c91b5[_0x4f99dc(0x118)]({'name':'Album','value':_0x555e3c,'inline':!![]}),_0x5992c9&&_0x2c91b5[_0x4f99dc(0x118)]({'name':_0x4f99dc(0x14f),'value':_0x5992c9,'inline':!![]}),_0x59e656[_0x4f99dc(0x155)][_0x4f99dc(0x153)][_0x4f99dc(0x127)]({'embed':{'color':tesseract_1[_0x4f99dc(0x102)][_0x4f99dc(0x10e)]['PINK'],'title':_0x4f99dc(0xd4),'description':_0x44fdb8,'fields':_0x2c91b5,'thumbnail':{'url':_0x3495fb},'footer':{'text':(_0x59e656[_0x4f99dc(0x155)]['queue'][_0x4f99dc(0xf6)]?'#'+(_0x59e656[_0x4f99dc(0x155)][_0x4f99dc(0xdb)][_0x4f99dc(0xf6)]-0x1):_0x4f99dc(0xf5))+(_0x4f99dc(0xe9)+_0x1f3887+_0x4f99dc(0xe9)+(_0x59e656[_0x4f99dc(0x13f)][_0x4f99dc(0x13c)][_0x4f99dc(0xdd)](_0x8817b0)[_0x4f99dc(0xd1)]['tag']||_0x8817b0))}}})[_0x4f99dc(0x10d)](()=>{});},this[_0x1d584c(0xfe)]=_0x30bca4=>{const _0x49b58b=_0x1d584c;!_0x30bca4[_0x49b58b(0x155)][_0x49b58b(0x12c)]&&this[_0x49b58b(0xff)](_0x30bca4);},this[_0x1d584c(0xff)]=_0x1ed9d4=>{const _0x361220=_0x1d584c;if(_0x1ed9d4['music'][_0x361220(0xdb)]['length']){const _0xe599a3=_0x1ed9d4[_0x361220(0x155)][_0x361220(0xdb)][0x0],_0x228aca=[];_0xe599a3[_0x361220(0x148)]&&_0x228aca[_0x361220(0x118)]({'name':'Album','value':_0xe599a3[_0x361220(0x148)],'inline':!![]});_0xe599a3[_0x361220(0x110)]&&_0x228aca[_0x361220(0x118)]({'name':_0x361220(0x14f),'value':_0xe599a3[_0x361220(0x110)],'inline':!![]});_0x1ed9d4[_0x361220(0x155)]['textChannel'][_0x361220(0x127)]({'embed':{'color':tesseract_1[_0x361220(0x102)][_0x361220(0x10e)]['PINK'],'title':'Playing','description':_0xe599a3[_0x361220(0xeb)],'fields':_0x228aca,'thumbnail':{'url':_0xe599a3['thumbnail']},'footer':{'text':_0xe599a3[_0x361220(0x12a)]+_0x361220(0xe9)+(_0x1ed9d4[_0x361220(0x13f)]['cache'][_0x361220(0xdd)](_0xe599a3[_0x361220(0x15d)])[_0x361220(0xd1)][_0x361220(0x104)]||_0xe599a3[_0x361220(0x15d)])}}})['catch'](()=>{}),_0x1ed9d4[_0x361220(0x155)]['playing']=!![];const _0x5a866a=_0x1ed9d4['voice']&&_0x1ed9d4[_0x361220(0x131)]['connection'][_0x361220(0x11b)](this[_0x361220(0xfd)]+_0x1ed9d4['id']+'/'+_0xe599a3['id']+_0x361220(0x12e));this[_0x361220(0x10c)][_0x361220(0xf4)]['music']&&this[_0x361220(0x10c)][_0x361220(0xf4)][_0x361220(0x155)][_0x361220(0x115)]&&this[_0x361220(0x10c)][_0x361220(0xd1)][_0x361220(0x152)]({'name':_0xe599a3[_0x361220(0xeb)],'type':_0x361220(0x112)})[_0x361220(0x10d)](()=>{}),_0x5a866a['on'](_0x361220(0x157),()=>this[_0x361220(0x11e)](_0x1ed9d4)),_0x5a866a['on'](_0x361220(0xf0),_0x459dca=>{const _0x49df5b=_0x361220;tesseract_1[_0x49df5b(0xd5)][_0x49df5b(0xf0)](_0x459dca),this[_0x49df5b(0x11e)](_0x1ed9d4);});}else _0x1ed9d4[_0x361220(0x155)]['queue']=[],_0x1ed9d4[_0x361220(0x155)]['history']=[],fs[_0x361220(0xee)][_0x361220(0xfa)](this[_0x361220(0xfd)]+_0x1ed9d4['id'],{'recursive':!![]})[_0x361220(0x10d)](()=>{}),this[_0x361220(0x10c)][_0x361220(0xf4)][_0x361220(0x155)]&&this['client']['configurations']['music'][_0x361220(0x115)]&&this[_0x361220(0x10c)]['user'][_0x361220(0x152)](this[_0x361220(0x10c)]['configurations'][_0x361220(0x136)]instanceof Array?this[_0x361220(0x10c)][_0x361220(0xf4)][_0x361220(0x136)][0x0][_0x361220(0x115)]:this[_0x361220(0x10c)]['configurations'][_0x361220(0x136)]['activity'])['catch'](()=>{}),!_0x1ed9d4['document']['music']['keepAlive']&&(_0x1ed9d4[_0x361220(0x131)]&&_0x1ed9d4[_0x361220(0x131)][_0x361220(0x107)]['leave']()),_0x1ed9d4[_0x361220(0x155)]['textChannel'][_0x361220(0x127)]({'embed':{'color':tesseract_1['Constants'][_0x361220(0x10e)][_0x361220(0x158)],'title':_0x361220(0x100)}})['catch'](()=>{});},this['dispatcherFinishHandler']=_0x90f0d4=>{const _0x283096=_0x1d584c;_0x90f0d4[_0x283096(0x155)][_0x283096(0x12c)]=![],_0x90f0d4[_0x283096(0x155)][_0x283096(0x143)]=[],_0x90f0d4[_0x283096(0x155)][_0x283096(0xdb)][_0x283096(0xf6)]&&_0x90f0d4[_0x283096(0x155)][_0x283096(0x116)][_0x283096(0x118)](_0x90f0d4['music']['queue']['shift']()),!_0x90f0d4[_0x283096(0x155)]['queue'][_0x283096(0xf6)]&&_0x90f0d4[_0x283096(0x155)]['repeat']&&(_0x90f0d4['music'][_0x283096(0xdb)]=_0x90f0d4[_0x283096(0x155)][_0x283096(0x116)],_0x90f0d4[_0x283096(0x155)][_0x283096(0x116)]=[]),this[_0x283096(0xff)](_0x90f0d4);},this['exec']=async(_0xcc02ec,_0x256123)=>{const _0x53739=_0x1d584c,_0x1ed820=_0xcc02ec[_0x53739(0x156)];if(!_0x1ed820[_0x53739(0x114)][_0x53739(0x155)]||!_0x1ed820[_0x53739(0x114)][_0x53739(0x155)][_0x53739(0x109)])return await _0xcc02ec[_0x53739(0x107)]['send']({'embed':{'color':tesseract_1[_0x53739(0x102)][_0x53739(0x10e)][_0x53739(0x142)],'description':this[_0x53739(0x10c)]['locale'][_0x53739(0x124)](_0xcc02ec[_0x53739(0x156)][_0x53739(0x114)][_0x53739(0x137)],_0x53739(0x14d),constants[_0x53739(0xde)](_0xcc02ec[_0x53739(0x151)])?_0x53739(0x122):_0x53739(0x145))}})['catch'](()=>{});if(constants[_0x53739(0xde)](this[_0x53739(0x10c)][_0x53739(0xd1)])){const _0x3e8040=await omnic[_0x53739(0x14b)](_0xcc02ec[_0x53739(0x156)])[_0x53739(0x10d)](()=>{});if(!_0x3e8040)throw new errors[(_0x53739(0xd6))](errors[_0x53739(0x14c)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x53739(0x10c)][_0x53739(0x10f)][_0x53739(0x124)](_0xcc02ec['guild'][_0x53739(0x114)][_0x53739(0x137)],_0x53739(0x14d),_0x53739(0xdc)));}const _0x5c3f21=_0x256123['_'][_0x53739(0x106)]('\x20'),_0x150276=regex[_0x53739(0x14e)]['test'](_0x5c3f21),_0x122447=_0x150276?_0x5c3f21[_0x53739(0xe1)](_0x53739(0x129))&&_0x5c3f21['includes'](_0x53739(0xd8))&&_0x5c3f21['includes'](_0x53739(0x13a))?await this[_0x53739(0x128)](_0x5c3f21,!![]):null:await this[_0x53739(0x128)](_0x5c3f21),_0x501aff=_0x122447?_0x5c3f21[_0x53739(0xe1)](_0x53739(0x129))&&_0x5c3f21[_0x53739(0x13b)]('youtube.com')&&_0x5c3f21[_0x53739(0x13b)](_0x53739(0x13a))?_0x122447[_0x53739(0x141)]['map'](_0x23c2dc=>_0x53739(0x101)+_0x23c2dc['id']):[_0x122447['webpage_url']||_0x122447[_0x53739(0xea)]]:_0x150276?[_0x5c3f21]:null;if(!_0x501aff||!_0x501aff[_0x53739(0xf6)])throw new errors[(_0x53739(0xd6))](errors[_0x53739(0x14c)]['INVALID_COMMAND_SYNTAX'],this['name']);_0x1ed820['music'][_0x53739(0x153)]=_0xcc02ec[_0x53739(0x156)][_0x53739(0x154)]['cache']['has'](_0x1ed820[_0x53739(0x114)][_0x53739(0x155)][_0x53739(0x15a)])?_0xcc02ec[_0x53739(0x156)][_0x53739(0x154)][_0x53739(0x13c)]['get'](_0x1ed820[_0x53739(0x114)]['music'][_0x53739(0x15a)]):_0xcc02ec[_0x53739(0x107)],_0x1ed820[_0x53739(0x155)][_0x53739(0x121)]=_0xcc02ec[_0x53739(0x156)]['voice']&&_0xcc02ec[_0x53739(0x156)][_0x53739(0x131)]['connection']?_0xcc02ec[_0x53739(0x156)][_0x53739(0x131)][_0x53739(0x107)]:_0xcc02ec[_0x53739(0x156)]['channels']['cache'][_0x53739(0xf2)](_0xd7143f=>_0xd7143f['type']==='voice')[_0x53739(0x111)](_0x1ed820[_0x53739(0x114)][_0x53739(0x155)]['voiceChannelId'])?_0xcc02ec[_0x53739(0x156)][_0x53739(0x154)][_0x53739(0x13c)]['filter'](_0x1e5ff5=>_0x1e5ff5[_0x53739(0xec)]===_0x53739(0x131))[_0x53739(0xdd)](_0x1ed820['document'][_0x53739(0x155)][_0x53739(0xe5)]):_0xcc02ec[_0x53739(0xe4)][_0x53739(0x12f)]()?_0xcc02ec[_0x53739(0xe4)][_0x53739(0x131)][_0x53739(0x107)]:null;if(!_0x1ed820[_0x53739(0x155)][_0x53739(0x121)])return await _0xcc02ec[_0x53739(0x107)][_0x53739(0x127)]({'embed':{'color':tesseract_1[_0x53739(0x102)][_0x53739(0x10e)][_0x53739(0x142)],'description':this[_0x53739(0x10c)]['locale']['getString'](_0xcc02ec[_0x53739(0x156)][_0x53739(0x114)][_0x53739(0x137)],'errors',_0xcc02ec[_0x53739(0xe4)]['isMusicMaster']()?_0x53739(0x126):_0x53739(0x147))}})[_0x53739(0x10d)](()=>{});if(!_0x1ed820[_0x53739(0x155)][_0x53739(0x121)]['joinable'])return await _0xcc02ec[_0x53739(0x107)][_0x53739(0x127)]({'embed':{'color':tesseract_1[_0x53739(0x102)][_0x53739(0x10e)][_0x53739(0x142)],'description':this[_0x53739(0x10c)][_0x53739(0x10f)][_0x53739(0x124)](_0xcc02ec[_0x53739(0x156)][_0x53739(0x114)][_0x53739(0x137)],_0x53739(0x14d),_0x53739(0xed),_0x1ed820[_0x53739(0x155)]['voiceChannel'][_0x53739(0xd3)])}})['catch'](()=>{});if(!_0x1ed820['music'][_0x53739(0x121)][_0x53739(0xe0)])return await _0xcc02ec[_0x53739(0x107)]['send']({'embed':{'color':tesseract_1[_0x53739(0x102)][_0x53739(0x10e)][_0x53739(0x142)],'description':this[_0x53739(0x10c)][_0x53739(0x10f)]['getString'](_0xcc02ec[_0x53739(0x156)]['document'][_0x53739(0x137)],_0x53739(0x14d),_0x53739(0x10b),_0x1ed820['music'][_0x53739(0x121)]['name'])}})[_0x53739(0x10d)](()=>{});const _0x533c9e=await _0x1ed820[_0x53739(0x155)][_0x53739(0x121)][_0x53739(0x106)]();_0x533c9e['on'](_0x53739(0xf0),tesseract_1[_0x53739(0xd5)][_0x53739(0xf0)]),_0x533c9e['on']('failed',tesseract_1[_0x53739(0xd5)]['error']),_0xcc02ec[_0x53739(0x156)]['me'][_0x53739(0x131)][_0x53739(0xfc)](![])[_0x53739(0x10d)](()=>{}),_0xcc02ec[_0x53739(0x156)]['me'][_0x53739(0x131)][_0x53739(0x149)](!![])[_0x53739(0x10d)](()=>{}),await fs[_0x53739(0xee)][_0x53739(0x146)](this['musicDirectory']+_0xcc02ec[_0x53739(0x156)]['id']+'/',{'recursive':!![]})['catch'](tesseract_1[_0x53739(0xd5)][_0x53739(0xf0)]);for(const _0x3b949a of _0x501aff){await this['prepareStream'](_0x3b949a,_0xcc02ec,_0x501aff[_0x53739(0xf6)]>0x1)['catch'](tesseract_1[_0x53739(0xd5)][_0x53739(0xf0)]);}},this[_0x1d584c(0xfd)]=_0x1d584c(0xd9);}[_0x18b7ed(0x128)](_0x56981a,_0x5124c3){return new Promise(async(_0x2eae43,_0x2dc5f9)=>{const _0x2df3f2=a116_0x1df9;if(this[_0x2df3f2(0x10c)]['credentials'][_0x2df3f2(0x15b)]&&this[_0x2df3f2(0x10c)][_0x2df3f2(0x130)][_0x2df3f2(0x15b)][_0x2df3f2(0xfb)]&&!regex[_0x2df3f2(0x14e)][_0x2df3f2(0xdf)](_0x56981a)){const _0x5539c0=await this[_0x2df3f2(0x12d)](_0x56981a)[_0x2df3f2(0x10d)](()=>{});if(_0x5539c0)return _0x2eae43({'url':_0x2df3f2(0x101)+_0x5539c0,'webpage_url':_0x2df3f2(0x11c)+_0x5539c0});}youtube['getInfo'](regex['URI']['test'](_0x56981a)?_0x56981a:_0x2df3f2(0x134)+_0x56981a,[_0x2df3f2(0x13d),_0x2df3f2(0x108),_0x2df3f2(0x120),..._0x5124c3?[_0x2df3f2(0x159),_0x2df3f2(0x138)]:[_0x2df3f2(0x11a)],_0x2df3f2(0xf8),_0x5124c3?'--dump-single-json':'--dump-json','--quiet',_0x2df3f2(0xe8),_0x2df3f2(0x123),'--referer=https://bastion.traction.one','--format=bestaudio[protocol^=http]','--youtube-skip-dash-manifest'],(_0x4069b4,_0x334ece)=>{if(_0x4069b4)return _0x2dc5f9(_0x4069b4);return _0x2eae43(_0x334ece);});});}}; \ No newline at end of file +const a117_0x4ea8=['searchYouTube','default','--youtube-skip-dash-manifest','thumbnail','end','failed','--yes-playlist','rmdir','track','isMusicMaster','--flat-playlist','getString','error','LISTENING','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','--geo-bypass-country=US','creator','statusText','It\x20allows\x20you\x20to\x20play\x20a\x20music\x20in\x20the\x20server,\x20from\x20the\x20given\x20query\x20or\x20from\x20any\x20supported\x20source.','https://youtu.be/','RED','requester','premiumMusic','enabled','keepAlive','join','--referer=https://bastion.traction.one','youtube.com','voiceChannel','repeat','errors','play\x20Remember\x20The\x20Name\x20by\x20Ed\x20Sheeran','--quiet','Constants','includes','streamEndHandler','duration','playing','voice','https://youtube.com/watch?v=','length','http','return\x20/\x22\x20+\x20this\x20+\x20\x22/','playlist','--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','BASTION_ERROR_TYPE','test','Artist','channels','PINK','url','speakable','--dump-json','textChannel','--no-cache-dir','history','album','client','credentials','No\x20results\x20found\x20for\x20the\x20specified\x20query.','configurations','get','apply','../../utils/omnic','tag','../../utils/errors','exec','author','name','startsWith','json','send','members','--force-ipv4','--dump-single-json','constructor','language','isPublicBastion','Up\x20Next','entries','catch','--no-playlist','items','../../utils/regex','queue','getInfo','voiceChannelId','Logger','presence','youtube-dl','uuid','\x20•\x20','Stopping\x20Playback','../../utils/constants','PREMIUM_MEMBERSHIP_REQUIRED','map','Album','URI','channel','user','connection','getSongInfo','google','title','musicDisabled','DiscordError','shift','Playing','.mp3','setActivity','artist','apiKey','musicDirectory','dispatcherFinishHandler','music','Added\x20to\x20Queue','ytsearch:','noMusicChannelsAsOwner','textChannelId','type','streamInfoHandler','pipe','activity','&key=','musicDownloadError','unspeakable','--no-warnings','promises','INVALID_COMMAND_SYNTAX','COLORS','--format=bestaudio[protocol^=http]','joinable','alt_title','startStreamDispatcher','--ignore-errors','musicDisabledPublic','locale','webpage_url','cache','skipVotes','filter','push','play\x20https://www.youtube.com/watch?v=dQw4w9WgXcQ','setDeaf','document','noMusicChannels','member','fetchPremiumTier','videoId'];(function(_0x43ad4e,_0x2357b9){const _0x4ea8bb=function(_0x493d10){while(--_0x493d10){_0x43ad4e['push'](_0x43ad4e['shift']());}},_0x2db6f4=function(){const _0x17e447={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ee289,_0x1e0812,_0x4b616b,_0x271952){_0x271952=_0x271952||{};let _0x3dbbd1=_0x1e0812+'='+_0x4b616b,_0x241319=0x0;for(let _0x179bac=0x0,_0x35dd8d=_0x3ee289['length'];_0x179bac<_0x35dd8d;_0x179bac++){const _0x410831=_0x3ee289[_0x179bac];_0x3dbbd1+=';\x20'+_0x410831;const _0x3b6db4=_0x3ee289[_0x410831];_0x3ee289['push'](_0x3b6db4),_0x35dd8d=_0x3ee289['length'],_0x3b6db4!==!![]&&(_0x3dbbd1+='='+_0x3b6db4);}_0x271952['cookie']=_0x3dbbd1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2385a6,_0x3bb2bf){_0x2385a6=_0x2385a6||function(_0x3703b8){return _0x3703b8;};const _0x57bc44=_0x2385a6(new RegExp('(?:^|;\x20)'+_0x3bb2bf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x19fcff=function(_0x2452b2,_0x86d4a6){_0x2452b2(++_0x86d4a6);};return _0x19fcff(_0x4ea8bb,_0x2357b9),_0x57bc44?decodeURIComponent(_0x57bc44[0x1]):undefined;}},_0x2fc532=function(){const _0x4f099f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4f099f['test'](_0x17e447['removeCookie']['toString']());};_0x17e447['updateCookie']=_0x2fc532;let _0x37231f='';const _0x52054b=_0x17e447['updateCookie']();if(!_0x52054b)_0x17e447['setCookie'](['*'],'counter',0x1);else _0x52054b?_0x37231f=_0x17e447['getCookie'](null,'counter'):_0x17e447['removeCookie']();};_0x2db6f4();}(a117_0x4ea8,0xc3));const a117_0x2db6=function(_0x43ad4e,_0x2357b9){_0x43ad4e=_0x43ad4e-0x12c;let _0x4ea8bb=a117_0x4ea8[_0x43ad4e];return _0x4ea8bb;};const a117_0x560012=a117_0x2db6,a117_0x2fc532=function(){let _0x52054b=!![];return function(_0x3ee289,_0x1e0812){const _0x4b616b=_0x52054b?function(){const _0x4ea880=a117_0x2db6;if(_0x1e0812){const _0x271952=_0x1e0812[_0x4ea880(0x13e)](_0x3ee289,arguments);return _0x1e0812=null,_0x271952;}}:function(){};return _0x52054b=![],_0x4b616b;};}(),a117_0x17e447=a117_0x2fc532(this,function(){const _0x3dbbd1=function(){const _0x32ccd2=a117_0x2db6,_0x241319=_0x3dbbd1[_0x32ccd2(0x14b)](_0x32ccd2(0x1c0))()['constructor'](_0x32ccd2(0x1a4));return!_0x241319[_0x32ccd2(0x12e)](a117_0x17e447);};return _0x3dbbd1();});a117_0x17e447();'use strict';const fs=require('fs'),tesseract_1=require('@bastion/tesseract'),node_fetch_1=require('node-fetch'),youtube=require(a117_0x560012(0x159)),uuid_1=require(a117_0x560012(0x15a)),constants=require(a117_0x560012(0x15d)),errors=require(a117_0x560012(0x141)),omnic=require(a117_0x560012(0x13f)),regex=require(a117_0x560012(0x153));module['exports']=class Play extends tesseract_1['Command']{constructor(){const _0x550660=a117_0x560012;super('play',{'description':_0x550660(0x1a8),'triggers':[],'arguments':{},'scope':_0x550660(0x1a3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x550660(0x1b5),_0x550660(0x18e)]}),this[_0x550660(0x195)]=async _0x179bac=>{const _0x3e0f58=_0x550660,_0x35dd8d=await node_fetch_1[_0x3e0f58(0x196)]('https://youtube.googleapis.com/youtube/v3/search?part=id®ionCode=US&type=video&maxResults=5&q='+encodeURIComponent(_0x179bac)+_0x3e0f58(0x17b)+this[_0x3e0f58(0x139)][_0x3e0f58(0x13a)]['google'][_0x3e0f58(0x16f)]);if(_0x35dd8d['ok']){const _0x410831=await _0x35dd8d[_0x3e0f58(0x146)]();if(_0x410831[_0x3e0f58(0x152)][_0x3e0f58(0x1be)])return _0x410831[_0x3e0f58(0x152)][0x0]['id'][_0x3e0f58(0x194)];throw _0x3e0f58(0x13b);}else throw _0x35dd8d[_0x3e0f58(0x1a7)];},this['prepareStream']=(_0x3b6db4,_0x2385a6,_0x3bb2bf)=>{return new Promise((_0x57bc44,_0x19fcff)=>{const _0x151699=a117_0x2db6,_0x3703b8=uuid_1['v4'](),_0x2452b2=youtube(_0x3b6db4,[_0x151699(0x186),_0x151699(0x149),_0x151699(0x1a5),_0x151699(0x151),_0x151699(0x136),'--dump-json',_0x151699(0x1b6),_0x151699(0x17e),_0x151699(0x12c),'--referer=https://bastion.traction.one',_0x151699(0x182),_0x151699(0x197)],{});_0x2452b2['on']('info',_0x86d4a6=>this[_0x151699(0x178)](_0x2385a6[_0x151699(0x1a3)],{..._0x86d4a6,'id':_0x3703b8,'requester':_0x2385a6[_0x151699(0x143)]['id']})),_0x2452b2['on'](_0x151699(0x199),()=>{const _0x45a88e=_0x151699;this[_0x45a88e(0x1b9)](_0x2385a6[_0x45a88e(0x1a3)]),_0x57bc44(!![]);}),_0x2452b2['on'](_0x151699(0x1a1),()=>{const _0x1da759=_0x151699;_0x3bb2bf&&_0x2385a6['channel'][_0x1da759(0x147)]({'embed':{'color':tesseract_1[_0x1da759(0x1b7)][_0x1da759(0x181)][_0x1da759(0x1aa)],'description':this[_0x1da759(0x139)][_0x1da759(0x188)][_0x1da759(0x1a0)](_0x2385a6[_0x1da759(0x1a3)]['document'][_0x1da759(0x14c)],'errors',_0x1da759(0x17c))}})[_0x1da759(0x150)](()=>{}),_0x19fcff(this[_0x1da759(0x139)]['locale'][_0x1da759(0x1a0)](_0x2385a6[_0x1da759(0x1a3)][_0x1da759(0x190)][_0x1da759(0x14c)],_0x1da759(0x1b4),_0x1da759(0x17c)));}),_0x2452b2[_0x151699(0x179)](fs['createWriteStream'](this[_0x151699(0x170)]+_0x2385a6[_0x151699(0x1a3)]['id']+'/'+_0x3703b8+_0x151699(0x16c)));});},this[_0x550660(0x178)]=(_0x4f099f,_0x53099d)=>{const _0x3475c2=_0x550660,_0xea8882=_0x53099d['id'],_0x5ae373=_0x53099d[_0x3475c2(0x19d)]||_0x53099d[_0x3475c2(0x167)]||_0x53099d['fulltitle']||_0x53099d[_0x3475c2(0x184)],_0x2a9837=_0x53099d['album'],_0xcb66c6=_0x53099d[_0x3475c2(0x16e)]||_0x53099d[_0x3475c2(0x1a6)]||_0x53099d['uploader'],_0x467b4f=_0x53099d[_0x3475c2(0x1ba)],_0x92ffec=_0x53099d[_0x3475c2(0x198)],_0x450668=_0x53099d[_0x3475c2(0x1ab)];_0x4f099f[_0x3475c2(0x172)][_0x3475c2(0x154)][_0x3475c2(0x18d)]({'id':_0xea8882,'track':_0x5ae373,'album':_0x2a9837,'artist':_0xcb66c6,'duration':_0x467b4f,'thumbnail':_0x92ffec,'requester':_0x450668});const _0x4012a9=[];_0x2a9837&&_0x4012a9[_0x3475c2(0x18d)]({'name':_0x3475c2(0x160),'value':_0x2a9837,'inline':!![]}),_0xcb66c6&&_0x4012a9[_0x3475c2(0x18d)]({'name':'Artist','value':_0xcb66c6,'inline':!![]}),_0x4f099f[_0x3475c2(0x172)][_0x3475c2(0x135)][_0x3475c2(0x147)]({'embed':{'color':tesseract_1['Constants'][_0x3475c2(0x181)]['PINK'],'title':_0x3475c2(0x173),'description':_0x5ae373,'fields':_0x4012a9,'thumbnail':{'url':_0x92ffec},'footer':{'text':(_0x4f099f[_0x3475c2(0x172)]['queue']['length']?'#'+(_0x4f099f[_0x3475c2(0x172)][_0x3475c2(0x154)]['length']-0x1):_0x3475c2(0x14e))+('\x20•\x20'+_0x467b4f+_0x3475c2(0x15b)+(_0x4f099f[_0x3475c2(0x148)][_0x3475c2(0x18a)][_0x3475c2(0x13d)](_0x450668)['user'][_0x3475c2(0x140)]||_0x450668))}}})[_0x3475c2(0x150)](()=>{});},this[_0x550660(0x1b9)]=_0x5b6e54=>{const _0x1b2b8f=_0x550660;!_0x5b6e54[_0x1b2b8f(0x172)][_0x1b2b8f(0x1bb)]&&this[_0x1b2b8f(0x185)](_0x5b6e54);},this[_0x550660(0x185)]=_0x5a8e87=>{const _0x1d3892=_0x550660;if(_0x5a8e87[_0x1d3892(0x172)][_0x1d3892(0x154)][_0x1d3892(0x1be)]){const _0x46307e=_0x5a8e87[_0x1d3892(0x172)]['queue'][0x0],_0x5c9c4d=[];_0x46307e[_0x1d3892(0x138)]&&_0x5c9c4d[_0x1d3892(0x18d)]({'name':_0x1d3892(0x160),'value':_0x46307e[_0x1d3892(0x138)],'inline':!![]});_0x46307e['artist']&&_0x5c9c4d[_0x1d3892(0x18d)]({'name':_0x1d3892(0x12f),'value':_0x46307e['artist'],'inline':!![]});_0x5a8e87[_0x1d3892(0x172)][_0x1d3892(0x135)][_0x1d3892(0x147)]({'embed':{'color':tesseract_1[_0x1d3892(0x1b7)]['COLORS'][_0x1d3892(0x131)],'title':_0x1d3892(0x16b),'description':_0x46307e[_0x1d3892(0x19d)],'fields':_0x5c9c4d,'thumbnail':{'url':_0x46307e['thumbnail']},'footer':{'text':_0x46307e[_0x1d3892(0x1ba)]+_0x1d3892(0x15b)+(_0x5a8e87[_0x1d3892(0x148)]['cache'][_0x1d3892(0x13d)](_0x46307e['requester'])['user']['tag']||_0x46307e[_0x1d3892(0x1ab)])}}})['catch'](()=>{}),_0x5a8e87[_0x1d3892(0x172)][_0x1d3892(0x1bb)]=!![];const _0x44064a=_0x5a8e87[_0x1d3892(0x1bc)]&&_0x5a8e87[_0x1d3892(0x1bc)][_0x1d3892(0x164)]['play'](this[_0x1d3892(0x170)]+_0x5a8e87['id']+'/'+_0x46307e['id']+_0x1d3892(0x16c));this[_0x1d3892(0x139)][_0x1d3892(0x13c)][_0x1d3892(0x172)]&&this[_0x1d3892(0x139)]['configurations'][_0x1d3892(0x172)][_0x1d3892(0x17a)]&&this[_0x1d3892(0x139)][_0x1d3892(0x163)][_0x1d3892(0x16d)]({'name':_0x46307e['track'],'type':_0x1d3892(0x1a2)})['catch'](()=>{}),_0x44064a['on']('finish',()=>this['dispatcherFinishHandler'](_0x5a8e87)),_0x44064a['on'](_0x1d3892(0x1a1),_0x49106e=>{const _0x4f65b8=_0x1d3892;tesseract_1['Logger'][_0x4f65b8(0x1a1)](_0x49106e),this['dispatcherFinishHandler'](_0x5a8e87);});}else _0x5a8e87[_0x1d3892(0x172)][_0x1d3892(0x154)]=[],_0x5a8e87[_0x1d3892(0x172)][_0x1d3892(0x137)]=[],fs[_0x1d3892(0x17f)][_0x1d3892(0x19c)](this[_0x1d3892(0x170)]+_0x5a8e87['id'],{'recursive':!![]})['catch'](()=>{}),this[_0x1d3892(0x139)]['configurations'][_0x1d3892(0x172)]&&this[_0x1d3892(0x139)][_0x1d3892(0x13c)]['music']['activity']&&this[_0x1d3892(0x139)]['user'][_0x1d3892(0x16d)](this[_0x1d3892(0x139)]['configurations'][_0x1d3892(0x158)]instanceof Array?this[_0x1d3892(0x139)]['configurations'][_0x1d3892(0x158)][0x0][_0x1d3892(0x17a)]:this[_0x1d3892(0x139)][_0x1d3892(0x13c)][_0x1d3892(0x158)][_0x1d3892(0x17a)])[_0x1d3892(0x150)](()=>{}),!_0x5a8e87[_0x1d3892(0x190)][_0x1d3892(0x172)][_0x1d3892(0x1ae)]&&(_0x5a8e87[_0x1d3892(0x1bc)]&&_0x5a8e87[_0x1d3892(0x1bc)][_0x1d3892(0x162)]['leave']()),_0x5a8e87[_0x1d3892(0x172)]['textChannel']['send']({'embed':{'color':tesseract_1[_0x1d3892(0x1b7)][_0x1d3892(0x181)][_0x1d3892(0x131)],'title':_0x1d3892(0x15c)}})['catch'](()=>{});},this[_0x550660(0x171)]=_0x336f01=>{const _0x570025=_0x550660;_0x336f01[_0x570025(0x172)]['playing']=![],_0x336f01[_0x570025(0x172)][_0x570025(0x18b)]=[],_0x336f01[_0x570025(0x172)][_0x570025(0x154)][_0x570025(0x1be)]&&_0x336f01[_0x570025(0x172)]['history'][_0x570025(0x18d)](_0x336f01[_0x570025(0x172)][_0x570025(0x154)][_0x570025(0x16a)]()),!_0x336f01['music'][_0x570025(0x154)][_0x570025(0x1be)]&&_0x336f01[_0x570025(0x172)][_0x570025(0x1b3)]&&(_0x336f01[_0x570025(0x172)][_0x570025(0x154)]=_0x336f01[_0x570025(0x172)][_0x570025(0x137)],_0x336f01[_0x570025(0x172)]['history']=[]),this[_0x570025(0x185)](_0x336f01);},this[_0x550660(0x142)]=async(_0x1fdff6,_0x3e9513)=>{const _0x36067a=_0x550660,_0x18d9b1=_0x1fdff6[_0x36067a(0x1a3)];if(!_0x18d9b1[_0x36067a(0x190)][_0x36067a(0x172)]||!_0x18d9b1[_0x36067a(0x190)][_0x36067a(0x172)][_0x36067a(0x1ad)])return await _0x1fdff6[_0x36067a(0x162)][_0x36067a(0x147)]({'embed':{'color':tesseract_1[_0x36067a(0x1b7)][_0x36067a(0x181)][_0x36067a(0x1aa)],'description':this[_0x36067a(0x139)][_0x36067a(0x188)][_0x36067a(0x1a0)](_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x190)][_0x36067a(0x14c)],'errors',constants[_0x36067a(0x14d)](_0x1fdff6['author'])?_0x36067a(0x187):_0x36067a(0x168))}})['catch'](()=>{});if(constants[_0x36067a(0x14d)](this[_0x36067a(0x139)]['user'])){const _0xa1612c=await omnic[_0x36067a(0x193)](_0x1fdff6[_0x36067a(0x1a3)])['catch'](()=>{});if(!_0xa1612c)throw new errors[(_0x36067a(0x169))](errors[_0x36067a(0x12d)][_0x36067a(0x15e)],this['client'][_0x36067a(0x188)]['getString'](_0x1fdff6[_0x36067a(0x1a3)]['document'][_0x36067a(0x14c)],_0x36067a(0x1b4),_0x36067a(0x1ac)));}const _0x18137b=_0x3e9513['_']['join']('\x20'),_0x202bcb=regex[_0x36067a(0x161)][_0x36067a(0x12e)](_0x18137b),_0x2ab8f3=_0x202bcb?_0x18137b[_0x36067a(0x145)]('http')&&_0x18137b[_0x36067a(0x1b8)](_0x36067a(0x1b1))&&_0x18137b[_0x36067a(0x1b8)](_0x36067a(0x1c1))?await this[_0x36067a(0x165)](_0x18137b,!![]):null:await this['getSongInfo'](_0x18137b),_0x36e100=_0x2ab8f3?_0x18137b[_0x36067a(0x145)](_0x36067a(0x1bf))&&_0x18137b[_0x36067a(0x1b8)](_0x36067a(0x1b1))&&_0x18137b[_0x36067a(0x1b8)](_0x36067a(0x1c1))?_0x2ab8f3[_0x36067a(0x14f)][_0x36067a(0x15f)](_0x53f13d=>_0x36067a(0x1a9)+_0x53f13d['id']):[_0x2ab8f3[_0x36067a(0x189)]||_0x2ab8f3[_0x36067a(0x132)]]:_0x202bcb?[_0x18137b]:null;if(!_0x36e100||!_0x36e100[_0x36067a(0x1be)])throw new errors[(_0x36067a(0x169))](errors['BASTION_ERROR_TYPE'][_0x36067a(0x180)],this['name']);_0x18d9b1['music'][_0x36067a(0x135)]=_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x130)][_0x36067a(0x18a)]['has'](_0x18d9b1[_0x36067a(0x190)]['music'][_0x36067a(0x176)])?_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x130)][_0x36067a(0x18a)][_0x36067a(0x13d)](_0x18d9b1[_0x36067a(0x190)][_0x36067a(0x172)]['textChannelId']):_0x1fdff6[_0x36067a(0x162)],_0x18d9b1['music']['voiceChannel']=_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x1bc)]&&_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x1bc)][_0x36067a(0x164)]?_0x1fdff6[_0x36067a(0x1a3)]['voice'][_0x36067a(0x162)]:_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x130)]['cache']['filter'](_0x385495=>_0x385495[_0x36067a(0x177)]===_0x36067a(0x1bc))['has'](_0x18d9b1[_0x36067a(0x190)][_0x36067a(0x172)][_0x36067a(0x156)])?_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x130)]['cache'][_0x36067a(0x18c)](_0x505200=>_0x505200[_0x36067a(0x177)]===_0x36067a(0x1bc))[_0x36067a(0x13d)](_0x18d9b1[_0x36067a(0x190)][_0x36067a(0x172)][_0x36067a(0x156)]):_0x1fdff6['member'][_0x36067a(0x19e)]()?_0x1fdff6['member'][_0x36067a(0x1bc)][_0x36067a(0x162)]:null;if(!_0x18d9b1[_0x36067a(0x172)][_0x36067a(0x1b2)])return await _0x1fdff6[_0x36067a(0x162)][_0x36067a(0x147)]({'embed':{'color':tesseract_1[_0x36067a(0x1b7)]['COLORS'][_0x36067a(0x1aa)],'description':this[_0x36067a(0x139)][_0x36067a(0x188)][_0x36067a(0x1a0)](_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x190)][_0x36067a(0x14c)],'errors',_0x1fdff6[_0x36067a(0x192)][_0x36067a(0x19e)]()?_0x36067a(0x175):_0x36067a(0x191))}})[_0x36067a(0x150)](()=>{});if(!_0x18d9b1[_0x36067a(0x172)]['voiceChannel'][_0x36067a(0x183)])return await _0x1fdff6['channel'][_0x36067a(0x147)]({'embed':{'color':tesseract_1['Constants'][_0x36067a(0x181)][_0x36067a(0x1aa)],'description':this[_0x36067a(0x139)][_0x36067a(0x188)][_0x36067a(0x1a0)](_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x190)][_0x36067a(0x14c)],_0x36067a(0x1b4),'unjoinable',_0x18d9b1[_0x36067a(0x172)][_0x36067a(0x1b2)]['name'])}})[_0x36067a(0x150)](()=>{});if(!_0x18d9b1[_0x36067a(0x172)][_0x36067a(0x1b2)][_0x36067a(0x133)])return await _0x1fdff6[_0x36067a(0x162)][_0x36067a(0x147)]({'embed':{'color':tesseract_1[_0x36067a(0x1b7)][_0x36067a(0x181)][_0x36067a(0x1aa)],'description':this['client'][_0x36067a(0x188)][_0x36067a(0x1a0)](_0x1fdff6[_0x36067a(0x1a3)][_0x36067a(0x190)]['language'],_0x36067a(0x1b4),_0x36067a(0x17d),_0x18d9b1['music'][_0x36067a(0x1b2)][_0x36067a(0x144)])}})[_0x36067a(0x150)](()=>{});const _0x4812d7=await _0x18d9b1[_0x36067a(0x172)]['voiceChannel'][_0x36067a(0x1af)]();_0x4812d7['on']('error',tesseract_1[_0x36067a(0x157)][_0x36067a(0x1a1)]),_0x4812d7['on'](_0x36067a(0x19a),tesseract_1[_0x36067a(0x157)][_0x36067a(0x1a1)]),_0x1fdff6[_0x36067a(0x1a3)]['me']['voice']['setMute'](![])['catch'](()=>{}),_0x1fdff6[_0x36067a(0x1a3)]['me'][_0x36067a(0x1bc)][_0x36067a(0x18f)](!![])[_0x36067a(0x150)](()=>{}),await fs['promises']['mkdir'](this[_0x36067a(0x170)]+_0x1fdff6[_0x36067a(0x1a3)]['id']+'/',{'recursive':!![]})['catch'](tesseract_1[_0x36067a(0x157)][_0x36067a(0x1a1)]);for(const _0x1b835f of _0x36e100){await this['prepareStream'](_0x1b835f,_0x1fdff6,_0x36e100[_0x36067a(0x1be)]>0x1)[_0x36067a(0x150)](tesseract_1['Logger'][_0x36067a(0x1a1)]);}},this['musicDirectory']='./music/';}[a117_0x560012(0x165)](_0x4c02b4,_0xe8bd5a){return new Promise(async(_0x1496ef,_0x492ac9)=>{const _0x18955f=a117_0x2db6;if(this['client'][_0x18955f(0x13a)][_0x18955f(0x166)]&&this['client'][_0x18955f(0x13a)][_0x18955f(0x166)][_0x18955f(0x16f)]&&!regex[_0x18955f(0x161)][_0x18955f(0x12e)](_0x4c02b4)){const _0x6d56c9=await this[_0x18955f(0x195)](_0x4c02b4)['catch'](()=>{});if(_0x6d56c9)return _0x1496ef({'url':_0x18955f(0x1a9)+_0x6d56c9,'webpage_url':_0x18955f(0x1bd)+_0x6d56c9});}youtube[_0x18955f(0x155)](regex[_0x18955f(0x161)][_0x18955f(0x12e)](_0x4c02b4)?_0x4c02b4:_0x18955f(0x174)+_0x4c02b4,[_0x18955f(0x186),'--force-ipv4','--geo-bypass-country=US',..._0xe8bd5a?[_0x18955f(0x19f),_0x18955f(0x19b)]:['--no-playlist'],_0x18955f(0x136),_0xe8bd5a?_0x18955f(0x14a):_0x18955f(0x134),'--quiet',_0x18955f(0x17e),'--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',_0x18955f(0x1b0),_0x18955f(0x182),'--youtube-skip-dash-manifest'],(_0x39e926,_0x5c10d9)=>{if(_0x39e926)return _0x492ac9(_0x39e926);return _0x1496ef(_0x5c10d9);});});}}; \ No newline at end of file diff --git a/commands/music/queue.js b/commands/music/queue.js index 9998b2fe5..81d18a88c 100644 --- a/commands/music/queue.js +++ b/commands/music/queue.js @@ -1 +1 @@ -const a117_0x3019=['COLORS','has','info','isPublicBastion','Music\x20Queue','streamTime','guild','pausedTime','test','musicQueueShuffle','apply','getString','../../utils/arrays','constructor','send','../../utils/constants','album','../../utils/numbers','dispatcher','length','connection','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','queue\x20--shuffle','isMusicMaster','Unknown\x20Artist','music','musicQueueRepeatEnabled','musicDisabled','\x20•\x20','Constants','queue\x20--remove\x2013','get','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.','musicDisabledPublic','slice','items','clear','errors','musicQueueClean','author','musicQueueRemove','repeat','users','queue\x20--clear','track','queue','musicQueueRepeatDisable','textChannel','tag','client','page','locale','document','language','remove','\x20•\x20Page\x20','PINK','toString','playing','catch','loop','map','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','floor','enabled','exec','\x20/\x20','cache','history','@bastion/tesseract','exports','voice','queue\x20--loop','paginate','shuffle','requester','member'];(function(_0x43bee3,_0x2bfe24){const _0x30195c=function(_0x193148){while(--_0x193148){_0x43bee3['push'](_0x43bee3['shift']());}},_0x501316=function(){const _0x2f4ad7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x31480e,_0x311f06,_0x4197f7,_0x1d23fb){_0x1d23fb=_0x1d23fb||{};let _0x18e4c7=_0x311f06+'='+_0x4197f7,_0x4c89c4=0x0;for(let _0x59c241=0x0,_0x1574d5=_0x31480e['length'];_0x59c241<_0x1574d5;_0x59c241++){const _0x266f96=_0x31480e[_0x59c241];_0x18e4c7+=';\x20'+_0x266f96;const _0x301440=_0x31480e[_0x266f96];_0x31480e['push'](_0x301440),_0x1574d5=_0x31480e['length'],_0x301440!==!![]&&(_0x18e4c7+='='+_0x301440);}_0x1d23fb['cookie']=_0x18e4c7;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe358f5,_0x1edcea){_0xe358f5=_0xe358f5||function(_0x2c9169){return _0x2c9169;};const _0x33c4eb=_0xe358f5(new RegExp('(?:^|;\x20)'+_0x1edcea['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5a66cc=function(_0x4de43a,_0x423e74){_0x4de43a(++_0x423e74);};return _0x5a66cc(_0x30195c,_0x2bfe24),_0x33c4eb?decodeURIComponent(_0x33c4eb[0x1]):undefined;}},_0x3f200a=function(){const _0x3e128a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e128a['test'](_0x2f4ad7['removeCookie']['toString']());};_0x2f4ad7['updateCookie']=_0x3f200a;let _0x45b6fb='';const _0x4c58d6=_0x2f4ad7['updateCookie']();if(!_0x4c58d6)_0x2f4ad7['setCookie'](['*'],'counter',0x1);else _0x4c58d6?_0x45b6fb=_0x2f4ad7['getCookie'](null,'counter'):_0x2f4ad7['removeCookie']();};_0x501316();}(a117_0x3019,0x1b9));const a117_0x5013=function(_0x43bee3,_0x2bfe24){_0x43bee3=_0x43bee3-0x1a2;let _0x30195c=a117_0x3019[_0x43bee3];return _0x30195c;};const _0x2bcf90=a117_0x5013,a117_0x3f200a=function(){let _0x4c58d6=!![];return function(_0x31480e,_0x311f06){const _0x4197f7=_0x4c58d6?function(){const _0x4217ee=a117_0x5013;if(_0x311f06){const _0x1d23fb=_0x311f06[_0x4217ee(0x1c7)](_0x31480e,arguments);return _0x311f06=null,_0x1d23fb;}}:function(){};return _0x4c58d6=![],_0x4197f7;};}(),a117_0x2f4ad7=a117_0x3f200a(this,function(){const _0x18e4c7=function(){const _0x384d28=a117_0x5013,_0x4c89c4=_0x18e4c7[_0x384d28(0x1ca)](_0x384d28(0x1ad))()['constructor'](_0x384d28(0x1d2));return!_0x4c89c4[_0x384d28(0x1c5)](a117_0x2f4ad7);};return _0x18e4c7();});a117_0x2f4ad7();'use strict';const tesseract_1=require(_0x2bcf90(0x1b5)),arrays=require(_0x2bcf90(0x1c9)),constants=require(_0x2bcf90(0x1cc)),numbers=require(_0x2bcf90(0x1ce)),pagination=require('../../utils/pagination');module[_0x2bcf90(0x1b6)]=class Queue extends tesseract_1['Command']{constructor(){const _0x2a7c92=_0x2bcf90;super(_0x2a7c92(0x1ea),{'description':_0x2a7c92(0x1dd),'triggers':[],'arguments':{'alias':{'clear':['c'],'loop':['l'],'remove':['r'],'shuffle':['s']},'boolean':[_0x2a7c92(0x1e1),_0x2a7c92(0x1ab),_0x2a7c92(0x1ba)],'number':[_0x2a7c92(0x1a5)]},'scope':_0x2a7c92(0x1c3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2a7c92(0x1ea),_0x2a7c92(0x1b8),_0x2a7c92(0x1d3),_0x2a7c92(0x1e8),_0x2a7c92(0x1db)]}),this[_0x2a7c92(0x1b1)]=async(_0x59c241,_0x1574d5)=>{const _0x514d73=_0x2a7c92,_0x266f96=_0x59c241[_0x514d73(0x1c3)];if(!_0x266f96['document'][_0x514d73(0x1d6)]||!_0x266f96[_0x514d73(0x1a3)][_0x514d73(0x1d6)][_0x514d73(0x1b0)])return await _0x59c241['channel']['send']({'embed':{'color':tesseract_1[_0x514d73(0x1da)][_0x514d73(0x1bd)]['RED'],'description':this['client'][_0x514d73(0x1a2)][_0x514d73(0x1c8)](_0x59c241[_0x514d73(0x1c3)][_0x514d73(0x1a3)][_0x514d73(0x1a4)],_0x514d73(0x1e2),constants[_0x514d73(0x1c0)](_0x59c241[_0x514d73(0x1e4)])?_0x514d73(0x1de):_0x514d73(0x1d8))}})[_0x514d73(0x1aa)](()=>{});if(_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1a9)]&&_0x266f96['voice']&&_0x266f96[_0x514d73(0x1b7)][_0x514d73(0x1d1)][_0x514d73(0x1cf)]){const _0x301440=_0x266f96[_0x514d73(0x1d6)]['queue'][0x0];if(_0x1574d5[_0x514d73(0x1e1)]){if(!_0x59c241['member'][_0x514d73(0x1d4)]())return;_0x266f96['music'][_0x514d73(0x1ea)]=[_0x301440],_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1b4)]=[],_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1ec)][_0x514d73(0x1cb)]({'embed':{'color':tesseract_1[_0x514d73(0x1da)][_0x514d73(0x1bd)]['PINK'],'description':this[_0x514d73(0x1ee)][_0x514d73(0x1a2)][_0x514d73(0x1c8)](_0x59c241[_0x514d73(0x1c3)][_0x514d73(0x1a3)][_0x514d73(0x1a4)],'info',_0x514d73(0x1e3),_0x59c241[_0x514d73(0x1e4)][_0x514d73(0x1ed)])}})[_0x514d73(0x1aa)](()=>{});}else{if(_0x1574d5[_0x514d73(0x1ab)])_0x266f96[_0x514d73(0x1d6)]['repeat']=!_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1e6)],_0x266f96['music'][_0x514d73(0x1ec)][_0x514d73(0x1cb)]({'embed':{'color':tesseract_1[_0x514d73(0x1da)][_0x514d73(0x1bd)][_0x514d73(0x1a7)],'description':this[_0x514d73(0x1ee)]['locale'][_0x514d73(0x1c8)](_0x59c241[_0x514d73(0x1c3)]['document'][_0x514d73(0x1a4)],_0x514d73(0x1bf),_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1e6)]?_0x514d73(0x1d7):_0x514d73(0x1eb),_0x59c241[_0x514d73(0x1e4)][_0x514d73(0x1ed)])}})[_0x514d73(0x1aa)](()=>{});else{if(_0x1574d5[_0x514d73(0x1a5)]&&_0x266f96[_0x514d73(0x1d6)]['queue'][_0x514d73(0x1d0)]>0x1&&numbers['inRange'](_0x1574d5[_0x514d73(0x1a5)],0x1,_0x266f96['music'][_0x514d73(0x1ea)][_0x514d73(0x1d0)]-0x1)){if(!_0x59c241[_0x514d73(0x1bc)][_0x514d73(0x1d4)]()&&_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1ea)][_0x1574d5[_0x514d73(0x1a5)]][_0x514d73(0x1bb)]!==_0x59c241[_0x514d73(0x1e4)]['id'])return;const _0xe358f5=_0x266f96['music'][_0x514d73(0x1ea)]['splice'](_0x1574d5[_0x514d73(0x1a5)],0x1)[0x0];_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1ec)][_0x514d73(0x1cb)]({'embed':{'color':tesseract_1[_0x514d73(0x1da)][_0x514d73(0x1bd)][_0x514d73(0x1a7)],'description':this[_0x514d73(0x1ee)]['locale']['getString'](_0x59c241[_0x514d73(0x1c3)][_0x514d73(0x1a3)][_0x514d73(0x1a4)],'info',_0x514d73(0x1e5),_0x59c241[_0x514d73(0x1e4)][_0x514d73(0x1ed)],_0xe358f5[_0x514d73(0x1e9)],this[_0x514d73(0x1ee)][_0x514d73(0x1e7)][_0x514d73(0x1b3)][_0x514d73(0x1be)](_0xe358f5[_0x514d73(0x1bb)])?this[_0x514d73(0x1ee)]['users']['cache'][_0x514d73(0x1dc)](_0xe358f5[_0x514d73(0x1bb)])[_0x514d73(0x1ed)]:_0xe358f5[_0x514d73(0x1bb)])}})[_0x514d73(0x1aa)](()=>{});}else{if(_0x1574d5[_0x514d73(0x1ba)]){if(!_0x59c241[_0x514d73(0x1bc)][_0x514d73(0x1d4)]())return;const _0x1edcea=arrays[_0x514d73(0x1ba)](_0x266f96['music'][_0x514d73(0x1ea)][_0x514d73(0x1df)](0x1));_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1ea)]=[_0x301440,..._0x1edcea],_0x266f96[_0x514d73(0x1d6)]['textChannel'][_0x514d73(0x1cb)]({'embed':{'color':tesseract_1[_0x514d73(0x1da)][_0x514d73(0x1bd)][_0x514d73(0x1a7)],'description':this['client'][_0x514d73(0x1a2)][_0x514d73(0x1c8)](_0x59c241[_0x514d73(0x1c3)][_0x514d73(0x1a3)][_0x514d73(0x1a4)],'info',_0x514d73(0x1c6),_0x59c241[_0x514d73(0x1e4)][_0x514d73(0x1ed)])}})[_0x514d73(0x1aa)](()=>{});}else{const _0x33c4eb=_0x266f96['voice'][_0x514d73(0x1d1)][_0x514d73(0x1cf)][_0x514d73(0x1c2)]-_0x266f96['voice']['connection'][_0x514d73(0x1cf)][_0x514d73(0x1c4)],_0x5a66cc=pagination[_0x514d73(0x1b9)](_0x266f96[_0x514d73(0x1d6)]['queue']['slice'](0x1),_0x1574d5['page']);_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1ec)][_0x514d73(0x1cb)]({'embed':{'color':tesseract_1['Constants'][_0x514d73(0x1bd)]['PINK'],'title':_0x514d73(0x1c1),'description':this[_0x514d73(0x1ee)][_0x514d73(0x1a2)][_0x514d73(0x1c8)](_0x59c241[_0x514d73(0x1c3)]['document'][_0x514d73(0x1a4)],_0x514d73(0x1bf),'musicQueueCount',(_0x266f96[_0x514d73(0x1d6)][_0x514d73(0x1ea)]['length']-0x1)[_0x514d73(0x1a8)]()),'fields':_0x5a66cc[_0x514d73(0x1e0)][_0x514d73(0x1ac)]((_0x2c9169,_0x4de43a)=>({'name':'#'+(_0x4de43a+0x1)+'\x20-\x20'+_0x2c9169[_0x514d73(0x1e9)],'value':''+(_0x2c9169['artist']||_0x514d73(0x1d5))+(_0x2c9169['album']&&_0x2c9169['track']!==_0x2c9169[_0x514d73(0x1cd)]?'\x20-\x20'+_0x2c9169['album']:'')})),'footer':{'text':_0x301440[_0x514d73(0x1e9)]+_0x514d73(0x1d9)+Math[_0x514d73(0x1af)](_0x33c4eb/0xea60)+':'+Math[_0x514d73(0x1af)](_0x33c4eb%0xea60/0x3e8)+_0x514d73(0x1b2)+_0x301440['duration']+_0x514d73(0x1d9)+_0x266f96[_0x514d73(0x1b7)][_0x514d73(0x1d1)][_0x514d73(0x1ae)]['name']+_0x514d73(0x1a6)+_0x5a66cc[_0x514d73(0x1ef)]+'\x20of\x20'+_0x5a66cc['pages']}}})[_0x514d73(0x1aa)](()=>{});}}}}}};}}; \ No newline at end of file +const a118_0x1c07=['send','pausedTime','track','history','../../utils/constants','info','PINK','playing','Music\x20Queue','shuffle','clear','getString','textChannel','name','page','has','queue\x20--shuffle','toString','musicDisabledPublic','queue\x20--clear','splice','guild','member','errors','map','\x20of\x20','@bastion/tesseract','items','Constants','RED','get','length','tag','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','repeat','../../utils/arrays','voice','queue','remove','apply','channel','COLORS','client','../../utils/pagination','isMusicMaster','isPublicBastion','document','pages','../../utils/numbers','streamTime','musicQueueCount','connection','catch','test','users','musicDisabled','locale','duration','dispatcher','author','floor','queue\x20--loop','language','album','\x20-\x20','\x20•\x20Page\x20','exports','exec','Unknown\x20Artist','queue\x20--remove\x2013','slice','loop','musicQueueClean','music','requester','inRange'];(function(_0x41bb8e,_0x12107d){const _0x1c074b=function(_0x215c17){while(--_0x215c17){_0x41bb8e['push'](_0x41bb8e['shift']());}},_0x18da58=function(){const _0x269086={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x24764e,_0x43a004,_0x218bfe,_0x45c649){_0x45c649=_0x45c649||{};let _0x15a71f=_0x43a004+'='+_0x218bfe,_0x5e1a79=0x0;for(let _0x7f1a88=0x0,_0x55f4d4=_0x24764e['length'];_0x7f1a88<_0x55f4d4;_0x7f1a88++){const _0x46c833=_0x24764e[_0x7f1a88];_0x15a71f+=';\x20'+_0x46c833;const _0x7c1ba2=_0x24764e[_0x46c833];_0x24764e['push'](_0x7c1ba2),_0x55f4d4=_0x24764e['length'],_0x7c1ba2!==!![]&&(_0x15a71f+='='+_0x7c1ba2);}_0x45c649['cookie']=_0x15a71f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a1491,_0x564341){_0x5a1491=_0x5a1491||function(_0x2d6dbb){return _0x2d6dbb;};const _0x5205c7=_0x5a1491(new RegExp('(?:^|;\x20)'+_0x564341['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23911a=function(_0x479f30,_0x2cb261){_0x479f30(++_0x2cb261);};return _0x23911a(_0x1c074b,_0x12107d),_0x5205c7?decodeURIComponent(_0x5205c7[0x1]):undefined;}},_0x40f2f2=function(){const _0xb7cc3f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xb7cc3f['test'](_0x269086['removeCookie']['toString']());};_0x269086['updateCookie']=_0x40f2f2;let _0x3b52dd='';const _0x4543d5=_0x269086['updateCookie']();if(!_0x4543d5)_0x269086['setCookie'](['*'],'counter',0x1);else _0x4543d5?_0x3b52dd=_0x269086['getCookie'](null,'counter'):_0x269086['removeCookie']();};_0x18da58();}(a118_0x1c07,0x10f));const a118_0x18da=function(_0x41bb8e,_0x12107d){_0x41bb8e=_0x41bb8e-0x196;let _0x1c074b=a118_0x1c07[_0x41bb8e];return _0x1c074b;};const a118_0x2a781b=a118_0x18da,a118_0x40f2f2=function(){let _0x4543d5=!![];return function(_0x24764e,_0x43a004){const _0x218bfe=_0x4543d5?function(){const _0xbfe2a8=a118_0x18da;if(_0x43a004){const _0x45c649=_0x43a004[_0xbfe2a8(0x196)](_0x24764e,arguments);return _0x43a004=null,_0x45c649;}}:function(){};return _0x4543d5=![],_0x218bfe;};}(),a118_0x269086=a118_0x40f2f2(this,function(){const _0x15a71f=function(){const _0x340c2b=a118_0x18da,_0x5e1a79=_0x15a71f['constructor'](_0x340c2b(0x1dd))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5e1a79[_0x340c2b(0x1a4)](a118_0x269086);};return _0x15a71f();});a118_0x269086();'use strict';const tesseract_1=require(a118_0x2a781b(0x1d5)),arrays=require(a118_0x2a781b(0x1df)),constants=require(a118_0x2a781b(0x1bf)),numbers=require(a118_0x2a781b(0x19f)),pagination=require(a118_0x2a781b(0x19a));module[a118_0x2a781b(0x1b1)]=class Queue extends tesseract_1['Command']{constructor(){const _0x1ff995=a118_0x2a781b;super(_0x1ff995(0x1e1),{'description':'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.','triggers':[],'arguments':{'alias':{'clear':['c'],'loop':['l'],'remove':['r'],'shuffle':['s']},'boolean':['clear','loop',_0x1ff995(0x1c4)],'number':[_0x1ff995(0x1e2)]},'scope':_0x1ff995(0x1d0),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1ff995(0x1e1),_0x1ff995(0x1ac),_0x1ff995(0x1cb),_0x1ff995(0x1ce),_0x1ff995(0x1b4)]}),this[_0x1ff995(0x1b2)]=async(_0x7f1a88,_0x55f4d4)=>{const _0x1453a2=_0x1ff995,_0x46c833=_0x7f1a88['guild'];if(!_0x46c833[_0x1453a2(0x19d)][_0x1453a2(0x1b8)]||!_0x46c833['document']['music']['enabled'])return await _0x7f1a88[_0x1453a2(0x197)][_0x1453a2(0x1bb)]({'embed':{'color':tesseract_1['Constants'][_0x1453a2(0x198)][_0x1453a2(0x1d8)],'description':this[_0x1453a2(0x199)][_0x1453a2(0x1a7)][_0x1453a2(0x1c6)](_0x7f1a88['guild'][_0x1453a2(0x19d)][_0x1453a2(0x1ad)],_0x1453a2(0x1d2),constants[_0x1453a2(0x19c)](_0x7f1a88[_0x1453a2(0x1aa)])?_0x1453a2(0x1cd):_0x1453a2(0x1a6))}})[_0x1453a2(0x1a3)](()=>{});if(_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1c2)]&&_0x46c833[_0x1453a2(0x1e0)]&&_0x46c833[_0x1453a2(0x1e0)][_0x1453a2(0x1a2)]['dispatcher']){const _0x7c1ba2=_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1e1)][0x0];if(_0x55f4d4[_0x1453a2(0x1c5)]){if(!_0x7f1a88['member']['isMusicMaster']())return;_0x46c833['music'][_0x1453a2(0x1e1)]=[_0x7c1ba2],_0x46c833['music'][_0x1453a2(0x1be)]=[],_0x46c833['music'][_0x1453a2(0x1c7)][_0x1453a2(0x1bb)]({'embed':{'color':tesseract_1[_0x1453a2(0x1d7)][_0x1453a2(0x198)][_0x1453a2(0x1c1)],'description':this[_0x1453a2(0x199)][_0x1453a2(0x1a7)][_0x1453a2(0x1c6)](_0x7f1a88[_0x1453a2(0x1d0)]['document'][_0x1453a2(0x1ad)],_0x1453a2(0x1c0),_0x1453a2(0x1b7),_0x7f1a88[_0x1453a2(0x1aa)][_0x1453a2(0x1db)])}})['catch'](()=>{});}else{if(_0x55f4d4[_0x1453a2(0x1b6)])_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1de)]=!_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1de)],_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1c7)]['send']({'embed':{'color':tesseract_1[_0x1453a2(0x1d7)]['COLORS'][_0x1453a2(0x1c1)],'description':this[_0x1453a2(0x199)][_0x1453a2(0x1a7)][_0x1453a2(0x1c6)](_0x7f1a88[_0x1453a2(0x1d0)][_0x1453a2(0x19d)]['language'],_0x1453a2(0x1c0),_0x46c833[_0x1453a2(0x1b8)]['repeat']?'musicQueueRepeatEnabled':'musicQueueRepeatDisable',_0x7f1a88[_0x1453a2(0x1aa)][_0x1453a2(0x1db)])}})[_0x1453a2(0x1a3)](()=>{});else{if(_0x55f4d4[_0x1453a2(0x1e2)]&&_0x46c833[_0x1453a2(0x1b8)]['queue']['length']>0x1&&numbers[_0x1453a2(0x1ba)](_0x55f4d4[_0x1453a2(0x1e2)],0x1,_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1e1)]['length']-0x1)){if(!_0x7f1a88[_0x1453a2(0x1d1)]['isMusicMaster']()&&_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1e1)][_0x55f4d4[_0x1453a2(0x1e2)]]['requester']!==_0x7f1a88[_0x1453a2(0x1aa)]['id'])return;const _0x5a1491=_0x46c833[_0x1453a2(0x1b8)]['queue'][_0x1453a2(0x1cf)](_0x55f4d4[_0x1453a2(0x1e2)],0x1)[0x0];_0x46c833[_0x1453a2(0x1b8)]['textChannel'][_0x1453a2(0x1bb)]({'embed':{'color':tesseract_1[_0x1453a2(0x1d7)]['COLORS']['PINK'],'description':this[_0x1453a2(0x199)][_0x1453a2(0x1a7)]['getString'](_0x7f1a88[_0x1453a2(0x1d0)][_0x1453a2(0x19d)][_0x1453a2(0x1ad)],_0x1453a2(0x1c0),'musicQueueRemove',_0x7f1a88[_0x1453a2(0x1aa)][_0x1453a2(0x1db)],_0x5a1491['track'],this[_0x1453a2(0x199)][_0x1453a2(0x1a5)][_0x1453a2(0x1dc)][_0x1453a2(0x1ca)](_0x5a1491[_0x1453a2(0x1b9)])?this[_0x1453a2(0x199)]['users'][_0x1453a2(0x1dc)][_0x1453a2(0x1d9)](_0x5a1491[_0x1453a2(0x1b9)])['tag']:_0x5a1491[_0x1453a2(0x1b9)])}})[_0x1453a2(0x1a3)](()=>{});}else{if(_0x55f4d4[_0x1453a2(0x1c4)]){if(!_0x7f1a88['member'][_0x1453a2(0x19b)]())return;const _0x564341=arrays['shuffle'](_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1e1)][_0x1453a2(0x1b5)](0x1));_0x46c833[_0x1453a2(0x1b8)]['queue']=[_0x7c1ba2,..._0x564341],_0x46c833['music'][_0x1453a2(0x1c7)]['send']({'embed':{'color':tesseract_1[_0x1453a2(0x1d7)][_0x1453a2(0x198)][_0x1453a2(0x1c1)],'description':this[_0x1453a2(0x199)]['locale'][_0x1453a2(0x1c6)](_0x7f1a88[_0x1453a2(0x1d0)]['document'][_0x1453a2(0x1ad)],'info','musicQueueShuffle',_0x7f1a88[_0x1453a2(0x1aa)][_0x1453a2(0x1db)])}})[_0x1453a2(0x1a3)](()=>{});}else{const _0x5205c7=_0x46c833['voice'][_0x1453a2(0x1a2)]['dispatcher'][_0x1453a2(0x1a0)]-_0x46c833[_0x1453a2(0x1e0)][_0x1453a2(0x1a2)][_0x1453a2(0x1a9)][_0x1453a2(0x1bc)],_0x23911a=pagination['paginate'](_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1e1)]['slice'](0x1),_0x55f4d4[_0x1453a2(0x1c9)]);_0x46c833[_0x1453a2(0x1b8)][_0x1453a2(0x1c7)][_0x1453a2(0x1bb)]({'embed':{'color':tesseract_1[_0x1453a2(0x1d7)][_0x1453a2(0x198)]['PINK'],'title':_0x1453a2(0x1c3),'description':this[_0x1453a2(0x199)][_0x1453a2(0x1a7)][_0x1453a2(0x1c6)](_0x7f1a88[_0x1453a2(0x1d0)][_0x1453a2(0x19d)][_0x1453a2(0x1ad)],_0x1453a2(0x1c0),_0x1453a2(0x1a1),(_0x46c833[_0x1453a2(0x1b8)]['queue'][_0x1453a2(0x1da)]-0x1)[_0x1453a2(0x1cc)]()),'fields':_0x23911a[_0x1453a2(0x1d6)][_0x1453a2(0x1d3)]((_0x2d6dbb,_0x479f30)=>({'name':'#'+(_0x479f30+0x1)+_0x1453a2(0x1af)+_0x2d6dbb['track'],'value':''+(_0x2d6dbb['artist']||_0x1453a2(0x1b3))+(_0x2d6dbb[_0x1453a2(0x1ae)]&&_0x2d6dbb[_0x1453a2(0x1bd)]!==_0x2d6dbb[_0x1453a2(0x1ae)]?_0x1453a2(0x1af)+_0x2d6dbb[_0x1453a2(0x1ae)]:'')})),'footer':{'text':_0x7c1ba2[_0x1453a2(0x1bd)]+'\x20•\x20'+Math[_0x1453a2(0x1ab)](_0x5205c7/0xea60)+':'+Math['floor'](_0x5205c7%0xea60/0x3e8)+'\x20/\x20'+_0x7c1ba2[_0x1453a2(0x1a8)]+'\x20•\x20'+_0x46c833[_0x1453a2(0x1e0)][_0x1453a2(0x1a2)][_0x1453a2(0x197)][_0x1453a2(0x1c8)]+_0x1453a2(0x1b0)+_0x23911a[_0x1453a2(0x1c9)]+_0x1453a2(0x1d4)+_0x23911a[_0x1453a2(0x19e)]}}})[_0x1453a2(0x1a3)](()=>{});}}}}}};}}; \ No newline at end of file diff --git a/commands/music/resume.js b/commands/music/resume.js index b35b78cab..cdd87dc05 100644 --- a/commands/music/resume.js +++ b/commands/music/resume.js @@ -1 +1 @@ -const a118_0x49eb=['info','test','catch','duration','It\x20allows\x20you\x20to\x20resume\x20the\x20music\x20track\x20that\x20was\x20paused\x20in\x20the\x20server.','guild','connection','resume','musicDisabledPublic','Constants','textChannel','playing','RED','@bastion/tesseract','member','isMusicMaster','errors','../../utils/constants','language','isPublicBastion','streamTime','playbackResume','tag','music','send','client','paused','enabled','PINK','COLORS','author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','pausedTime','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','floor','musicDisabled','getString','channel','\x20/\x20','Resumed\x20Playback','voice','queue','dispatcher'];(function(_0x189728,_0x1a88ed){const _0x49ebc9=function(_0x167bb5){while(--_0x167bb5){_0x189728['push'](_0x189728['shift']());}},_0x26f482=function(){const _0x2e1737={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b9454,_0x48a799,_0x4ebec8,_0x347da5){_0x347da5=_0x347da5||{};let _0x19412c=_0x48a799+'='+_0x4ebec8,_0x1264bd=0x0;for(let _0x5362ad=0x0,_0x13ba1f=_0x4b9454['length'];_0x5362ad<_0x13ba1f;_0x5362ad++){const _0x17a610=_0x4b9454[_0x5362ad];_0x19412c+=';\x20'+_0x17a610;const _0x1fea10=_0x4b9454[_0x17a610];_0x4b9454['push'](_0x1fea10),_0x13ba1f=_0x4b9454['length'],_0x1fea10!==!![]&&(_0x19412c+='='+_0x1fea10);}_0x347da5['cookie']=_0x19412c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4a14c1,_0x58a5bb){_0x4a14c1=_0x4a14c1||function(_0x47e011){return _0x47e011;};const _0x63de78=_0x4a14c1(new RegExp('(?:^|;\x20)'+_0x58a5bb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46c9e3=function(_0x36b527,_0x2275d7){_0x36b527(++_0x2275d7);};return _0x46c9e3(_0x49ebc9,_0x1a88ed),_0x63de78?decodeURIComponent(_0x63de78[0x1]):undefined;}},_0x4e733f=function(){const _0x192e96=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x192e96['test'](_0x2e1737['removeCookie']['toString']());};_0x2e1737['updateCookie']=_0x4e733f;let _0xbdc2dd='';const _0x43c91c=_0x2e1737['updateCookie']();if(!_0x43c91c)_0x2e1737['setCookie'](['*'],'counter',0x1);else _0x43c91c?_0xbdc2dd=_0x2e1737['getCookie'](null,'counter'):_0x2e1737['removeCookie']();};_0x26f482();}(a118_0x49eb,0xeb));const a118_0x26f4=function(_0x189728,_0x1a88ed){_0x189728=_0x189728-0xbe;let _0x49ebc9=a118_0x49eb[_0x189728];return _0x49ebc9;};const _0xb9cea7=a118_0x26f4,a118_0x4e733f=function(){let _0x43c91c=!![];return function(_0x4b9454,_0x48a799){const _0x4ebec8=_0x43c91c?function(){if(_0x48a799){const _0x347da5=_0x48a799['apply'](_0x4b9454,arguments);return _0x48a799=null,_0x347da5;}}:function(){};return _0x43c91c=![],_0x4ebec8;};}(),a118_0x2e1737=a118_0x4e733f(this,function(){const _0x19412c=function(){const _0x159534=a118_0x26f4,_0x1264bd=_0x19412c['constructor'](_0x159534(0xce))()['constructor'](_0x159534(0xd0));return!_0x1264bd[_0x159534(0xdc)](a118_0x2e1737);};return _0x19412c();});a118_0x2e1737();'use strict';const tesseract_1=require(_0xb9cea7(0xe8)),constants=require(_0xb9cea7(0xc0));module['exports']=class Resume extends tesseract_1['Command']{constructor(){const _0x7d4ee2=_0xb9cea7;super(_0x7d4ee2(0xe2),{'description':_0x7d4ee2(0xdf),'triggers':[],'arguments':{},'scope':_0x7d4ee2(0xe0),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this['exec']=async _0x5362ad=>{const _0x45ef10=_0x7d4ee2,_0x13ba1f=_0x5362ad[_0x45ef10(0xe0)];if(!_0x13ba1f[_0x45ef10(0xd1)][_0x45ef10(0xc6)]||!_0x13ba1f[_0x45ef10(0xd1)][_0x45ef10(0xc6)][_0x45ef10(0xca)])return await _0x5362ad['channel'][_0x45ef10(0xc7)]({'embed':{'color':tesseract_1[_0x45ef10(0xe4)]['COLORS'][_0x45ef10(0xe7)],'description':this[_0x45ef10(0xc8)]['locale'][_0x45ef10(0xd4)](_0x5362ad[_0x45ef10(0xe0)][_0x45ef10(0xd1)][_0x45ef10(0xc1)],_0x45ef10(0xbf),constants[_0x45ef10(0xc2)](_0x5362ad[_0x45ef10(0xcd)])?_0x45ef10(0xe3):_0x45ef10(0xd3))}})[_0x45ef10(0xdd)](()=>{});if(!_0x5362ad[_0x45ef10(0xe9)][_0x45ef10(0xbe)]())return;if(_0x13ba1f[_0x45ef10(0xc6)][_0x45ef10(0xe6)]&&_0x13ba1f[_0x45ef10(0xd8)]&&_0x13ba1f['voice'][_0x45ef10(0xe1)][_0x45ef10(0xda)]&&_0x13ba1f['voice']['connection']['dispatcher'][_0x45ef10(0xc9)]){_0x13ba1f[_0x45ef10(0xd8)][_0x45ef10(0xe1)][_0x45ef10(0xda)][_0x45ef10(0xe2)]();const _0x17a610=_0x13ba1f['music'][_0x45ef10(0xd9)][0x0],_0x1fea10=_0x13ba1f['voice']['connection']['dispatcher'][_0x45ef10(0xc3)]-_0x13ba1f[_0x45ef10(0xd8)][_0x45ef10(0xe1)][_0x45ef10(0xda)][_0x45ef10(0xcf)];_0x13ba1f[_0x45ef10(0xc6)][_0x45ef10(0xe5)][_0x45ef10(0xc7)]({'embed':{'color':tesseract_1['Constants'][_0x45ef10(0xcc)][_0x45ef10(0xcb)],'title':_0x45ef10(0xd7),'description':this[_0x45ef10(0xc8)]['locale'][_0x45ef10(0xd4)](_0x5362ad[_0x45ef10(0xe0)]['document'][_0x45ef10(0xc1)],_0x45ef10(0xdb),_0x45ef10(0xc4),_0x5362ad[_0x45ef10(0xcd)][_0x45ef10(0xc5)],_0x17a610['track']),'footer':{'text':Math['floor'](_0x1fea10/0xea60)+':'+Math[_0x45ef10(0xd2)](_0x1fea10%0xea60/0x3e8)+_0x45ef10(0xd6)+_0x17a610[_0x45ef10(0xde)]+'\x20•\x20'+_0x13ba1f[_0x45ef10(0xd8)][_0x45ef10(0xe1)][_0x45ef10(0xd5)]['name']}}})[_0x45ef10(0xdd)](()=>{});}};}}; \ No newline at end of file +const a119_0x5068=['Constants','getString','author','document','textChannel','music','errors','isPublicBastion','\x20•\x20','floor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','RED','locale','track','constructor','exec','streamTime','dispatcher','guild','language','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','musicDisabledPublic','musicDisabled','COLORS','exports','PINK','Resumed\x20Playback','apply','tag','catch','Command','\x20/\x20','isMusicMaster','client','@bastion/tesseract','queue','connection','pausedTime','test','duration','resume','voice','../../utils/constants','info','playing','send','name','paused'];(function(_0x4bcf2c,_0x4f37e5){const _0x5068e8=function(_0x5b3ba3){while(--_0x5b3ba3){_0x4bcf2c['push'](_0x4bcf2c['shift']());}},_0xce209a=function(){const _0x346475={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3964ea,_0x2a0905,_0x227a14,_0x25ecdc){_0x25ecdc=_0x25ecdc||{};let _0x2b7e8e=_0x2a0905+'='+_0x227a14,_0x204640=0x0;for(let _0x993e7=0x0,_0x2b9177=_0x3964ea['length'];_0x993e7<_0x2b9177;_0x993e7++){const _0x4eda4a=_0x3964ea[_0x993e7];_0x2b7e8e+=';\x20'+_0x4eda4a;const _0x1e26d2=_0x3964ea[_0x4eda4a];_0x3964ea['push'](_0x1e26d2),_0x2b9177=_0x3964ea['length'],_0x1e26d2!==!![]&&(_0x2b7e8e+='='+_0x1e26d2);}_0x25ecdc['cookie']=_0x2b7e8e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x429f0c,_0x1d136b){_0x429f0c=_0x429f0c||function(_0x2124bf){return _0x2124bf;};const _0x1e0f37=_0x429f0c(new RegExp('(?:^|;\x20)'+_0x1d136b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x277157=function(_0x35ddc7,_0x47aee5){_0x35ddc7(++_0x47aee5);};return _0x277157(_0x5068e8,_0x4f37e5),_0x1e0f37?decodeURIComponent(_0x1e0f37[0x1]):undefined;}},_0x28d9f0=function(){const _0x4635ba=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4635ba['test'](_0x346475['removeCookie']['toString']());};_0x346475['updateCookie']=_0x28d9f0;let _0x1802ec='';const _0x11f74c=_0x346475['updateCookie']();if(!_0x11f74c)_0x346475['setCookie'](['*'],'counter',0x1);else _0x11f74c?_0x1802ec=_0x346475['getCookie'](null,'counter'):_0x346475['removeCookie']();};_0xce209a();}(a119_0x5068,0x83));const a119_0xce20=function(_0x4bcf2c,_0x4f37e5){_0x4bcf2c=_0x4bcf2c-0x1a2;let _0x5068e8=a119_0x5068[_0x4bcf2c];return _0x5068e8;};const a119_0x587b30=a119_0xce20,a119_0x28d9f0=function(){let _0x11f74c=!![];return function(_0x3964ea,_0x2a0905){const _0x227a14=_0x11f74c?function(){const _0x2b15a8=a119_0xce20;if(_0x2a0905){const _0x25ecdc=_0x2a0905[_0x2b15a8(0x1ca)](_0x3964ea,arguments);return _0x2a0905=null,_0x25ecdc;}}:function(){};return _0x11f74c=![],_0x227a14;};}(),a119_0x346475=a119_0x28d9f0(this,function(){const _0x2b7e8e=function(){const _0x353bfb=a119_0xce20,_0x204640=_0x2b7e8e[_0x353bfb(0x1bd)](_0x353bfb(0x1b9))()['constructor'](_0x353bfb(0x1c3));return!_0x204640[_0x353bfb(0x1a5)](a119_0x346475);};return _0x2b7e8e();});a119_0x346475();'use strict';const tesseract_1=require(a119_0x587b30(0x1d1)),constants=require(a119_0x587b30(0x1a9));module[a119_0x587b30(0x1c7)]=class Resume extends tesseract_1[a119_0x587b30(0x1cd)]{constructor(){const _0x38f9a9=a119_0x587b30;super(_0x38f9a9(0x1a7),{'description':'It\x20allows\x20you\x20to\x20resume\x20the\x20music\x20track\x20that\x20was\x20paused\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x38f9a9(0x1be)]=async _0x993e7=>{const _0x2b1148=_0x38f9a9,_0x2b9177=_0x993e7[_0x2b1148(0x1c1)];if(!_0x2b9177['document']['music']||!_0x2b9177[_0x2b1148(0x1b2)][_0x2b1148(0x1b4)]['enabled'])return await _0x993e7['channel'][_0x2b1148(0x1ac)]({'embed':{'color':tesseract_1[_0x2b1148(0x1af)][_0x2b1148(0x1c6)][_0x2b1148(0x1ba)],'description':this[_0x2b1148(0x1d0)][_0x2b1148(0x1bb)][_0x2b1148(0x1b0)](_0x993e7[_0x2b1148(0x1c1)][_0x2b1148(0x1b2)][_0x2b1148(0x1c2)],_0x2b1148(0x1b5),constants[_0x2b1148(0x1b6)](_0x993e7[_0x2b1148(0x1b1)])?_0x2b1148(0x1c4):_0x2b1148(0x1c5))}})['catch'](()=>{});if(!_0x993e7['member'][_0x2b1148(0x1cf)]())return;if(_0x2b9177[_0x2b1148(0x1b4)][_0x2b1148(0x1ab)]&&_0x2b9177[_0x2b1148(0x1a8)]&&_0x2b9177[_0x2b1148(0x1a8)][_0x2b1148(0x1a3)][_0x2b1148(0x1c0)]&&_0x2b9177[_0x2b1148(0x1a8)]['connection']['dispatcher'][_0x2b1148(0x1ae)]){_0x2b9177[_0x2b1148(0x1a8)][_0x2b1148(0x1a3)]['dispatcher'][_0x2b1148(0x1a7)]();const _0x4eda4a=_0x2b9177['music'][_0x2b1148(0x1a2)][0x0],_0x1e26d2=_0x2b9177[_0x2b1148(0x1a8)][_0x2b1148(0x1a3)]['dispatcher'][_0x2b1148(0x1bf)]-_0x2b9177[_0x2b1148(0x1a8)][_0x2b1148(0x1a3)][_0x2b1148(0x1c0)][_0x2b1148(0x1a4)];_0x2b9177[_0x2b1148(0x1b4)][_0x2b1148(0x1b3)]['send']({'embed':{'color':tesseract_1[_0x2b1148(0x1af)]['COLORS'][_0x2b1148(0x1c8)],'title':_0x2b1148(0x1c9),'description':this[_0x2b1148(0x1d0)][_0x2b1148(0x1bb)][_0x2b1148(0x1b0)](_0x993e7['guild'][_0x2b1148(0x1b2)]['language'],_0x2b1148(0x1aa),'playbackResume',_0x993e7[_0x2b1148(0x1b1)][_0x2b1148(0x1cb)],_0x4eda4a[_0x2b1148(0x1bc)]),'footer':{'text':Math[_0x2b1148(0x1b8)](_0x1e26d2/0xea60)+':'+Math['floor'](_0x1e26d2%0xea60/0x3e8)+_0x2b1148(0x1ce)+_0x4eda4a[_0x2b1148(0x1a6)]+_0x2b1148(0x1b7)+_0x2b9177[_0x2b1148(0x1a8)]['connection']['channel'][_0x2b1148(0x1ad)]}}})[_0x2b1148(0x1cc)](()=>{});}};}}; \ No newline at end of file diff --git a/commands/music/skip.js b/commands/music/skip.js index 199eed4a5..4446a828a 100644 --- a/commands/music/skip.js +++ b/commands/music/skip.js @@ -1 +1 @@ -const a119_0x2706=['isMusicMaster','queue','exec','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','channel','music','includes','PINK','skip','catch','musicDisabledPublic','toString','getString','language','textChannel','voiceChannel','voice','send','guild','document','skipVotes','push','test','exports','Constants','end','@bastion/tesseract','musicDisabled','dispatcher','members','info','apply','../../utils/constants','has','\x20•\x20','Command','RED','constructor','connection','errors','size','client','locale','enabled'];(function(_0x557b36,_0x445b15){const _0x2706c1=function(_0x450fa6){while(--_0x450fa6){_0x557b36['push'](_0x557b36['shift']());}},_0x432495=function(){const _0x8adc89={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1c7c33,_0x2a6dae,_0x2697a5,_0x49220c){_0x49220c=_0x49220c||{};let _0x2fd6d1=_0x2a6dae+'='+_0x2697a5,_0x2a587b=0x0;for(let _0x55356e=0x0,_0xfc75f8=_0x1c7c33['length'];_0x55356e<_0xfc75f8;_0x55356e++){const _0x1ed979=_0x1c7c33[_0x55356e];_0x2fd6d1+=';\x20'+_0x1ed979;const _0x5b5cc3=_0x1c7c33[_0x1ed979];_0x1c7c33['push'](_0x5b5cc3),_0xfc75f8=_0x1c7c33['length'],_0x5b5cc3!==!![]&&(_0x2fd6d1+='='+_0x5b5cc3);}_0x49220c['cookie']=_0x2fd6d1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2032c7,_0x23a6dd){_0x2032c7=_0x2032c7||function(_0x737429){return _0x737429;};const _0xc4e959=_0x2032c7(new RegExp('(?:^|;\x20)'+_0x23a6dd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4365b3=function(_0x431f03,_0x51b3a4){_0x431f03(++_0x51b3a4);};return _0x4365b3(_0x2706c1,_0x445b15),_0xc4e959?decodeURIComponent(_0xc4e959[0x1]):undefined;}},_0x40bf37=function(){const _0x139c10=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x139c10['test'](_0x8adc89['removeCookie']['toString']());};_0x8adc89['updateCookie']=_0x40bf37;let _0x34c81b='';const _0x4eda3e=_0x8adc89['updateCookie']();if(!_0x4eda3e)_0x8adc89['setCookie'](['*'],'counter',0x1);else _0x4eda3e?_0x34c81b=_0x8adc89['getCookie'](null,'counter'):_0x8adc89['removeCookie']();};_0x432495();}(a119_0x2706,0x9b));const a119_0x4324=function(_0x557b36,_0x445b15){_0x557b36=_0x557b36-0xac;let _0x2706c1=a119_0x2706[_0x557b36];return _0x2706c1;};const _0x1ed2d8=a119_0x4324,a119_0x40bf37=function(){let _0x4eda3e=!![];return function(_0x1c7c33,_0x2a6dae){const _0x2697a5=_0x4eda3e?function(){const _0x5b5d8a=a119_0x4324;if(_0x2a6dae){const _0x49220c=_0x2a6dae[_0x5b5d8a(0xc0)](_0x1c7c33,arguments);return _0x2a6dae=null,_0x49220c;}}:function(){};return _0x4eda3e=![],_0x2697a5;};}(),a119_0x8adc89=a119_0x40bf37(this,function(){const _0x2fd6d1=function(){const _0x5c1849=a119_0x4324,_0x2a587b=_0x2fd6d1[_0x5c1849(0xc6)](_0x5c1849(0xd1))()['constructor'](_0x5c1849(0xd2));return!_0x2a587b[_0x5c1849(0xb7)](a119_0x8adc89);};return _0x2fd6d1();});a119_0x8adc89();'use strict';const tesseract_1=require(_0x1ed2d8(0xbb)),constants=require(_0x1ed2d8(0xc1));module[_0x1ed2d8(0xb8)]=class Skip extends tesseract_1[_0x1ed2d8(0xc4)]{constructor(){const _0x3726fc=_0x1ed2d8;super(_0x3726fc(0xd8),{'description':'It\x20allows\x20you\x20to\x20skip\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':_0x3726fc(0xb3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x3726fc(0xcf)]=async _0x55356e=>{const _0x17d329=_0x3726fc,_0xfc75f8=_0x55356e[_0x17d329(0xb3)];if(!_0xfc75f8[_0x17d329(0xb4)][_0x17d329(0xd5)]||!_0xfc75f8['document'][_0x17d329(0xd5)][_0x17d329(0xcc)])return await _0x55356e['channel'][_0x17d329(0xb2)]({'embed':{'color':tesseract_1[_0x17d329(0xb9)]['COLORS'][_0x17d329(0xc5)],'description':this[_0x17d329(0xca)][_0x17d329(0xcb)][_0x17d329(0xad)](_0x55356e['guild'][_0x17d329(0xb4)]['language'],_0x17d329(0xc8),constants['isPublicBastion'](_0x55356e[_0x17d329(0xd3)])?_0x17d329(0xda):_0x17d329(0xbc))}})[_0x17d329(0xd9)](()=>{});if(_0xfc75f8[_0x17d329(0xd5)][_0x17d329(0xce)]['length']&&_0xfc75f8[_0x17d329(0xd5)][_0x17d329(0xb0)][_0x17d329(0xbe)][_0x17d329(0xc2)](_0x55356e[_0x17d329(0xd3)]['id'])){if(!_0x55356e['member'][_0x17d329(0xcd)]()){!_0xfc75f8[_0x17d329(0xd5)][_0x17d329(0xb5)][_0x17d329(0xd6)](_0x55356e[_0x17d329(0xd3)]['id'])&&_0xfc75f8[_0x17d329(0xd5)]['skipVotes'][_0x17d329(0xb6)](_0x55356e[_0x17d329(0xd3)]['id']);const _0x1ed979=_0xfc75f8['music'][_0x17d329(0xce)][0x0],_0x5b5cc3=Math['ceil']((_0xfc75f8['voice'][_0x17d329(0xd4)][_0x17d329(0xbe)][_0x17d329(0xc9)]-0x1)/0x2);if(_0xfc75f8['music'][_0x17d329(0xb5)]['length']<_0x5b5cc3)return await _0xfc75f8[_0x17d329(0xd5)][_0x17d329(0xaf)][_0x17d329(0xb2)]({'embed':{'color':tesseract_1[_0x17d329(0xb9)]['COLORS'][_0x17d329(0xd7)],'description':this[_0x17d329(0xca)][_0x17d329(0xcb)]['getString'](_0x55356e[_0x17d329(0xb3)][_0x17d329(0xb4)][_0x17d329(0xae)],_0x17d329(0xbf),'musicSkipCount',(_0x5b5cc3-_0xfc75f8['music']['skipVotes'][_0x17d329(0xd0)])[_0x17d329(0xac)]()),'footer':{'text':_0x1ed979['track']+_0x17d329(0xc3)+_0xfc75f8['music'][_0x17d329(0xb0)]['name']}}});}_0xfc75f8['voice']&&_0xfc75f8[_0x17d329(0xb1)][_0x17d329(0xc7)]&&_0xfc75f8['voice'][_0x17d329(0xc7)][_0x17d329(0xbd)][_0x17d329(0xba)]();}};}}; \ No newline at end of file +const a120_0x5685=['skipVotes','voice','send','enabled','members','Command','musicSkipCount','dispatcher','locale','toString','language','has','size','push','channel','includes','info','name','end','getString','exports','@bastion/tesseract','queue','voiceChannel','isPublicBastion','music','exec','It\x20allows\x20you\x20to\x20skip\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','musicDisabledPublic','catch','document','constructor','musicDisabled','guild','isMusicMaster','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','client','COLORS','length','connection','../../utils/constants','\x20•\x20','errors','ceil','RED','track','author','member'];(function(_0x7b7ce2,_0x5f3617){const _0x5685e1=function(_0x48a246){while(--_0x48a246){_0x7b7ce2['push'](_0x7b7ce2['shift']());}},_0x5dbc58=function(){const _0xd7444b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x426830,_0x50ab00,_0x2c724d,_0x5c33c4){_0x5c33c4=_0x5c33c4||{};let _0x44c7e1=_0x50ab00+'='+_0x2c724d,_0x8cc67f=0x0;for(let _0x3b1dff=0x0,_0x4c65b8=_0x426830['length'];_0x3b1dff<_0x4c65b8;_0x3b1dff++){const _0x38910d=_0x426830[_0x3b1dff];_0x44c7e1+=';\x20'+_0x38910d;const _0x398223=_0x426830[_0x38910d];_0x426830['push'](_0x398223),_0x4c65b8=_0x426830['length'],_0x398223!==!![]&&(_0x44c7e1+='='+_0x398223);}_0x5c33c4['cookie']=_0x44c7e1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x558673,_0x16b579){_0x558673=_0x558673||function(_0x108c58){return _0x108c58;};const _0x1a3054=_0x558673(new RegExp('(?:^|;\x20)'+_0x16b579['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59122c=function(_0x47bcd9,_0x16d4f6){_0x47bcd9(++_0x16d4f6);};return _0x59122c(_0x5685e1,_0x5f3617),_0x1a3054?decodeURIComponent(_0x1a3054[0x1]):undefined;}},_0x2fb9eb=function(){const _0x3270b8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3270b8['test'](_0xd7444b['removeCookie']['toString']());};_0xd7444b['updateCookie']=_0x2fb9eb;let _0xad71f4='';const _0x2c8f86=_0xd7444b['updateCookie']();if(!_0x2c8f86)_0xd7444b['setCookie'](['*'],'counter',0x1);else _0x2c8f86?_0xad71f4=_0xd7444b['getCookie'](null,'counter'):_0xd7444b['removeCookie']();};_0x5dbc58();}(a120_0x5685,0xbb));const a120_0x5dbc=function(_0x7b7ce2,_0x5f3617){_0x7b7ce2=_0x7b7ce2-0x116;let _0x5685e1=a120_0x5685[_0x7b7ce2];return _0x5685e1;};const a120_0x5fcbe5=a120_0x5dbc,a120_0x2fb9eb=function(){let _0x2c8f86=!![];return function(_0x426830,_0x50ab00){const _0x2c724d=_0x2c8f86?function(){if(_0x50ab00){const _0x5c33c4=_0x50ab00['apply'](_0x426830,arguments);return _0x50ab00=null,_0x5c33c4;}}:function(){};return _0x2c8f86=![],_0x2c724d;};}(),a120_0xd7444b=a120_0x2fb9eb(this,function(){const _0x44c7e1=function(){const _0x515491=a120_0x5dbc,_0x8cc67f=_0x44c7e1[_0x515491(0x13e)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x515491(0x13e)](_0x515491(0x142));return!_0x8cc67f[_0x515491(0x143)](a120_0xd7444b);};return _0x44c7e1();});a120_0xd7444b();'use strict';const tesseract_1=require(a120_0x5fcbe5(0x134)),constants=require(a120_0x5fcbe5(0x117));module[a120_0x5fcbe5(0x133)]=class Skip extends tesseract_1[a120_0x5fcbe5(0x124)]{constructor(){const _0x26eddd=a120_0x5fcbe5;super('skip',{'description':_0x26eddd(0x13a),'triggers':[],'arguments':{},'scope':_0x26eddd(0x140),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x26eddd(0x139)]=async _0x3b1dff=>{const _0x465015=_0x26eddd,_0x4c65b8=_0x3b1dff[_0x465015(0x140)];if(!_0x4c65b8[_0x465015(0x13d)][_0x465015(0x138)]||!_0x4c65b8[_0x465015(0x13d)][_0x465015(0x138)][_0x465015(0x122)])return await _0x3b1dff[_0x465015(0x12d)][_0x465015(0x121)]({'embed':{'color':tesseract_1['Constants'][_0x465015(0x145)][_0x465015(0x11b)],'description':this[_0x465015(0x144)]['locale'][_0x465015(0x132)](_0x3b1dff[_0x465015(0x140)][_0x465015(0x13d)][_0x465015(0x129)],_0x465015(0x119),constants[_0x465015(0x137)](_0x3b1dff[_0x465015(0x11d)])?_0x465015(0x13b):_0x465015(0x13f))}})[_0x465015(0x13c)](()=>{});if(_0x4c65b8['music']['queue'][_0x465015(0x146)]&&_0x4c65b8[_0x465015(0x138)][_0x465015(0x136)][_0x465015(0x123)][_0x465015(0x12a)](_0x3b1dff[_0x465015(0x11d)]['id'])){if(!_0x3b1dff[_0x465015(0x11e)][_0x465015(0x141)]()){!_0x4c65b8[_0x465015(0x138)][_0x465015(0x11f)][_0x465015(0x12e)](_0x3b1dff[_0x465015(0x11d)]['id'])&&_0x4c65b8[_0x465015(0x138)]['skipVotes'][_0x465015(0x12c)](_0x3b1dff[_0x465015(0x11d)]['id']);const _0x38910d=_0x4c65b8[_0x465015(0x138)][_0x465015(0x135)][0x0],_0x398223=Math[_0x465015(0x11a)]((_0x4c65b8[_0x465015(0x120)]['channel'][_0x465015(0x123)][_0x465015(0x12b)]-0x1)/0x2);if(_0x4c65b8[_0x465015(0x138)]['skipVotes'][_0x465015(0x146)]<_0x398223)return await _0x4c65b8[_0x465015(0x138)]['textChannel'][_0x465015(0x121)]({'embed':{'color':tesseract_1['Constants']['COLORS']['PINK'],'description':this[_0x465015(0x144)][_0x465015(0x127)][_0x465015(0x132)](_0x3b1dff[_0x465015(0x140)][_0x465015(0x13d)]['language'],_0x465015(0x12f),_0x465015(0x125),(_0x398223-_0x4c65b8[_0x465015(0x138)]['skipVotes'][_0x465015(0x146)])[_0x465015(0x128)]()),'footer':{'text':_0x38910d[_0x465015(0x11c)]+_0x465015(0x118)+_0x4c65b8['music']['voiceChannel'][_0x465015(0x130)]}}});}_0x4c65b8['voice']&&_0x4c65b8['voice'][_0x465015(0x116)]&&_0x4c65b8[_0x465015(0x120)]['connection'][_0x465015(0x126)][_0x465015(0x131)]();}};}}; \ No newline at end of file diff --git a/commands/music/stop.js b/commands/music/stop.js index a7b5270ab..511bd0e03 100644 --- a/commands/music/stop.js +++ b/commands/music/stop.js @@ -1 +1 @@ -const a120_0x1351=['musicDisabledPublic','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','enabled','channel','queue','language','exec','dispatcher','end','It\x20allows\x20you\x20to\x20stop\x20the\x20current\x20music\x20playback\x20in\x20the\x20server.','voice','test','stop','apply','document','guild','../../utils/constants','Command','member','length','music','exports','RED','connection','musicDisabled','history','errors','@bastion/tesseract','Constants','isMusicMaster'];(function(_0x4ca683,_0x313bb8){const _0x1351d4=function(_0x5f22c8){while(--_0x5f22c8){_0x4ca683['push'](_0x4ca683['shift']());}},_0x38f1eb=function(){const _0x425a10={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4ac373,_0x1b7f79,_0x9c77c7,_0x1750f8){_0x1750f8=_0x1750f8||{};let _0x2f5e6e=_0x1b7f79+'='+_0x9c77c7,_0x188351=0x0;for(let _0x2aac1d=0x0,_0x4759cc=_0x4ac373['length'];_0x2aac1d<_0x4759cc;_0x2aac1d++){const _0x2db541=_0x4ac373[_0x2aac1d];_0x2f5e6e+=';\x20'+_0x2db541;const _0x4799ca=_0x4ac373[_0x2db541];_0x4ac373['push'](_0x4799ca),_0x4759cc=_0x4ac373['length'],_0x4799ca!==!![]&&(_0x2f5e6e+='='+_0x4799ca);}_0x1750f8['cookie']=_0x2f5e6e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x376dac,_0x1850e0){_0x376dac=_0x376dac||function(_0x4e6c4f){return _0x4e6c4f;};const _0x586e67=_0x376dac(new RegExp('(?:^|;\x20)'+_0x1850e0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x108ce0=function(_0x3b0704,_0x29be3f){_0x3b0704(++_0x29be3f);};return _0x108ce0(_0x1351d4,_0x313bb8),_0x586e67?decodeURIComponent(_0x586e67[0x1]):undefined;}},_0x1a93d5=function(){const _0x739c61=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x739c61['test'](_0x425a10['removeCookie']['toString']());};_0x425a10['updateCookie']=_0x1a93d5;let _0x521e14='';const _0x3edc57=_0x425a10['updateCookie']();if(!_0x3edc57)_0x425a10['setCookie'](['*'],'counter',0x1);else _0x3edc57?_0x521e14=_0x425a10['getCookie'](null,'counter'):_0x425a10['removeCookie']();};_0x38f1eb();}(a120_0x1351,0xc8));const a120_0x38f1=function(_0x4ca683,_0x313bb8){_0x4ca683=_0x4ca683-0xb3;let _0x1351d4=a120_0x1351[_0x4ca683];return _0x1351d4;};const _0x131342=a120_0x38f1,a120_0x1a93d5=function(){let _0x3edc57=!![];return function(_0x4ac373,_0x1b7f79){const _0x9c77c7=_0x3edc57?function(){const _0x1619de=a120_0x38f1;if(_0x1b7f79){const _0x1750f8=_0x1b7f79[_0x1619de(0xb3)](_0x4ac373,arguments);return _0x1b7f79=null,_0x1750f8;}}:function(){};return _0x3edc57=![],_0x9c77c7;};}(),a120_0x425a10=a120_0x1a93d5(this,function(){const _0x2f5e6e=function(){const _0x5d1a2e=a120_0x38f1,_0x188351=_0x2f5e6e[_0x5d1a2e(0xc5)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5d1a2e(0xc5)](_0x5d1a2e(0xc6));return!_0x188351[_0x5d1a2e(0xd0)](a120_0x425a10);};return _0x2f5e6e();});a120_0x425a10();'use strict';const tesseract_1=require(_0x131342(0xc1)),constants=require(_0x131342(0xb6));module[_0x131342(0xbb)]=class Stop extends tesseract_1[_0x131342(0xb7)]{constructor(){const _0x1e5c3c=_0x131342;super(_0x1e5c3c(0xd1),{'description':_0x1e5c3c(0xce),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x1e5c3c(0xcb)]=async _0x2aac1d=>{const _0x331bce=_0x1e5c3c,_0x4759cc=_0x2aac1d[_0x331bce(0xb5)];if(!_0x4759cc[_0x331bce(0xb4)][_0x331bce(0xba)]||!_0x4759cc[_0x331bce(0xb4)][_0x331bce(0xba)][_0x331bce(0xc7)])return await _0x2aac1d[_0x331bce(0xc8)]['send']({'embed':{'color':tesseract_1[_0x331bce(0xc2)]['COLORS'][_0x331bce(0xbc)],'description':this['client']['locale']['getString'](_0x2aac1d[_0x331bce(0xb5)]['document'][_0x331bce(0xca)],_0x331bce(0xc0),constants['isPublicBastion'](_0x2aac1d['author'])?_0x331bce(0xc4):_0x331bce(0xbe))}})['catch'](()=>{});if(!_0x2aac1d[_0x331bce(0xb8)][_0x331bce(0xc3)]())return;(_0x4759cc[_0x331bce(0xba)][_0x331bce(0xc9)][_0x331bce(0xb9)]||_0x4759cc[_0x331bce(0xba)][_0x331bce(0xbf)]['length'])&&(_0x4759cc['music'][_0x331bce(0xc9)]=[],_0x4759cc[_0x331bce(0xba)]['history']=[],_0x4759cc[_0x331bce(0xcf)]&&_0x4759cc['voice'][_0x331bce(0xbd)]&&_0x4759cc[_0x331bce(0xcf)][_0x331bce(0xbd)][_0x331bce(0xcc)][_0x331bce(0xcd)]());};}}; \ No newline at end of file +const a121_0x2f1b=['stop','send','errors','document','exports','history','COLORS','length','catch','getString','test','isMusicMaster','dispatcher','It\x20allows\x20you\x20to\x20stop\x20the\x20current\x20music\x20playback\x20in\x20the\x20server.','locale','end','guild','enabled','voice','queue','member','exec','musicDisabled','music','language','RED','connection','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','musicDisabledPublic','Constants'];(function(_0x43c415,_0x4460a5){const _0x2f1bb4=function(_0x5651ce){while(--_0x5651ce){_0x43c415['push'](_0x43c415['shift']());}},_0x28ecd4=function(){const _0x25c26f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x34b3d3,_0x334af6,_0x3276c0,_0x4aa971){_0x4aa971=_0x4aa971||{};let _0xa1f387=_0x334af6+'='+_0x3276c0,_0x1ea9bc=0x0;for(let _0x34edac=0x0,_0x44748a=_0x34b3d3['length'];_0x34edac<_0x44748a;_0x34edac++){const _0x498bed=_0x34b3d3[_0x34edac];_0xa1f387+=';\x20'+_0x498bed;const _0x4e98d9=_0x34b3d3[_0x498bed];_0x34b3d3['push'](_0x4e98d9),_0x44748a=_0x34b3d3['length'],_0x4e98d9!==!![]&&(_0xa1f387+='='+_0x4e98d9);}_0x4aa971['cookie']=_0xa1f387;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ae214,_0x546c26){_0x5ae214=_0x5ae214||function(_0x3a4137){return _0x3a4137;};const _0x17f1a6=_0x5ae214(new RegExp('(?:^|;\x20)'+_0x546c26['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4c3b52=function(_0x336ab8,_0x48d29b){_0x336ab8(++_0x48d29b);};return _0x4c3b52(_0x2f1bb4,_0x4460a5),_0x17f1a6?decodeURIComponent(_0x17f1a6[0x1]):undefined;}},_0x31e8ef=function(){const _0x57df85=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x57df85['test'](_0x25c26f['removeCookie']['toString']());};_0x25c26f['updateCookie']=_0x31e8ef;let _0x3d2201='';const _0x5f4cdd=_0x25c26f['updateCookie']();if(!_0x5f4cdd)_0x25c26f['setCookie'](['*'],'counter',0x1);else _0x5f4cdd?_0x3d2201=_0x25c26f['getCookie'](null,'counter'):_0x25c26f['removeCookie']();};_0x28ecd4();}(a121_0x2f1b,0xd7));const a121_0x28ec=function(_0x43c415,_0x4460a5){_0x43c415=_0x43c415-0xcd;let _0x2f1bb4=a121_0x2f1b[_0x43c415];return _0x2f1bb4;};const a121_0x57556a=a121_0x28ec,a121_0x31e8ef=function(){let _0x5f4cdd=!![];return function(_0x34b3d3,_0x334af6){const _0x3276c0=_0x5f4cdd?function(){if(_0x334af6){const _0x4aa971=_0x334af6['apply'](_0x34b3d3,arguments);return _0x334af6=null,_0x4aa971;}}:function(){};return _0x5f4cdd=![],_0x3276c0;};}(),a121_0x25c26f=a121_0x31e8ef(this,function(){const _0xa1f387=function(){const _0xbd60af=a121_0x28ec,_0x1ea9bc=_0xa1f387['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0xbd60af(0xe3));return!_0x1ea9bc[_0xbd60af(0xd2)](a121_0x25c26f);};return _0xa1f387();});a121_0x25c26f();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require('../../utils/constants');module[a121_0x57556a(0xea)]=class Stop extends tesseract_1['Command']{constructor(){const _0x277c6e=a121_0x57556a;super(_0x277c6e(0xe6),{'description':_0x277c6e(0xd5),'triggers':[],'arguments':{},'scope':_0x277c6e(0xd8),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[]}),this[_0x277c6e(0xdd)]=async _0x34edac=>{const _0x4431fd=_0x277c6e,_0x44748a=_0x34edac[_0x4431fd(0xd8)];if(!_0x44748a['document'][_0x4431fd(0xdf)]||!_0x44748a[_0x4431fd(0xe9)][_0x4431fd(0xdf)][_0x4431fd(0xd9)])return await _0x34edac['channel'][_0x4431fd(0xe7)]({'embed':{'color':tesseract_1[_0x4431fd(0xe5)][_0x4431fd(0xce)][_0x4431fd(0xe1)],'description':this['client'][_0x4431fd(0xd6)][_0x4431fd(0xd1)](_0x34edac[_0x4431fd(0xd8)][_0x4431fd(0xe9)][_0x4431fd(0xe0)],_0x4431fd(0xe8),constants['isPublicBastion'](_0x34edac['author'])?_0x4431fd(0xe4):_0x4431fd(0xde))}})[_0x4431fd(0xd0)](()=>{});if(!_0x34edac[_0x4431fd(0xdc)][_0x4431fd(0xd3)]())return;(_0x44748a[_0x4431fd(0xdf)][_0x4431fd(0xdb)][_0x4431fd(0xcf)]||_0x44748a[_0x4431fd(0xdf)][_0x4431fd(0xcd)][_0x4431fd(0xcf)])&&(_0x44748a[_0x4431fd(0xdf)][_0x4431fd(0xdb)]=[],_0x44748a[_0x4431fd(0xdf)]['history']=[],_0x44748a[_0x4431fd(0xda)]&&_0x44748a[_0x4431fd(0xda)][_0x4431fd(0xe2)]&&_0x44748a[_0x4431fd(0xda)][_0x4431fd(0xe2)][_0x4431fd(0xd4)][_0x4431fd(0xd7)]());};}}; \ No newline at end of file diff --git a/commands/music/volume.js b/commands/music/volume.js index 073dc9d8d..a1de37340 100644 --- a/commands/music/volume.js +++ b/commands/music/volume.js @@ -1 +1 @@ -const a121_0x2041=['../../utils/errors','@bastion/tesseract','member','exec','channel','volume\x2042','volume','BASTION_ERROR_TYPE','return\x20/\x22\x20+\x20this\x20+\x20\x22/','playing','\x20•\x20','track','musicDisabledPublic','music','COLORS','client','parseInt','isInteger','constructor','textChannel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','PINK','length','tag','voice','dispatcher','connection','Constants','document','RED','send','apply','locale','author','guild','name','language','getString','errors','enabled','setVolume','catch','../../utils/constants','isPublicBastion','DiscordError','info'];(function(_0x3bda87,_0x4c74ce){const _0x204177=function(_0x2debdb){while(--_0x2debdb){_0x3bda87['push'](_0x3bda87['shift']());}},_0x501673=function(){const _0x212e54={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x39ea73,_0x18a8a7,_0x11ebf0,_0x410b58){_0x410b58=_0x410b58||{};let _0x1fd4cc=_0x18a8a7+'='+_0x11ebf0,_0x451edf=0x0;for(let _0x3ffe5c=0x0,_0xd4b5f=_0x39ea73['length'];_0x3ffe5c<_0xd4b5f;_0x3ffe5c++){const _0x4c2ef0=_0x39ea73[_0x3ffe5c];_0x1fd4cc+=';\x20'+_0x4c2ef0;const _0x43ae5d=_0x39ea73[_0x4c2ef0];_0x39ea73['push'](_0x43ae5d),_0xd4b5f=_0x39ea73['length'],_0x43ae5d!==!![]&&(_0x1fd4cc+='='+_0x43ae5d);}_0x410b58['cookie']=_0x1fd4cc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x431e27,_0x3717f7){_0x431e27=_0x431e27||function(_0xc4bfd4){return _0xc4bfd4;};const _0x39e5a1=_0x431e27(new RegExp('(?:^|;\x20)'+_0x3717f7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xfd7904=function(_0x21fa2f,_0x198be5){_0x21fa2f(++_0x198be5);};return _0xfd7904(_0x204177,_0x4c74ce),_0x39e5a1?decodeURIComponent(_0x39e5a1[0x1]):undefined;}},_0x2815a9=function(){const _0x25e07e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x25e07e['test'](_0x212e54['removeCookie']['toString']());};_0x212e54['updateCookie']=_0x2815a9;let _0x28996a='';const _0x4a2695=_0x212e54['updateCookie']();if(!_0x4a2695)_0x212e54['setCookie'](['*'],'counter',0x1);else _0x4a2695?_0x28996a=_0x212e54['getCookie'](null,'counter'):_0x212e54['removeCookie']();};_0x501673();}(a121_0x2041,0x79));const a121_0x5016=function(_0x3bda87,_0x4c74ce){_0x3bda87=_0x3bda87-0x137;let _0x204177=a121_0x2041[_0x3bda87];return _0x204177;};const _0x212a1b=a121_0x5016,a121_0x2815a9=function(){let _0x4a2695=!![];return function(_0x39ea73,_0x18a8a7){const _0x11ebf0=_0x4a2695?function(){const _0x59a01d=a121_0x5016;if(_0x18a8a7){const _0x410b58=_0x18a8a7[_0x59a01d(0x13c)](_0x39ea73,arguments);return _0x18a8a7=null,_0x410b58;}}:function(){};return _0x4a2695=![],_0x11ebf0;};}(),a121_0x212e54=a121_0x2815a9(this,function(){const _0x1fd4cc=function(){const _0x486926=a121_0x5016,_0x451edf=_0x1fd4cc[_0x486926(0x15d)](_0x486926(0x153))()[_0x486926(0x15d)](_0x486926(0x15f));return!_0x451edf['test'](a121_0x212e54);};return _0x1fd4cc();});a121_0x212e54();'use strict';const tesseract_1=require(_0x212a1b(0x14c)),constants=require(_0x212a1b(0x147)),errors=require(_0x212a1b(0x14b));module['exports']=class Volume extends tesseract_1[_0x212a1b(0x160)]{constructor(){const _0x55a63d=_0x212a1b;super(_0x55a63d(0x151),{'description':'It\x20allows\x20you\x20to\x20set\x20the\x20volume\x20of\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x55a63d(0x150)]}),this[_0x55a63d(0x14e)]=async(_0x3ffe5c,_0xd4b5f)=>{const _0x592f03=_0x55a63d;let _0x4c2ef0=Number[_0x592f03(0x15b)](_0xd4b5f['_'][0x0]);if(!_0xd4b5f['_'][_0x592f03(0x162)]||!Number[_0x592f03(0x15c)](_0x4c2ef0))throw new errors[(_0x592f03(0x149))](errors[_0x592f03(0x152)]['INVALID_COMMAND_SYNTAX'],this[_0x592f03(0x140)]);const _0x43ae5d=_0x3ffe5c[_0x592f03(0x13f)];if(!_0x43ae5d[_0x592f03(0x139)]['music']||!_0x43ae5d[_0x592f03(0x139)][_0x592f03(0x158)][_0x592f03(0x144)])return await _0x3ffe5c[_0x592f03(0x14f)][_0x592f03(0x13b)]({'embed':{'color':tesseract_1['Constants'][_0x592f03(0x159)][_0x592f03(0x13a)],'description':this[_0x592f03(0x15a)][_0x592f03(0x13d)][_0x592f03(0x142)](_0x3ffe5c[_0x592f03(0x13f)][_0x592f03(0x139)][_0x592f03(0x141)],_0x592f03(0x143),constants[_0x592f03(0x148)](_0x3ffe5c[_0x592f03(0x13e)])?_0x592f03(0x157):'musicDisabled')}})[_0x592f03(0x146)](()=>{});if(!_0x3ffe5c[_0x592f03(0x14d)]['isMusicMaster']())return;if(_0x43ae5d[_0x592f03(0x158)][_0x592f03(0x154)]&&_0x43ae5d['voice']&&_0x43ae5d[_0x592f03(0x164)][_0x592f03(0x137)]['dispatcher']&&!_0x43ae5d[_0x592f03(0x164)][_0x592f03(0x137)][_0x592f03(0x165)]['paused']){_0x4c2ef0=_0x4c2ef0<0x1?0x1:_0x4c2ef0>0xc8?0xc8:_0x4c2ef0,_0x43ae5d[_0x592f03(0x164)][_0x592f03(0x137)]['dispatcher']['setVolume'](_0x4c2ef0/0x64);const _0x431e27=_0x43ae5d[_0x592f03(0x158)]['queue'][0x0];_0x43ae5d[_0x592f03(0x158)][_0x592f03(0x15e)]['send']({'embed':{'color':tesseract_1[_0x592f03(0x138)][_0x592f03(0x159)][_0x592f03(0x161)],'title':'Volume','description':this[_0x592f03(0x15a)][_0x592f03(0x13d)][_0x592f03(0x142)](_0x3ffe5c[_0x592f03(0x13f)][_0x592f03(0x139)][_0x592f03(0x141)],_0x592f03(0x14a),_0x592f03(0x145),_0x3ffe5c[_0x592f03(0x13e)][_0x592f03(0x163)],_0x4c2ef0),'footer':{'text':_0x431e27[_0x592f03(0x156)]+_0x592f03(0x155)+_0x43ae5d['voice'][_0x592f03(0x137)]['channel'][_0x592f03(0x140)]}}})[_0x592f03(0x146)](()=>{});}};}}; \ No newline at end of file +const a122_0x1d0a=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASTION_ERROR_TYPE','RED','volume\x2042','PINK','../../utils/constants','@bastion/tesseract','isPublicBastion','author','DiscordError','Command','catch','COLORS','tag','channel','setVolume','name','send','Constants','locale','dispatcher','music','voice','track','language','musicDisabledPublic','member','document','guild','constructor','errors','exports','volume','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','queue','parseInt','connection','textChannel','playing','isMusicMaster','client','It\x20allows\x20you\x20to\x20set\x20the\x20volume\x20of\x20the\x20music\x20track\x20that\x20is\x20currently\x20being\x20played\x20in\x20the\x20server.','Volume','enabled','getString'];(function(_0x357e94,_0x5b59f8){const _0x1d0a18=function(_0x40763c){while(--_0x40763c){_0x357e94['push'](_0x357e94['shift']());}},_0x5ebad8=function(){const _0x20c908={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x56efdd,_0x1bfdfe,_0x129732,_0x57607b){_0x57607b=_0x57607b||{};let _0x308dd4=_0x1bfdfe+'='+_0x129732,_0x3a1f24=0x0;for(let _0x108141=0x0,_0x48fd85=_0x56efdd['length'];_0x108141<_0x48fd85;_0x108141++){const _0x4c26ee=_0x56efdd[_0x108141];_0x308dd4+=';\x20'+_0x4c26ee;const _0x3f62ad=_0x56efdd[_0x4c26ee];_0x56efdd['push'](_0x3f62ad),_0x48fd85=_0x56efdd['length'],_0x3f62ad!==!![]&&(_0x308dd4+='='+_0x3f62ad);}_0x57607b['cookie']=_0x308dd4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24f3b4,_0x4a583d){_0x24f3b4=_0x24f3b4||function(_0x430169){return _0x430169;};const _0x3d2d7e=_0x24f3b4(new RegExp('(?:^|;\x20)'+_0x4a583d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1036eb=function(_0x3f1e2c,_0x1701fd){_0x3f1e2c(++_0x1701fd);};return _0x1036eb(_0x1d0a18,_0x5b59f8),_0x3d2d7e?decodeURIComponent(_0x3d2d7e[0x1]):undefined;}},_0xf51125=function(){const _0x39bfd8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39bfd8['test'](_0x20c908['removeCookie']['toString']());};_0x20c908['updateCookie']=_0xf51125;let _0x3fc093='';const _0x52cef6=_0x20c908['updateCookie']();if(!_0x52cef6)_0x20c908['setCookie'](['*'],'counter',0x1);else _0x52cef6?_0x3fc093=_0x20c908['getCookie'](null,'counter'):_0x20c908['removeCookie']();};_0x5ebad8();}(a122_0x1d0a,0x97));const a122_0x5eba=function(_0x357e94,_0x5b59f8){_0x357e94=_0x357e94-0xd0;let _0x1d0a18=a122_0x1d0a[_0x357e94];return _0x1d0a18;};const a122_0x7c2fb2=a122_0x5eba,a122_0xf51125=function(){let _0x52cef6=!![];return function(_0x56efdd,_0x1bfdfe){const _0x129732=_0x52cef6?function(){if(_0x1bfdfe){const _0x57607b=_0x1bfdfe['apply'](_0x56efdd,arguments);return _0x1bfdfe=null,_0x57607b;}}:function(){};return _0x52cef6=![],_0x129732;};}(),a122_0x20c908=a122_0xf51125(this,function(){const _0x308dd4=function(){const _0x29fdfc=a122_0x5eba,_0x3a1f24=_0x308dd4[_0x29fdfc(0xdd)](_0x29fdfc(0xed))()[_0x29fdfc(0xdd)](_0x29fdfc(0xe1));return!_0x3a1f24['test'](a122_0x20c908);};return _0x308dd4();});a122_0x20c908();'use strict';const tesseract_1=require(a122_0x7c2fb2(0xf3)),constants=require(a122_0x7c2fb2(0xf2)),errors=require('../../utils/errors');module[a122_0x7c2fb2(0xdf)]=class Volume extends tesseract_1[a122_0x7c2fb2(0xf7)]{constructor(){const _0x484ae5=a122_0x7c2fb2;super(_0x484ae5(0xe0),{'description':_0x484ae5(0xe9),'triggers':[],'arguments':{},'scope':_0x484ae5(0xdc),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x484ae5(0xf0)]}),this['exec']=async(_0x108141,_0x48fd85)=>{const _0x1b05c0=_0x484ae5;let _0x4c26ee=Number[_0x1b05c0(0xe3)](_0x48fd85['_'][0x0]);if(!_0x48fd85['_']['length']||!Number['isInteger'](_0x4c26ee))throw new errors[(_0x1b05c0(0xf6))](errors[_0x1b05c0(0xee)]['INVALID_COMMAND_SYNTAX'],this[_0x1b05c0(0xd0)]);const _0x3f62ad=_0x108141['guild'];if(!_0x3f62ad[_0x1b05c0(0xdb)][_0x1b05c0(0xd5)]||!_0x3f62ad[_0x1b05c0(0xdb)][_0x1b05c0(0xd5)][_0x1b05c0(0xeb)])return await _0x108141[_0x1b05c0(0xfb)][_0x1b05c0(0xd1)]({'embed':{'color':tesseract_1[_0x1b05c0(0xd2)][_0x1b05c0(0xf9)][_0x1b05c0(0xef)],'description':this[_0x1b05c0(0xe8)][_0x1b05c0(0xd3)][_0x1b05c0(0xec)](_0x108141[_0x1b05c0(0xdc)][_0x1b05c0(0xdb)]['language'],_0x1b05c0(0xde),constants[_0x1b05c0(0xf4)](_0x108141[_0x1b05c0(0xf5)])?_0x1b05c0(0xd9):'musicDisabled')}})['catch'](()=>{});if(!_0x108141[_0x1b05c0(0xda)][_0x1b05c0(0xe7)]())return;if(_0x3f62ad[_0x1b05c0(0xd5)][_0x1b05c0(0xe6)]&&_0x3f62ad[_0x1b05c0(0xd6)]&&_0x3f62ad[_0x1b05c0(0xd6)][_0x1b05c0(0xe4)]['dispatcher']&&!_0x3f62ad[_0x1b05c0(0xd6)][_0x1b05c0(0xe4)][_0x1b05c0(0xd4)]['paused']){_0x4c26ee=_0x4c26ee<0x1?0x1:_0x4c26ee>0xc8?0xc8:_0x4c26ee,_0x3f62ad[_0x1b05c0(0xd6)][_0x1b05c0(0xe4)][_0x1b05c0(0xd4)][_0x1b05c0(0xfc)](_0x4c26ee/0x64);const _0x24f3b4=_0x3f62ad['music'][_0x1b05c0(0xe2)][0x0];_0x3f62ad[_0x1b05c0(0xd5)][_0x1b05c0(0xe5)]['send']({'embed':{'color':tesseract_1[_0x1b05c0(0xd2)][_0x1b05c0(0xf9)][_0x1b05c0(0xf1)],'title':_0x1b05c0(0xea),'description':this[_0x1b05c0(0xe8)][_0x1b05c0(0xd3)][_0x1b05c0(0xec)](_0x108141[_0x1b05c0(0xdc)]['document'][_0x1b05c0(0xd8)],'info',_0x1b05c0(0xfc),_0x108141[_0x1b05c0(0xf5)][_0x1b05c0(0xfa)],_0x4c26ee),'footer':{'text':_0x24f3b4[_0x1b05c0(0xd7)]+'\x20•\x20'+_0x3f62ad[_0x1b05c0(0xd6)][_0x1b05c0(0xe4)][_0x1b05c0(0xfb)][_0x1b05c0(0xd0)]}}})[_0x1b05c0(0xf8)](()=>{});}};}}; \ No newline at end of file diff --git a/commands/player_stats/apexLegends.js b/commands/player_stats/apexLegends.js index 25d96d8c4..7d0579962 100644 --- a/commands/player_stats/apexLegends.js +++ b/commands/player_stats/apexLegends.js @@ -1 +1 @@ -const a122_0x2c7d=['apexLegends','apexLegends\x20USERNAME','Rank','\x20•\x20Powered\x20by\x20Tracker\x20Network','rankName','activeLegendName','../../utils/constants','exports','avatarUrl','COLORS','send','find','Apex\x20Legends\x20-\x20Player\x20Stats','join','\x20is\x20currently\x20playing\x20with\x20','exec','platformUserHandle','type','length','/playerstats/apexlegends/','stats','xbl','filter','channel','platforms','errors','return\x20/\x22\x20+\x20this\x20+\x20\x22/','platformInfo','toLowerCase','data','apply','rankScore','../../utils/errors','Command','metadata','iconUrl','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Apex\x20Legends\x20player\x20in\x20any\x20supported\x20platform.','psn','test','includes','DiscordError','message','name','json','constructor','displayValue','../../utils/omnic','@bastion/tesseract','BASTION_ERROR_TYPE','apexLegends\x20USERNAME\x20--platform\x20PLATFORM','INVALID_COMMAND_SYNTAX','guild','map','platform','toUpperCase'];(function(_0x152318,_0x2c7593){const _0x2c7d87=function(_0x13520a){while(--_0x13520a){_0x152318['push'](_0x152318['shift']());}},_0x4611db=function(){const _0x158a6d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x20ac8f,_0xc9c02a,_0x1c75ed,_0x31cce5){_0x31cce5=_0x31cce5||{};let _0x11ea0f=_0xc9c02a+'='+_0x1c75ed,_0x4874fb=0x0;for(let _0x494aec=0x0,_0x1ca0e3=_0x20ac8f['length'];_0x494aec<_0x1ca0e3;_0x494aec++){const _0x3e3c10=_0x20ac8f[_0x494aec];_0x11ea0f+=';\x20'+_0x3e3c10;const _0x464845=_0x20ac8f[_0x3e3c10];_0x20ac8f['push'](_0x464845),_0x1ca0e3=_0x20ac8f['length'],_0x464845!==!![]&&(_0x11ea0f+='='+_0x464845);}_0x31cce5['cookie']=_0x11ea0f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2fb0d1,_0x377f58){_0x2fb0d1=_0x2fb0d1||function(_0x1c461e){return _0x1c461e;};const _0x163cd3=_0x2fb0d1(new RegExp('(?:^|;\x20)'+_0x377f58['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x146b5e=function(_0xb1ca51,_0x2598dc){_0xb1ca51(++_0x2598dc);};return _0x146b5e(_0x2c7d87,_0x2c7593),_0x163cd3?decodeURIComponent(_0x163cd3[0x1]):undefined;}},_0x4f2448=function(){const _0x4fc86f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4fc86f['test'](_0x158a6d['removeCookie']['toString']());};_0x158a6d['updateCookie']=_0x4f2448;let _0x4d1000='';const _0x5663f4=_0x158a6d['updateCookie']();if(!_0x5663f4)_0x158a6d['setCookie'](['*'],'counter',0x1);else _0x5663f4?_0x4d1000=_0x158a6d['getCookie'](null,'counter'):_0x158a6d['removeCookie']();};_0x4611db();}(a122_0x2c7d,0x116));const a122_0x4611=function(_0x152318,_0x2c7593){_0x152318=_0x152318-0x126;let _0x2c7d87=a122_0x2c7d[_0x152318];return _0x2c7d87;};const _0xe8a5af=a122_0x4611,a122_0x4f2448=function(){let _0x5663f4=!![];return function(_0x20ac8f,_0xc9c02a){const _0x1c75ed=_0x5663f4?function(){const _0x3bc0d7=a122_0x4611;if(_0xc9c02a){const _0x31cce5=_0xc9c02a[_0x3bc0d7(0x141)](_0x20ac8f,arguments);return _0xc9c02a=null,_0x31cce5;}}:function(){};return _0x5663f4=![],_0x1c75ed;};}(),a122_0x158a6d=a122_0x4f2448(this,function(){const _0x11ea0f=function(){const _0xe1ddb9=a122_0x4611,_0x4874fb=_0x11ea0f[_0xe1ddb9(0x14f)](_0xe1ddb9(0x13d))()[_0xe1ddb9(0x14f)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4874fb[_0xe1ddb9(0x149)](a122_0x158a6d);};return _0x11ea0f();});a122_0x158a6d();'use strict';const tesseract_1=require(_0xe8a5af(0x152)),constants=require(_0xe8a5af(0x129)),errors=require(_0xe8a5af(0x143)),omnic=require(_0xe8a5af(0x151));module[_0xe8a5af(0x12a)]=class ApexLegendsCommand extends tesseract_1[_0xe8a5af(0x144)]{constructor(){const _0x444b90=_0xe8a5af;super(_0x444b90(0x15a),{'description':_0x444b90(0x147),'triggers':['apex'],'arguments':{'alias':{'platform':['p']},'string':[_0x444b90(0x158)]},'scope':_0x444b90(0x156),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x444b90(0x15b),_0x444b90(0x154)]}),this[_0x444b90(0x132)]=async(_0x494aec,_0x1ca0e3)=>{const _0x2f50c8=_0x444b90;if(!_0x1ca0e3['_'][_0x2f50c8(0x135)])throw new errors[(_0x2f50c8(0x14b))](errors[_0x2f50c8(0x153)][_0x2f50c8(0x155)],this[_0x2f50c8(0x14d)]);const _0x3e3c10=_0x1ca0e3['_'][_0x2f50c8(0x130)]('\x20'),_0x464845=_0x1ca0e3[_0x2f50c8(0x158)]&&this[_0x2f50c8(0x13b)][_0x2f50c8(0x14a)](_0x1ca0e3[_0x2f50c8(0x158)][_0x2f50c8(0x13f)]())?_0x1ca0e3[_0x2f50c8(0x158)]['toLowerCase']():this[_0x2f50c8(0x13b)][0x0],_0x2fb0d1=await omnic['makeRequest'](_0x2f50c8(0x136)+_0x464845+'/'+encodeURIComponent(_0x3e3c10)),_0x377f58=await _0x2fb0d1[_0x2f50c8(0x14e)]();if(_0x377f58['errors'])throw new Error(_0x377f58[_0x2f50c8(0x13c)][0x0][_0x2f50c8(0x14c)]);const _0x163cd3=_0x377f58[_0x2f50c8(0x140)]['segments'][_0x2f50c8(0x12e)](_0x146b5e=>_0x146b5e[_0x2f50c8(0x134)]==='overview');await _0x494aec[_0x2f50c8(0x13a)][_0x2f50c8(0x12d)]({'embed':{'color':constants[_0x2f50c8(0x12c)]['APEX_LEGENDS'],'author':{'name':_0x377f58['data']['platformInfo'][_0x2f50c8(0x133)],'iconURL':_0x377f58['data']['platformInfo']['avatarUrl']},'title':_0x2f50c8(0x12f),'description':_0x377f58[_0x2f50c8(0x140)]['metadata'][_0x2f50c8(0x128)]?_0x377f58[_0x2f50c8(0x140)][_0x2f50c8(0x13e)][_0x2f50c8(0x133)]+_0x2f50c8(0x131)+_0x377f58[_0x2f50c8(0x140)][_0x2f50c8(0x145)][_0x2f50c8(0x128)]:null,'fields':[{'name':_0x2f50c8(0x15c),'value':_0x163cd3[_0x2f50c8(0x137)][_0x2f50c8(0x142)]?_0x163cd3['stats'][_0x2f50c8(0x142)][_0x2f50c8(0x145)][_0x2f50c8(0x127)]+'\x20/\x20'+_0x163cd3[_0x2f50c8(0x137)]['rankScore']['displayValue']:'-','inline':!![]},...Object['keys'](_0x163cd3[_0x2f50c8(0x137)])[_0x2f50c8(0x139)](_0x1c461e=>_0x1c461e!==_0x2f50c8(0x142))[_0x2f50c8(0x157)](_0xb1ca51=>({'name':_0x163cd3[_0x2f50c8(0x137)][_0xb1ca51]['displayName'],'value':_0x163cd3[_0x2f50c8(0x137)][_0xb1ca51][_0x2f50c8(0x150)],'inline':!![]}))],'thumbnail':{'url':_0x163cd3[_0x2f50c8(0x137)][_0x2f50c8(0x142)]?_0x163cd3[_0x2f50c8(0x137)][_0x2f50c8(0x142)][_0x2f50c8(0x145)][_0x2f50c8(0x146)]:_0x377f58['data'][_0x2f50c8(0x13e)][_0x2f50c8(0x12b)]},'footer':{'text':_0x464845[_0x2f50c8(0x159)]()+_0x2f50c8(0x126)}}});},this[_0x444b90(0x13b)]=['origin',_0x444b90(0x148),_0x444b90(0x138)];}}; \ No newline at end of file +const a123_0x5722=['keys','exec','APEX_LEGENDS','apexLegends\x20USERNAME','platformUserHandle','rankScore','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Apex\x20Legends\x20player\x20in\x20any\x20supported\x20platform.','activeLegendName','toUpperCase','platforms','toLowerCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','map','Rank','constructor','Apex\x20Legends\x20-\x20Player\x20Stats','platform','filter','data','json','channel','type','join','metadata','DiscordError','displayName','INVALID_COMMAND_SYNTAX','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASTION_ERROR_TYPE','apexLegends\x20USERNAME\x20--platform\x20PLATFORM','name','guild','platformInfo','apexLegends','psn','avatarUrl','exports','\x20•\x20Powered\x20by\x20Tracker\x20Network','includes','xbl','find','test','\x20is\x20currently\x20playing\x20with\x20','stats','message','iconUrl','errors','displayValue','origin','../../utils/constants','/playerstats/apexlegends/'];(function(_0x11a8d3,_0x4fa2f6){const _0x572252=function(_0x5c96ed){while(--_0x5c96ed){_0x11a8d3['push'](_0x11a8d3['shift']());}},_0x4b99e5=function(){const _0xa0e3cd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x33f3c2,_0x4502de,_0x35b23f,_0x596060){_0x596060=_0x596060||{};let _0x378b37=_0x4502de+'='+_0x35b23f,_0x3c3f1a=0x0;for(let _0x28f506=0x0,_0x20b7d2=_0x33f3c2['length'];_0x28f506<_0x20b7d2;_0x28f506++){const _0x177246=_0x33f3c2[_0x28f506];_0x378b37+=';\x20'+_0x177246;const _0x1427a4=_0x33f3c2[_0x177246];_0x33f3c2['push'](_0x1427a4),_0x20b7d2=_0x33f3c2['length'],_0x1427a4!==!![]&&(_0x378b37+='='+_0x1427a4);}_0x596060['cookie']=_0x378b37;},'removeCookie':function(){return'dev';},'getCookie':function(_0xaaa63b,_0x4d4093){_0xaaa63b=_0xaaa63b||function(_0x1d89f7){return _0x1d89f7;};const _0x1edefd=_0xaaa63b(new RegExp('(?:^|;\x20)'+_0x4d4093['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ef52b=function(_0x13c092,_0x54b22b){_0x13c092(++_0x54b22b);};return _0x5ef52b(_0x572252,_0x4fa2f6),_0x1edefd?decodeURIComponent(_0x1edefd[0x1]):undefined;}},_0x5e671c=function(){const _0x33b2f7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x33b2f7['test'](_0xa0e3cd['removeCookie']['toString']());};_0xa0e3cd['updateCookie']=_0x5e671c;let _0x50bac4='';const _0x5ba051=_0xa0e3cd['updateCookie']();if(!_0x5ba051)_0xa0e3cd['setCookie'](['*'],'counter',0x1);else _0x5ba051?_0x50bac4=_0xa0e3cd['getCookie'](null,'counter'):_0xa0e3cd['removeCookie']();};_0x4b99e5();}(a123_0x5722,0x65));const a123_0x4b99=function(_0x11a8d3,_0x4fa2f6){_0x11a8d3=_0x11a8d3-0x191;let _0x572252=a123_0x5722[_0x11a8d3];return _0x572252;};const a123_0x343631=a123_0x4b99,a123_0x5e671c=function(){let _0x5ba051=!![];return function(_0x33f3c2,_0x4502de){const _0x35b23f=_0x5ba051?function(){if(_0x4502de){const _0x596060=_0x4502de['apply'](_0x33f3c2,arguments);return _0x4502de=null,_0x596060;}}:function(){};return _0x5ba051=![],_0x35b23f;};}(),a123_0xa0e3cd=a123_0x5e671c(this,function(){const _0x378b37=function(){const _0x52ea92=a123_0x4b99,_0x3c3f1a=_0x378b37[_0x52ea92(0x1a0)](_0x52ea92(0x1ad))()[_0x52ea92(0x1a0)](_0x52ea92(0x19d));return!_0x3c3f1a[_0x52ea92(0x1bb)](a123_0xa0e3cd);};return _0x378b37();});a123_0xa0e3cd();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(a123_0x343631(0x1c3)),errors=require('../../utils/errors'),omnic=require('../../utils/omnic');module[a123_0x343631(0x1b6)]=class ApexLegendsCommand extends tesseract_1['Command']{constructor(){const _0x5073b3=a123_0x343631;super(_0x5073b3(0x1b3),{'description':_0x5073b3(0x198),'triggers':['apex'],'arguments':{'alias':{'platform':['p']},'string':[_0x5073b3(0x1a2)]},'scope':_0x5073b3(0x1b1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5073b3(0x195),_0x5073b3(0x1af)]}),this[_0x5073b3(0x193)]=async(_0x28f506,_0x20b7d2)=>{const _0x29eab3=_0x5073b3;if(!_0x20b7d2['_']['length'])throw new errors[(_0x29eab3(0x1aa))](errors[_0x29eab3(0x1ae)][_0x29eab3(0x1ac)],this[_0x29eab3(0x1b0)]);const _0x177246=_0x20b7d2['_'][_0x29eab3(0x1a8)]('\x20'),_0x1427a4=_0x20b7d2[_0x29eab3(0x1a2)]&&this[_0x29eab3(0x19b)][_0x29eab3(0x1b8)](_0x20b7d2['platform'][_0x29eab3(0x19c)]())?_0x20b7d2[_0x29eab3(0x1a2)][_0x29eab3(0x19c)]():this[_0x29eab3(0x19b)][0x0],_0xaaa63b=await omnic['makeRequest'](_0x29eab3(0x191)+_0x1427a4+'/'+encodeURIComponent(_0x177246)),_0x4d4093=await _0xaaa63b[_0x29eab3(0x1a5)]();if(_0x4d4093[_0x29eab3(0x1c0)])throw new Error(_0x4d4093[_0x29eab3(0x1c0)][0x0][_0x29eab3(0x1be)]);const _0x1edefd=_0x4d4093[_0x29eab3(0x1a4)]['segments'][_0x29eab3(0x1ba)](_0x5ef52b=>_0x5ef52b[_0x29eab3(0x1a7)]==='overview');await _0x28f506[_0x29eab3(0x1a6)]['send']({'embed':{'color':constants['COLORS'][_0x29eab3(0x194)],'author':{'name':_0x4d4093[_0x29eab3(0x1a4)]['platformInfo']['platformUserHandle'],'iconURL':_0x4d4093[_0x29eab3(0x1a4)]['platformInfo'][_0x29eab3(0x1b5)]},'title':_0x29eab3(0x1a1),'description':_0x4d4093[_0x29eab3(0x1a4)]['metadata']['activeLegendName']?_0x4d4093[_0x29eab3(0x1a4)]['platformInfo'][_0x29eab3(0x196)]+_0x29eab3(0x1bc)+_0x4d4093['data'][_0x29eab3(0x1a9)][_0x29eab3(0x199)]:null,'fields':[{'name':_0x29eab3(0x19f),'value':_0x1edefd[_0x29eab3(0x1bd)][_0x29eab3(0x197)]?_0x1edefd[_0x29eab3(0x1bd)][_0x29eab3(0x197)][_0x29eab3(0x1a9)]['rankName']+'\x20/\x20'+_0x1edefd[_0x29eab3(0x1bd)][_0x29eab3(0x197)]['displayValue']:'-','inline':!![]},...Object[_0x29eab3(0x192)](_0x1edefd[_0x29eab3(0x1bd)])[_0x29eab3(0x1a3)](_0x1d89f7=>_0x1d89f7!==_0x29eab3(0x197))[_0x29eab3(0x19e)](_0x13c092=>({'name':_0x1edefd[_0x29eab3(0x1bd)][_0x13c092][_0x29eab3(0x1ab)],'value':_0x1edefd['stats'][_0x13c092][_0x29eab3(0x1c1)],'inline':!![]}))],'thumbnail':{'url':_0x1edefd[_0x29eab3(0x1bd)][_0x29eab3(0x197)]?_0x1edefd['stats'][_0x29eab3(0x197)]['metadata'][_0x29eab3(0x1bf)]:_0x4d4093[_0x29eab3(0x1a4)][_0x29eab3(0x1b2)][_0x29eab3(0x1b5)]},'footer':{'text':_0x1427a4[_0x29eab3(0x19a)]()+_0x29eab3(0x1b7)}}});},this[_0x5073b3(0x19b)]=[_0x5073b3(0x1c2),_0x5073b3(0x1b4),_0x5073b3(0x1b9)];}}; \ No newline at end of file diff --git a/commands/player_stats/counterStrikeGlobalOffensive.js b/commands/player_stats/counterStrikeGlobalOffensive.js index 8f412a61c..f18f73a7b 100644 --- a/commands/player_stats/counterStrikeGlobalOffensive.js +++ b/commands/player_stats/counterStrikeGlobalOffensive.js @@ -1 +1 @@ -const a123_0x14f2=['join','json','displayName','displayValue','timePlayed','/playerstats/csgo/','../../utils/errors','@bastion/tesseract','iconUrl','../../utils/constants','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','Command','message','BASTION_ERROR_TYPE','counterStrikeGlobalOffensive','platform','CSGO','csgo','steam','apply','toLowerCase','includes','exports','constructor','errors','counterStrikeGlobalOffensive\x20USERNAME\x20--platform\x20PLATFORM','toUpperCase','makeRequest','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20has\x20played\x20for\x20','stats','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Counter-Strike:\x20Global\x20Offensive\x20player\x20in\x20any\x20supported\x20platform.','keys','DiscordError','rankScore','\x20hours.','COLORS','overview','../../utils/omnic','filter','toFixed','platformInfo','platformUserHandle','map','counterStrikeGlobalOffensive\x20USERNAME','send','data','platforms','\x20•\x20Powered\x20by\x20Tracker\x20Network','avatarUrl','https://steamcommunity.com/id/'];(function(_0x3c27c2,_0x2e959d){const _0x14f2aa=function(_0x5d39cd){while(--_0x5d39cd){_0x3c27c2['push'](_0x3c27c2['shift']());}},_0xad7f90=function(){const _0x93718a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x33fcca,_0x4f3a30,_0x596df9,_0x3e7d06){_0x3e7d06=_0x3e7d06||{};let _0x58ef56=_0x4f3a30+'='+_0x596df9,_0x5cb37e=0x0;for(let _0x3797f8=0x0,_0x5d3001=_0x33fcca['length'];_0x3797f8<_0x5d3001;_0x3797f8++){const _0x1303c8=_0x33fcca[_0x3797f8];_0x58ef56+=';\x20'+_0x1303c8;const _0x38bbfa=_0x33fcca[_0x1303c8];_0x33fcca['push'](_0x38bbfa),_0x5d3001=_0x33fcca['length'],_0x38bbfa!==!![]&&(_0x58ef56+='='+_0x38bbfa);}_0x3e7d06['cookie']=_0x58ef56;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1bfc18,_0x29a986){_0x1bfc18=_0x1bfc18||function(_0x93bdc9){return _0x93bdc9;};const _0x524f04=_0x1bfc18(new RegExp('(?:^|;\x20)'+_0x29a986['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x28d008=function(_0x112206,_0x278fe5){_0x112206(++_0x278fe5);};return _0x28d008(_0x14f2aa,_0x2e959d),_0x524f04?decodeURIComponent(_0x524f04[0x1]):undefined;}},_0x1b87ae=function(){const _0x14c20a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x14c20a['test'](_0x93718a['removeCookie']['toString']());};_0x93718a['updateCookie']=_0x1b87ae;let _0x468673='';const _0x2749da=_0x93718a['updateCookie']();if(!_0x2749da)_0x93718a['setCookie'](['*'],'counter',0x1);else _0x2749da?_0x468673=_0x93718a['getCookie'](null,'counter'):_0x93718a['removeCookie']();};_0xad7f90();}(a123_0x14f2,0x19d));const a123_0xad7f=function(_0x3c27c2,_0x2e959d){_0x3c27c2=_0x3c27c2-0x127;let _0x14f2aa=a123_0x14f2[_0x3c27c2];return _0x14f2aa;};const _0x1eb20e=a123_0xad7f,a123_0x1b87ae=function(){let _0x2749da=!![];return function(_0x33fcca,_0x4f3a30){const _0x596df9=_0x2749da?function(){const _0x3b7ae2=a123_0xad7f;if(_0x4f3a30){const _0x3e7d06=_0x4f3a30[_0x3b7ae2(0x147)](_0x33fcca,arguments);return _0x4f3a30=null,_0x3e7d06;}}:function(){};return _0x2749da=![],_0x596df9;};}(),a123_0x93718a=a123_0x1b87ae(this,function(){const _0x58ef56=function(){const _0x1e9d15=a123_0xad7f,_0x5cb37e=_0x58ef56[_0x1e9d15(0x14b)](_0x1e9d15(0x13d))()['constructor'](_0x1e9d15(0x150));return!_0x5cb37e['test'](a123_0x93718a);};return _0x58ef56();});a123_0x93718a();'use strict';const tesseract_1=require(_0x1eb20e(0x139)),constants=require(_0x1eb20e(0x13b)),errors=require(_0x1eb20e(0x138)),omnic=require(_0x1eb20e(0x15a));module[_0x1eb20e(0x14a)]=class CounterStrikeGlobalOffensiveCommand extends tesseract_1[_0x1eb20e(0x13f)]{constructor(){const _0x4c418b=_0x1eb20e;super(_0x4c418b(0x142),{'description':_0x4c418b(0x153),'triggers':[_0x4c418b(0x145)],'arguments':{'alias':{'platform':['p']},'string':[_0x4c418b(0x143)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4c418b(0x12b),_0x4c418b(0x14d)]}),this['exec']=async(_0x3797f8,_0x5d3001)=>{const _0x10894e=_0x4c418b;if(!_0x5d3001['_']['length'])throw new errors[(_0x10894e(0x155))](errors[_0x10894e(0x141)]['INVALID_COMMAND_SYNTAX'],this[_0x10894e(0x13c)]);const _0x1303c8=_0x5d3001['_'][_0x10894e(0x132)]('\x20'),_0x38bbfa=_0x5d3001[_0x10894e(0x143)]&&this[_0x10894e(0x12e)][_0x10894e(0x149)](_0x5d3001['platform'][_0x10894e(0x148)]())?_0x5d3001[_0x10894e(0x143)]['toLowerCase']():this[_0x10894e(0x12e)][0x0],_0x1bfc18=await omnic[_0x10894e(0x14f)](_0x10894e(0x137)+_0x38bbfa+'/'+encodeURIComponent(_0x1303c8)),_0x29a986=await _0x1bfc18[_0x10894e(0x133)]();if(_0x29a986[_0x10894e(0x14c)])throw new Error(_0x29a986['errors'][0x0][_0x10894e(0x140)]);const _0x524f04=_0x29a986[_0x10894e(0x12d)]['segments']['find'](_0x28d008=>_0x28d008['type']===_0x10894e(0x159));await _0x3797f8[_0x10894e(0x13e)][_0x10894e(0x12c)]({'embed':{'color':constants[_0x10894e(0x158)][_0x10894e(0x144)],'author':{'name':_0x29a986[_0x10894e(0x12d)][_0x10894e(0x128)][_0x10894e(0x129)],'url':_0x10894e(0x131)+_0x29a986[_0x10894e(0x12d)][_0x10894e(0x128)][_0x10894e(0x129)]},'title':'Counter-Strike:\x20Global\x20Offensive\x20-\x20Player\x20Stats','description':_0x524f04['stats']['timePlayed']?_0x29a986[_0x10894e(0x12d)][_0x10894e(0x128)][_0x10894e(0x129)]+_0x10894e(0x151)+(_0x524f04[_0x10894e(0x152)][_0x10894e(0x136)]['value']/0x3c/0x3c)[_0x10894e(0x127)](0x2)+_0x10894e(0x157):'','fields':Object[_0x10894e(0x154)](_0x524f04[_0x10894e(0x152)])[_0x10894e(0x15b)](_0x93bdc9=>_0x93bdc9!==_0x10894e(0x136))[_0x10894e(0x12a)](_0x112206=>({'name':_0x524f04[_0x10894e(0x152)][_0x112206][_0x10894e(0x134)],'value':_0x524f04[_0x10894e(0x152)][_0x112206][_0x10894e(0x135)],'inline':!![]})),'thumbnail':{'url':_0x524f04[_0x10894e(0x152)][_0x10894e(0x156)]?_0x524f04[_0x10894e(0x152)][_0x10894e(0x156)]['metadata'][_0x10894e(0x13a)]:_0x29a986[_0x10894e(0x12d)][_0x10894e(0x128)][_0x10894e(0x130)]},'footer':{'text':_0x38bbfa[_0x10894e(0x14e)]()+_0x10894e(0x12f)}}});},this['platforms']=[_0x4c418b(0x146)];}}; \ No newline at end of file +const a124_0x49f7=['\x20has\x20played\x20for\x20','Command','platformInfo','type','Counter-Strike:\x20Global\x20Offensive\x20-\x20Player\x20Stats','COLORS','platform','metadata','counterStrikeGlobalOffensive\x20USERNAME\x20--platform\x20PLATFORM','rankScore','makeRequest','toLowerCase','\x20hours.','value','CSGO','stats','data','DiscordError','https://steamcommunity.com/id/','constructor','guild','timePlayed','steam','segments','counterStrikeGlobalOffensive\x20USERNAME','csgo','BASTION_ERROR_TYPE','../../utils/omnic','../../utils/errors','/playerstats/csgo/','send','length','message','overview','platforms','displayName','displayValue','exports','toFixed','apply','test','keys','errors','find','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','includes','channel','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Counter-Strike:\x20Global\x20Offensive\x20player\x20in\x20any\x20supported\x20platform.','platformUserHandle','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x301a83,_0x143024){const _0x49f709=function(_0x2a4e71){while(--_0x2a4e71){_0x301a83['push'](_0x301a83['shift']());}},_0x443cf5=function(){const _0x30a1a7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3047d1,_0x59d6fb,_0xaf9d6a,_0x35dc26){_0x35dc26=_0x35dc26||{};let _0x4abf81=_0x59d6fb+'='+_0xaf9d6a,_0x236863=0x0;for(let _0x3b9ed4=0x0,_0xf0bdd3=_0x3047d1['length'];_0x3b9ed4<_0xf0bdd3;_0x3b9ed4++){const _0x324384=_0x3047d1[_0x3b9ed4];_0x4abf81+=';\x20'+_0x324384;const _0x311c80=_0x3047d1[_0x324384];_0x3047d1['push'](_0x311c80),_0xf0bdd3=_0x3047d1['length'],_0x311c80!==!![]&&(_0x4abf81+='='+_0x311c80);}_0x35dc26['cookie']=_0x4abf81;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5b0cbe,_0x567ea1){_0x5b0cbe=_0x5b0cbe||function(_0x427c8a){return _0x427c8a;};const _0x20d6f9=_0x5b0cbe(new RegExp('(?:^|;\x20)'+_0x567ea1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4ef241=function(_0x1f4bb7,_0x165434){_0x1f4bb7(++_0x165434);};return _0x4ef241(_0x49f709,_0x143024),_0x20d6f9?decodeURIComponent(_0x20d6f9[0x1]):undefined;}},_0x8e1341=function(){const _0x151954=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x151954['test'](_0x30a1a7['removeCookie']['toString']());};_0x30a1a7['updateCookie']=_0x8e1341;let _0x4feca1='';const _0x46e4c5=_0x30a1a7['updateCookie']();if(!_0x46e4c5)_0x30a1a7['setCookie'](['*'],'counter',0x1);else _0x46e4c5?_0x4feca1=_0x30a1a7['getCookie'](null,'counter'):_0x30a1a7['removeCookie']();};_0x443cf5();}(a124_0x49f7,0x168));const a124_0x443c=function(_0x301a83,_0x143024){_0x301a83=_0x301a83-0x11d;let _0x49f709=a124_0x49f7[_0x301a83];return _0x49f709;};const a124_0x5dc1b7=a124_0x443c,a124_0x8e1341=function(){let _0x46e4c5=!![];return function(_0x3047d1,_0x59d6fb){const _0xaf9d6a=_0x46e4c5?function(){const _0x4ee843=a124_0x443c;if(_0x59d6fb){const _0x35dc26=_0x59d6fb[_0x4ee843(0x13a)](_0x3047d1,arguments);return _0x59d6fb=null,_0x35dc26;}}:function(){};return _0x46e4c5=![],_0xaf9d6a;};}(),a124_0x30a1a7=a124_0x8e1341(this,function(){const _0x4abf81=function(){const _0x5a24a0=a124_0x443c,_0x236863=_0x4abf81[_0x5a24a0(0x126)](_0x5a24a0(0x144))()[_0x5a24a0(0x126)](_0x5a24a0(0x13f));return!_0x236863[_0x5a24a0(0x13b)](a124_0x30a1a7);};return _0x4abf81();});a124_0x30a1a7();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require('../../utils/constants'),errors=require(a124_0x5dc1b7(0x12f)),omnic=require(a124_0x5dc1b7(0x12e));module[a124_0x5dc1b7(0x138)]=class CounterStrikeGlobalOffensiveCommand extends tesseract_1[a124_0x5dc1b7(0x146)]{constructor(){const _0x2a9065=a124_0x5dc1b7;super('counterStrikeGlobalOffensive',{'description':_0x2a9065(0x142),'triggers':[_0x2a9065(0x12c)],'arguments':{'alias':{'platform':['p']},'string':[_0x2a9065(0x14b)]},'scope':_0x2a9065(0x127),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2a9065(0x12b),_0x2a9065(0x14d)]}),this['exec']=async(_0x3b9ed4,_0xf0bdd3)=>{const _0x41a56a=_0x2a9065;if(!_0xf0bdd3['_'][_0x41a56a(0x132)])throw new errors[(_0x41a56a(0x124))](errors[_0x41a56a(0x12d)]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x324384=_0xf0bdd3['_']['join']('\x20'),_0x311c80=_0xf0bdd3['platform']&&this[_0x41a56a(0x135)][_0x41a56a(0x140)](_0xf0bdd3[_0x41a56a(0x14b)][_0x41a56a(0x11e)]())?_0xf0bdd3[_0x41a56a(0x14b)][_0x41a56a(0x11e)]():this[_0x41a56a(0x135)][0x0],_0x5b0cbe=await omnic[_0x41a56a(0x11d)](_0x41a56a(0x130)+_0x311c80+'/'+encodeURIComponent(_0x324384)),_0x567ea1=await _0x5b0cbe['json']();if(_0x567ea1['errors'])throw new Error(_0x567ea1[_0x41a56a(0x13d)][0x0][_0x41a56a(0x133)]);const _0x20d6f9=_0x567ea1[_0x41a56a(0x123)][_0x41a56a(0x12a)][_0x41a56a(0x13e)](_0x4ef241=>_0x4ef241[_0x41a56a(0x148)]===_0x41a56a(0x134));await _0x3b9ed4[_0x41a56a(0x141)][_0x41a56a(0x131)]({'embed':{'color':constants[_0x41a56a(0x14a)][_0x41a56a(0x121)],'author':{'name':_0x567ea1[_0x41a56a(0x123)][_0x41a56a(0x147)][_0x41a56a(0x143)],'url':_0x41a56a(0x125)+_0x567ea1[_0x41a56a(0x123)][_0x41a56a(0x147)][_0x41a56a(0x143)]},'title':_0x41a56a(0x149),'description':_0x20d6f9['stats'][_0x41a56a(0x128)]?_0x567ea1[_0x41a56a(0x123)][_0x41a56a(0x147)]['platformUserHandle']+_0x41a56a(0x145)+(_0x20d6f9[_0x41a56a(0x122)][_0x41a56a(0x128)][_0x41a56a(0x120)]/0x3c/0x3c)[_0x41a56a(0x139)](0x2)+_0x41a56a(0x11f):'','fields':Object[_0x41a56a(0x13c)](_0x20d6f9[_0x41a56a(0x122)])['filter'](_0x427c8a=>_0x427c8a!=='timePlayed')['map'](_0x1f4bb7=>({'name':_0x20d6f9[_0x41a56a(0x122)][_0x1f4bb7][_0x41a56a(0x136)],'value':_0x20d6f9[_0x41a56a(0x122)][_0x1f4bb7][_0x41a56a(0x137)],'inline':!![]})),'thumbnail':{'url':_0x20d6f9[_0x41a56a(0x122)][_0x41a56a(0x14e)]?_0x20d6f9['stats']['rankScore'][_0x41a56a(0x14c)]['iconUrl']:_0x567ea1[_0x41a56a(0x123)][_0x41a56a(0x147)]['avatarUrl']},'footer':{'text':_0x311c80['toUpperCase']()+'\x20•\x20Powered\x20by\x20Tracker\x20Network'}}});},this['platforms']=[_0x2a9065(0x129)];}}; \ No newline at end of file diff --git a/commands/player_stats/destiny2.js b/commands/player_stats/destiny2.js index 2a15c65b3..8d2feac5d 100644 --- a/commands/player_stats/destiny2.js +++ b/commands/player_stats/destiny2.js @@ -1 +1 @@ -const a124_0x5191=['name','Deaths','KDR','toUpperCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Destiny\x202\x20-\x20Player\x20Stats','makeRequest','includes','constructor','../../utils/omnic','Highest\x20Light\x20Level','destiny2\x20USERNAME','mergedAllCharacters','basic','length','keys','destiny2','combatRating','blizzard','\x20Suicides','score','guild','INVALID_COMMAND_SYNTAX','Score','adventuresCompleted','Playtime','displayValue','Kills','stadia','toLowerCase','secondsPlayed','../../utils/errors','xbl','allMedalsEarned','BASTION_ERROR_TYPE','deaths','send','toUTCString','platforms','profile','killsDeathsAssists','../../utils/constants','Total\x20Medals\x20Earned','steam','join','allTime','kills','teamScore','membership','Combat\x20Rating','Assists','platform','apply','suicides','PLAYER_DOESNT_EXIST','highestLightLevel','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Destiny\x202\x20player\x20in\x20any\x20supported\x20platform.','merged','exports','\x20•\x20Powered\x20by\x20Bungie','Best\x20Weapon\x20Type','stats','toFixed','Extras','killsDeathsRatio','@bastion/tesseract','objectivesCompleted','assists','exec','dateLastPlayed','\x20/\x20','Team\x20Score','value','\x20Adventures\x20Completed\x0a','/playerstats/destiny2/','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','psn','Win\x20Loss\x20Ratio','DiscordError'];(function(_0x1a025e,_0x5cb653){const _0x5191ae=function(_0x5ce155){while(--_0x5ce155){_0x1a025e['push'](_0x1a025e['shift']());}},_0x1f4e00=function(){const _0x42c566={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23b1c4,_0x43c663,_0x41bd3e,_0x2f377f){_0x2f377f=_0x2f377f||{};let _0x208a5d=_0x43c663+'='+_0x41bd3e,_0x40da3f=0x0;for(let _0x1f6ef8=0x0,_0x29c48c=_0x23b1c4['length'];_0x1f6ef8<_0x29c48c;_0x1f6ef8++){const _0x4ca0ba=_0x23b1c4[_0x1f6ef8];_0x208a5d+=';\x20'+_0x4ca0ba;const _0x101e4e=_0x23b1c4[_0x4ca0ba];_0x23b1c4['push'](_0x101e4e),_0x29c48c=_0x23b1c4['length'],_0x101e4e!==!![]&&(_0x208a5d+='='+_0x101e4e);}_0x2f377f['cookie']=_0x208a5d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2e253e,_0x273124){_0x2e253e=_0x2e253e||function(_0x221992){return _0x221992;};const _0x171271=_0x2e253e(new RegExp('(?:^|;\x20)'+_0x273124['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4086a7=function(_0x1e8aef,_0x22ffdb){_0x1e8aef(++_0x22ffdb);};return _0x4086a7(_0x5191ae,_0x5cb653),_0x171271?decodeURIComponent(_0x171271[0x1]):undefined;}},_0x5520dc=function(){const _0x4f0054=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4f0054['test'](_0x42c566['removeCookie']['toString']());};_0x42c566['updateCookie']=_0x5520dc;let _0x30a0d3='';const _0x4562d6=_0x42c566['updateCookie']();if(!_0x4562d6)_0x42c566['setCookie'](['*'],'counter',0x1);else _0x4562d6?_0x30a0d3=_0x42c566['getCookie'](null,'counter'):_0x42c566['removeCookie']();};_0x1f4e00();}(a124_0x5191,0xf4));const a124_0x1f4e=function(_0x1a025e,_0x5cb653){_0x1a025e=_0x1a025e-0x77;let _0x5191ae=a124_0x5191[_0x1a025e];return _0x5191ae;};const _0x4a076c=a124_0x1f4e,a124_0x5520dc=function(){let _0x4562d6=!![];return function(_0x23b1c4,_0x43c663){const _0x41bd3e=_0x4562d6?function(){const _0x139904=a124_0x1f4e;if(_0x43c663){const _0x2f377f=_0x43c663[_0x139904(0xa7)](_0x23b1c4,arguments);return _0x43c663=null,_0x2f377f;}}:function(){};return _0x4562d6=![],_0x41bd3e;};}(),a124_0x42c566=a124_0x5520dc(this,function(){const _0x208a5d=function(){const _0x3de0a9=a124_0x1f4e,_0x40da3f=_0x208a5d[_0x3de0a9(0x7b)](_0x3de0a9(0xbe))()['constructor'](_0x3de0a9(0x77));return!_0x40da3f[_0x3de0a9(0xbf)](a124_0x42c566);};return _0x208a5d();});a124_0x42c566();'use strict';const tesseract_1=require(_0x4a076c(0xb4)),constants=require(_0x4a076c(0x9c)),errors=require(_0x4a076c(0x92)),omnic=require(_0x4a076c(0x7c));module[_0x4a076c(0xad)]=class Destiny2Command extends tesseract_1['Command']{constructor(){const _0x1963b1=_0x4a076c;super(_0x1963b1(0x83),{'description':_0x1963b1(0xab),'triggers':[],'arguments':{'alias':{'platform':['p']},'string':[_0x1963b1(0xa6)]},'scope':_0x1963b1(0x88),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1963b1(0x7e),'destiny2\x20USERNAME\x20--platform\x20PLATFORM']}),this[_0x1963b1(0xb7)]=async(_0x1f6ef8,_0x29c48c)=>{const _0x3914b0=_0x1963b1;if(!_0x29c48c['_'][_0x3914b0(0x81)])throw new errors[(_0x3914b0(0xc2))](errors[_0x3914b0(0x95)][_0x3914b0(0x89)],this[_0x3914b0(0xc3)]);const _0x4ca0ba=_0x29c48c['_'][_0x3914b0(0x9f)]('\x20'),_0x101e4e=_0x29c48c[_0x3914b0(0xa6)]&&this[_0x3914b0(0x99)][_0x3914b0(0x7a)](_0x29c48c[_0x3914b0(0xa6)]['toLowerCase']())?this[_0x3914b0(0x99)]['indexOf'](_0x29c48c[_0x3914b0(0xa6)][_0x3914b0(0x90)]()):-0x1,_0x2e253e=await omnic[_0x3914b0(0x79)](_0x3914b0(0xbd)+_0x101e4e+'/'+encodeURIComponent(_0x4ca0ba)),_0x273124=await _0x2e253e['json']();if(!Object[_0x3914b0(0x82)](_0x273124)[_0x3914b0(0x81)])throw new Error(_0x3914b0(0xa9));await _0x1f6ef8['channel'][_0x3914b0(0x97)]({'embed':{'color':constants['COLORS']['DESTINY_2'],'author':{'name':_0x273124[_0x3914b0(0xa3)]['displayName']},'title':_0x3914b0(0x78),'description':'Last\x20played\x20on\x20'+new Date(_0x273124[_0x3914b0(0x9a)]['profile']['data'][_0x3914b0(0xb8)])[_0x3914b0(0x98)](),'fields':[{'name':_0x3914b0(0x8c),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)]['allTime'][_0x3914b0(0x91)][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0x7d),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0xaa)]['basic'][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0x7d),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0xaa)][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0xa4),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)]['merged'][_0x3914b0(0xa0)][_0x3914b0(0x84)]['basic'][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0x8a),'value':_0x273124['stats'][_0x3914b0(0x7f)][_0x3914b0(0xac)]['allTime'][_0x3914b0(0x87)][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0xba),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)]['merged'][_0x3914b0(0xa0)][_0x3914b0(0xa2)]['basic'][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0x8e),'value':_0x273124[_0x3914b0(0xb0)]['mergedAllCharacters']['merged'][_0x3914b0(0xa0)][_0x3914b0(0xa1)][_0x3914b0(0x80)][_0x3914b0(0x8d)]+'\x20/\x20'+_0x273124[_0x3914b0(0xb0)]['mergedAllCharacters'][_0x3914b0(0xac)][_0x3914b0(0xa0)]['precisionKills'][_0x3914b0(0x80)]['displayValue']+'\x20Precision\x20Kills','inline':!![]},{'name':_0x3914b0(0xa5),'value':_0x273124[_0x3914b0(0xb0)]['mergedAllCharacters'][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0xb6)][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0xc4),'value':_0x273124[_0x3914b0(0xb0)]['mergedAllCharacters'][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0x96)][_0x3914b0(0x80)][_0x3914b0(0x8d)]+_0x3914b0(0xb9)+_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)]['merged'][_0x3914b0(0xa0)][_0x3914b0(0xa8)][_0x3914b0(0x80)][_0x3914b0(0x8d)]+_0x3914b0(0x86),'inline':!![]},{'name':_0x3914b0(0xc5),'value':_0x273124[_0x3914b0(0xb0)]['mergedAllCharacters'][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0xb3)]['basic'][_0x3914b0(0x8d)],'inline':!![]},{'name':'KDA','value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0x9b)][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':'KAD','value':((_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)]['allTime'][_0x3914b0(0xa1)][_0x3914b0(0x80)]['value']+_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)]['merged'][_0x3914b0(0xa0)][_0x3914b0(0xb6)]['basic'][_0x3914b0(0xbb)])/_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0x96)][_0x3914b0(0x80)][_0x3914b0(0xbb)])[_0x3914b0(0xb1)](0x2),'inline':!![]},{'name':_0x3914b0(0xc1),'value':_0x273124['stats'][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)]['winLossRatio'][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0xaf),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)]['allTime']['weaponBestType'][_0x3914b0(0x80)][_0x3914b0(0x8d)],'inline':!![]},{'name':_0x3914b0(0x9d),'value':_0x273124['stats'][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0x94)][_0x3914b0(0x80)]['displayValue'],'inline':!![]},{'name':_0x3914b0(0xb2),'value':_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0xb5)]['basic'][_0x3914b0(0x8d)]+'\x20Objectives\x20Completed\x0a'+_0x273124[_0x3914b0(0xb0)][_0x3914b0(0x7f)][_0x3914b0(0xac)][_0x3914b0(0xa0)][_0x3914b0(0x8b)]['basic'][_0x3914b0(0x8d)]+_0x3914b0(0xbc)+_0x273124[_0x3914b0(0xb0)]['mergedAllCharacters'][_0x3914b0(0xac)]['allTime']['heroicPublicEventsCompleted'][_0x3914b0(0x80)][_0x3914b0(0x8d)]+'\x20Heroic\x20Public\x20Events\x20Completed'}],'footer':{'text':this[_0x3914b0(0x99)][_0x273124[_0x3914b0(0xa3)]['membershipType']][_0x3914b0(0xc6)]()+_0x3914b0(0xae)}}});},this[_0x1963b1(0x99)]=[null,_0x1963b1(0x93),_0x1963b1(0xc0),_0x1963b1(0x9e),_0x1963b1(0x85),_0x1963b1(0x8f)];}}; \ No newline at end of file +const a125_0x5895=['@bastion/tesseract','exports','Total\x20Medals\x20Earned','killsDeathsAssists','platforms','\x20Precision\x20Kills','keys','deaths','Combat\x20Rating','killsDeathsRatio','Command','destiny2\x20USERNAME\x20--platform\x20PLATFORM','displayValue','../../utils/errors','\x20Objectives\x20Completed\x0a','winLossRatio','PLAYER_DOESNT_EXIST','return\x20/\x22\x20+\x20this\x20+\x20\x22/','dateLastPlayed','test','toLowerCase','../../utils/constants','xbl','data','\x20/\x20','membership','send','allMedalsEarned','highestLightLevel','weaponBestType','heroicPublicEventsCompleted','KAD','COLORS','DESTINY_2','profile','secondsPlayed','../../utils/omnic','length','toUpperCase','/playerstats/destiny2/','guild','adventuresCompleted','toFixed','stats','Extras','BASTION_ERROR_TYPE','objectivesCompleted','basic','includes','INVALID_COMMAND_SYNTAX','merged','Assists','\x20•\x20Powered\x20by\x20Bungie','toUTCString','Score','Last\x20played\x20on\x20','Destiny\x202\x20-\x20Player\x20Stats','makeRequest','suicides','teamScore','allTime','channel','\x20Adventures\x20Completed\x0a','Best\x20Weapon\x20Type','KDA','assists','platform','Kills','score','constructor','value','displayName','blizzard','indexOf','Deaths','DiscordError','destiny2','kills','combatRating','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','mergedAllCharacters','exec'];(function(_0x34e132,_0x19d08a){const _0x5895a0=function(_0x402602){while(--_0x402602){_0x34e132['push'](_0x34e132['shift']());}},_0x388c8b=function(){const _0x382683={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xdec086,_0x332d71,_0x2a1825,_0x5268c9){_0x5268c9=_0x5268c9||{};let _0x3e9aeb=_0x332d71+'='+_0x2a1825,_0x1d0249=0x0;for(let _0x46b9a6=0x0,_0x4ace1c=_0xdec086['length'];_0x46b9a6<_0x4ace1c;_0x46b9a6++){const _0x3173f2=_0xdec086[_0x46b9a6];_0x3e9aeb+=';\x20'+_0x3173f2;const _0x1cbd65=_0xdec086[_0x3173f2];_0xdec086['push'](_0x1cbd65),_0x4ace1c=_0xdec086['length'],_0x1cbd65!==!![]&&(_0x3e9aeb+='='+_0x1cbd65);}_0x5268c9['cookie']=_0x3e9aeb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x436e23,_0x47f32b){_0x436e23=_0x436e23||function(_0x3cb2a3){return _0x3cb2a3;};const _0x5d8ce4=_0x436e23(new RegExp('(?:^|;\x20)'+_0x47f32b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2031dd=function(_0x4771ce,_0x5963c6){_0x4771ce(++_0x5963c6);};return _0x2031dd(_0x5895a0,_0x19d08a),_0x5d8ce4?decodeURIComponent(_0x5d8ce4[0x1]):undefined;}},_0x3d273c=function(){const _0x5be4fa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5be4fa['test'](_0x382683['removeCookie']['toString']());};_0x382683['updateCookie']=_0x3d273c;let _0x1489d8='';const _0x12ecb9=_0x382683['updateCookie']();if(!_0x12ecb9)_0x382683['setCookie'](['*'],'counter',0x1);else _0x12ecb9?_0x1489d8=_0x382683['getCookie'](null,'counter'):_0x382683['removeCookie']();};_0x388c8b();}(a125_0x5895,0x15f));const a125_0x388c=function(_0x34e132,_0x19d08a){_0x34e132=_0x34e132-0x12e;let _0x5895a0=a125_0x5895[_0x34e132];return _0x5895a0;};const a125_0x26687a=a125_0x388c,a125_0x3d273c=function(){let _0x12ecb9=!![];return function(_0xdec086,_0x332d71){const _0x2a1825=_0x12ecb9?function(){if(_0x332d71){const _0x5268c9=_0x332d71['apply'](_0xdec086,arguments);return _0x332d71=null,_0x5268c9;}}:function(){};return _0x12ecb9=![],_0x2a1825;};}(),a125_0x382683=a125_0x3d273c(this,function(){const _0x3e9aeb=function(){const _0x397a94=a125_0x388c,_0x1d0249=_0x3e9aeb[_0x397a94(0x15c)](_0x397a94(0x17a))()['constructor'](_0x397a94(0x166));return!_0x1d0249[_0x397a94(0x17c)](a125_0x382683);};return _0x3e9aeb();});a125_0x382683();'use strict';const tesseract_1=require(a125_0x26687a(0x169)),constants=require(a125_0x26687a(0x17e)),errors=require(a125_0x26687a(0x176)),omnic=require(a125_0x26687a(0x13b));module[a125_0x26687a(0x16a)]=class Destiny2Command extends tesseract_1[a125_0x26687a(0x173)]{constructor(){const _0x28d704=a125_0x26687a;super(_0x28d704(0x163),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Destiny\x202\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':[_0x28d704(0x159)]},'scope':_0x28d704(0x13f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['destiny2\x20USERNAME',_0x28d704(0x174)]}),this[_0x28d704(0x168)]=async(_0x46b9a6,_0x4ace1c)=>{const _0x3a2721=_0x28d704;if(!_0x4ace1c['_'][_0x3a2721(0x13c)])throw new errors[(_0x3a2721(0x162))](errors[_0x3a2721(0x144)][_0x3a2721(0x148)],this['name']);const _0x3173f2=_0x4ace1c['_']['join']('\x20'),_0x1cbd65=_0x4ace1c[_0x3a2721(0x159)]&&this[_0x3a2721(0x16d)][_0x3a2721(0x147)](_0x4ace1c[_0x3a2721(0x159)][_0x3a2721(0x17d)]())?this[_0x3a2721(0x16d)][_0x3a2721(0x160)](_0x4ace1c[_0x3a2721(0x159)][_0x3a2721(0x17d)]()):-0x1,_0x436e23=await omnic[_0x3a2721(0x150)](_0x3a2721(0x13e)+_0x1cbd65+'/'+encodeURIComponent(_0x3173f2)),_0x47f32b=await _0x436e23['json']();if(!Object[_0x3a2721(0x16f)](_0x47f32b)[_0x3a2721(0x13c)])throw new Error(_0x3a2721(0x179));await _0x46b9a6[_0x3a2721(0x154)][_0x3a2721(0x131)]({'embed':{'color':constants[_0x3a2721(0x137)][_0x3a2721(0x138)],'author':{'name':_0x47f32b[_0x3a2721(0x130)][_0x3a2721(0x15e)]},'title':_0x3a2721(0x14f),'description':_0x3a2721(0x14e)+new Date(_0x47f32b[_0x3a2721(0x139)][_0x3a2721(0x139)][_0x3a2721(0x12e)][_0x3a2721(0x17b)])[_0x3a2721(0x14c)](),'fields':[{'name':'Playtime','value':_0x47f32b[_0x3a2721(0x142)]['mergedAllCharacters']['merged'][_0x3a2721(0x153)][_0x3a2721(0x13a)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':'Highest\x20Light\x20Level','value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)]['merged'][_0x3a2721(0x153)]['highestLightLevel'][_0x3a2721(0x146)]['displayValue'],'inline':!![]},{'name':'Highest\x20Light\x20Level','value':_0x47f32b['stats'][_0x3a2721(0x167)][_0x3a2721(0x149)]['allTime'][_0x3a2721(0x133)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x171),'value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x165)]['basic'][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x14d),'value':_0x47f32b[_0x3a2721(0x142)]['mergedAllCharacters'][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x15b)][_0x3a2721(0x146)]['displayValue'],'inline':!![]},{'name':'Team\x20Score','value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)]['merged']['allTime'][_0x3a2721(0x152)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x15a),'value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)]['merged'][_0x3a2721(0x153)][_0x3a2721(0x164)][_0x3a2721(0x146)][_0x3a2721(0x175)]+_0x3a2721(0x12f)+_0x47f32b[_0x3a2721(0x142)]['mergedAllCharacters'][_0x3a2721(0x149)][_0x3a2721(0x153)]['precisionKills']['basic'][_0x3a2721(0x175)]+_0x3a2721(0x16e),'inline':!![]},{'name':_0x3a2721(0x14a),'value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)]['allTime'][_0x3a2721(0x158)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x161),'value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x170)]['basic']['displayValue']+_0x3a2721(0x12f)+_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x151)][_0x3a2721(0x146)]['displayValue']+'\x20Suicides','inline':!![]},{'name':'KDR','value':_0x47f32b['stats'][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x172)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x157),'value':_0x47f32b['stats'][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x16c)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x136),'value':((_0x47f32b['stats']['mergedAllCharacters'][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x164)][_0x3a2721(0x146)][_0x3a2721(0x15d)]+_0x47f32b['stats'][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x158)][_0x3a2721(0x146)][_0x3a2721(0x15d)])/_0x47f32b[_0x3a2721(0x142)]['mergedAllCharacters'][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x170)]['basic'][_0x3a2721(0x15d)])[_0x3a2721(0x141)](0x2),'inline':!![]},{'name':'Win\x20Loss\x20Ratio','value':_0x47f32b[_0x3a2721(0x142)]['mergedAllCharacters'][_0x3a2721(0x149)]['allTime'][_0x3a2721(0x178)]['basic'][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x156),'value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x134)][_0x3a2721(0x146)][_0x3a2721(0x175)],'inline':!![]},{'name':_0x3a2721(0x16b),'value':_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)]['allTime'][_0x3a2721(0x132)][_0x3a2721(0x146)]['displayValue'],'inline':!![]},{'name':_0x3a2721(0x143),'value':_0x47f32b[_0x3a2721(0x142)]['mergedAllCharacters'][_0x3a2721(0x149)][_0x3a2721(0x153)][_0x3a2721(0x145)][_0x3a2721(0x146)][_0x3a2721(0x175)]+_0x3a2721(0x177)+_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)][_0x3a2721(0x149)]['allTime'][_0x3a2721(0x140)][_0x3a2721(0x146)][_0x3a2721(0x175)]+_0x3a2721(0x155)+_0x47f32b[_0x3a2721(0x142)][_0x3a2721(0x167)]['merged']['allTime'][_0x3a2721(0x135)]['basic'][_0x3a2721(0x175)]+'\x20Heroic\x20Public\x20Events\x20Completed'}],'footer':{'text':this[_0x3a2721(0x16d)][_0x47f32b[_0x3a2721(0x130)]['membershipType']][_0x3a2721(0x13d)]()+_0x3a2721(0x14b)}}});},this['platforms']=[null,_0x28d704(0x17f),'psn','steam',_0x28d704(0x15f),'stadia'];}}; \ No newline at end of file diff --git a/commands/player_stats/fortnite.js b/commands/player_stats/fortnite.js index 716443b19..9770768ed 100644 --- a/commands/player_stats/fortnite.js +++ b/commands/player_stats/fortnite.js @@ -1 +1 @@ -const a125_0x3edf=['FORTNITE','guild','../../utils/errors','join','Fortnite\x20-\x20Player\x20Stats','fortnite\x20USERNAME\x20--platform\x20PLATFORM','length','platforms','INVALID_COMMAND_SYNTAX','platformNameLong','channel','xbl','lifeTimeStats','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Fortnite\x20player\x20in\x20any\x20supported\x20platform.','includes','value','BASTION_ERROR_TYPE','key','../../utils/omnic','makeRequest','platform','../../utils/constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','psn','exec','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20•\x20Powered\x20by\x20Fortnite\x20Tracker','@bastion/tesseract','COLORS','apply','toLowerCase','fortnite\x20USERNAME','map','error','constructor','toUpperCase'];(function(_0x5288c2,_0x508716){const _0x3edfc3=function(_0x305286){while(--_0x305286){_0x5288c2['push'](_0x5288c2['shift']());}},_0x314118=function(){const _0xddc760={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f0814,_0x204dfe,_0x27eba4,_0x40b148){_0x40b148=_0x40b148||{};let _0xaf71ce=_0x204dfe+'='+_0x27eba4,_0x539e54=0x0;for(let _0x231a7b=0x0,_0x2909f3=_0x2f0814['length'];_0x231a7b<_0x2909f3;_0x231a7b++){const _0x3c2ff4=_0x2f0814[_0x231a7b];_0xaf71ce+=';\x20'+_0x3c2ff4;const _0x1f5150=_0x2f0814[_0x3c2ff4];_0x2f0814['push'](_0x1f5150),_0x2909f3=_0x2f0814['length'],_0x1f5150!==!![]&&(_0xaf71ce+='='+_0x1f5150);}_0x40b148['cookie']=_0xaf71ce;},'removeCookie':function(){return'dev';},'getCookie':function(_0x248e7e,_0xc73636){_0x248e7e=_0x248e7e||function(_0x11a5be){return _0x11a5be;};const _0x5ce2d7=_0x248e7e(new RegExp('(?:^|;\x20)'+_0xc73636['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb3d062=function(_0x21383a,_0x5ef9c0){_0x21383a(++_0x5ef9c0);};return _0xb3d062(_0x3edfc3,_0x508716),_0x5ce2d7?decodeURIComponent(_0x5ce2d7[0x1]):undefined;}},_0x285317=function(){const _0x3a5694=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3a5694['test'](_0xddc760['removeCookie']['toString']());};_0xddc760['updateCookie']=_0x285317;let _0x11a91b='';const _0x340308=_0xddc760['updateCookie']();if(!_0x340308)_0xddc760['setCookie'](['*'],'counter',0x1);else _0x340308?_0x11a91b=_0xddc760['getCookie'](null,'counter'):_0xddc760['removeCookie']();};_0x314118();}(a125_0x3edf,0x9a));const a125_0x3141=function(_0x5288c2,_0x508716){_0x5288c2=_0x5288c2-0x18f;let _0x3edfc3=a125_0x3edf[_0x5288c2];return _0x3edfc3;};const _0x137082=a125_0x3141,a125_0x285317=function(){let _0x340308=!![];return function(_0x2f0814,_0x204dfe){const _0x27eba4=_0x340308?function(){const _0x36982a=a125_0x3141;if(_0x204dfe){const _0x40b148=_0x204dfe[_0x36982a(0x1ac)](_0x2f0814,arguments);return _0x204dfe=null,_0x40b148;}}:function(){};return _0x340308=![],_0x27eba4;};}(),a125_0xddc760=a125_0x285317(this,function(){const _0xaf71ce=function(){const _0x183206=a125_0x3141,_0x539e54=_0xaf71ce[_0x183206(0x1b1)](_0x183206(0x1a3))()['constructor'](_0x183206(0x1a8));return!_0x539e54[_0x183206(0x1a4)](a125_0xddc760);};return _0xaf71ce();});a125_0xddc760();'use strict';const tesseract_1=require(_0x137082(0x1aa)),constants=require(_0x137082(0x1a2)),errors=require(_0x137082(0x18f)),omnic=require(_0x137082(0x19f));module['exports']=class FortniteCommand extends tesseract_1['Command']{constructor(){const _0x3134b6=_0x137082;super('fortnite',{'description':_0x3134b6(0x19a),'triggers':[],'arguments':{'alias':{'platform':['p']},'string':[_0x3134b6(0x1a1)]},'scope':_0x3134b6(0x1b4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3134b6(0x1ae),_0x3134b6(0x192)]}),this[_0x3134b6(0x1a6)]=async(_0x231a7b,_0x2909f3)=>{const _0xee4bdd=_0x3134b6;if(!_0x2909f3['_'][_0xee4bdd(0x193)])throw new errors[(_0xee4bdd(0x1a7))](errors[_0xee4bdd(0x19d)][_0xee4bdd(0x195)],this['name']);const _0x3c2ff4=_0x2909f3['_'][_0xee4bdd(0x190)]('\x20'),_0x1f5150=_0x2909f3[_0xee4bdd(0x1a1)]&&this[_0xee4bdd(0x194)][_0xee4bdd(0x19b)](_0x2909f3['platform'][_0xee4bdd(0x1ad)]())?_0x2909f3['platform'][_0xee4bdd(0x1ad)]():this[_0xee4bdd(0x194)][0x0],_0x248e7e=await omnic[_0xee4bdd(0x1a0)]('/playerstats/fortnite/'+_0x1f5150+'/'+encodeURIComponent(_0x3c2ff4)),_0xc73636=await _0x248e7e['json']();if(_0xc73636[_0xee4bdd(0x1b0)])throw new Error(_0xc73636[_0xee4bdd(0x1b0)]);await _0x231a7b[_0xee4bdd(0x197)]['send']({'embed':{'color':constants[_0xee4bdd(0x1ab)][_0xee4bdd(0x1b3)],'author':{'name':_0xc73636['epicUserHandle']},'title':_0xee4bdd(0x191),'fields':_0xc73636[_0xee4bdd(0x199)][_0xee4bdd(0x1af)](_0x5ce2d7=>({'name':_0x5ce2d7[_0xee4bdd(0x19e)],'value':_0x5ce2d7[_0xee4bdd(0x19c)],'inline':!![]})),'footer':{'text':_0xc73636[_0xee4bdd(0x196)][_0xee4bdd(0x1b2)]()+_0xee4bdd(0x1a9)}}});},this[_0x3134b6(0x194)]=['pc',_0x3134b6(0x1a5),_0x3134b6(0x198)];}}; \ No newline at end of file +const a126_0x2b48=['../../utils/constants','xbl','@bastion/tesseract','platform','constructor','includes','join','channel','exports','FORTNITE','makeRequest','COLORS','fortnite','lifeTimeStats','platforms','DiscordError','name','fortnite\x20USERNAME\x20--platform\x20PLATFORM','fortnite\x20USERNAME','../../utils/omnic','\x20•\x20Powered\x20by\x20Fortnite\x20Tracker','map','Fortnite\x20-\x20Player\x20Stats','/playerstats/fortnite/','key','apply','json','INVALID_COMMAND_SYNTAX','toLowerCase','toUpperCase','epicUserHandle','error','exec','platformNameLong','test','value','BASTION_ERROR_TYPE','Command','psn','../../utils/errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x242f89,_0x4c0e5e){const _0x2b48a8=function(_0x80609d){while(--_0x80609d){_0x242f89['push'](_0x242f89['shift']());}},_0x200731=function(){const _0x4f3a4b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x364a76,_0x2e991,_0x2dbe35,_0x1ad3fe){_0x1ad3fe=_0x1ad3fe||{};let _0x3f1950=_0x2e991+'='+_0x2dbe35,_0x3c9410=0x0;for(let _0x5efb3b=0x0,_0x1b051a=_0x364a76['length'];_0x5efb3b<_0x1b051a;_0x5efb3b++){const _0x5a6829=_0x364a76[_0x5efb3b];_0x3f1950+=';\x20'+_0x5a6829;const _0x3e616d=_0x364a76[_0x5a6829];_0x364a76['push'](_0x3e616d),_0x1b051a=_0x364a76['length'],_0x3e616d!==!![]&&(_0x3f1950+='='+_0x3e616d);}_0x1ad3fe['cookie']=_0x3f1950;},'removeCookie':function(){return'dev';},'getCookie':function(_0x740768,_0x21e2bd){_0x740768=_0x740768||function(_0x74db79){return _0x74db79;};const _0x222312=_0x740768(new RegExp('(?:^|;\x20)'+_0x21e2bd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46a71c=function(_0x16eae5,_0x21079b){_0x16eae5(++_0x21079b);};return _0x46a71c(_0x2b48a8,_0x4c0e5e),_0x222312?decodeURIComponent(_0x222312[0x1]):undefined;}},_0x24eaa9=function(){const _0x5e8d5b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5e8d5b['test'](_0x4f3a4b['removeCookie']['toString']());};_0x4f3a4b['updateCookie']=_0x24eaa9;let _0x320b03='';const _0x53619c=_0x4f3a4b['updateCookie']();if(!_0x53619c)_0x4f3a4b['setCookie'](['*'],'counter',0x1);else _0x53619c?_0x320b03=_0x4f3a4b['getCookie'](null,'counter'):_0x4f3a4b['removeCookie']();};_0x200731();}(a126_0x2b48,0x1e9));const a126_0x2007=function(_0x242f89,_0x4c0e5e){_0x242f89=_0x242f89-0xd4;let _0x2b48a8=a126_0x2b48[_0x242f89];return _0x2b48a8;};const a126_0x3ab183=a126_0x2007,a126_0x24eaa9=function(){let _0x53619c=!![];return function(_0x364a76,_0x2e991){const _0x2dbe35=_0x53619c?function(){const _0x44bb15=a126_0x2007;if(_0x2e991){const _0x1ad3fe=_0x2e991[_0x44bb15(0xf0)](_0x364a76,arguments);return _0x2e991=null,_0x1ad3fe;}}:function(){};return _0x53619c=![],_0x2dbe35;};}(),a126_0x4f3a4b=a126_0x24eaa9(this,function(){const _0x3f1950=function(){const _0xe879a7=a126_0x2007,_0x3c9410=_0x3f1950[_0xe879a7(0xdb)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xe879a7(0xdb)](_0xe879a7(0xd6));return!_0x3c9410[_0xe879a7(0xf9)](a126_0x4f3a4b);};return _0x3f1950();});a126_0x4f3a4b();'use strict';const tesseract_1=require(a126_0x3ab183(0xd9)),constants=require(a126_0x3ab183(0xd7)),errors=require(a126_0x3ab183(0xd5)),omnic=require(a126_0x3ab183(0xea));module[a126_0x3ab183(0xdf)]=class FortniteCommand extends tesseract_1[a126_0x3ab183(0xfc)]{constructor(){const _0x1d1fda=a126_0x3ab183;super(_0x1d1fda(0xe3),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Fortnite\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':['platform']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1d1fda(0xe9),_0x1d1fda(0xe8)]}),this[_0x1d1fda(0xf7)]=async(_0x5efb3b,_0x1b051a)=>{const _0xc6c729=_0x1d1fda;if(!_0x1b051a['_']['length'])throw new errors[(_0xc6c729(0xe6))](errors[_0xc6c729(0xfb)][_0xc6c729(0xf2)],this[_0xc6c729(0xe7)]);const _0x5a6829=_0x1b051a['_'][_0xc6c729(0xdd)]('\x20'),_0x3e616d=_0x1b051a[_0xc6c729(0xda)]&&this[_0xc6c729(0xe5)][_0xc6c729(0xdc)](_0x1b051a['platform'][_0xc6c729(0xf3)]())?_0x1b051a[_0xc6c729(0xda)]['toLowerCase']():this[_0xc6c729(0xe5)][0x0],_0x740768=await omnic[_0xc6c729(0xe1)](_0xc6c729(0xee)+_0x3e616d+'/'+encodeURIComponent(_0x5a6829)),_0x21e2bd=await _0x740768[_0xc6c729(0xf1)]();if(_0x21e2bd[_0xc6c729(0xf6)])throw new Error(_0x21e2bd['error']);await _0x5efb3b[_0xc6c729(0xde)]['send']({'embed':{'color':constants[_0xc6c729(0xe2)][_0xc6c729(0xe0)],'author':{'name':_0x21e2bd[_0xc6c729(0xf5)]},'title':_0xc6c729(0xed),'fields':_0x21e2bd[_0xc6c729(0xe4)][_0xc6c729(0xec)](_0x222312=>({'name':_0x222312[_0xc6c729(0xef)],'value':_0x222312[_0xc6c729(0xfa)],'inline':!![]})),'footer':{'text':_0x21e2bd[_0xc6c729(0xf8)][_0xc6c729(0xf4)]()+_0xc6c729(0xeb)}}});},this[_0x1d1fda(0xe5)]=['pc',_0x1d1fda(0xd4),_0x1d1fda(0xd8)];}}; \ No newline at end of file diff --git a/commands/player_stats/overwatch.js b/commands/player_stats/overwatch.js index cbe961829..3421f7a1f 100644 --- a/commands/player_stats/overwatch.js +++ b/commands/player_stats/overwatch.js @@ -1 +1 @@ -const a126_0x1faf=['map','Quick\x20Play','matchAwards','tank','medalsSilver','Stats\x20of\x20private\x20profiles\x20can\x27t\x20be\x20shown.\x0aYou\x20can\x20modify\x20this\x20setting\x20in\x20Overwatch\x20under\x20Options\x20–\x20Social.','Combat','../../utils/strings','damage','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Overwatch\x20player\x20in\x20any\x20supported\x20platform.','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','**\x20Cards\x0a','overwatch\x20USERNAME','\x20•\x20Powered\x20by\x20Overwatch','toLowerCase','keys','Damage\x20Skill\x20Rating','support','channel','**\x20','private','guild','**\x20Medals\x0a','Level','message','send','@bastion/tesseract','**\x20Silver\x20Medals\x0a','exec','makeRequest','combat','../../utils/constants','BASTION_ERROR_TYPE','allHeroes','**\x20Bronze\x20Medals\x0a','medalsGold','prestige','Tank\x20Skill\x20Rating','Assists','exports','\x20Casual\x20matches\x20in\x20','INVALID_COMMAND_SYNTAX','psn','concat','**\x20Gold\x20Medals\x0a','role','Endorsement','join','platforms','level','overwatch','platform','COLORS','Support\x20Skill\x20Rating','toUpperCase','careerStats','game','medalsBronze','camelToTitleCase','gamesWon','find','test','apply','Match\x20Awards','overwatch\x20USERNAME\x20--platform\x20PLATFORM','OVERWATCH','timePlayed','Won\x20','competitiveStats','length','nintendo-switch','DiscordError','includes','ratings','cards','quickPlayStats','constructor','name','/playerstats/overwatch/','\x20Competitive\x20matches\x20in\x20','Overwatch\x20-\x20Player\x20Stats','endorsement','medals','../../utils/omnic'];(function(_0x202b0c,_0x284d97){const _0x1faf8f=function(_0x16f57a){while(--_0x16f57a){_0x202b0c['push'](_0x202b0c['shift']());}},_0x3f1bd6=function(){const _0x50d41d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x67986d,_0x216366,_0x5d94f4,_0x135cc0){_0x135cc0=_0x135cc0||{};let _0x3c1426=_0x216366+'='+_0x5d94f4,_0x39970f=0x0;for(let _0x3d8abe=0x0,_0x3ec1f8=_0x67986d['length'];_0x3d8abe<_0x3ec1f8;_0x3d8abe++){const _0x49b946=_0x67986d[_0x3d8abe];_0x3c1426+=';\x20'+_0x49b946;const _0x119aaa=_0x67986d[_0x49b946];_0x67986d['push'](_0x119aaa),_0x3ec1f8=_0x67986d['length'],_0x119aaa!==!![]&&(_0x3c1426+='='+_0x119aaa);}_0x135cc0['cookie']=_0x3c1426;},'removeCookie':function(){return'dev';},'getCookie':function(_0x37696c,_0x1d3aeb){_0x37696c=_0x37696c||function(_0x29187d){return _0x29187d;};const _0x4ed6a2=_0x37696c(new RegExp('(?:^|;\x20)'+_0x1d3aeb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3c80fc=function(_0xbaaca5,_0x49c85e){_0xbaaca5(++_0x49c85e);};return _0x3c80fc(_0x1faf8f,_0x284d97),_0x4ed6a2?decodeURIComponent(_0x4ed6a2[0x1]):undefined;}},_0x51e17d=function(){const _0x1f69fc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1f69fc['test'](_0x50d41d['removeCookie']['toString']());};_0x50d41d['updateCookie']=_0x51e17d;let _0x1f95d0='';const _0x271384=_0x50d41d['updateCookie']();if(!_0x271384)_0x50d41d['setCookie'](['*'],'counter',0x1);else _0x271384?_0x1f95d0=_0x50d41d['getCookie'](null,'counter'):_0x50d41d['removeCookie']();};_0x3f1bd6();}(a126_0x1faf,0x1f3));const a126_0x3f1b=function(_0x202b0c,_0x284d97){_0x202b0c=_0x202b0c-0x125;let _0x1faf8f=a126_0x1faf[_0x202b0c];return _0x1faf8f;};const _0x2625da=a126_0x3f1b,a126_0x51e17d=function(){let _0x271384=!![];return function(_0x67986d,_0x216366){const _0x5d94f4=_0x271384?function(){const _0x3cd682=a126_0x3f1b;if(_0x216366){const _0x135cc0=_0x216366[_0x3cd682(0x168)](_0x67986d,arguments);return _0x216366=null,_0x135cc0;}}:function(){};return _0x271384=![],_0x5d94f4;};}(),a126_0x50d41d=a126_0x51e17d(this,function(){const _0x3c1426=function(){const _0x421ba5=a126_0x3f1b,_0x39970f=_0x3c1426[_0x421ba5(0x176)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x421ba5(0x176)](_0x421ba5(0x134));return!_0x39970f[_0x421ba5(0x167)](a126_0x50d41d);};return _0x3c1426();});a126_0x50d41d();'use strict';const tesseract_1=require(_0x2625da(0x144)),constants=require(_0x2625da(0x149)),errors=require('../../utils/errors'),omnic=require(_0x2625da(0x129)),strings=require(_0x2625da(0x131));module[_0x2625da(0x151)]=class OverwatchCommand extends tesseract_1['Command']{constructor(){const _0x48c4d5=_0x2625da;super(_0x48c4d5(0x15c),{'description':_0x48c4d5(0x133),'triggers':['ow'],'arguments':{'alias':{'platform':['p']},'string':['platform']},'scope':_0x48c4d5(0x13f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x48c4d5(0x136),_0x48c4d5(0x16a)]}),this[_0x48c4d5(0x146)]=async(_0x3d8abe,_0x3ec1f8)=>{const _0x3b3334=_0x48c4d5;if(!_0x3ec1f8['_'][_0x3b3334(0x16f)])throw new errors[(_0x3b3334(0x171))](errors[_0x3b3334(0x14a)][_0x3b3334(0x153)],this[_0x3b3334(0x177)]);const _0x49b946=_0x3ec1f8['_'][_0x3b3334(0x159)]('\x20'),_0x119aaa=_0x3ec1f8[_0x3b3334(0x15d)]&&this[_0x3b3334(0x15a)][_0x3b3334(0x172)](_0x3ec1f8[_0x3b3334(0x15d)][_0x3b3334(0x138)]())?_0x3ec1f8['platform'][_0x3b3334(0x138)]():this[_0x3b3334(0x15a)][0x0],_0x37696c=await omnic[_0x3b3334(0x147)](_0x3b3334(0x178)+_0x119aaa+'/'+encodeURIComponent(_0x49b946)),_0x1d3aeb=await _0x37696c['json']();if(_0x1d3aeb[_0x3b3334(0x142)])throw new Error(_0x1d3aeb[_0x3b3334(0x142)]);if(_0x1d3aeb[_0x3b3334(0x13e)])throw new Error(_0x3b3334(0x12f));const _0x4ed6a2=_0x1d3aeb[_0x3b3334(0x175)]&&_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)]&&_0x1d3aeb['quickPlayStats']['careerStats'][_0x3b3334(0x14b)]?[{'name':_0x3b3334(0x12b),'value':_0x3b3334(0x16d)+(_0x1d3aeb['quickPlayStats'][_0x3b3334(0x161)][_0x3b3334(0x14b)]['game'][_0x3b3334(0x165)]||0x0)+_0x3b3334(0x152)+_0x1d3aeb[_0x3b3334(0x175)]['careerStats'][_0x3b3334(0x14b)][_0x3b3334(0x162)][_0x3b3334(0x16c)]},{'name':_0x3b3334(0x169),'value':'**'+(_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x12c)][_0x3b3334(0x174)]||0x0)+_0x3b3334(0x135)+'**'+(_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x12c)]['medals']||0x0)+'**\x20Medals\x0a'+'**'+(_0x1d3aeb[_0x3b3334(0x175)]['careerStats'][_0x3b3334(0x14b)]['matchAwards'][_0x3b3334(0x14d)]||0x0)+_0x3b3334(0x156)+'**'+(_0x1d3aeb['quickPlayStats']['careerStats']['allHeroes'][_0x3b3334(0x12c)][_0x3b3334(0x12e)]||0x0)+_0x3b3334(0x145)+'**'+(_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)][_0x3b3334(0x14b)]['matchAwards']['medalsBronze']||0x0)+_0x3b3334(0x14c),'inline':!![]},{'name':_0x3b3334(0x130),'value':Object['keys'](_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x148)])[_0x3b3334(0x12a)](_0x29187d=>'**'+_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)][_0x3b3334(0x14b)]['combat'][_0x29187d]+_0x3b3334(0x13d)+strings[_0x3b3334(0x164)](_0x29187d)),'inline':!![]},{'name':_0x3b3334(0x150),'value':Object['keys'](_0x1d3aeb[_0x3b3334(0x175)]['careerStats'][_0x3b3334(0x14b)][_0x3b3334(0x148)])[_0x3b3334(0x12a)](_0xbaaca5=>'**'+_0x1d3aeb[_0x3b3334(0x175)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x148)][_0xbaaca5]+_0x3b3334(0x13d)+strings[_0x3b3334(0x164)](_0xbaaca5)),'inline':!![]}]:[],_0x3c80fc=_0x1d3aeb[_0x3b3334(0x16e)]&&_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)]&&_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)]?[{'name':'Competitive','value':_0x3b3334(0x16d)+(_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x162)][_0x3b3334(0x165)]||0x0)+_0x3b3334(0x125)+_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)]['game']['timePlayed']},{'name':'Match\x20Awards','value':'**'+(_0x1d3aeb[_0x3b3334(0x16e)]['careerStats'][_0x3b3334(0x14b)]['matchAwards']['cards']||0x0)+_0x3b3334(0x135)+'**'+(_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)]['allHeroes'][_0x3b3334(0x12c)][_0x3b3334(0x128)]||0x0)+_0x3b3334(0x140)+'**'+(_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)]['allHeroes']['matchAwards'][_0x3b3334(0x14d)]||0x0)+'**\x20Gold\x20Medals\x0a'+'**'+(_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x12c)][_0x3b3334(0x12e)]||0x0)+'**\x20Silver\x20Medals\x0a'+'**'+(_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)]['matchAwards'][_0x3b3334(0x163)]||0x0)+'**\x20Bronze\x20Medals\x0a','inline':!![]},{'name':_0x3b3334(0x130),'value':Object[_0x3b3334(0x139)](_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)][_0x3b3334(0x148)])['map'](_0x49c85e=>'**'+_0x1d3aeb[_0x3b3334(0x16e)][_0x3b3334(0x161)][_0x3b3334(0x14b)]['combat'][_0x49c85e]+_0x3b3334(0x13d)+strings[_0x3b3334(0x164)](_0x49c85e)),'inline':!![]},{'name':_0x3b3334(0x150),'value':Object[_0x3b3334(0x139)](_0x1d3aeb[_0x3b3334(0x16e)]['careerStats'][_0x3b3334(0x14b)][_0x3b3334(0x148)])[_0x3b3334(0x12a)](_0x1f69fc=>'**'+_0x1d3aeb[_0x3b3334(0x16e)]['careerStats'][_0x3b3334(0x14b)]['combat'][_0x1f69fc]+_0x3b3334(0x13d)+strings['camelToTitleCase'](_0x1f69fc)),'inline':!![]}]:[];await _0x3d8abe[_0x3b3334(0x13c)][_0x3b3334(0x143)]({'embed':{'color':constants[_0x3b3334(0x15e)][_0x3b3334(0x16b)],'author':{'name':_0x1d3aeb[_0x3b3334(0x177)],'iconURL':_0x1d3aeb['levelIcon']},'title':_0x3b3334(0x126),'fields':[{'name':'Games\x20Won','value':_0x1d3aeb['gamesWon'],'inline':!![]},{'name':_0x3b3334(0x141),'value':_0x1d3aeb[_0x3b3334(0x14e)]*0x64+_0x1d3aeb[_0x3b3334(0x15b)],'inline':!![]},{'name':_0x3b3334(0x158),'value':_0x1d3aeb[_0x3b3334(0x127)],'inline':!![]},{'name':_0x3b3334(0x14f),'value':_0x1d3aeb['ratings']&&_0x1d3aeb[_0x3b3334(0x173)][_0x3b3334(0x16f)]?_0x1d3aeb[_0x3b3334(0x173)]['find'](_0x37e3e8=>_0x37e3e8['role']===_0x3b3334(0x12d))['level']:'-','inline':!![]},{'name':_0x3b3334(0x13a),'value':_0x1d3aeb[_0x3b3334(0x173)]&&_0x1d3aeb[_0x3b3334(0x173)][_0x3b3334(0x16f)]?_0x1d3aeb[_0x3b3334(0x173)][_0x3b3334(0x166)](_0x55d54e=>_0x55d54e[_0x3b3334(0x157)]===_0x3b3334(0x132))[_0x3b3334(0x15b)]:'-','inline':!![]},{'name':_0x3b3334(0x15f),'value':_0x1d3aeb[_0x3b3334(0x173)]&&_0x1d3aeb[_0x3b3334(0x173)][_0x3b3334(0x16f)]?_0x1d3aeb[_0x3b3334(0x173)]['find'](_0x31f4ce=>_0x31f4ce[_0x3b3334(0x157)]===_0x3b3334(0x13b))[_0x3b3334(0x15b)]:'-','inline':!![]}][_0x3b3334(0x155)](_0x4ed6a2)[_0x3b3334(0x155)](_0x3c80fc),'thumbnail':{'url':_0x1d3aeb['icon']},'footer':{'text':_0x119aaa[_0x3b3334(0x160)]()+_0x3b3334(0x137)}}});},this[_0x48c4d5(0x15a)]=['pc',_0x48c4d5(0x154),'xbl',_0x48c4d5(0x170)];}}; \ No newline at end of file +const a127_0x570c=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','find','COLORS','role','gamesWon','platforms','**\x20Medals\x0a','../../utils/errors','Match\x20Awards','icon','map','Quick\x20Play','**\x20Silver\x20Medals\x0a','**\x20Gold\x20Medals\x0a','keys','Endorsement','**\x20','overwatch','Level','camelToTitleCase','length','Combat','DiscordError','medalsGold','platform','message','combat','channel','damage','overwatch\x20USERNAME\x20--platform\x20PLATFORM','apply','constructor','Support\x20Skill\x20Rating','levelIcon','**\x20Cards\x0a','endorsement','Assists','allHeroes','psn','../../utils/omnic','@bastion/tesseract','Competitive','exports','level','cards','medalsSilver','exec','nintendo-switch','toLowerCase','\x20•\x20Powered\x20by\x20Overwatch','makeRequest','timePlayed','game','medalsBronze','send','careerStats','competitiveStats','Won\x20','join','name','quickPlayStats','guild','matchAwards','ratings','medals','**\x20Bronze\x20Medals\x0a','/playerstats/overwatch/','\x20Competitive\x20matches\x20in\x20','Overwatch\x20-\x20Player\x20Stats','concat','Stats\x20of\x20private\x20profiles\x20can\x27t\x20be\x20shown.\x0aYou\x20can\x20modify\x20this\x20setting\x20in\x20Overwatch\x20under\x20Options\x20–\x20Social.','\x20Casual\x20matches\x20in\x20'];(function(_0x14ae30,_0x43e436){const _0x570c44=function(_0x11fb14){while(--_0x11fb14){_0x14ae30['push'](_0x14ae30['shift']());}},_0x51c16a=function(){const _0x3fc086={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5cb16e,_0x28bda5,_0x5138a8,_0x21945b){_0x21945b=_0x21945b||{};let _0x6c6bc1=_0x28bda5+'='+_0x5138a8,_0x496602=0x0;for(let _0x1aeb03=0x0,_0x38d129=_0x5cb16e['length'];_0x1aeb03<_0x38d129;_0x1aeb03++){const _0x301e24=_0x5cb16e[_0x1aeb03];_0x6c6bc1+=';\x20'+_0x301e24;const _0x32b021=_0x5cb16e[_0x301e24];_0x5cb16e['push'](_0x32b021),_0x38d129=_0x5cb16e['length'],_0x32b021!==!![]&&(_0x6c6bc1+='='+_0x32b021);}_0x21945b['cookie']=_0x6c6bc1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x163231,_0x2841bd){_0x163231=_0x163231||function(_0x349a37){return _0x349a37;};const _0x157511=_0x163231(new RegExp('(?:^|;\x20)'+_0x2841bd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2aaa60=function(_0x11ca66,_0x428e8f){_0x11ca66(++_0x428e8f);};return _0x2aaa60(_0x570c44,_0x43e436),_0x157511?decodeURIComponent(_0x157511[0x1]):undefined;}},_0x23da2a=function(){const _0x4de097=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4de097['test'](_0x3fc086['removeCookie']['toString']());};_0x3fc086['updateCookie']=_0x23da2a;let _0x2f1356='';const _0x304fb6=_0x3fc086['updateCookie']();if(!_0x304fb6)_0x3fc086['setCookie'](['*'],'counter',0x1);else _0x304fb6?_0x2f1356=_0x3fc086['getCookie'](null,'counter'):_0x3fc086['removeCookie']();};_0x51c16a();}(a127_0x570c,0x14a));const a127_0x51c1=function(_0x14ae30,_0x43e436){_0x14ae30=_0x14ae30-0x172;let _0x570c44=a127_0x570c[_0x14ae30];return _0x570c44;};const a127_0x209eae=a127_0x51c1,a127_0x23da2a=function(){let _0x304fb6=!![];return function(_0x5cb16e,_0x28bda5){const _0x5138a8=_0x304fb6?function(){const _0x170a29=a127_0x51c1;if(_0x28bda5){const _0x21945b=_0x28bda5[_0x170a29(0x1ae)](_0x5cb16e,arguments);return _0x28bda5=null,_0x21945b;}}:function(){};return _0x304fb6=![],_0x5138a8;};}(),a127_0x3fc086=a127_0x23da2a(this,function(){const _0x6c6bc1=function(){const _0x34c549=a127_0x51c1,_0x496602=_0x6c6bc1[_0x34c549(0x1af)](_0x34c549(0x190))()[_0x34c549(0x1af)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x496602['test'](a127_0x3fc086);};return _0x6c6bc1();});a127_0x3fc086();'use strict';const tesseract_1=require(a127_0x209eae(0x1b8)),constants=require('../../utils/constants'),errors=require(a127_0x209eae(0x197)),omnic=require(a127_0x209eae(0x1b7)),strings=require('../../utils/strings');module[a127_0x209eae(0x172)]=class OverwatchCommand extends tesseract_1['Command']{constructor(){const _0x3522ee=a127_0x209eae;super(_0x3522ee(0x1a1),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Overwatch\x20player\x20in\x20any\x20supported\x20platform.','triggers':['ow'],'arguments':{'alias':{'platform':['p']},'string':[_0x3522ee(0x1a8)]},'scope':_0x3522ee(0x185),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['overwatch\x20USERNAME',_0x3522ee(0x1ad)]}),this[_0x3522ee(0x176)]=async(_0x1aeb03,_0x38d129)=>{const _0x2f1fad=_0x3522ee;if(!_0x38d129['_'][_0x2f1fad(0x1a4)])throw new errors[(_0x2f1fad(0x1a6))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[_0x2f1fad(0x183)]);const _0x301e24=_0x38d129['_'][_0x2f1fad(0x182)]('\x20'),_0x32b021=_0x38d129[_0x2f1fad(0x1a8)]&&this[_0x2f1fad(0x195)]['includes'](_0x38d129[_0x2f1fad(0x1a8)][_0x2f1fad(0x178)]())?_0x38d129[_0x2f1fad(0x1a8)][_0x2f1fad(0x178)]():this[_0x2f1fad(0x195)][0x0],_0x163231=await omnic[_0x2f1fad(0x17a)](_0x2f1fad(0x18a)+_0x32b021+'/'+encodeURIComponent(_0x301e24)),_0x2841bd=await _0x163231['json']();if(_0x2841bd[_0x2f1fad(0x1a9)])throw new Error(_0x2841bd[_0x2f1fad(0x1a9)]);if(_0x2841bd['private'])throw new Error(_0x2f1fad(0x18e));const _0x157511=_0x2841bd[_0x2f1fad(0x184)]&&_0x2841bd['quickPlayStats'][_0x2f1fad(0x17f)]&&_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)]?[{'name':_0x2f1fad(0x19b),'value':'Won\x20'+(_0x2841bd[_0x2f1fad(0x184)]['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x17c)][_0x2f1fad(0x194)]||0x0)+_0x2f1fad(0x18f)+_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)]['allHeroes'][_0x2f1fad(0x17c)][_0x2f1fad(0x17b)]},{'name':_0x2f1fad(0x198),'value':'**'+(_0x2841bd['quickPlayStats'][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)]['cards']||0x0)+_0x2f1fad(0x1b2)+'**'+(_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x188)]||0x0)+_0x2f1fad(0x196)+'**'+(_0x2841bd[_0x2f1fad(0x184)]['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x1a7)]||0x0)+_0x2f1fad(0x19d)+'**'+(_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)]['allHeroes']['matchAwards']['medalsSilver']||0x0)+_0x2f1fad(0x19c)+'**'+(_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)]['matchAwards'][_0x2f1fad(0x17d)]||0x0)+_0x2f1fad(0x189),'inline':!![]},{'name':_0x2f1fad(0x1a5),'value':Object[_0x2f1fad(0x19e)](_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)])['map'](_0x349a37=>'**'+_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)][_0x349a37]+_0x2f1fad(0x1a0)+strings[_0x2f1fad(0x1a3)](_0x349a37)),'inline':!![]},{'name':'Assists','value':Object[_0x2f1fad(0x19e)](_0x2841bd[_0x2f1fad(0x184)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)])['map'](_0x11ca66=>'**'+_0x2841bd['quickPlayStats']['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)][_0x11ca66]+_0x2f1fad(0x1a0)+strings[_0x2f1fad(0x1a3)](_0x11ca66)),'inline':!![]}]:[],_0x2aaa60=_0x2841bd[_0x2f1fad(0x180)]&&_0x2841bd['competitiveStats'][_0x2f1fad(0x17f)]&&_0x2841bd['competitiveStats'][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)]?[{'name':_0x2f1fad(0x1b9),'value':_0x2f1fad(0x181)+(_0x2841bd['competitiveStats'][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x17c)][_0x2f1fad(0x194)]||0x0)+_0x2f1fad(0x18b)+_0x2841bd['competitiveStats']['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x17c)]['timePlayed']},{'name':_0x2f1fad(0x198),'value':'**'+(_0x2841bd[_0x2f1fad(0x180)]['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x174)]||0x0)+_0x2f1fad(0x1b2)+'**'+(_0x2841bd[_0x2f1fad(0x180)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x188)]||0x0)+_0x2f1fad(0x196)+'**'+(_0x2841bd['competitiveStats'][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x1a7)]||0x0)+_0x2f1fad(0x19d)+'**'+(_0x2841bd['competitiveStats'][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x175)]||0x0)+_0x2f1fad(0x19c)+'**'+(_0x2841bd[_0x2f1fad(0x180)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x186)][_0x2f1fad(0x17d)]||0x0)+_0x2f1fad(0x189),'inline':!![]},{'name':'Combat','value':Object[_0x2f1fad(0x19e)](_0x2841bd[_0x2f1fad(0x180)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)]['combat'])[_0x2f1fad(0x19a)](_0x428e8f=>'**'+_0x2841bd[_0x2f1fad(0x180)][_0x2f1fad(0x17f)][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)][_0x428e8f]+_0x2f1fad(0x1a0)+strings['camelToTitleCase'](_0x428e8f)),'inline':!![]},{'name':_0x2f1fad(0x1b4),'value':Object[_0x2f1fad(0x19e)](_0x2841bd[_0x2f1fad(0x180)]['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)])[_0x2f1fad(0x19a)](_0x4de097=>'**'+_0x2841bd[_0x2f1fad(0x180)]['careerStats'][_0x2f1fad(0x1b5)][_0x2f1fad(0x1aa)][_0x4de097]+_0x2f1fad(0x1a0)+strings[_0x2f1fad(0x1a3)](_0x4de097)),'inline':!![]}]:[];await _0x1aeb03[_0x2f1fad(0x1ab)][_0x2f1fad(0x17e)]({'embed':{'color':constants[_0x2f1fad(0x192)]['OVERWATCH'],'author':{'name':_0x2841bd[_0x2f1fad(0x183)],'iconURL':_0x2841bd[_0x2f1fad(0x1b1)]},'title':_0x2f1fad(0x18c),'fields':[{'name':'Games\x20Won','value':_0x2841bd['gamesWon'],'inline':!![]},{'name':_0x2f1fad(0x1a2),'value':_0x2841bd['prestige']*0x64+_0x2841bd['level'],'inline':!![]},{'name':_0x2f1fad(0x19f),'value':_0x2841bd[_0x2f1fad(0x1b3)],'inline':!![]},{'name':'Tank\x20Skill\x20Rating','value':_0x2841bd[_0x2f1fad(0x187)]&&_0x2841bd['ratings']['length']?_0x2841bd[_0x2f1fad(0x187)][_0x2f1fad(0x191)](_0x3a75e1=>_0x3a75e1[_0x2f1fad(0x193)]==='tank')[_0x2f1fad(0x173)]:'-','inline':!![]},{'name':'Damage\x20Skill\x20Rating','value':_0x2841bd[_0x2f1fad(0x187)]&&_0x2841bd[_0x2f1fad(0x187)][_0x2f1fad(0x1a4)]?_0x2841bd[_0x2f1fad(0x187)][_0x2f1fad(0x191)](_0xede313=>_0xede313[_0x2f1fad(0x193)]===_0x2f1fad(0x1ac))[_0x2f1fad(0x173)]:'-','inline':!![]},{'name':_0x2f1fad(0x1b0),'value':_0x2841bd['ratings']&&_0x2841bd[_0x2f1fad(0x187)][_0x2f1fad(0x1a4)]?_0x2841bd[_0x2f1fad(0x187)][_0x2f1fad(0x191)](_0x5083fb=>_0x5083fb[_0x2f1fad(0x193)]==='support')[_0x2f1fad(0x173)]:'-','inline':!![]}][_0x2f1fad(0x18d)](_0x157511)[_0x2f1fad(0x18d)](_0x2aaa60),'thumbnail':{'url':_0x2841bd[_0x2f1fad(0x199)]},'footer':{'text':_0x32b021['toUpperCase']()+_0x2f1fad(0x179)}}});},this[_0x3522ee(0x195)]=['pc',_0x3522ee(0x1b6),'xbl',_0x3522ee(0x177)];}}; \ No newline at end of file diff --git a/commands/player_stats/pubg.js b/commands/player_stats/pubg.js index b4e68e715..01e761eb1 100644 --- a/commands/player_stats/pubg.js +++ b/commands/player_stats/pubg.js @@ -1 +1 @@ -const a127_0x22cc=['Best\x20Kill\x20Streak','\x20•\x20','steam','platform','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Heals','m\x20on\x20foot.','days','suicides','send','PUBG','walkDistance','toLowerCase','length','exec','losses','\x20headshots','\x20vehicles,\x20during\x20that\x20period.','min\x20longest','vehicleDestroys','weaponsAcquired','Kill\x20Points','COLORS','rideDistance','json','Matches','DiscordError','longestTimeSurvived','pubg\x20USERNAME\x20--platform\x20PLATFORM\x20--mode\x20MODE','longestKill','name','winPoints','Win\x20Points','duo-fpp','keys','stats','min\x20/\x20','\x20suicides','../../utils/omnic','modes','stadia','mode','\x20They\x27ve\x20acquired\x20','Wins','revives','\x20days,\x20in\x20which\x20they\x20have\x20traveled\x20','psn','toUpperCase','timeSurvived','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.','Most\x20Kills\x20/\x20Round','squad','assists','toFixed','\x20weapons\x20and\x20destroyed\x20','gameModeStats','INVALID_COMMAND_SYNTAX','\x20/\x20','Damage\x20Dealt','../../utils/constants','pubg','m\x20on\x20vehicle\x20and\x20','test','/playerstats/pubg/','PLAYER_NOT_FOUND','squad-fpp','platforms','\x20•\x20Powered\x20by\x20Tracker\x20Network','return\x20/\x22\x20+\x20this\x20+\x20\x22/','solo-fpp','exports','killPoints','solo','BASTION_ERROR_TYPE','xbox','attributes','apply','guild','maxKillStreaks','Losses','\x20has\x20played\x20for\x20','pubg\x20USERNAME\x20--platform\x20PLATFORM','profile'];(function(_0xe31a8e,_0xda78c8){const _0x22ccfc=function(_0x539142){while(--_0x539142){_0xe31a8e['push'](_0xe31a8e['shift']());}},_0x3d4418=function(){const _0x138106={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1e1f34,_0x563b21,_0x32656c,_0x23aff4){_0x23aff4=_0x23aff4||{};let _0x472f5e=_0x563b21+'='+_0x32656c,_0x471e83=0x0;for(let _0x51f821=0x0,_0x27ae1e=_0x1e1f34['length'];_0x51f821<_0x27ae1e;_0x51f821++){const _0x50071e=_0x1e1f34[_0x51f821];_0x472f5e+=';\x20'+_0x50071e;const _0x1ed0f1=_0x1e1f34[_0x50071e];_0x1e1f34['push'](_0x1ed0f1),_0x27ae1e=_0x1e1f34['length'],_0x1ed0f1!==!![]&&(_0x472f5e+='='+_0x1ed0f1);}_0x23aff4['cookie']=_0x472f5e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x259f6d,_0x24a9de){_0x259f6d=_0x259f6d||function(_0x1a5e73){return _0x1a5e73;};const _0x5216fb=_0x259f6d(new RegExp('(?:^|;\x20)'+_0x24a9de['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x125483=function(_0x5dfbda,_0x30784d){_0x5dfbda(++_0x30784d);};return _0x125483(_0x22ccfc,_0xda78c8),_0x5216fb?decodeURIComponent(_0x5216fb[0x1]):undefined;}},_0x4d1b2a=function(){const _0x425e6f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x425e6f['test'](_0x138106['removeCookie']['toString']());};_0x138106['updateCookie']=_0x4d1b2a;let _0xe90da0='';const _0x407fb3=_0x138106['updateCookie']();if(!_0x407fb3)_0x138106['setCookie'](['*'],'counter',0x1);else _0x407fb3?_0xe90da0=_0x138106['getCookie'](null,'counter'):_0x138106['removeCookie']();};_0x3d4418();}(a127_0x22cc,0x72));const a127_0x3d44=function(_0xe31a8e,_0xda78c8){_0xe31a8e=_0xe31a8e-0xd3;let _0x22ccfc=a127_0x22cc[_0xe31a8e];return _0x22ccfc;};const _0xf2fcb9=a127_0x3d44,a127_0x4d1b2a=function(){let _0x407fb3=!![];return function(_0x1e1f34,_0x563b21){const _0x32656c=_0x407fb3?function(){const _0x1fe058=a127_0x3d44;if(_0x563b21){const _0x23aff4=_0x563b21[_0x1fe058(0x100)](_0x1e1f34,arguments);return _0x563b21=null,_0x23aff4;}}:function(){};return _0x407fb3=![],_0x32656c;};}(),a127_0x138106=a127_0x4d1b2a(this,function(){const _0x472f5e=function(){const _0x151e11=a127_0x3d44,_0x471e83=_0x472f5e['constructor'](_0x151e11(0xf8))()['constructor'](_0x151e11(0x10b));return!_0x471e83[_0x151e11(0xf2)](a127_0x138106);};return _0x472f5e();});a127_0x138106();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(_0xf2fcb9(0xef)),errors=require('../../utils/errors'),omnic=require(_0xf2fcb9(0xda));module[_0xf2fcb9(0xfa)]=class PUBGCommand extends tesseract_1['Command']{constructor(){const _0x801e7a=_0xf2fcb9;super(_0x801e7a(0xf0),{'description':_0x801e7a(0xe5),'triggers':[],'arguments':{'alias':{'platform':['p'],'mode':['m']},'string':['platform','mode']},'scope':_0x801e7a(0x101),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['pubg\x20USERNAME',_0x801e7a(0x105),_0x801e7a(0x123)]}),this[_0x801e7a(0x115)]=async(_0x51f821,_0x27ae1e)=>{const _0x4608d9=_0x801e7a;if(!_0x27ae1e['_'][_0x4608d9(0x114)])throw new errors[(_0x4608d9(0x121))](errors[_0x4608d9(0xfd)][_0x4608d9(0xec)],this[_0x4608d9(0x125)]);const _0x50071e=_0x27ae1e['_']['join']('\x20'),_0x1ed0f1=_0x27ae1e[_0x4608d9(0x10a)]&&this['platforms']['includes'](_0x27ae1e['platform'][_0x4608d9(0x113)]())?_0x27ae1e[_0x4608d9(0x10a)][_0x4608d9(0x113)]():this[_0x4608d9(0xf6)][0x0],_0x259f6d=_0x27ae1e[_0x4608d9(0xdd)]&&this[_0x4608d9(0xdb)]['includes'](_0x27ae1e[_0x4608d9(0xdd)][_0x4608d9(0x113)]())?_0x27ae1e['mode'][_0x4608d9(0x113)]():this[_0x4608d9(0xdb)][0x0],_0x24a9de=await omnic['makeRequest'](_0x4608d9(0xf3)+_0x1ed0f1+'/'+encodeURIComponent(_0x50071e)),_0x5216fb=await _0x24a9de[_0x4608d9(0x11f)]();if(!Object[_0x4608d9(0xd6)](_0x5216fb)[_0x4608d9(0x114)])throw new Error(_0x4608d9(0xf4));await _0x51f821['channel'][_0x4608d9(0x110)]({'embed':{'color':constants[_0x4608d9(0x11d)][_0x4608d9(0x111)],'author':{'name':_0x5216fb['profile']['attributes'][_0x4608d9(0x125)]},'title':'Playerunknown\x27s\x20Battlegrounds\x20-\x20Player\x20Stats','description':_0x5216fb[_0x4608d9(0x106)][_0x4608d9(0xff)][_0x4608d9(0x125)]+_0x4608d9(0x104)+_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x10e)]+_0x4608d9(0xe1)+_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x11e)][_0x4608d9(0xe9)](0x2)+_0x4608d9(0xf1)+_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)]['gameModeStats'][_0x259f6d][_0x4608d9(0x112)]['toFixed'](0x2)+_0x4608d9(0x10d)+_0x4608d9(0xde)+_0x5216fb[_0x4608d9(0xd7)]['attributes'][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x11b)]+_0x4608d9(0xea)+_0x5216fb['stats']['attributes'][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x11a)]+_0x4608d9(0x118),'fields':[{'name':'Overall\x20Points','value':(_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0xd3)]+_0x5216fb[_0x4608d9(0xd7)]['attributes']['gameModeStats'][_0x259f6d][_0x4608d9(0xfb)]*0.2)[_0x4608d9(0xe9)](0x2),'inline':!![]},{'name':_0x4608d9(0xd4),'value':_0x5216fb[_0x4608d9(0xd7)]['attributes'][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0xd3)]['toFixed'](0x2),'inline':!![]},{'name':_0x4608d9(0x11c),'value':_0x5216fb['stats'][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0xfb)][_0x4608d9(0xe9)](0x2),'inline':!![]},{'name':_0x4608d9(0x120),'value':_0x5216fb['stats'][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d]['roundsPlayed'],'inline':!![]},{'name':_0x4608d9(0xdf),'value':_0x5216fb[_0x4608d9(0xd7)]['attributes'][_0x4608d9(0xeb)][_0x259f6d]['wins'],'inline':!![]},{'name':_0x4608d9(0x103),'value':_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x116)],'inline':!![]},{'name':'Kills','value':_0x5216fb['stats'][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d]['kills']+_0x4608d9(0xed)+_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)]['gameModeStats'][_0x259f6d]['headshotKills']+_0x4608d9(0x117),'inline':!![]},{'name':'Assists','value':_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0xe8)],'inline':!![]},{'name':'Time\x20Survived','value':(_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0xe4)]/0x3c)['toFixed'](0x2)+_0x4608d9(0xd8)+(_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x122)]/0x3c)['toFixed'](0x2)+_0x4608d9(0x119),'inline':!![]},{'name':_0x4608d9(0x10c),'value':_0x5216fb[_0x4608d9(0xd7)]['attributes']['gameModeStats'][_0x259f6d]['heals'],'inline':!![]},{'name':'Revives','value':_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0xe0)],'inline':!![]},{'name':_0x4608d9(0xee),'value':_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d]['damageDealt'][_0x4608d9(0xe9)](0x2)+'\x20/\x20'+_0x5216fb['stats']['attributes'][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x10f)]+_0x4608d9(0xd9),'inline':!![]},{'name':_0x4608d9(0xe6),'value':_0x5216fb['stats'][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d]['roundMostKills'],'inline':!![]},{'name':_0x4608d9(0x107),'value':_0x5216fb['stats'][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x102)],'inline':!![]},{'name':'Longest\x20Kill','value':_0x5216fb[_0x4608d9(0xd7)][_0x4608d9(0xff)][_0x4608d9(0xeb)][_0x259f6d][_0x4608d9(0x124)][_0x4608d9(0xe9)](0x2)+'s','inline':!![]}],'footer':{'text':_0x259f6d[_0x4608d9(0xe3)]()+_0x4608d9(0x108)+_0x1ed0f1[_0x4608d9(0xe3)]()+_0x4608d9(0xf7)}}});},this['platforms']=[_0x801e7a(0x109),_0x801e7a(0xe2),_0x801e7a(0xfe),_0x801e7a(0xdc)],this['modes']=[_0x801e7a(0xfc),_0x801e7a(0xf9),'duo',_0x801e7a(0xd5),_0x801e7a(0xe7),_0x801e7a(0xf5)];}}; \ No newline at end of file +const a128_0x2fe0=['assists','solo','damageDealt','\x20headshots','length','exec','COLORS','timeSurvived','../../utils/constants','Best\x20Kill\x20Streak','@bastion/tesseract','suicides','Most\x20Kills\x20/\x20Round','solo-fpp','maxKillStreaks','\x20/\x20','../../utils/omnic','modes','Wins','Revives','winPoints','\x20•\x20','mode','roundMostKills','losses','pubg\x20USERNAME\x20--platform\x20PLATFORM','Kill\x20Points','profile','constructor','stadia','longestKill','test','Overall\x20Points','heals','attributes','DiscordError','\x20•\x20Powered\x20by\x20Tracker\x20Network','BASTION_ERROR_TYPE','../../utils/errors','days','Assists','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','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.','toFixed','vehicleDestroys','pubg\x20USERNAME','platforms','roundsPlayed','longestTimeSurvived','duo-fpp','toLowerCase','Damage\x20Dealt','pubg','json','Win\x20Points','Command','Losses','name','wins','includes','killPoints','Heals','headshotKills','Matches','return\x20/\x22\x20+\x20this\x20+\x20\x22/','squad-fpp','Kills','squad','platform','toUpperCase','weaponsAcquired','apply','exports','PLAYER_NOT_FOUND','keys','send','/playerstats/pubg/','join','min\x20longest','stats','guild','kills','revives','rideDistance','gameModeStats'];(function(_0xbd5e6b,_0x6c0f72){const _0x2fe03a=function(_0x223147){while(--_0x223147){_0xbd5e6b['push'](_0xbd5e6b['shift']());}},_0x5a8409=function(){const _0x49a2e8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x52daaf,_0x65bd70,_0x965e18,_0x593ac2){_0x593ac2=_0x593ac2||{};let _0x30a28f=_0x65bd70+'='+_0x965e18,_0x41d64a=0x0;for(let _0x54b8a2=0x0,_0x462bc4=_0x52daaf['length'];_0x54b8a2<_0x462bc4;_0x54b8a2++){const _0x29e391=_0x52daaf[_0x54b8a2];_0x30a28f+=';\x20'+_0x29e391;const _0x197cdd=_0x52daaf[_0x29e391];_0x52daaf['push'](_0x197cdd),_0x462bc4=_0x52daaf['length'],_0x197cdd!==!![]&&(_0x30a28f+='='+_0x197cdd);}_0x593ac2['cookie']=_0x30a28f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x56254c,_0x38449c){_0x56254c=_0x56254c||function(_0x378813){return _0x378813;};const _0x3b040a=_0x56254c(new RegExp('(?:^|;\x20)'+_0x38449c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2ee5eb=function(_0x3d31d7,_0x10ebb0){_0x3d31d7(++_0x10ebb0);};return _0x2ee5eb(_0x2fe03a,_0x6c0f72),_0x3b040a?decodeURIComponent(_0x3b040a[0x1]):undefined;}},_0x3c95d1=function(){const _0x1e1439=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e1439['test'](_0x49a2e8['removeCookie']['toString']());};_0x49a2e8['updateCookie']=_0x3c95d1;let _0x3f430f='';const _0x26219a=_0x49a2e8['updateCookie']();if(!_0x26219a)_0x49a2e8['setCookie'](['*'],'counter',0x1);else _0x26219a?_0x3f430f=_0x49a2e8['getCookie'](null,'counter'):_0x49a2e8['removeCookie']();};_0x5a8409();}(a128_0x2fe0,0x1a1));const a128_0x5a84=function(_0xbd5e6b,_0x6c0f72){_0xbd5e6b=_0xbd5e6b-0xc0;let _0x2fe03a=a128_0x2fe0[_0xbd5e6b];return _0x2fe03a;};const a128_0x464f8f=a128_0x5a84,a128_0x3c95d1=function(){let _0x26219a=!![];return function(_0x52daaf,_0x65bd70){const _0x965e18=_0x26219a?function(){const _0x27a10=a128_0x5a84;if(_0x65bd70){const _0x593ac2=_0x65bd70[_0x27a10(0x10f)](_0x52daaf,arguments);return _0x65bd70=null,_0x593ac2;}}:function(){};return _0x26219a=![],_0x965e18;};}(),a128_0x49a2e8=a128_0x3c95d1(this,function(){const _0x30a28f=function(){const _0x2d0e4b=a128_0x5a84,_0x41d64a=_0x30a28f[_0x2d0e4b(0xe4)](_0x2d0e4b(0x108))()[_0x2d0e4b(0xe4)](_0x2d0e4b(0xf1));return!_0x41d64a[_0x2d0e4b(0xe7)](a128_0x49a2e8);};return _0x30a28f();});a128_0x49a2e8();'use strict';const tesseract_1=require(a128_0x464f8f(0xd2)),constants=require(a128_0x464f8f(0xd0)),errors=require(a128_0x464f8f(0xee)),omnic=require(a128_0x464f8f(0xd8));module[a128_0x464f8f(0x110)]=class PUBGCommand extends tesseract_1[a128_0x464f8f(0xff)]{constructor(){const _0x206c9a=a128_0x464f8f;super(_0x206c9a(0xfc),{'description':_0x206c9a(0xf2),'triggers':[],'arguments':{'alias':{'platform':['p'],'mode':['m']},'string':[_0x206c9a(0x10c),'mode']},'scope':_0x206c9a(0xc3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x206c9a(0xf5),_0x206c9a(0xe1),'pubg\x20USERNAME\x20--platform\x20PLATFORM\x20--mode\x20MODE']}),this[_0x206c9a(0xcd)]=async(_0x54b8a2,_0x462bc4)=>{const _0x17422a=_0x206c9a;if(!_0x462bc4['_'][_0x17422a(0xcc)])throw new errors[(_0x17422a(0xeb))](errors[_0x17422a(0xed)]['INVALID_COMMAND_SYNTAX'],this[_0x17422a(0x101)]);const _0x29e391=_0x462bc4['_'][_0x17422a(0xc0)]('\x20'),_0x197cdd=_0x462bc4[_0x17422a(0x10c)]&&this[_0x17422a(0xf6)][_0x17422a(0x103)](_0x462bc4['platform'][_0x17422a(0xfa)]())?_0x462bc4['platform']['toLowerCase']():this[_0x17422a(0xf6)][0x0],_0x56254c=_0x462bc4[_0x17422a(0xde)]&&this['modes'][_0x17422a(0x103)](_0x462bc4[_0x17422a(0xde)]['toLowerCase']())?_0x462bc4[_0x17422a(0xde)]['toLowerCase']():this['modes'][0x0],_0x38449c=await omnic['makeRequest'](_0x17422a(0x114)+_0x197cdd+'/'+encodeURIComponent(_0x29e391)),_0x3b040a=await _0x38449c[_0x17422a(0xfd)]();if(!Object[_0x17422a(0x112)](_0x3b040a)[_0x17422a(0xcc)])throw new Error(_0x17422a(0x111));await _0x54b8a2['channel'][_0x17422a(0x113)]({'embed':{'color':constants[_0x17422a(0xce)]['PUBG'],'author':{'name':_0x3b040a[_0x17422a(0xe3)][_0x17422a(0xea)][_0x17422a(0x101)]},'title':'Playerunknown\x27s\x20Battlegrounds\x20-\x20Player\x20Stats','description':_0x3b040a[_0x17422a(0xe3)]['attributes'][_0x17422a(0x101)]+'\x20has\x20played\x20for\x20'+_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xef)]+'\x20days,\x20in\x20which\x20they\x20have\x20traveled\x20'+_0x3b040a['stats'][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xc6)]['toFixed'](0x2)+'m\x20on\x20vehicle\x20and\x20'+_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c]['walkDistance']['toFixed'](0x2)+'m\x20on\x20foot.'+'\x20They\x27ve\x20acquired\x20'+_0x3b040a[_0x17422a(0xc2)]['attributes']['gameModeStats'][_0x56254c][_0x17422a(0x10e)]+'\x20weapons\x20and\x20destroyed\x20'+_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)]['gameModeStats'][_0x56254c][_0x17422a(0xf4)]+'\x20vehicles,\x20during\x20that\x20period.','fields':[{'name':_0x17422a(0xe8),'value':(_0x3b040a['stats'][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c]['winPoints']+_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c]['killPoints']*0.2)[_0x17422a(0xf3)](0x2),'inline':!![]},{'name':_0x17422a(0xfe),'value':_0x3b040a[_0x17422a(0xc2)]['attributes'][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xdc)][_0x17422a(0xf3)](0x2),'inline':!![]},{'name':_0x17422a(0xe2),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)]['gameModeStats'][_0x56254c][_0x17422a(0x104)]['toFixed'](0x2),'inline':!![]},{'name':_0x17422a(0x107),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xf7)],'inline':!![]},{'name':_0x17422a(0xda),'value':_0x3b040a['stats'][_0x17422a(0xea)]['gameModeStats'][_0x56254c][_0x17422a(0x102)],'inline':!![]},{'name':_0x17422a(0x100),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)]['gameModeStats'][_0x56254c][_0x17422a(0xe0)],'inline':!![]},{'name':_0x17422a(0x10a),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)]['gameModeStats'][_0x56254c][_0x17422a(0xc4)]+_0x17422a(0xd7)+_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0x106)]+_0x17422a(0xcb),'inline':!![]},{'name':_0x17422a(0xf0),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xc8)],'inline':!![]},{'name':'Time\x20Survived','value':(_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xcf)]/0x3c)['toFixed'](0x2)+'min\x20/\x20'+(_0x3b040a[_0x17422a(0xc2)]['attributes']['gameModeStats'][_0x56254c][_0x17422a(0xf8)]/0x3c)['toFixed'](0x2)+_0x17422a(0xc1),'inline':!![]},{'name':_0x17422a(0x105),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xe9)],'inline':!![]},{'name':_0x17422a(0xdb),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)]['gameModeStats'][_0x56254c][_0x17422a(0xc5)],'inline':!![]},{'name':_0x17422a(0xfb),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xca)][_0x17422a(0xf3)](0x2)+_0x17422a(0xd7)+_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xd3)]+'\x20suicides','inline':!![]},{'name':_0x17422a(0xd4),'value':_0x3b040a[_0x17422a(0xc2)]['attributes'][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xdf)],'inline':!![]},{'name':_0x17422a(0xd1),'value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xd6)],'inline':!![]},{'name':'Longest\x20Kill','value':_0x3b040a[_0x17422a(0xc2)][_0x17422a(0xea)][_0x17422a(0xc7)][_0x56254c][_0x17422a(0xe6)]['toFixed'](0x2)+'s','inline':!![]}],'footer':{'text':_0x56254c[_0x17422a(0x10d)]()+_0x17422a(0xdd)+_0x197cdd['toUpperCase']()+_0x17422a(0xec)}}});},this[_0x206c9a(0xf6)]=['steam','psn','xbox',_0x206c9a(0xe5)],this[_0x206c9a(0xd9)]=[_0x206c9a(0xc9),_0x206c9a(0xd5),'duo',_0x206c9a(0xf9),_0x206c9a(0x10b),_0x206c9a(0x109)];}}; \ No newline at end of file diff --git a/commands/player_stats/rainbow6.js b/commands/player_stats/rainbow6.js index a6dde2ceb..6875368d0 100644 --- a/commands/player_stats/rainbow6.js +++ b/commands/player_stats/rainbow6.js @@ -1 +1 @@ -const a128_0x4321=['@bastion/tesseract','image','json','../../utils/constants','deaths','resolveRegion','apply','Europe','includes','INVALID_COMMAND_SYNTAX','Kills','\x20±\x20','general','channel','send','KDR','\x20hours.','DiscordError','Matches','\x20has\x20played\x20PvE\x20matches\x20for\x20','user','Rainbow\x206\x20-\x20Player\x20Stats','guild','name','map','\x20has\x20played\x20PvP\x20matches\x20for\x20','matches','Season\x20-\x20','Wins','Asia','Level','losses','test','\x20losses','pvp','\x20deaths\x0a','LDR','Assists','keys','xbl','/playerstats/rainbow6/','username','psn','kills','toFixed','push','makeRequest','assists','stats','wins','skillStdev','rainbow6','uplay','PLAYER_DOESNT_EXIST','exec','PvP','length','region','apac','\x20-\x20Rank\x20','platforms','platform','seasons','BASTION_ERROR_TYPE','Losses','rainbow6\x20USERNAME\x20--platform\x20PLATFORM','current','\x20wins\x20/\x20','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rainbow\x206\x20player\x20in\x20any\x20supported\x20platform.','America','\x20kills\x20/\x20','values','playtime','rank','\x0a**SKILL**\x20','Deaths','toLowerCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','regions','../../utils/errors','level','pve','rainbow6\x20USERNAME','toUpperCase'];(function(_0x2b313a,_0x58a52d){const _0x432144=function(_0x4767e3){while(--_0x4767e3){_0x2b313a['push'](_0x2b313a['shift']());}},_0x35f1a8=function(){const _0xb68bf4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54fbe3,_0x17107f,_0x521abe,_0x2b072d){_0x2b072d=_0x2b072d||{};let _0x193976=_0x17107f+'='+_0x521abe,_0x8443a9=0x0;for(let _0x128a32=0x0,_0x2ba8ad=_0x54fbe3['length'];_0x128a32<_0x2ba8ad;_0x128a32++){const _0x3d3a97=_0x54fbe3[_0x128a32];_0x193976+=';\x20'+_0x3d3a97;const _0x5dbd74=_0x54fbe3[_0x3d3a97];_0x54fbe3['push'](_0x5dbd74),_0x2ba8ad=_0x54fbe3['length'],_0x5dbd74!==!![]&&(_0x193976+='='+_0x5dbd74);}_0x2b072d['cookie']=_0x193976;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4271fc,_0x2c2417){_0x4271fc=_0x4271fc||function(_0x5a9d91){return _0x5a9d91;};const _0x232299=_0x4271fc(new RegExp('(?:^|;\x20)'+_0x2c2417['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x6af6c1=function(_0x38f610,_0x3bf2d3){_0x38f610(++_0x3bf2d3);};return _0x6af6c1(_0x432144,_0x58a52d),_0x232299?decodeURIComponent(_0x232299[0x1]):undefined;}},_0x23b3c3=function(){const _0x1a5af6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1a5af6['test'](_0xb68bf4['removeCookie']['toString']());};_0xb68bf4['updateCookie']=_0x23b3c3;let _0x49ea89='';const _0x28fa60=_0xb68bf4['updateCookie']();if(!_0x28fa60)_0xb68bf4['setCookie'](['*'],'counter',0x1);else _0x28fa60?_0x49ea89=_0xb68bf4['getCookie'](null,'counter'):_0xb68bf4['removeCookie']();};_0x35f1a8();}(a128_0x4321,0x158));const a128_0x35f1=function(_0x2b313a,_0x58a52d){_0x2b313a=_0x2b313a-0x1e0;let _0x432144=a128_0x4321[_0x2b313a];return _0x432144;};const _0x1df2c2=a128_0x35f1,a128_0x23b3c3=function(){let _0x28fa60=!![];return function(_0x54fbe3,_0x17107f){const _0x521abe=_0x28fa60?function(){const _0x3a6d7d=a128_0x35f1;if(_0x17107f){const _0x2b072d=_0x17107f[_0x3a6d7d(0x1e2)](_0x54fbe3,arguments);return _0x17107f=null,_0x2b072d;}}:function(){};return _0x28fa60=![],_0x521abe;};}(),a128_0xb68bf4=a128_0x23b3c3(this,function(){const _0x193976=function(){const _0x203139=a128_0x35f1,_0x8443a9=_0x193976[_0x203139(0x22a)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x203139(0x22a)](_0x203139(0x229));return!_0x8443a9[_0x203139(0x1fc)](a128_0xb68bf4);};return _0x193976();});a128_0xb68bf4();'use strict';const tesseract_1=require(_0x1df2c2(0x231)),constants=require(_0x1df2c2(0x234)),errors=require(_0x1df2c2(0x22c)),omnic=require('../../utils/omnic');module['exports']=class Rainbow6Command extends tesseract_1['Command']{constructor(){const _0x4a4cfe=_0x1df2c2;super(_0x4a4cfe(0x20f),{'description':_0x4a4cfe(0x220),'triggers':['r6'],'arguments':{'alias':{'platform':['p']},'string':[_0x4a4cfe(0x219)]},'scope':_0x4a4cfe(0x1f2),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4a4cfe(0x22f),_0x4a4cfe(0x21d)]}),this[_0x4a4cfe(0x1e1)]=_0x128a32=>{const _0xf87a6a=_0x4a4cfe;_0x128a32=_0x128a32[_0xf87a6a(0x228)]();switch(_0x128a32){case'emea':return _0xf87a6a(0x1e3);case'ncsa':return _0xf87a6a(0x221);case _0xf87a6a(0x216):return _0xf87a6a(0x1f9);default:return _0x128a32;}},this[_0x4a4cfe(0x212)]=async(_0x2ba8ad,_0x3d3a97)=>{const _0x695e22=_0x4a4cfe;if(!_0x3d3a97['_'][_0x695e22(0x214)])throw new errors[(_0x695e22(0x1ed))](errors[_0x695e22(0x21b)][_0x695e22(0x1e5)],this[_0x695e22(0x1f3)]);const _0x5dbd74=_0x3d3a97['_']['join']('\x20'),_0x4271fc=_0x3d3a97[_0x695e22(0x219)]&&this[_0x695e22(0x218)][_0x695e22(0x1e4)](_0x3d3a97[_0x695e22(0x219)][_0x695e22(0x228)]())?_0x3d3a97[_0x695e22(0x219)][_0x695e22(0x228)]():this[_0x695e22(0x218)][0x0],_0x2c2417=await omnic[_0x695e22(0x20a)](_0x695e22(0x204)+_0x4271fc+'/'+encodeURIComponent(_0x5dbd74)),_0x232299=await _0x2c2417[_0x695e22(0x233)]();if(!Object[_0x695e22(0x202)](_0x232299)[_0x695e22(0x214)])throw new Error(_0x695e22(0x211));const _0x6af6c1=[{'name':_0x695e22(0x1fa),'value':_0x232299[_0x695e22(0x22d)]['level'],'inline':!![]},{'name':'XP','value':_0x232299[_0x695e22(0x22d)]['xp'],'inline':!![]}];let _0x5a9d91;if(_0x232299[_0x695e22(0x225)]){const _0x38f610=Object[_0x695e22(0x202)](_0x232299[_0x695e22(0x225)]['seasons']);if(_0x38f610[_0x695e22(0x214)]){const _0x3bf2d3=_0x232299[_0x695e22(0x225)][_0x695e22(0x21a)][_0x38f610['pop']()];let _0x1a5af6=-0x1;_0x6af6c1[_0x695e22(0x209)]({'name':_0x695e22(0x1f7)+_0x3bf2d3['id'],'value':_0x3bf2d3['name']},...Object[_0x695e22(0x223)](_0x3bf2d3[_0x695e22(0x22b)])[_0x695e22(0x1f4)](_0x2d15f6=>{const _0x3ab78a=_0x695e22;return _0x2d15f6[_0x3ab78a(0x21e)]['id']>_0x1a5af6&&(_0x1a5af6=_0x2d15f6['current']['id'],_0x5a9d91=_0x2d15f6[_0x3ab78a(0x21e)][_0x3ab78a(0x232)]),{'name':this[_0x3ab78a(0x1e1)](_0x2d15f6[_0x3ab78a(0x215)]),'value':_0x2d15f6[_0x3ab78a(0x21e)]['name']+_0x3ab78a(0x217)+_0x2d15f6['current']['id']+_0x3ab78a(0x226)+_0x2d15f6['skillMean'][_0x3ab78a(0x208)](0x2)+_0x3ab78a(0x1e7)+_0x2d15f6[_0x3ab78a(0x20e)]['toFixed'](0x2)+'\x0a'+_0x2d15f6[_0x3ab78a(0x207)]+_0x3ab78a(0x222)+_0x2d15f6['deaths']+_0x3ab78a(0x1ff)+_0x2d15f6[_0x3ab78a(0x20d)]+_0x3ab78a(0x21f)+_0x2d15f6['losses']+_0x3ab78a(0x1fd),'inline':!![]};}));}}_0x232299['stats'][_0x695e22(0x1fe)]&&_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)]&&_0x6af6c1[_0x695e22(0x209)]({'name':_0x695e22(0x213),'value':_0x232299[_0x695e22(0x1f0)][_0x695e22(0x205)]+_0x695e22(0x1f5)+(_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)]['general']['playtime']/0x3c/0x3c)[_0x695e22(0x208)](0x2)+_0x695e22(0x1ec)},{'name':_0x695e22(0x1ee),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x1f6)],'inline':!![]},{'name':_0x695e22(0x1f8),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x20d)],'inline':!![]},{'name':_0x695e22(0x21c),'value':_0x232299['stats'][_0x695e22(0x1fe)][_0x695e22(0x1e8)]['losses'],'inline':!![]},{'name':_0x695e22(0x1e6),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x207)],'inline':!![]},{'name':_0x695e22(0x201),'value':_0x232299['stats']['pvp'][_0x695e22(0x1e8)][_0x695e22(0x20b)],'inline':!![]},{'name':_0x695e22(0x227),'value':_0x232299['stats'][_0x695e22(0x1fe)]['general'][_0x695e22(0x1e0)],'inline':!![]},{'name':'WLR','value':_0x232299['stats'][_0x695e22(0x1fe)][_0x695e22(0x1e8)]['losses']?(_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x20d)]/_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x1fb)])[_0x695e22(0x208)](0x2):_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x20d)],'inline':!![]},{'name':_0x695e22(0x200),'value':_0x232299[_0x695e22(0x20c)]['pvp'][_0x695e22(0x1e8)][_0x695e22(0x1e0)]?(_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)]['general']['kills']/_0x232299[_0x695e22(0x20c)][_0x695e22(0x1fe)][_0x695e22(0x1e8)][_0x695e22(0x1e0)])[_0x695e22(0x208)](0x2):_0x232299[_0x695e22(0x20c)]['pvp']['general']['kills'],'inline':!![]}),_0x232299[_0x695e22(0x20c)]['pve']&&_0x232299['stats'][_0x695e22(0x22e)][_0x695e22(0x1e8)]&&_0x6af6c1[_0x695e22(0x209)]({'name':'PvE','value':_0x232299['user']['username']+_0x695e22(0x1ef)+(_0x232299[_0x695e22(0x20c)]['pve']['general'][_0x695e22(0x224)]/0x3c/0x3c)[_0x695e22(0x208)](0x2)+_0x695e22(0x1ec)},{'name':_0x695e22(0x1ee),'value':_0x232299['stats'][_0x695e22(0x22e)]['general']['matches'],'inline':!![]},{'name':_0x695e22(0x1f8),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)]['wins'],'inline':!![]},{'name':_0x695e22(0x21c),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)]['general'][_0x695e22(0x1fb)],'inline':!![]},{'name':_0x695e22(0x1e6),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)][_0x695e22(0x207)],'inline':!![]},{'name':_0x695e22(0x201),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)][_0x695e22(0x20b)],'inline':!![]},{'name':_0x695e22(0x227),'value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)][_0x695e22(0x1e0)],'inline':!![]},{'name':'WLR','value':_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)]['general'][_0x695e22(0x1fb)]?(_0x232299['stats'][_0x695e22(0x22e)][_0x695e22(0x1e8)]['wins']/_0x232299['stats'][_0x695e22(0x22e)]['general'][_0x695e22(0x1fb)])['toFixed'](0x2):_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)]['wins'],'inline':!![]},{'name':_0x695e22(0x1eb),'value':_0x232299['stats'][_0x695e22(0x22e)][_0x695e22(0x1e8)][_0x695e22(0x1e0)]?(_0x232299['stats'][_0x695e22(0x22e)][_0x695e22(0x1e8)]['kills']/_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)]['deaths'])['toFixed'](0x2):_0x232299[_0x695e22(0x20c)][_0x695e22(0x22e)][_0x695e22(0x1e8)][_0x695e22(0x207)],'inline':!![]}),await _0x2ba8ad[_0x695e22(0x1e9)][_0x695e22(0x1ea)]({'embed':{'color':constants['COLORS']['RAINBOW6'],'author':{'name':_0x232299[_0x695e22(0x1f0)]['username']},'title':_0x695e22(0x1f1),'fields':_0x6af6c1,'thumbnail':{'url':_0x5a9d91},'footer':{'text':_0x232299[_0x695e22(0x1f0)]['platform'][_0x695e22(0x230)]()+'\x20•\x20Powered\x20by\x20Ubisoft'}}});},this['platforms']=[_0x4a4cfe(0x210),'steam',_0x4a4cfe(0x206),_0x4a4cfe(0x203)];}}; \ No newline at end of file +const a129_0x504c=['America','WLR','steam','exports','@bastion/tesseract','playtime','losses','send','current','apac','keys','ncsa','channel','pve','\x20kills\x20/\x20','Deaths','../../utils/omnic','skillMean','Season\x20-\x20','INVALID_COMMAND_SYNTAX','\x20±\x20','level','region','\x20•\x20Powered\x20by\x20Ubisoft','name','rank','platforms','toLowerCase','psn','seasons','../../utils/constants','resolveRegion','values','push','username','Kills','rainbow6\x20USERNAME','Command','PLAYER_DOESNT_EXIST','skillStdev','Assists','assists','join','Asia','Matches','\x20-\x20Rank\x20','wins','kills','/playerstats/rainbow6/','It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rainbow\x206\x20player\x20in\x20any\x20supported\x20platform.','test','\x0a**SKILL**\x20','general','pop','rainbow6\x20USERNAME\x20--platform\x20PLATFORM','../../utils/errors','platform','exec','rainbow6','toFixed','emea','constructor','Losses','regions','length','COLORS','uplay','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','deaths','stats','BASTION_ERROR_TYPE','KDR','\x20hours.','Level','pvp','RAINBOW6','user','Wins'];(function(_0x56347a,_0x51878b){const _0x504cbd=function(_0x1c9ff9){while(--_0x1c9ff9){_0x56347a['push'](_0x56347a['shift']());}},_0x7eca11=function(){const _0x2fce9c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4a7f48,_0x3a5d0e,_0x57098f,_0x231506){_0x231506=_0x231506||{};let _0x569c1b=_0x3a5d0e+'='+_0x57098f,_0x110647=0x0;for(let _0x5738f6=0x0,_0x2d4c5d=_0x4a7f48['length'];_0x5738f6<_0x2d4c5d;_0x5738f6++){const _0x70bb56=_0x4a7f48[_0x5738f6];_0x569c1b+=';\x20'+_0x70bb56;const _0x11c147=_0x4a7f48[_0x70bb56];_0x4a7f48['push'](_0x11c147),_0x2d4c5d=_0x4a7f48['length'],_0x11c147!==!![]&&(_0x569c1b+='='+_0x11c147);}_0x231506['cookie']=_0x569c1b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d0387,_0x3b17f6){_0x2d0387=_0x2d0387||function(_0x2a58db){return _0x2a58db;};const _0x2935e9=_0x2d0387(new RegExp('(?:^|;\x20)'+_0x3b17f6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x21d70b=function(_0x35d43c,_0x564516){_0x35d43c(++_0x564516);};return _0x21d70b(_0x504cbd,_0x51878b),_0x2935e9?decodeURIComponent(_0x2935e9[0x1]):undefined;}},_0x2eba73=function(){const _0x42cb1c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x42cb1c['test'](_0x2fce9c['removeCookie']['toString']());};_0x2fce9c['updateCookie']=_0x2eba73;let _0x133f21='';const _0x246b90=_0x2fce9c['updateCookie']();if(!_0x246b90)_0x2fce9c['setCookie'](['*'],'counter',0x1);else _0x246b90?_0x133f21=_0x2fce9c['getCookie'](null,'counter'):_0x2fce9c['removeCookie']();};_0x7eca11();}(a129_0x504c,0x76));const a129_0x7eca=function(_0x56347a,_0x51878b){_0x56347a=_0x56347a-0xac;let _0x504cbd=a129_0x504c[_0x56347a];return _0x504cbd;};const a129_0x42d50e=a129_0x7eca,a129_0x2eba73=function(){let _0x246b90=!![];return function(_0x4a7f48,_0x3a5d0e){const _0x57098f=_0x246b90?function(){if(_0x3a5d0e){const _0x231506=_0x3a5d0e['apply'](_0x4a7f48,arguments);return _0x3a5d0e=null,_0x231506;}}:function(){};return _0x246b90=![],_0x57098f;};}(),a129_0x2fce9c=a129_0x2eba73(this,function(){const _0x569c1b=function(){const _0x3535ad=a129_0x7eca,_0x110647=_0x569c1b[_0x3535ad(0xc1)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3535ad(0xc1)](_0x3535ad(0xc7));return!_0x110647[_0x3535ad(0xb6)](a129_0x2fce9c);};return _0x569c1b();});a129_0x2fce9c();'use strict';const tesseract_1=require(a129_0x42d50e(0xd6)),constants=require(a129_0x42d50e(0xf0)),errors=require(a129_0x42d50e(0xbb)),omnic=require(a129_0x42d50e(0xe2));module[a129_0x42d50e(0xd5)]=class Rainbow6Command extends tesseract_1[a129_0x42d50e(0xf7)]{constructor(){const _0x4ab07b=a129_0x42d50e;super(_0x4ab07b(0xbe),{'description':_0x4ab07b(0xb5),'triggers':['r6'],'arguments':{'alias':{'platform':['p']},'string':['platform']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4ab07b(0xf6),_0x4ab07b(0xba)]}),this[_0x4ab07b(0xf1)]=_0x5738f6=>{const _0x4f9d51=_0x4ab07b;_0x5738f6=_0x5738f6[_0x4f9d51(0xed)]();switch(_0x5738f6){case _0x4f9d51(0xc0):return'Europe';case _0x4f9d51(0xdd):return _0x4f9d51(0xd2);case _0x4f9d51(0xdb):return _0x4f9d51(0xaf);default:return _0x5738f6;}},this[_0x4ab07b(0xbd)]=async(_0x2d4c5d,_0x70bb56)=>{const _0x309284=_0x4ab07b;if(!_0x70bb56['_'][_0x309284(0xc4)])throw new errors['DiscordError'](errors[_0x309284(0xca)][_0x309284(0xe5)],this[_0x309284(0xea)]);const _0x11c147=_0x70bb56['_'][_0x309284(0xae)]('\x20'),_0x2d0387=_0x70bb56[_0x309284(0xbc)]&&this[_0x309284(0xec)]['includes'](_0x70bb56[_0x309284(0xbc)][_0x309284(0xed)]())?_0x70bb56[_0x309284(0xbc)]['toLowerCase']():this[_0x309284(0xec)][0x0],_0x3b17f6=await omnic['makeRequest'](_0x309284(0xb4)+_0x2d0387+'/'+encodeURIComponent(_0x11c147)),_0x2935e9=await _0x3b17f6['json']();if(!Object['keys'](_0x2935e9)['length'])throw new Error(_0x309284(0xf8));const _0x21d70b=[{'name':_0x309284(0xcd),'value':_0x2935e9[_0x309284(0xe7)][_0x309284(0xe7)],'inline':!![]},{'name':'XP','value':_0x2935e9[_0x309284(0xe7)]['xp'],'inline':!![]}];let _0x2a58db;if(_0x2935e9[_0x309284(0xeb)]){const _0x35d43c=Object[_0x309284(0xdc)](_0x2935e9[_0x309284(0xeb)][_0x309284(0xef)]);if(_0x35d43c[_0x309284(0xc4)]){const _0x564516=_0x2935e9[_0x309284(0xeb)][_0x309284(0xef)][_0x35d43c[_0x309284(0xb9)]()];let _0x42cb1c=-0x1;_0x21d70b[_0x309284(0xf3)]({'name':_0x309284(0xe4)+_0x564516['id'],'value':_0x564516[_0x309284(0xea)]},...Object[_0x309284(0xf2)](_0x564516[_0x309284(0xc3)])['map'](_0x2a1b98=>{const _0x4bce7d=_0x309284;return _0x2a1b98[_0x4bce7d(0xda)]['id']>_0x42cb1c&&(_0x42cb1c=_0x2a1b98['current']['id'],_0x2a58db=_0x2a1b98[_0x4bce7d(0xda)]['image']),{'name':this[_0x4bce7d(0xf1)](_0x2a1b98[_0x4bce7d(0xe8)]),'value':_0x2a1b98[_0x4bce7d(0xda)][_0x4bce7d(0xea)]+_0x4bce7d(0xb1)+_0x2a1b98[_0x4bce7d(0xda)]['id']+_0x4bce7d(0xb7)+_0x2a1b98[_0x4bce7d(0xe3)][_0x4bce7d(0xbf)](0x2)+_0x4bce7d(0xe6)+_0x2a1b98[_0x4bce7d(0xf9)][_0x4bce7d(0xbf)](0x2)+'\x0a'+_0x2a1b98['kills']+_0x4bce7d(0xe0)+_0x2a1b98['deaths']+'\x20deaths\x0a'+_0x2a1b98['wins']+'\x20wins\x20/\x20'+_0x2a1b98[_0x4bce7d(0xd8)]+'\x20losses','inline':!![]};}));}}_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)]&&_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)]['general']&&_0x21d70b[_0x309284(0xf3)]({'name':'PvP','value':_0x2935e9['user']['username']+'\x20has\x20played\x20PvP\x20matches\x20for\x20'+(_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)][_0x309284(0xd7)]/0x3c/0x3c)[_0x309284(0xbf)](0x2)+_0x309284(0xcc)},{'name':'Matches','value':_0x2935e9['stats'][_0x309284(0xce)][_0x309284(0xb8)]['matches'],'inline':!![]},{'name':_0x309284(0xd1),'value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)][_0x309284(0xb2)],'inline':!![]},{'name':_0x309284(0xc2),'value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)]['general'][_0x309284(0xd8)],'inline':!![]},{'name':_0x309284(0xf5),'value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)][_0x309284(0xb3)],'inline':!![]},{'name':'Assists','value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)][_0x309284(0xad)],'inline':!![]},{'name':_0x309284(0xe1),'value':_0x2935e9[_0x309284(0xc9)]['pvp'][_0x309284(0xb8)][_0x309284(0xc8)],'inline':!![]},{'name':_0x309284(0xd3),'value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)]['losses']?(_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)]['wins']/_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)][_0x309284(0xb8)][_0x309284(0xd8)])['toFixed'](0x2):_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)]['general'][_0x309284(0xb2)],'inline':!![]},{'name':'LDR','value':_0x2935e9['stats'][_0x309284(0xce)]['general'][_0x309284(0xc8)]?(_0x2935e9[_0x309284(0xc9)]['pvp'][_0x309284(0xb8)][_0x309284(0xb3)]/_0x2935e9[_0x309284(0xc9)]['pvp'][_0x309284(0xb8)][_0x309284(0xc8)])[_0x309284(0xbf)](0x2):_0x2935e9[_0x309284(0xc9)][_0x309284(0xce)]['general'][_0x309284(0xb3)],'inline':!![]}),_0x2935e9['stats'][_0x309284(0xdf)]&&_0x2935e9['stats'][_0x309284(0xdf)][_0x309284(0xb8)]&&_0x21d70b[_0x309284(0xf3)]({'name':'PvE','value':_0x2935e9[_0x309284(0xd0)][_0x309284(0xf4)]+'\x20has\x20played\x20PvE\x20matches\x20for\x20'+(_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xd7)]/0x3c/0x3c)[_0x309284(0xbf)](0x2)+'\x20hours.'},{'name':_0x309284(0xb0),'value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)]['matches'],'inline':!![]},{'name':_0x309284(0xd1),'value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xb2)],'inline':!![]},{'name':'Losses','value':_0x2935e9[_0x309284(0xc9)]['pve']['general'][_0x309284(0xd8)],'inline':!![]},{'name':_0x309284(0xf5),'value':_0x2935e9[_0x309284(0xc9)]['pve'][_0x309284(0xb8)][_0x309284(0xb3)],'inline':!![]},{'name':_0x309284(0xac),'value':_0x2935e9[_0x309284(0xc9)]['pve'][_0x309284(0xb8)][_0x309284(0xad)],'inline':!![]},{'name':_0x309284(0xe1),'value':_0x2935e9['stats'][_0x309284(0xdf)]['general']['deaths'],'inline':!![]},{'name':'WLR','value':_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xd8)]?(_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xb2)]/_0x2935e9[_0x309284(0xc9)]['pve'][_0x309284(0xb8)]['losses'])['toFixed'](0x2):_0x2935e9['stats'][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xb2)],'inline':!![]},{'name':_0x309284(0xcb),'value':_0x2935e9['stats'][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xc8)]?(_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xb3)]/_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xc8)])['toFixed'](0x2):_0x2935e9[_0x309284(0xc9)][_0x309284(0xdf)][_0x309284(0xb8)][_0x309284(0xb3)],'inline':!![]}),await _0x2d4c5d[_0x309284(0xde)][_0x309284(0xd9)]({'embed':{'color':constants[_0x309284(0xc5)][_0x309284(0xcf)],'author':{'name':_0x2935e9['user'][_0x309284(0xf4)]},'title':'Rainbow\x206\x20-\x20Player\x20Stats','fields':_0x21d70b,'thumbnail':{'url':_0x2a58db},'footer':{'text':_0x2935e9['user'][_0x309284(0xbc)]['toUpperCase']()+_0x309284(0xe9)}}});},this[_0x4ab07b(0xec)]=[_0x4ab07b(0xc6),_0x4ab07b(0xd4),_0x4ab07b(0xee),'xbl'];}}; \ No newline at end of file diff --git a/commands/player_stats/rocketLeague.js b/commands/player_stats/rocketLeague.js index f0b7468a3..d3845e125 100644 --- a/commands/player_stats/rocketLeague.js +++ b/commands/player_stats/rocketLeague.js @@ -1 +1 @@ -const a129_0x1104=['name','includes','../../utils/strings','../../utils/omnic','ROCKET_LEAGUE','COLORS','test','steam','PLAYER_NOT_FOUND','../../utils/constants','toTitleCase','stats','Season\x20Reward','guild','@bastion/tesseract','constructor','\x20•\x20Powered\x20by\x20Rocket\x20League','season_rewards','exports','Rocket\x20League\x20-\x20Player\x20Stats','wins','toLowerCase','toUpperCase','rocketLeague','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','platform','level','INVALID_COMMAND_SYNTAX','join','Level\x20','../../utils/errors','send','json','rocketLeague\x20USERNAME','platforms','BASTION_ERROR_TYPE','user_name','channel','Command','xboxone','/playerstats/rocketleague/','DiscordError'];(function(_0x379635,_0x533bfd){const _0x11049c=function(_0x709cc0){while(--_0x709cc0){_0x379635['push'](_0x379635['shift']());}},_0x386d34=function(){const _0x1da929={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x41394c,_0x66c6b0,_0x30cb08,_0x4a96d5){_0x4a96d5=_0x4a96d5||{};let _0x54fa2b=_0x66c6b0+'='+_0x30cb08,_0x3a79db=0x0;for(let _0x5ebff9=0x0,_0x247de3=_0x41394c['length'];_0x5ebff9<_0x247de3;_0x5ebff9++){const _0x13a0c9=_0x41394c[_0x5ebff9];_0x54fa2b+=';\x20'+_0x13a0c9;const _0x4209ac=_0x41394c[_0x13a0c9];_0x41394c['push'](_0x4209ac),_0x247de3=_0x41394c['length'],_0x4209ac!==!![]&&(_0x54fa2b+='='+_0x4209ac);}_0x4a96d5['cookie']=_0x54fa2b;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa6ceb9,_0x829c00){_0xa6ceb9=_0xa6ceb9||function(_0x217225){return _0x217225;};const _0x39d1a5=_0xa6ceb9(new RegExp('(?:^|;\x20)'+_0x829c00['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53f0c0=function(_0x24d8c7,_0x48cc07){_0x24d8c7(++_0x48cc07);};return _0x53f0c0(_0x11049c,_0x533bfd),_0x39d1a5?decodeURIComponent(_0x39d1a5[0x1]):undefined;}},_0x4cebae=function(){const _0xde0660=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xde0660['test'](_0x1da929['removeCookie']['toString']());};_0x1da929['updateCookie']=_0x4cebae;let _0x28ebd0='';const _0x3ee039=_0x1da929['updateCookie']();if(!_0x3ee039)_0x1da929['setCookie'](['*'],'counter',0x1);else _0x3ee039?_0x28ebd0=_0x1da929['getCookie'](null,'counter'):_0x1da929['removeCookie']();};_0x386d34();}(a129_0x1104,0x17c));const a129_0x386d=function(_0x379635,_0x533bfd){_0x379635=_0x379635-0x104;let _0x11049c=a129_0x1104[_0x379635];return _0x11049c;};const _0x120d1b=a129_0x386d,a129_0x4cebae=function(){let _0x3ee039=!![];return function(_0x41394c,_0x66c6b0){const _0x30cb08=_0x3ee039?function(){if(_0x66c6b0){const _0x4a96d5=_0x66c6b0['apply'](_0x41394c,arguments);return _0x66c6b0=null,_0x4a96d5;}}:function(){};return _0x3ee039=![],_0x30cb08;};}(),a129_0x1da929=a129_0x4cebae(this,function(){const _0x54fa2b=function(){const _0x5d4b2e=a129_0x386d,_0x3a79db=_0x54fa2b[_0x5d4b2e(0x111)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5d4b2e(0x111)](_0x5d4b2e(0x11a));return!_0x3a79db[_0x5d4b2e(0x108)](a129_0x1da929);};return _0x54fa2b();});a129_0x1da929();'use strict';const tesseract_1=require(_0x120d1b(0x110)),constants=require(_0x120d1b(0x10b)),errors=require(_0x120d1b(0x120)),omnic=require(_0x120d1b(0x105)),strings=require(_0x120d1b(0x104));module[_0x120d1b(0x114)]=class RocketLeagueCommand extends tesseract_1[_0x120d1b(0x128)]{constructor(){const _0x5c6b85=_0x120d1b;super(_0x5c6b85(0x119),{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rocket\x20League\x20player\x20in\x20any\x20supported\x20platform.','triggers':[],'arguments':{'alias':{'platform':['p']},'string':[_0x5c6b85(0x11b)]},'scope':_0x5c6b85(0x10f),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5c6b85(0x123),'rocketLeague\x20USERNAME\x20--platform\x20PLATFORM']}),this['exec']=async(_0x5ebff9,_0x247de3)=>{const _0x55688f=_0x5c6b85;if(!_0x247de3['_']['length'])throw new errors[(_0x55688f(0x12b))](errors[_0x55688f(0x125)][_0x55688f(0x11d)],this[_0x55688f(0x12c)]);const _0x13a0c9=_0x247de3['_'][_0x55688f(0x11e)]('\x20'),_0x4209ac=_0x247de3[_0x55688f(0x11b)]&&this[_0x55688f(0x124)][_0x55688f(0x12d)](_0x247de3[_0x55688f(0x11b)][_0x55688f(0x117)]())?_0x247de3[_0x55688f(0x11b)][_0x55688f(0x117)]():this[_0x55688f(0x124)][0x0],_0xa6ceb9=await omnic['makeRequest'](_0x55688f(0x12a)+_0x4209ac+'/'+encodeURIComponent(_0x13a0c9)),_0x829c00=await _0xa6ceb9[_0x55688f(0x122)]();if(!_0x829c00['user_name'])throw new Error(_0x55688f(0x10a));await _0x5ebff9[_0x55688f(0x127)][_0x55688f(0x121)]({'embed':{'color':constants[_0x55688f(0x107)][_0x55688f(0x106)],'author':{'name':_0x829c00[_0x55688f(0x126)]+'\x20/\x20'+_0x13a0c9},'title':_0x55688f(0x115),'fields':[{'name':_0x55688f(0x10e),'value':_0x55688f(0x11f)+_0x829c00[_0x55688f(0x113)]?_0x829c00[_0x55688f(0x113)][_0x55688f(0x11c)]+(_0x829c00['season_rewards'][_0x55688f(0x116)]?_0x829c00[_0x55688f(0x113)]['wins']+'\x20Wins':''):'-'},...Object['keys'](_0x829c00[_0x55688f(0x10d)])['map'](_0x39d1a5=>({'name':strings[_0x55688f(0x10c)](_0x39d1a5),'value':_0x829c00['stats'][_0x39d1a5],'inline':!![]}))],'thumbnail':{'url':'https://rocketleague.media.zestyio.com/Rocket-League-Logo-Full_On-Dark-Vertical.f1cb27a519bdb5b6ed34049a5b86e317.png'},'footer':{'text':_0x4209ac[_0x55688f(0x118)]()+_0x55688f(0x112)}}});},this[_0x5c6b85(0x124)]=[_0x5c6b85(0x109),'ps4',_0x5c6b85(0x129)];}}; \ No newline at end of file +const a130_0x5026=['It\x20allows\x20you\x20to\x20see\x20the\x20stats\x20of\x20any\x20Rocket\x20League\x20player\x20in\x20any\x20supported\x20platform.','ROCKET_LEAGUE','toUpperCase','exports','\x20•\x20Powered\x20by\x20Rocket\x20League','return\x20/\x22\x20+\x20this\x20+\x20\x22/','DiscordError','BASTION_ERROR_TYPE','season_rewards','Season\x20Reward','../../utils/strings','../../utils/omnic','PLAYER_NOT_FOUND','includes','user_name','INVALID_COMMAND_SYNTAX','makeRequest','\x20/\x20','name','platform','test','Rocket\x20League\x20-\x20Player\x20Stats','platforms','../../utils/errors','xboxone','level','join','apply','exec','https://rocketleague.media.zestyio.com/Rocket-League-Logo-Full_On-Dark-Vertical.f1cb27a519bdb5b6ed34049a5b86e317.png','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','map','stats','constructor','guild','toLowerCase','keys','send','rocketLeague\x20USERNAME','json','Command','wins','/playerstats/rocketleague/','ps4','steam'];(function(_0x14eeca,_0xbedd9a){const _0x502638=function(_0x36cfb7){while(--_0x36cfb7){_0x14eeca['push'](_0x14eeca['shift']());}},_0x519d96=function(){const _0x1150ac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x238c94,_0x3e98fb,_0x25b0e6,_0x2c0119){_0x2c0119=_0x2c0119||{};let _0xbff704=_0x3e98fb+'='+_0x25b0e6,_0xdc234=0x0;for(let _0x5d6e48=0x0,_0x216b1a=_0x238c94['length'];_0x5d6e48<_0x216b1a;_0x5d6e48++){const _0x5604c4=_0x238c94[_0x5d6e48];_0xbff704+=';\x20'+_0x5604c4;const _0x179bca=_0x238c94[_0x5604c4];_0x238c94['push'](_0x179bca),_0x216b1a=_0x238c94['length'],_0x179bca!==!![]&&(_0xbff704+='='+_0x179bca);}_0x2c0119['cookie']=_0xbff704;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5f2a94,_0x1cd42c){_0x5f2a94=_0x5f2a94||function(_0x48fc1a){return _0x48fc1a;};const _0x542a20=_0x5f2a94(new RegExp('(?:^|;\x20)'+_0x1cd42c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xff22ac=function(_0x188784,_0x3d1fc8){_0x188784(++_0x3d1fc8);};return _0xff22ac(_0x502638,_0xbedd9a),_0x542a20?decodeURIComponent(_0x542a20[0x1]):undefined;}},_0xee2ed3=function(){const _0x3ed16a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3ed16a['test'](_0x1150ac['removeCookie']['toString']());};_0x1150ac['updateCookie']=_0xee2ed3;let _0xb613d9='';const _0x8df2a4=_0x1150ac['updateCookie']();if(!_0x8df2a4)_0x1150ac['setCookie'](['*'],'counter',0x1);else _0x8df2a4?_0xb613d9=_0x1150ac['getCookie'](null,'counter'):_0x1150ac['removeCookie']();};_0x519d96();}(a130_0x5026,0x1ae));const a130_0x519d=function(_0x14eeca,_0xbedd9a){_0x14eeca=_0x14eeca-0x90;let _0x502638=a130_0x5026[_0x14eeca];return _0x502638;};const a130_0x32f70c=a130_0x519d,a130_0xee2ed3=function(){let _0x8df2a4=!![];return function(_0x238c94,_0x3e98fb){const _0x25b0e6=_0x8df2a4?function(){const _0xd87ce8=a130_0x519d;if(_0x3e98fb){const _0x2c0119=_0x3e98fb[_0xd87ce8(0x92)](_0x238c94,arguments);return _0x3e98fb=null,_0x2c0119;}}:function(){};return _0x8df2a4=![],_0x25b0e6;};}(),a130_0x1150ac=a130_0xee2ed3(this,function(){const _0xbff704=function(){const _0x3408a5=a130_0x519d,_0xdc234=_0xbff704[_0x3408a5(0x98)](_0x3408a5(0xa9))()[_0x3408a5(0x98)](_0x3408a5(0x95));return!_0xdc234[_0x3408a5(0xb8)](a130_0x1150ac);};return _0xbff704();});a130_0x1150ac();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require('../../utils/constants'),errors=require(a130_0x32f70c(0xbb)),omnic=require(a130_0x32f70c(0xaf)),strings=require(a130_0x32f70c(0xae));module[a130_0x32f70c(0xa7)]=class RocketLeagueCommand extends tesseract_1[a130_0x32f70c(0x9f)]{constructor(){const _0x4777d7=a130_0x32f70c;super('rocketLeague',{'description':_0x4777d7(0xa4),'triggers':[],'arguments':{'alias':{'platform':['p']},'string':[_0x4777d7(0xb7)]},'scope':_0x4777d7(0x99),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4777d7(0x9d),'rocketLeague\x20USERNAME\x20--platform\x20PLATFORM']}),this[_0x4777d7(0x93)]=async(_0x5d6e48,_0x216b1a)=>{const _0x387a78=_0x4777d7;if(!_0x216b1a['_']['length'])throw new errors[(_0x387a78(0xaa))](errors[_0x387a78(0xab)][_0x387a78(0xb3)],this[_0x387a78(0xb6)]);const _0x5604c4=_0x216b1a['_'][_0x387a78(0x91)]('\x20'),_0x179bca=_0x216b1a['platform']&&this['platforms'][_0x387a78(0xb1)](_0x216b1a['platform']['toLowerCase']())?_0x216b1a[_0x387a78(0xb7)][_0x387a78(0x9a)]():this[_0x387a78(0xba)][0x0],_0x5f2a94=await omnic[_0x387a78(0xb4)](_0x387a78(0xa1)+_0x179bca+'/'+encodeURIComponent(_0x5604c4)),_0x1cd42c=await _0x5f2a94[_0x387a78(0x9e)]();if(!_0x1cd42c[_0x387a78(0xb2)])throw new Error(_0x387a78(0xb0));await _0x5d6e48['channel'][_0x387a78(0x9c)]({'embed':{'color':constants['COLORS'][_0x387a78(0xa5)],'author':{'name':_0x1cd42c[_0x387a78(0xb2)]+_0x387a78(0xb5)+_0x5604c4},'title':_0x387a78(0xb9),'fields':[{'name':_0x387a78(0xad),'value':'Level\x20'+_0x1cd42c[_0x387a78(0xac)]?_0x1cd42c[_0x387a78(0xac)][_0x387a78(0x90)]+(_0x1cd42c[_0x387a78(0xac)][_0x387a78(0xa0)]?_0x1cd42c[_0x387a78(0xac)][_0x387a78(0xa0)]+'\x20Wins':''):'-'},...Object[_0x387a78(0x9b)](_0x1cd42c[_0x387a78(0x97)])[_0x387a78(0x96)](_0x542a20=>({'name':strings['toTitleCase'](_0x542a20),'value':_0x1cd42c['stats'][_0x542a20],'inline':!![]}))],'thumbnail':{'url':_0x387a78(0x94)},'footer':{'text':_0x179bca[_0x387a78(0xa6)]()+_0x387a78(0xa8)}}});},this[_0x4777d7(0xba)]=[_0x4777d7(0xa3),_0x4777d7(0xa2),_0x4777d7(0xbc)];}}; \ No newline at end of file diff --git a/commands/profile/coins.js b/commands/profile/coins.js index 8f3dd6ef9..f17398ca7 100644 --- a/commands/profile/coins.js +++ b/commands/profile/coins.js @@ -1 +1 @@ -const a130_0x5a45=['didYouKnowDailyCoins','test','profileNotFound','author','displayAvatarURL','It\x20allows\x20you\x20to\x20see\x20your\x20Bastion\x20Account.','member','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','catch','color','getString','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','send','locale','language','coins','balance','channel','tag','IRIS','constructor','document','apply','Command','exports'];(function(_0x3495fd,_0x1dd86f){const _0x5a45d5=function(_0x496848){while(--_0x496848){_0x3495fd['push'](_0x3495fd['shift']());}},_0x3caaf6=function(){const _0x30687d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x442feb,_0x2869bf,_0xd1f618,_0x265200){_0x265200=_0x265200||{};let _0x28cc9f=_0x2869bf+'='+_0xd1f618,_0x1e172b=0x0;for(let _0x222c48=0x0,_0x336e27=_0x442feb['length'];_0x222c48<_0x336e27;_0x222c48++){const _0x2b93e2=_0x442feb[_0x222c48];_0x28cc9f+=';\x20'+_0x2b93e2;const _0x467f74=_0x442feb[_0x2b93e2];_0x442feb['push'](_0x467f74),_0x336e27=_0x442feb['length'],_0x467f74!==!![]&&(_0x28cc9f+='='+_0x467f74);}_0x265200['cookie']=_0x28cc9f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x372e84,_0x384dc0){_0x372e84=_0x372e84||function(_0x2b128e){return _0x2b128e;};const _0x574dfe=_0x372e84(new RegExp('(?:^|;\x20)'+_0x384dc0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41ccb3=function(_0x5a80e8,_0x330c1a){_0x5a80e8(++_0x330c1a);};return _0x41ccb3(_0x5a45d5,_0x1dd86f),_0x574dfe?decodeURIComponent(_0x574dfe[0x1]):undefined;}},_0x11a39b=function(){const _0x462ee0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x462ee0['test'](_0x30687d['removeCookie']['toString']());};_0x30687d['updateCookie']=_0x11a39b;let _0x228f51='';const _0x4412a7=_0x30687d['updateCookie']();if(!_0x4412a7)_0x30687d['setCookie'](['*'],'counter',0x1);else _0x4412a7?_0x228f51=_0x30687d['getCookie'](null,'counter'):_0x30687d['removeCookie']();};_0x3caaf6();}(a130_0x5a45,0x98));const a130_0x3caa=function(_0x3495fd,_0x1dd86f){_0x3495fd=_0x3495fd-0x8b;let _0x5a45d5=a130_0x5a45[_0x3495fd];return _0x5a45d5;};const _0x535efe=a130_0x3caa,a130_0x11a39b=function(){let _0x4412a7=!![];return function(_0x442feb,_0x2869bf){const _0xd1f618=_0x4412a7?function(){const _0x6c1f58=a130_0x3caa;if(_0x2869bf){const _0x265200=_0x2869bf[_0x6c1f58(0x98)](_0x442feb,arguments);return _0x2869bf=null,_0x265200;}}:function(){};return _0x4412a7=![],_0xd1f618;};}(),a130_0x30687d=a130_0x11a39b(this,function(){const _0x28cc9f=function(){const _0x24fb48=a130_0x3caa,_0x1e172b=_0x28cc9f[_0x24fb48(0x96)](_0x24fb48(0x8c))()['constructor'](_0x24fb48(0xa2));return!_0x1e172b[_0x24fb48(0x9c)](a130_0x30687d);};return _0x28cc9f();});a130_0x30687d();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x535efe(0x9a)]=class CoinsCommand extends tesseract_1[_0x535efe(0x99)]{constructor(){const _0x56aecc=_0x535efe;super(_0x56aecc(0x91),{'description':_0x56aecc(0xa0),'triggers':[_0x56aecc(0x92)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x222c48=>{const _0x577ede=_0x56aecc,_0x336e27=_0x222c48[_0x577ede(0x9e)][_0x577ede(0x97)],_0x2b93e2=_0x222c48['member'][_0x577ede(0x97)];if(!_0x336e27||!_0x2b93e2)throw new Error(this['client']['locale'][_0x577ede(0xa6)](_0x222c48[_0x577ede(0x8b)][_0x577ede(0x97)]['language'],'errors',_0x577ede(0x9d),_0x222c48[_0x577ede(0x9e)][_0x577ede(0x94)]));return _0x222c48[_0x577ede(0x93)][_0x577ede(0x8e)]({'embed':{'color':_0x336e27[_0x577ede(0xa5)]||tesseract_1[_0x577ede(0x8d)][_0x577ede(0xa3)][_0x577ede(0x95)],'author':{'name':_0x222c48[_0x577ede(0xa1)]['user'][_0x577ede(0x94)]},'title':'Bastion\x20Account','fields':[{'name':'Bastion\x20Coins','value':_0x2b93e2[_0x577ede(0x92)],'inline':!![]}],'thumbnail':{'url':_0x222c48[_0x577ede(0xa1)]['user'][_0x577ede(0x9f)]({'dynamic':!![],'size':0x200})},'footer':{'text':this['client'][_0x577ede(0x8f)][_0x577ede(0xa6)](_0x222c48[_0x577ede(0x8b)]['document'][_0x577ede(0x90)],'info',_0x577ede(0x9b))}}})[_0x577ede(0xa4)](()=>{});};}}; \ No newline at end of file +const a131_0x1b6e=['tag','client','exec','didYouKnowDailyCoins','author','language','errors','color','Constants','coins','profileNotFound','guild','Bastion\x20Account','document','COLORS','info','getString','balance','displayAvatarURL','return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20to\x20see\x20your\x20Bastion\x20Account.','apply','locale','user','catch','test','@bastion/tesseract','exports','channel','constructor'];(function(_0x5284db,_0x291504){const _0x1b6eba=function(_0x4b2080){while(--_0x4b2080){_0x5284db['push'](_0x5284db['shift']());}},_0x37adb8=function(){const _0x23cd06={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x318654,_0x2c1bd8,_0x40459e,_0x2a4347){_0x2a4347=_0x2a4347||{};let _0x24d513=_0x2c1bd8+'='+_0x40459e,_0x29ae40=0x0;for(let _0x2bb2d7=0x0,_0x5a42ae=_0x318654['length'];_0x2bb2d7<_0x5a42ae;_0x2bb2d7++){const _0x4ef8c7=_0x318654[_0x2bb2d7];_0x24d513+=';\x20'+_0x4ef8c7;const _0x236b9b=_0x318654[_0x4ef8c7];_0x318654['push'](_0x236b9b),_0x5a42ae=_0x318654['length'],_0x236b9b!==!![]&&(_0x24d513+='='+_0x236b9b);}_0x2a4347['cookie']=_0x24d513;},'removeCookie':function(){return'dev';},'getCookie':function(_0x515221,_0xdfe8d5){_0x515221=_0x515221||function(_0x2f9cd3){return _0x2f9cd3;};const _0x313efe=_0x515221(new RegExp('(?:^|;\x20)'+_0xdfe8d5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26dbeb=function(_0x3eaf9f,_0x4e2dc9){_0x3eaf9f(++_0x4e2dc9);};return _0x26dbeb(_0x1b6eba,_0x291504),_0x313efe?decodeURIComponent(_0x313efe[0x1]):undefined;}},_0x3654ac=function(){const _0x513a4e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x513a4e['test'](_0x23cd06['removeCookie']['toString']());};_0x23cd06['updateCookie']=_0x3654ac;let _0x3e05b6='';const _0x4e4e50=_0x23cd06['updateCookie']();if(!_0x4e4e50)_0x23cd06['setCookie'](['*'],'counter',0x1);else _0x4e4e50?_0x3e05b6=_0x23cd06['getCookie'](null,'counter'):_0x23cd06['removeCookie']();};_0x37adb8();}(a131_0x1b6e,0x182));const a131_0x37ad=function(_0x5284db,_0x291504){_0x5284db=_0x5284db-0xfd;let _0x1b6eba=a131_0x1b6e[_0x5284db];return _0x1b6eba;};const a131_0x480dbb=a131_0x37ad,a131_0x3654ac=function(){let _0x4e4e50=!![];return function(_0x318654,_0x2c1bd8){const _0x40459e=_0x4e4e50?function(){const _0x1865b1=a131_0x37ad;if(_0x2c1bd8){const _0x2a4347=_0x2c1bd8[_0x1865b1(0x116)](_0x318654,arguments);return _0x2c1bd8=null,_0x2a4347;}}:function(){};return _0x4e4e50=![],_0x40459e;};}(),a131_0x23cd06=a131_0x3654ac(this,function(){const _0x24d513=function(){const _0x8f953b=a131_0x37ad,_0x29ae40=_0x24d513[_0x8f953b(0x100)](_0x8f953b(0x114))()[_0x8f953b(0x100)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x29ae40[_0x8f953b(0x11a)](a131_0x23cd06);};return _0x24d513();});a131_0x23cd06();'use strict';const tesseract_1=require(a131_0x480dbb(0xfd));module[a131_0x480dbb(0xfe)]=class CoinsCommand extends tesseract_1['Command']{constructor(){const _0x6ab0c9=a131_0x480dbb;super(_0x6ab0c9(0x10a),{'description':_0x6ab0c9(0x115),'triggers':[_0x6ab0c9(0x112)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x6ab0c9(0x103)]=async _0x2bb2d7=>{const _0xabf39d=_0x6ab0c9,_0x5a42ae=_0x2bb2d7[_0xabf39d(0x105)][_0xabf39d(0x10e)],_0x4ef8c7=_0x2bb2d7['member'][_0xabf39d(0x10e)];if(!_0x5a42ae||!_0x4ef8c7)throw new Error(this[_0xabf39d(0x102)][_0xabf39d(0x117)]['getString'](_0x2bb2d7['guild'][_0xabf39d(0x10e)]['language'],_0xabf39d(0x107),_0xabf39d(0x10b),_0x2bb2d7['author'][_0xabf39d(0x101)]));return _0x2bb2d7[_0xabf39d(0xff)]['send']({'embed':{'color':_0x5a42ae[_0xabf39d(0x108)]||tesseract_1[_0xabf39d(0x109)][_0xabf39d(0x10f)]['IRIS'],'author':{'name':_0x2bb2d7['member']['user']['tag']},'title':_0xabf39d(0x10d),'fields':[{'name':'Bastion\x20Coins','value':_0x4ef8c7[_0xabf39d(0x112)],'inline':!![]}],'thumbnail':{'url':_0x2bb2d7['member'][_0xabf39d(0x118)][_0xabf39d(0x113)]({'dynamic':!![],'size':0x200})},'footer':{'text':this[_0xabf39d(0x102)][_0xabf39d(0x117)][_0xabf39d(0x111)](_0x2bb2d7[_0xabf39d(0x10c)]['document'][_0xabf39d(0x106)],_0xabf39d(0x110),_0xabf39d(0x104))}}})[_0xabf39d(0x119)](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/daily.js b/commands/profile/daily.js index 76b4a62b6..075c63acb 100644 --- a/commands/profile/daily.js +++ b/commands/profile/daily.js @@ -1 +1 @@ -const a131_0x3c6d=['getTime','info','return\x20/\x22\x20+\x20this\x20+\x20\x22/','document','findOne','setDate','credit','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','lastClaimed','channel','premiumSinceTimestamp','tag','save','claimStreakFirst','claimStreakLast','claim','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.','getRandomInt','@bastion/tesseract','COLORS','daily','errors','default','getString','claimRewardBooster','Daily\x20Reward','constructor','../../models/Member','joinedTimestamp','toDateString','client','../../utils/numbers','claimStreakClaimed','getClaimMessageKey','IRIS','Constants','language','author','member','claimStreak','locale','test','guild'];(function(_0x59dcba,_0x8d3d71){const _0x3c6da3=function(_0x3cb8af){while(--_0x3cb8af){_0x59dcba['push'](_0x59dcba['shift']());}},_0x5c3de3=function(){const _0x476047={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x452c70,_0x466216,_0x2fe91a,_0x128767){_0x128767=_0x128767||{};let _0x51969d=_0x466216+'='+_0x2fe91a,_0x1addd1=0x0;for(let _0x3fd512=0x0,_0x1c5002=_0x452c70['length'];_0x3fd512<_0x1c5002;_0x3fd512++){const _0x3c14d5=_0x452c70[_0x3fd512];_0x51969d+=';\x20'+_0x3c14d5;const _0x345a7b=_0x452c70[_0x3c14d5];_0x452c70['push'](_0x345a7b),_0x1c5002=_0x452c70['length'],_0x345a7b!==!![]&&(_0x51969d+='='+_0x345a7b);}_0x128767['cookie']=_0x51969d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x267cb4,_0x4779ad){_0x267cb4=_0x267cb4||function(_0x4ba28a){return _0x4ba28a;};const _0x2f18bc=_0x267cb4(new RegExp('(?:^|;\x20)'+_0x4779ad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4639c6=function(_0x4ee1ea,_0x525682){_0x4ee1ea(++_0x525682);};return _0x4639c6(_0x3c6da3,_0x8d3d71),_0x2f18bc?decodeURIComponent(_0x2f18bc[0x1]):undefined;}},_0x54ffcc=function(){const _0x603f7c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x603f7c['test'](_0x476047['removeCookie']['toString']());};_0x476047['updateCookie']=_0x54ffcc;let _0x70d227='';const _0x2febe8=_0x476047['updateCookie']();if(!_0x2febe8)_0x476047['setCookie'](['*'],'counter',0x1);else _0x2febe8?_0x70d227=_0x476047['getCookie'](null,'counter'):_0x476047['removeCookie']();};_0x5c3de3();}(a131_0x3c6d,0x18e));const a131_0x5c3d=function(_0x59dcba,_0x8d3d71){_0x59dcba=_0x59dcba-0xf1;let _0x3c6da3=a131_0x3c6d[_0x59dcba];return _0x3c6da3;};const _0x1362a7=a131_0x5c3d,a131_0x54ffcc=function(){let _0x2febe8=!![];return function(_0x452c70,_0x466216){const _0x2fe91a=_0x2febe8?function(){if(_0x466216){const _0x128767=_0x466216['apply'](_0x452c70,arguments);return _0x466216=null,_0x128767;}}:function(){};return _0x2febe8=![],_0x2fe91a;};}(),a131_0x476047=a131_0x54ffcc(this,function(){const _0x51969d=function(){const _0x28860c=a131_0x5c3d,_0x1addd1=_0x51969d['constructor'](_0x28860c(0x113))()[_0x28860c(0x100)](_0x28860c(0x118));return!_0x1addd1[_0x28860c(0x10f)](a131_0x476047);};return _0x51969d();});a131_0x476047();'use strict';const tesseract_1=require(_0x1362a7(0xf8)),Member_1=require(_0x1362a7(0x101)),numbers=require(_0x1362a7(0x105));module['exports']=class DailyCommand extends tesseract_1['Command']{constructor(){const _0x5e127b=_0x1362a7;super(_0x5e127b(0xfa),{'description':_0x5e127b(0xf6),'triggers':[_0x5e127b(0xf5)],'arguments':{},'scope':_0x5e127b(0x110),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x5e127b(0x107)]=_0x3fd512=>{const _0xedb054=_0x5e127b;switch(_0x3fd512){case 0x1:return _0xedb054(0xf3);case 0x6:return _0xedb054(0xf4);case 0x7:return _0xedb054(0x106);default:return _0xedb054(0x10d);}},this['exec']=async _0x1c5002=>{const _0x47d1ff=_0x5e127b,_0x3c14d5=await Member_1[_0x47d1ff(0xfc)][_0x47d1ff(0x115)]({'user':_0x1c5002[_0x47d1ff(0x10b)]['id'],'guild':_0x1c5002[_0x47d1ff(0x110)]['id']}),_0x345a7b=new Date(),_0x267cb4=(_0x4ba28a=>new Date(_0x4ba28a[_0x47d1ff(0x116)](_0x4ba28a['getDate']()-0x1)))(new Date()),_0x4779ad=new Date(_0x3c14d5['lastClaimed']);if(_0x345a7b[_0x47d1ff(0x103)]()===_0x4779ad[_0x47d1ff(0x103)]())throw new Error(this[_0x47d1ff(0x104)][_0x47d1ff(0x10e)][_0x47d1ff(0xfd)](_0x1c5002[_0x47d1ff(0x110)][_0x47d1ff(0x114)][_0x47d1ff(0x10a)],_0x47d1ff(0xfb),'alreadyClaimed',_0x1c5002[_0x47d1ff(0x10b)][_0x47d1ff(0xf1)]));_0x3c14d5[_0x47d1ff(0x119)]=_0x345a7b[_0x47d1ff(0x111)]();let _0x2f18bc=numbers[_0x47d1ff(0xf7)](0x2a,0x80);_0x345a7b['getTime']()-_0x1c5002['member'][_0x47d1ff(0x102)]<0xf731400&&(_0x2f18bc/=0x2);_0x3c14d5['claimStreak']=_0x267cb4['toDateString']()===_0x4779ad[_0x47d1ff(0x103)]()?_0x3c14d5[_0x47d1ff(0x10d)]+0x1:0x1;const _0x4639c6=this[_0x47d1ff(0x104)][_0x47d1ff(0x10e)]['getString'](_0x1c5002['guild'][_0x47d1ff(0x114)][_0x47d1ff(0x10a)],_0x47d1ff(0x112),this[_0x47d1ff(0x107)](_0x3c14d5[_0x47d1ff(0x10d)]),0x7-_0x3c14d5[_0x47d1ff(0x10d)]);_0x3c14d5[_0x47d1ff(0x10d)]===0x7&&(_0x3c14d5['claimStreak']=0x0,_0x2f18bc+=numbers[_0x47d1ff(0xf7)](0x200,0x400)),_0x1c5002[_0x47d1ff(0x10c)]['premiumSinceTimestamp']&&(_0x2f18bc*=0x2),await _0x1c5002[_0x47d1ff(0x10c)][_0x47d1ff(0x117)](_0x2f18bc,_0x47d1ff(0xff),_0x3c14d5),await _0x3c14d5[_0x47d1ff(0xf2)](),_0x1c5002[_0x47d1ff(0x11a)]['send']({'embed':{'color':tesseract_1[_0x47d1ff(0x109)][_0x47d1ff(0xf9)][_0x47d1ff(0x108)],'description':this[_0x47d1ff(0x104)][_0x47d1ff(0x10e)][_0x47d1ff(0xfd)](_0x1c5002['guild'][_0x47d1ff(0x114)][_0x47d1ff(0x10a)],_0x47d1ff(0x112),_0x47d1ff(0xf5),_0x1c5002[_0x47d1ff(0x10b)][_0x47d1ff(0xf1)])+'\x0a\x0a'+_0x4639c6,'footer':{'text':_0x1c5002[_0x47d1ff(0x10c)][_0x47d1ff(0x11b)]?this['client'][_0x47d1ff(0x10e)][_0x47d1ff(0xfd)](_0x1c5002[_0x47d1ff(0x110)][_0x47d1ff(0x114)][_0x47d1ff(0x10a)],_0x47d1ff(0x112),_0x47d1ff(0xfe)):''}}})['catch'](()=>{});};}}; \ No newline at end of file +const a132_0x2b42=['claimStreakClaimed','joinedTimestamp','constructor','Constants','claimRewardBooster','lastClaimed','getRandomInt','COLORS','../../models/Member','errors','premiumSinceTimestamp','language','getTime','channel','../../utils/numbers','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','IRIS','locale','daily','setDate','credit','member','Command','test','claimStreakFirst','info','Daily\x20Reward','alreadyClaimed','client','exports','guild','claimStreak','apply','getClaimMessageKey','claim','@bastion/tesseract','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.','document','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getString','send','findOne','save','author','toDateString','tag'];(function(_0x288270,_0x135cda){const _0x2b4253=function(_0x21487b){while(--_0x21487b){_0x288270['push'](_0x288270['shift']());}},_0x2ca512=function(){const _0x20c565={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x265c69,_0x28d97d,_0x40d9fb,_0x409b07){_0x409b07=_0x409b07||{};let _0x2a561b=_0x28d97d+'='+_0x40d9fb,_0x3676e0=0x0;for(let _0x5cb3d8=0x0,_0x22ee7d=_0x265c69['length'];_0x5cb3d8<_0x22ee7d;_0x5cb3d8++){const _0x59316e=_0x265c69[_0x5cb3d8];_0x2a561b+=';\x20'+_0x59316e;const _0x274024=_0x265c69[_0x59316e];_0x265c69['push'](_0x274024),_0x22ee7d=_0x265c69['length'],_0x274024!==!![]&&(_0x2a561b+='='+_0x274024);}_0x409b07['cookie']=_0x2a561b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x297b0e,_0x568d65){_0x297b0e=_0x297b0e||function(_0x23c5e5){return _0x23c5e5;};const _0xaf1b87=_0x297b0e(new RegExp('(?:^|;\x20)'+_0x568d65['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f29a2=function(_0x3bdb85,_0x992e20){_0x3bdb85(++_0x992e20);};return _0x5f29a2(_0x2b4253,_0x135cda),_0xaf1b87?decodeURIComponent(_0xaf1b87[0x1]):undefined;}},_0x159294=function(){const _0x3f5dd6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3f5dd6['test'](_0x20c565['removeCookie']['toString']());};_0x20c565['updateCookie']=_0x159294;let _0x2b22ba='';const _0x44e5ed=_0x20c565['updateCookie']();if(!_0x44e5ed)_0x20c565['setCookie'](['*'],'counter',0x1);else _0x44e5ed?_0x2b22ba=_0x20c565['getCookie'](null,'counter'):_0x20c565['removeCookie']();};_0x2ca512();}(a132_0x2b42,0x1ed));const a132_0x2ca5=function(_0x288270,_0x135cda){_0x288270=_0x288270-0xab;let _0x2b4253=a132_0x2b42[_0x288270];return _0x2b4253;};const a132_0x4d27e8=a132_0x2ca5,a132_0x159294=function(){let _0x44e5ed=!![];return function(_0x265c69,_0x28d97d){const _0x40d9fb=_0x44e5ed?function(){const _0x23c760=a132_0x2ca5;if(_0x28d97d){const _0x409b07=_0x28d97d[_0x23c760(0xd8)](_0x265c69,arguments);return _0x28d97d=null,_0x409b07;}}:function(){};return _0x44e5ed=![],_0x40d9fb;};}(),a132_0x20c565=a132_0x159294(this,function(){const _0x2a561b=function(){const _0x49e208=a132_0x2ca5,_0x3676e0=_0x2a561b[_0x49e208(0xba)](_0x49e208(0xb0))()[_0x49e208(0xba)](_0x49e208(0xc7));return!_0x3676e0[_0x49e208(0xcf)](a132_0x20c565);};return _0x2a561b();});a132_0x20c565();'use strict';const tesseract_1=require(a132_0x4d27e8(0xad)),Member_1=require(a132_0x4d27e8(0xc0)),numbers=require(a132_0x4d27e8(0xc6));module[a132_0x4d27e8(0xd5)]=class DailyCommand extends tesseract_1[a132_0x4d27e8(0xce)]{constructor(){const _0x4bcac1=a132_0x4d27e8;super(_0x4bcac1(0xca),{'description':_0x4bcac1(0xae),'triggers':[_0x4bcac1(0xac)],'arguments':{},'scope':_0x4bcac1(0xd6),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x4bcac1(0xab)]=_0x5cb3d8=>{const _0x48631f=_0x4bcac1;switch(_0x5cb3d8){case 0x1:return _0x48631f(0xd0);case 0x6:return'claimStreakLast';case 0x7:return _0x48631f(0xb8);default:return _0x48631f(0xd7);}},this['exec']=async _0x22ee7d=>{const _0x71b4dc=_0x4bcac1,_0x59316e=await Member_1['default'][_0x71b4dc(0xb3)]({'user':_0x22ee7d[_0x71b4dc(0xb5)]['id'],'guild':_0x22ee7d['guild']['id']}),_0x274024=new Date(),_0x297b0e=(_0x23c5e5=>new Date(_0x23c5e5[_0x71b4dc(0xcb)](_0x23c5e5['getDate']()-0x1)))(new Date()),_0x568d65=new Date(_0x59316e[_0x71b4dc(0xbd)]);if(_0x274024[_0x71b4dc(0xb6)]()===_0x568d65['toDateString']())throw new Error(this[_0x71b4dc(0xd4)][_0x71b4dc(0xc9)][_0x71b4dc(0xb1)](_0x22ee7d[_0x71b4dc(0xd6)]['document'][_0x71b4dc(0xc3)],_0x71b4dc(0xc1),_0x71b4dc(0xd3),_0x22ee7d[_0x71b4dc(0xb5)][_0x71b4dc(0xb7)]));_0x59316e[_0x71b4dc(0xbd)]=_0x274024[_0x71b4dc(0xc4)]();let _0xaf1b87=numbers[_0x71b4dc(0xbe)](0x2a,0x80);_0x274024[_0x71b4dc(0xc4)]()-_0x22ee7d[_0x71b4dc(0xcd)][_0x71b4dc(0xb9)]<0xf731400&&(_0xaf1b87/=0x2);_0x59316e[_0x71b4dc(0xd7)]=_0x297b0e[_0x71b4dc(0xb6)]()===_0x568d65[_0x71b4dc(0xb6)]()?_0x59316e[_0x71b4dc(0xd7)]+0x1:0x1;const _0x5f29a2=this[_0x71b4dc(0xd4)][_0x71b4dc(0xc9)][_0x71b4dc(0xb1)](_0x22ee7d[_0x71b4dc(0xd6)][_0x71b4dc(0xaf)][_0x71b4dc(0xc3)],_0x71b4dc(0xd1),this[_0x71b4dc(0xab)](_0x59316e['claimStreak']),0x7-_0x59316e[_0x71b4dc(0xd7)]);_0x59316e[_0x71b4dc(0xd7)]===0x7&&(_0x59316e[_0x71b4dc(0xd7)]=0x0,_0xaf1b87+=numbers[_0x71b4dc(0xbe)](0x200,0x400)),_0x22ee7d[_0x71b4dc(0xcd)]['premiumSinceTimestamp']&&(_0xaf1b87*=0x2),await _0x22ee7d[_0x71b4dc(0xcd)][_0x71b4dc(0xcc)](_0xaf1b87,_0x71b4dc(0xd2),_0x59316e),await _0x59316e[_0x71b4dc(0xb4)](),_0x22ee7d[_0x71b4dc(0xc5)][_0x71b4dc(0xb2)]({'embed':{'color':tesseract_1[_0x71b4dc(0xbb)][_0x71b4dc(0xbf)][_0x71b4dc(0xc8)],'description':this['client'][_0x71b4dc(0xc9)]['getString'](_0x22ee7d[_0x71b4dc(0xd6)][_0x71b4dc(0xaf)]['language'],_0x71b4dc(0xd1),_0x71b4dc(0xac),_0x22ee7d['author'][_0x71b4dc(0xb7)])+'\x0a\x0a'+_0x5f29a2,'footer':{'text':_0x22ee7d['member'][_0x71b4dc(0xc2)]?this[_0x71b4dc(0xd4)][_0x71b4dc(0xc9)][_0x71b4dc(0xb1)](_0x22ee7d['guild'][_0x71b4dc(0xaf)][_0x71b4dc(0xc3)],_0x71b4dc(0xd1),_0x71b4dc(0xbc)):''}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/karma.js b/commands/profile/karma.js index 42df96e2c..7057e8ed1 100644 --- a/commands/profile/karma.js +++ b/commands/profile/karma.js @@ -1 +1 @@ -const a132_0x19c3=['../../models/Member','getString','user','../../utils/errors','karma\x20USER','INVALID_COMMAND_SYNTAX','guild','test','constructor','join','client','karma\x20USER\x20--\x20MESSAGE','profileNotFound','exec','resolveGuildMember','Constants','send','default','locale','return\x20/\x22\x20+\x20this\x20+\x20\x22/','karma','info','rep','Command','exports','catch','length','IRIS','It\x20allows\x20you\x20to\x20give\x20someone\x20the\x20sweet\x20little\x20internet\x20points,\x20we\x20call\x20karma,\x20if\x20you\x20think\x20they\x27re\x20worth\x20it.\x20You\x20can\x20also\x20add\x20a\x20personalized\x20message\x20along\x20with\x20it.\x20You\x20can\x20give\x20up\x20to\x203\x20karmas\x20every\x206\x20hours,\x20so\x20spend\x20it\x20wisely.','tag','document','NO_SELF_KARMA','findOne','Message','errors','apply','@bastion/tesseract','channel','author'];(function(_0x445af0,_0x3549ca){const _0x19c3b7=function(_0x2fe24f){while(--_0x2fe24f){_0x445af0['push'](_0x445af0['shift']());}},_0x155d31=function(){const _0x5ba704={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x404544,_0x5e9288,_0x48c930,_0x2d3713){_0x2d3713=_0x2d3713||{};let _0x5d926e=_0x5e9288+'='+_0x48c930,_0x546b20=0x0;for(let _0x4c748d=0x0,_0x29163a=_0x404544['length'];_0x4c748d<_0x29163a;_0x4c748d++){const _0x5e943c=_0x404544[_0x4c748d];_0x5d926e+=';\x20'+_0x5e943c;const _0x45e33e=_0x404544[_0x5e943c];_0x404544['push'](_0x45e33e),_0x29163a=_0x404544['length'],_0x45e33e!==!![]&&(_0x5d926e+='='+_0x45e33e);}_0x2d3713['cookie']=_0x5d926e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x464d6f,_0x4c20c0){_0x464d6f=_0x464d6f||function(_0x4c61c3){return _0x4c61c3;};const _0x58cf52=_0x464d6f(new RegExp('(?:^|;\x20)'+_0x4c20c0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2c6cf8=function(_0x4c63ea,_0x5e8cbd){_0x4c63ea(++_0x5e8cbd);};return _0x2c6cf8(_0x19c3b7,_0x3549ca),_0x58cf52?decodeURIComponent(_0x58cf52[0x1]):undefined;}},_0x2cb1f3=function(){const _0x566fa5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x566fa5['test'](_0x5ba704['removeCookie']['toString']());};_0x5ba704['updateCookie']=_0x2cb1f3;let _0x57c850='';const _0x533102=_0x5ba704['updateCookie']();if(!_0x533102)_0x5ba704['setCookie'](['*'],'counter',0x1);else _0x533102?_0x57c850=_0x5ba704['getCookie'](null,'counter'):_0x5ba704['removeCookie']();};_0x155d31();}(a132_0x19c3,0x77));const a132_0x155d=function(_0x445af0,_0x3549ca){_0x445af0=_0x445af0-0x188;let _0x19c3b7=a132_0x19c3[_0x445af0];return _0x19c3b7;};const _0x463030=a132_0x155d,a132_0x2cb1f3=function(){let _0x533102=!![];return function(_0x404544,_0x5e9288){const _0x48c930=_0x533102?function(){const _0x3ea31f=a132_0x155d;if(_0x5e9288){const _0x2d3713=_0x5e9288[_0x3ea31f(0x1a9)](_0x404544,arguments);return _0x5e9288=null,_0x2d3713;}}:function(){};return _0x533102=![],_0x48c930;};}(),a132_0x5ba704=a132_0x2cb1f3(this,function(){const _0x5d926e=function(){const _0x302e29=a132_0x155d,_0x546b20=_0x5d926e['constructor'](_0x302e29(0x199))()[_0x302e29(0x18e)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x546b20[_0x302e29(0x18d)](a132_0x5ba704);};return _0x5d926e();});a132_0x5ba704();'use strict';const tesseract_1=require(_0x463030(0x1aa)),Member_1=require(_0x463030(0x1ad)),errors=require(_0x463030(0x189));module[_0x463030(0x19e)]=class KarmaCommand extends tesseract_1[_0x463030(0x19d)]{constructor(){const _0x5be981=_0x463030;super(_0x5be981(0x19a),{'description':_0x5be981(0x1a2),'triggers':[_0x5be981(0x19c)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x5460,'ratelimit':0x3,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5be981(0x18a),_0x5be981(0x191)]}),this[_0x5be981(0x193)]=async(_0x4c748d,_0x29163a)=>{const _0x578951=_0x5be981;if(!_0x29163a['_'][_0x578951(0x1a0)])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x578951(0x18b)],this['name']);const _0x5e943c=this['client']['resolver'][_0x578951(0x194)](_0x4c748d[_0x578951(0x18c)],_0x29163a['_'][_0x578951(0x18f)]('\x20'));if(!_0x5e943c)throw new Error(this[_0x578951(0x190)]['locale']['getString'](_0x4c748d[_0x578951(0x18c)][_0x578951(0x1a4)]['language'],_0x578951(0x1a8),'memberNotFound'));if(_0x4c748d['author']['id']===_0x5e943c['id'])throw new Error(_0x578951(0x1a5));const _0x45e33e=await Member_1[_0x578951(0x197)][_0x578951(0x1a6)]({'user':_0x5e943c['id'],'guild':_0x4c748d[_0x578951(0x18c)]['id']});if(!_0x45e33e)throw new Error(this[_0x578951(0x190)][_0x578951(0x198)][_0x578951(0x1ae)](_0x4c748d[_0x578951(0x18c)][_0x578951(0x1a4)]['language'],'errors',_0x578951(0x192),_0x5e943c[_0x578951(0x188)][_0x578951(0x1a3)]));_0x45e33e['karma']+=0x1,await _0x45e33e['save'](),await _0x4c748d[_0x578951(0x1ab)][_0x578951(0x196)]({'embed':{'color':tesseract_1[_0x578951(0x195)]['COLORS'][_0x578951(0x1a1)],'description':this[_0x578951(0x190)][_0x578951(0x198)][_0x578951(0x1ae)](_0x4c748d[_0x578951(0x18c)][_0x578951(0x1a4)]['language'],_0x578951(0x19b),_0x578951(0x19a),_0x4c748d[_0x578951(0x1ac)][_0x578951(0x1a3)],_0x5e943c[_0x578951(0x188)]['tag']),'fields':_0x29163a['_'][_0x578951(0x1a0)]?[{'name':_0x578951(0x1a7),'value':_0x29163a['_'][_0x578951(0x18f)]('\x20')}]:[]}})[_0x578951(0x19f)](()=>{});};}}; \ No newline at end of file +const a133_0x459d=['user','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','getString','@bastion/tesseract','info','exports','language','profileNotFound','karma\x20USER\x20--\x20MESSAGE','memberNotFound','tag','../../models/Member','resolveGuildMember','IRIS','rep','errors','document','channel','It\x20allows\x20you\x20to\x20give\x20someone\x20the\x20sweet\x20little\x20internet\x20points,\x20we\x20call\x20karma,\x20if\x20you\x20think\x20they\x27re\x20worth\x20it.\x20You\x20can\x20also\x20add\x20a\x20personalized\x20message\x20along\x20with\x20it.\x20You\x20can\x20give\x20up\x20to\x203\x20karmas\x20every\x206\x20hours,\x20so\x20spend\x20it\x20wisely.','COLORS','author','karma','BASTION_ERROR_TYPE','constructor','NO_SELF_KARMA','../../utils/errors','resolver','INVALID_COMMAND_SYNTAX','send','name','client','default','Message','karma\x20USER','guild','save','findOne','DiscordError','locale'];(function(_0x3133dc,_0x3cdf5e){const _0x459d0a=function(_0x461cfc){while(--_0x461cfc){_0x3133dc['push'](_0x3133dc['shift']());}},_0x43dcb3=function(){const _0x52ec52={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a3648,_0x309496,_0xf9be99,_0x489119){_0x489119=_0x489119||{};let _0x31d264=_0x309496+'='+_0xf9be99,_0x1ea7fd=0x0;for(let _0x1b4b86=0x0,_0x530ed6=_0x5a3648['length'];_0x1b4b86<_0x530ed6;_0x1b4b86++){const _0x103035=_0x5a3648[_0x1b4b86];_0x31d264+=';\x20'+_0x103035;const _0x2ed314=_0x5a3648[_0x103035];_0x5a3648['push'](_0x2ed314),_0x530ed6=_0x5a3648['length'],_0x2ed314!==!![]&&(_0x31d264+='='+_0x2ed314);}_0x489119['cookie']=_0x31d264;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4c2138,_0x2a81b7){_0x4c2138=_0x4c2138||function(_0xe40882){return _0xe40882;};const _0x16bba7=_0x4c2138(new RegExp('(?:^|;\x20)'+_0x2a81b7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x15fb1d=function(_0x2d51d5,_0x2ec623){_0x2d51d5(++_0x2ec623);};return _0x15fb1d(_0x459d0a,_0x3cdf5e),_0x16bba7?decodeURIComponent(_0x16bba7[0x1]):undefined;}},_0x5512c2=function(){const _0x526f11=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x526f11['test'](_0x52ec52['removeCookie']['toString']());};_0x52ec52['updateCookie']=_0x5512c2;let _0x183f47='';const _0xd3e12c=_0x52ec52['updateCookie']();if(!_0xd3e12c)_0x52ec52['setCookie'](['*'],'counter',0x1);else _0xd3e12c?_0x183f47=_0x52ec52['getCookie'](null,'counter'):_0x52ec52['removeCookie']();};_0x43dcb3();}(a133_0x459d,0x7d));const a133_0x43dc=function(_0x3133dc,_0x3cdf5e){_0x3133dc=_0x3133dc-0x156;let _0x459d0a=a133_0x459d[_0x3133dc];return _0x459d0a;};const a133_0x4b302a=a133_0x43dc,a133_0x5512c2=function(){let _0xd3e12c=!![];return function(_0x5a3648,_0x309496){const _0xf9be99=_0xd3e12c?function(){if(_0x309496){const _0x489119=_0x309496['apply'](_0x5a3648,arguments);return _0x309496=null,_0x489119;}}:function(){};return _0xd3e12c=![],_0xf9be99;};}(),a133_0x52ec52=a133_0x5512c2(this,function(){const _0x31d264=function(){const _0x5adb70=a133_0x43dc,_0x1ea7fd=_0x31d264[_0x5adb70(0x169)](_0x5adb70(0x17a))()[_0x5adb70(0x169)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1ea7fd['test'](a133_0x52ec52);};return _0x31d264();});a133_0x52ec52();'use strict';const tesseract_1=require(a133_0x4b302a(0x17d)),Member_1=require(a133_0x4b302a(0x15d)),errors=require(a133_0x4b302a(0x16b));module[a133_0x4b302a(0x157)]=class KarmaCommand extends tesseract_1['Command']{constructor(){const _0x28f8fe=a133_0x4b302a;super(_0x28f8fe(0x167),{'description':_0x28f8fe(0x164),'triggers':[_0x28f8fe(0x160)],'arguments':{},'scope':_0x28f8fe(0x174),'owner':![],'cooldown':0x5460,'ratelimit':0x3,'clientPermissions':[],'userPermissions':[],'syntax':[_0x28f8fe(0x173),_0x28f8fe(0x15a)]}),this[_0x28f8fe(0x17b)]=async(_0x1b4b86,_0x530ed6)=>{const _0x4b20cc=_0x28f8fe;if(!_0x530ed6['_']['length'])throw new errors[(_0x4b20cc(0x177))](errors[_0x4b20cc(0x168)][_0x4b20cc(0x16d)],this[_0x4b20cc(0x16f)]);const _0x103035=this['client'][_0x4b20cc(0x16c)][_0x4b20cc(0x15e)](_0x1b4b86['guild'],_0x530ed6['_']['join']('\x20'));if(!_0x103035)throw new Error(this[_0x4b20cc(0x170)][_0x4b20cc(0x178)][_0x4b20cc(0x17c)](_0x1b4b86[_0x4b20cc(0x174)][_0x4b20cc(0x162)][_0x4b20cc(0x158)],_0x4b20cc(0x161),_0x4b20cc(0x15b)));if(_0x1b4b86[_0x4b20cc(0x166)]['id']===_0x103035['id'])throw new Error(_0x4b20cc(0x16a));const _0x2ed314=await Member_1[_0x4b20cc(0x171)][_0x4b20cc(0x176)]({'user':_0x103035['id'],'guild':_0x1b4b86['guild']['id']});if(!_0x2ed314)throw new Error(this[_0x4b20cc(0x170)][_0x4b20cc(0x178)]['getString'](_0x1b4b86[_0x4b20cc(0x174)][_0x4b20cc(0x162)][_0x4b20cc(0x158)],_0x4b20cc(0x161),_0x4b20cc(0x159),_0x103035[_0x4b20cc(0x179)][_0x4b20cc(0x15c)]));_0x2ed314[_0x4b20cc(0x167)]+=0x1,await _0x2ed314[_0x4b20cc(0x175)](),await _0x1b4b86[_0x4b20cc(0x163)][_0x4b20cc(0x16e)]({'embed':{'color':tesseract_1['Constants'][_0x4b20cc(0x165)][_0x4b20cc(0x15f)],'description':this[_0x4b20cc(0x170)][_0x4b20cc(0x178)][_0x4b20cc(0x17c)](_0x1b4b86[_0x4b20cc(0x174)][_0x4b20cc(0x162)][_0x4b20cc(0x158)],_0x4b20cc(0x156),'karma',_0x1b4b86[_0x4b20cc(0x166)][_0x4b20cc(0x15c)],_0x103035['user']['tag']),'fields':_0x530ed6['_']['length']?[{'name':_0x4b20cc(0x172),'value':_0x530ed6['_']['join']('\x20')}]:[]}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/leaderboard.js b/commands/profile/leaderboard.js index 63730cc24..b1d25b247 100644 --- a/commands/profile/leaderboard.js +++ b/commands/profile/leaderboard.js @@ -1 +1 @@ -const a133_0x5de1=['level','balance','Command','test','get','cache','Leaderboard','send','channel','Karma','@bastion/tesseract','exec','users','COLORS','leaderboard','exports','find','default','tag','\x20Bastion\x20Coins','\x20/\x20','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','user','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.','../../models/Member','experience','karma','IRIS','Bastion\x20Profiles\x20-\x20Leaderboard','https://i.imgur.com/Kzt8Ldk.png','client','constructor','\x20-\x20','guild'];(function(_0x5bc39b,_0x145d37){const _0x5de1d9=function(_0x367f2d){while(--_0x367f2d){_0x5bc39b['push'](_0x5bc39b['shift']());}},_0x3dbece=function(){const _0x29935d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x313c11,_0x2f771e,_0x34f2ff,_0x3d66ca){_0x3d66ca=_0x3d66ca||{};let _0x1661e3=_0x2f771e+'='+_0x34f2ff,_0x498aeb=0x0;for(let _0x4d576b=0x0,_0x25b3f5=_0x313c11['length'];_0x4d576b<_0x25b3f5;_0x4d576b++){const _0xcb8a44=_0x313c11[_0x4d576b];_0x1661e3+=';\x20'+_0xcb8a44;const _0x482a9f=_0x313c11[_0xcb8a44];_0x313c11['push'](_0x482a9f),_0x25b3f5=_0x313c11['length'],_0x482a9f!==!![]&&(_0x1661e3+='='+_0x482a9f);}_0x3d66ca['cookie']=_0x1661e3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d05d6,_0x540920){_0x2d05d6=_0x2d05d6||function(_0xc9e5f0){return _0xc9e5f0;};const _0x182197=_0x2d05d6(new RegExp('(?:^|;\x20)'+_0x540920['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x409931=function(_0x232fe2,_0x30a64d){_0x232fe2(++_0x30a64d);};return _0x409931(_0x5de1d9,_0x145d37),_0x182197?decodeURIComponent(_0x182197[0x1]):undefined;}},_0x44ac6c=function(){const _0x9f8e27=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x9f8e27['test'](_0x29935d['removeCookie']['toString']());};_0x29935d['updateCookie']=_0x44ac6c;let _0x575951='';const _0x2d3184=_0x29935d['updateCookie']();if(!_0x2d3184)_0x29935d['setCookie'](['*'],'counter',0x1);else _0x2d3184?_0x575951=_0x29935d['getCookie'](null,'counter'):_0x29935d['removeCookie']();};_0x3dbece();}(a133_0x5de1,0xc6));const a133_0x3dbe=function(_0x5bc39b,_0x145d37){_0x5bc39b=_0x5bc39b-0xb7;let _0x5de1d9=a133_0x5de1[_0x5bc39b];return _0x5de1d9;};const _0x28455d=a133_0x3dbe,a133_0x44ac6c=function(){let _0x2d3184=!![];return function(_0x313c11,_0x2f771e){const _0x34f2ff=_0x2d3184?function(){const _0x485ead=a133_0x3dbe;if(_0x2f771e){const _0x3d66ca=_0x2f771e[_0x485ead(0xbc)](_0x313c11,arguments);return _0x2f771e=null,_0x3d66ca;}}:function(){};return _0x2d3184=![],_0x34f2ff;};}(),a133_0x29935d=a133_0x44ac6c(this,function(){const _0x1661e3=function(){const _0x465cad=a133_0x3dbe,_0x498aeb=_0x1661e3[_0x465cad(0xc6)](_0x465cad(0xbb))()[_0x465cad(0xc6)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x498aeb[_0x465cad(0xcc)](a133_0x29935d);};return _0x1661e3();});a133_0x29935d();'use strict';const tesseract_1=require(_0x28455d(0xd3)),Member_1=require(_0x28455d(0xbf));module[_0x28455d(0xd8)]=class LeaderboardCommand extends tesseract_1[_0x28455d(0xcb)]{constructor(){const _0x54cbc4=_0x28455d;super(_0x54cbc4(0xd7),{'description':_0x54cbc4(0xbe),'triggers':['lb'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x54cbc4(0xd4)]=async _0x4d576b=>{const _0x5555de=_0x54cbc4,_0x25b3f5=await Member_1[_0x5555de(0xda)][_0x5555de(0xd9)]({'guild':_0x4d576b[_0x5555de(0xc8)]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1},'limit':0x5});_0x4d576b[_0x5555de(0xd1)][_0x5555de(0xd0)]({'embed':{'color':tesseract_1['Constants'][_0x5555de(0xd6)][_0x5555de(0xc2)],'author':{'name':_0x4d576b[_0x5555de(0xc8)][_0x5555de(0xba)]},'title':_0x5555de(0xcf),'fields':_0x25b3f5['map']((_0xcb8a44,_0x482a9f)=>[{'name':'#'+(_0x482a9f+0x1)+_0x5555de(0xc7)+(this[_0x5555de(0xc5)][_0x5555de(0xd5)]['cache']['has'](_0xcb8a44[_0x5555de(0xbd)])?this[_0x5555de(0xc5)][_0x5555de(0xd5)][_0x5555de(0xce)][_0x5555de(0xcd)](_0xcb8a44[_0x5555de(0xbd)])[_0x5555de(0xb7)]+_0x5555de(0xb9):'')+_0xcb8a44[_0x5555de(0xbd)],'value':_0xcb8a44[_0x5555de(0xca)]+_0x5555de(0xb8)},{'name':'Level','value':_0xcb8a44[_0x5555de(0xc9)],'inline':!![]},{'name':'XP','value':_0xcb8a44[_0x5555de(0xc0)],'inline':!![]},{'name':_0x5555de(0xd2),'value':_0xcb8a44[_0x5555de(0xc1)],'inline':!![]}]),'thumbnail':{'url':_0x5555de(0xc4)},'footer':{'text':_0x5555de(0xc3)}}});};}}; \ No newline at end of file +const a134_0x20d6=['send','find','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.','channel','client','\x20/\x20','Karma','https://i.imgur.com/Kzt8Ldk.png','@bastion/tesseract','constructor','cache','default','balance','exports','COLORS','users','\x20Bastion\x20Coins','user','has','experience','Level','/servers/','IRIS','../../models/Member','get','tag','\x20-\x20','map','test','locale','name','bastion.website','guild','Leaderboard','karma'];(function(_0x5ba34e,_0x406cf6){const _0x20d65e=function(_0x302bc){while(--_0x302bc){_0x5ba34e['push'](_0x5ba34e['shift']());}},_0x52d909=function(){const _0x36f792={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3fe5fa,_0x25d55a,_0x5584cb,_0xfffeae){_0xfffeae=_0xfffeae||{};let _0x5f3cb3=_0x25d55a+'='+_0x5584cb,_0x19fdc5=0x0;for(let _0x27a678=0x0,_0x2a0b99=_0x3fe5fa['length'];_0x27a678<_0x2a0b99;_0x27a678++){const _0x21fcd2=_0x3fe5fa[_0x27a678];_0x5f3cb3+=';\x20'+_0x21fcd2;const _0x19dab8=_0x3fe5fa[_0x21fcd2];_0x3fe5fa['push'](_0x19dab8),_0x2a0b99=_0x3fe5fa['length'],_0x19dab8!==!![]&&(_0x5f3cb3+='='+_0x19dab8);}_0xfffeae['cookie']=_0x5f3cb3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x557719,_0x1edd29){_0x557719=_0x557719||function(_0x57f108){return _0x57f108;};const _0x4487f4=_0x557719(new RegExp('(?:^|;\x20)'+_0x1edd29['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f3f91=function(_0x4962a4,_0x2574d9){_0x4962a4(++_0x2574d9);};return _0x4f3f91(_0x20d65e,_0x406cf6),_0x4487f4?decodeURIComponent(_0x4487f4[0x1]):undefined;}},_0x1a9f49=function(){const _0x4ff346=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ff346['test'](_0x36f792['removeCookie']['toString']());};_0x36f792['updateCookie']=_0x1a9f49;let _0x3fadcb='';const _0x5c2ccd=_0x36f792['updateCookie']();if(!_0x5c2ccd)_0x36f792['setCookie'](['*'],'counter',0x1);else _0x5c2ccd?_0x3fadcb=_0x36f792['getCookie'](null,'counter'):_0x36f792['removeCookie']();};_0x52d909();}(a134_0x20d6,0x130));const a134_0x52d9=function(_0x5ba34e,_0x406cf6){_0x5ba34e=_0x5ba34e-0x158;let _0x20d65e=a134_0x20d6[_0x5ba34e];return _0x20d65e;};const a134_0x5cda44=a134_0x52d9,a134_0x1a9f49=function(){let _0x5c2ccd=!![];return function(_0x3fe5fa,_0x25d55a){const _0x5584cb=_0x5c2ccd?function(){if(_0x25d55a){const _0xfffeae=_0x25d55a['apply'](_0x3fe5fa,arguments);return _0x25d55a=null,_0xfffeae;}}:function(){};return _0x5c2ccd=![],_0x5584cb;};}(),a134_0x36f792=a134_0x1a9f49(this,function(){const _0x5f3cb3=function(){const _0x58aab3=a134_0x52d9,_0x19fdc5=_0x5f3cb3[_0x58aab3(0x16c)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x19fdc5[_0x58aab3(0x15c)](a134_0x36f792);};return _0x5f3cb3();});a134_0x36f792();'use strict';const tesseract_1=require(a134_0x5cda44(0x16b)),Member_1=require(a134_0x5cda44(0x17a));module[a134_0x5cda44(0x170)]=class LeaderboardCommand extends tesseract_1['Command']{constructor(){const _0x1db00f=a134_0x5cda44;super('leaderboard',{'description':_0x1db00f(0x165),'triggers':['lb'],'arguments':{},'scope':_0x1db00f(0x160),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this['exec']=async _0x27a678=>{const _0x12d49d=_0x1db00f,_0x2a0b99=await Member_1[_0x12d49d(0x16e)][_0x12d49d(0x164)]({'guild':_0x27a678[_0x12d49d(0x160)]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1},'limit':0x5});_0x27a678[_0x12d49d(0x166)][_0x12d49d(0x163)]({'embed':{'color':tesseract_1['Constants'][_0x12d49d(0x171)][_0x12d49d(0x179)],'author':{'name':_0x27a678[_0x12d49d(0x160)][_0x12d49d(0x15e)],'url':this['client'][_0x12d49d(0x15d)]['getConstant'](_0x12d49d(0x15f))+_0x12d49d(0x178)+_0x27a678[_0x12d49d(0x160)]['id']},'title':_0x12d49d(0x161),'fields':_0x2a0b99[_0x12d49d(0x15b)]((_0x21fcd2,_0x19dab8)=>[{'name':'#'+(_0x19dab8+0x1)+_0x12d49d(0x15a)+(this[_0x12d49d(0x167)][_0x12d49d(0x172)][_0x12d49d(0x16d)][_0x12d49d(0x175)](_0x21fcd2['user'])?this[_0x12d49d(0x167)][_0x12d49d(0x172)][_0x12d49d(0x16d)][_0x12d49d(0x158)](_0x21fcd2[_0x12d49d(0x174)])[_0x12d49d(0x159)]+_0x12d49d(0x168):'')+_0x21fcd2['user'],'value':_0x21fcd2[_0x12d49d(0x16f)]+_0x12d49d(0x173)},{'name':_0x12d49d(0x177),'value':_0x21fcd2['level'],'inline':!![]},{'name':'XP','value':_0x21fcd2[_0x12d49d(0x176)],'inline':!![]},{'name':_0x12d49d(0x169),'value':_0x21fcd2[_0x12d49d(0x162)],'inline':!![]}]),'thumbnail':{'url':_0x12d49d(0x16a)},'footer':{'text':'Bastion\x20Profiles\x20-\x20Leaderboard'}}});};}}; \ No newline at end of file diff --git a/commands/profile/profile.js b/commands/profile/profile.js index 05b6bf3a1..847f0c682 100644 --- a/commands/profile/profile.js +++ b/commands/profile/profile.js @@ -1 +1 @@ -const a134_0x4e75=['isPublicBastion','@bastion/tesseract','getString','member','karma','author','constructor','Karma','\x20/\x20','Cake\x20Day','badgeValue','test','resolver','profile\x20USER','language','computeExperience','../../models/Member','displayAvatarURL','nextLevel','round','locale','Bastion\x20Profile','default','user','cakeDay','IRIS','send','Rank','errors','memberNotFound','experience','gamification','info','../../utils/progress','catch','resolveGuildMember','document','Progress\x20-\x20','../../utils/badges','Location','DEFAUL_LEVELUP_MULTIPLIER','length','Command','apply','Bastion\x20Coins','Oh,\x20hey!\x20Here\x27s\x20my\x20developer!','toDateString','profile','Experience','level','countDocuments','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','channel','About','Constants','COLORS','map','exec','exports','Level','color','backdrop','join','currentLevel','then','findById','balance','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','multiplier','resolveBadges','find','client'];(function(_0x3899e8,_0x3d0c18){const _0x4e75f7=function(_0x2e2e3e){while(--_0x2e2e3e){_0x3899e8['push'](_0x3899e8['shift']());}},_0x2579a1=function(){const _0x1da317={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13fb34,_0x2293ed,_0x1062c0,_0x2adfec){_0x2adfec=_0x2adfec||{};let _0x9b2774=_0x2293ed+'='+_0x1062c0,_0x428553=0x0;for(let _0x260d24=0x0,_0x162add=_0x13fb34['length'];_0x260d24<_0x162add;_0x260d24++){const _0x110c4a=_0x13fb34[_0x260d24];_0x9b2774+=';\x20'+_0x110c4a;const _0x2c75a7=_0x13fb34[_0x110c4a];_0x13fb34['push'](_0x2c75a7),_0x162add=_0x13fb34['length'],_0x2c75a7!==!![]&&(_0x9b2774+='='+_0x2c75a7);}_0x2adfec['cookie']=_0x9b2774;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3125b2,_0x427440){_0x3125b2=_0x3125b2||function(_0x1fe766){return _0x1fe766;};const _0x4e380b=_0x3125b2(new RegExp('(?:^|;\x20)'+_0x427440['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3fc404=function(_0x280229,_0x3f417f){_0x280229(++_0x3f417f);};return _0x3fc404(_0x4e75f7,_0x3d0c18),_0x4e380b?decodeURIComponent(_0x4e380b[0x1]):undefined;}},_0x36d52e=function(){const _0x20b671=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x20b671['test'](_0x1da317['removeCookie']['toString']());};_0x1da317['updateCookie']=_0x36d52e;let _0xaa3369='';const _0x7c0cfb=_0x1da317['updateCookie']();if(!_0x7c0cfb)_0x1da317['setCookie'](['*'],'counter',0x1);else _0x7c0cfb?_0xaa3369=_0x1da317['getCookie'](null,'counter'):_0x1da317['removeCookie']();};_0x2579a1();}(a134_0x4e75,0x88));const a134_0x2579=function(_0x3899e8,_0x3d0c18){_0x3899e8=_0x3899e8-0xf8;let _0x4e75f7=a134_0x4e75[_0x3899e8];return _0x4e75f7;};const _0x2ebf0b=a134_0x2579,a134_0x36d52e=function(){let _0x7c0cfb=!![];return function(_0x13fb34,_0x2293ed){const _0x1062c0=_0x7c0cfb?function(){const _0x5147e5=a134_0x2579;if(_0x2293ed){const _0x2adfec=_0x2293ed[_0x5147e5(0x12f)](_0x13fb34,arguments);return _0x2293ed=null,_0x2adfec;}}:function(){};return _0x7c0cfb=![],_0x1062c0;};}(),a134_0x1da317=a134_0x36d52e(this,function(){const _0x9b2774=function(){const _0x4638e3=a134_0x2579,_0x428553=_0x9b2774[_0x4638e3(0x10a)](_0x4638e3(0x138))()[_0x4638e3(0x10a)](_0x4638e3(0xff));return!_0x428553[_0x4638e3(0x10f)](a134_0x1da317);};return _0x9b2774();});a134_0x1da317();'use strict';const tesseract_1=require(_0x2ebf0b(0x105)),Member_1=require(_0x2ebf0b(0x114)),User_1=require('../../models/User'),badges=require(_0x2ebf0b(0x12a)),constants=require('../../utils/constants'),gamification=require('../../utils/gamification'),progress_1=require(_0x2ebf0b(0x125));module[_0x2ebf0b(0x140)]=class ProfileCommand extends tesseract_1[_0x2ebf0b(0x12e)]{constructor(){const _0x10675a=_0x2ebf0b;super(_0x10675a(0x133),{'description':'It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20Bastion\x20Profile.','triggers':[],'arguments':{},'scope':_0x10675a(0x137),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['profile',_0x10675a(0x111)]}),this[_0x10675a(0x13f)]=async(_0x260d24,_0x162add)=>{const _0x3060a9=_0x10675a,_0x110c4a=_0x162add['_'][_0x3060a9(0x12d)]?_0x162add['_'][0x0]:_0x260d24[_0x3060a9(0x109)]['id'],_0x2c75a7=_0x110c4a===_0x260d24[_0x3060a9(0x109)]['id']?_0x260d24[_0x3060a9(0x107)]:this[_0x3060a9(0x103)][_0x3060a9(0x110)][_0x3060a9(0x127)](_0x260d24[_0x3060a9(0x137)],_0x110c4a);if(!_0x2c75a7)throw new Error(this[_0x3060a9(0x103)][_0x3060a9(0x118)]['getString'](_0x260d24['guild'][_0x3060a9(0x128)][_0x3060a9(0x112)],'errors',_0x3060a9(0x121)));const _0x3125b2=_0x110c4a===_0x260d24[_0x3060a9(0x109)]['id']?_0x260d24[_0x3060a9(0x109)][_0x3060a9(0x128)]:await User_1[_0x3060a9(0x11a)][_0x3060a9(0xfd)](_0x110c4a),_0x427440=_0x110c4a===_0x260d24[_0x3060a9(0x109)]['id']?_0x2c75a7['document']:await Member_1[_0x3060a9(0x11a)]['findOne']({'user':_0x110c4a,'guild':_0x260d24[_0x3060a9(0x137)]['id']});if(!_0x3125b2||!_0x427440)throw new Error(this[_0x3060a9(0x103)][_0x3060a9(0x118)][_0x3060a9(0x106)](_0x260d24[_0x3060a9(0x137)][_0x3060a9(0x128)][_0x3060a9(0x112)],_0x3060a9(0x120),'profileNotFound',_0x2c75a7['user'][_0x3060a9(0x139)]));const _0x4e380b=await Member_1[_0x3060a9(0x11a)][_0x3060a9(0x102)]({'guild':_0x260d24[_0x3060a9(0x137)]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[_0x3060a9(0x136)]({'$or':[{'level':{'$gt':_0x427440[_0x3060a9(0x135)]}},{'level':_0x427440[_0x3060a9(0x135)],'experience':{'$gt':_0x427440['experience']}},{'level':_0x427440[_0x3060a9(0x135)],'experience':_0x427440[_0x3060a9(0x122)],'karma':{'$gt':_0x427440[_0x3060a9(0x108)]}},{'level':_0x427440[_0x3060a9(0x135)],'experience':_0x427440['experience'],'karma':_0x427440['karma'],'balance':{'$gt':_0x427440[_0x3060a9(0xfe)]}}]}),_0x3fc404={'currentLevel':gamification[_0x3060a9(0x113)](_0x427440[_0x3060a9(0x135)],_0x260d24[_0x3060a9(0x137)]['document'][_0x3060a9(0x123)]?_0x260d24[_0x3060a9(0x137)]['document'][_0x3060a9(0x123)][_0x3060a9(0x100)]:gamification[_0x3060a9(0x12c)]),'nextLevel':gamification[_0x3060a9(0x113)](_0x427440[_0x3060a9(0x135)]+0x1,_0x260d24['guild'][_0x3060a9(0x128)][_0x3060a9(0x123)]?_0x260d24[_0x3060a9(0x137)][_0x3060a9(0x128)][_0x3060a9(0x123)][_0x3060a9(0x100)]:gamification[_0x3060a9(0x12c)])},_0x1fe766={'currentLevel':_0x427440[_0x3060a9(0x122)]-_0x3fc404[_0x3060a9(0xfb)],'nextLevel':_0x3fc404[_0x3060a9(0x116)]-_0x3fc404[_0x3060a9(0xfb)]},_0x280229=_0x1fe766[_0x3060a9(0xfb)]/_0x1fe766[_0x3060a9(0x116)]*0x64,_0x3f417f=constants[_0x3060a9(0x104)](this[_0x3060a9(0x103)]['user'])&&await badges['fetchBadges'](_0x2c75a7['id'])[_0x3060a9(0xfc)](_0x20b671=>_0x20b671['json']())['catch'](()=>{});_0x260d24[_0x3060a9(0x13a)][_0x3060a9(0x11e)]({'embed':{'color':_0x3125b2[_0x3060a9(0xf8)]||tesseract_1[_0x3060a9(0x13c)][_0x3060a9(0x13d)][_0x3060a9(0x11d)],'author':{'name':_0x2c75a7['user'][_0x3060a9(0x139)]},'title':_0x3060a9(0x119),'description':(_0x3f417f&&_0x3060a9(0x10e)in _0x3f417f?badges[_0x3060a9(0x101)](_0x3f417f[_0x3060a9(0x10e)]):[])[_0x3060a9(0x13e)](_0x5e0c37=>_0x5e0c37['emoji'])[_0x3060a9(0xfa)]('\x20'),'fields':[{'name':_0x3060a9(0x13b),'value':_0x3125b2[_0x3060a9(0x124)]||'-'},{'name':_0x3060a9(0x11f),'value':_0x4e380b+0x1,'inline':!![]},{'name':_0x3060a9(0x141),'value':_0x427440[_0x3060a9(0x135)],'inline':!![]},{'name':_0x3060a9(0x134),'value':_0x427440['experience'],'inline':!![]},{'name':_0x3060a9(0x10b),'value':_0x427440[_0x3060a9(0x108)],'inline':!![]},{'name':_0x3060a9(0x130),'value':_0x427440[_0x3060a9(0xfe)],'inline':!![]},{'name':_0x3060a9(0x129)+_0x1fe766[_0x3060a9(0xfb)]+_0x3060a9(0x10c)+_0x1fe766[_0x3060a9(0x116)]+'\x20-\x20'+Math[_0x3060a9(0x117)](_0x280229)+'%','value':'`'+progress_1[_0x3060a9(0x11a)](_0x280229,0x23)+'`'},{'name':_0x3060a9(0x10d),'value':_0x3125b2[_0x3060a9(0x11c)]?_0x3125b2[_0x3060a9(0x11c)][_0x3060a9(0x132)]():'-','inline':!![]},{'name':_0x3060a9(0x12b),'value':_0x3125b2['location']||'-','inline':!![]}],'thumbnail':{'url':_0x2c75a7[_0x3060a9(0x11b)][_0x3060a9(0x115)]({'dynamic':!![],'size':0x200})},'image':{'url':_0x3125b2[_0x3060a9(0xf9)]},'footer':{'text':_0x2c75a7['id']===this[_0x3060a9(0x103)][_0x3060a9(0x118)]['getConstant']('author.discord.id')?_0x3060a9(0x131):''}}})[_0x3060a9(0x126)](()=>{});};}}; \ No newline at end of file +const a135_0xad6d=['exports','profile\x20USER','user','language','errors','DEFAUL_LEVELUP_MULTIPLIER','constructor','../../utils/constants','Level','color','balance','@bastion/tesseract','countDocuments','Karma','\x20-\x20','Location','../../models/Member','member','locale','\x20/\x20','catch','document','length','send','backdrop','COLORS','../../utils/progress','IRIS','Progress\x20-\x20','gamification','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','round','karma','../../models/User','then','toDateString','../../utils/gamification','test','getString','find','channel','resolver','default','badgeValue','Command','Oh,\x20hey!\x20Here\x27s\x20my\x20developer!','fetchBadges','tag','experience','computeExperience','multiplier','About','level','apply','resolveGuildMember','Cake\x20Day','author','../../utils/badges','Constants','client','map','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','currentLevel','getConstant'];(function(_0x46fd96,_0x297ae6){const _0xad6d6e=function(_0x2e6c8b){while(--_0x2e6c8b){_0x46fd96['push'](_0x46fd96['shift']());}},_0x208ada=function(){const _0x416d8b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x320959,_0x14704b,_0x15b17a,_0x57a3a1){_0x57a3a1=_0x57a3a1||{};let _0x1f4e8e=_0x14704b+'='+_0x15b17a,_0x4933dd=0x0;for(let _0x403b85=0x0,_0x50e379=_0x320959['length'];_0x403b85<_0x50e379;_0x403b85++){const _0x586947=_0x320959[_0x403b85];_0x1f4e8e+=';\x20'+_0x586947;const _0x7f8d57=_0x320959[_0x586947];_0x320959['push'](_0x7f8d57),_0x50e379=_0x320959['length'],_0x7f8d57!==!![]&&(_0x1f4e8e+='='+_0x7f8d57);}_0x57a3a1['cookie']=_0x1f4e8e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f9400,_0x1d95dd){_0x2f9400=_0x2f9400||function(_0xbccdb6){return _0xbccdb6;};const _0x2830c4=_0x2f9400(new RegExp('(?:^|;\x20)'+_0x1d95dd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1d3392=function(_0x24bdc7,_0x1078c8){_0x24bdc7(++_0x1078c8);};return _0x1d3392(_0xad6d6e,_0x297ae6),_0x2830c4?decodeURIComponent(_0x2830c4[0x1]):undefined;}},_0x33f925=function(){const _0x1e183f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e183f['test'](_0x416d8b['removeCookie']['toString']());};_0x416d8b['updateCookie']=_0x33f925;let _0x3b9efd='';const _0x482dd7=_0x416d8b['updateCookie']();if(!_0x482dd7)_0x416d8b['setCookie'](['*'],'counter',0x1);else _0x482dd7?_0x3b9efd=_0x416d8b['getCookie'](null,'counter'):_0x416d8b['removeCookie']();};_0x208ada();}(a135_0xad6d,0xf9));const a135_0x208a=function(_0x46fd96,_0x297ae6){_0x46fd96=_0x46fd96-0x1bb;let _0xad6d6e=a135_0xad6d[_0x46fd96];return _0xad6d6e;};const a135_0x3a151a=a135_0x208a,a135_0x33f925=function(){let _0x482dd7=!![];return function(_0x320959,_0x14704b){const _0x15b17a=_0x482dd7?function(){const _0x55aec5=a135_0x208a;if(_0x14704b){const _0x57a3a1=_0x14704b[_0x55aec5(0x1fb)](_0x320959,arguments);return _0x14704b=null,_0x57a3a1;}}:function(){};return _0x482dd7=![],_0x15b17a;};}(),a135_0x416d8b=a135_0x33f925(this,function(){const _0x1f4e8e=function(){const _0x506234=a135_0x208a,_0x4933dd=_0x1f4e8e[_0x506234(0x1cc)](_0x506234(0x1c3))()['constructor'](_0x506234(0x1e4));return!_0x4933dd[_0x506234(0x1eb)](a135_0x416d8b);};return _0x1f4e8e();});a135_0x416d8b();'use strict';const tesseract_1=require(a135_0x3a151a(0x1d1)),Member_1=require(a135_0x3a151a(0x1d6)),User_1=require(a135_0x3a151a(0x1e7)),badges=require(a135_0x3a151a(0x1be)),constants=require(a135_0x3a151a(0x1cd)),gamification=require(a135_0x3a151a(0x1ea)),progress_1=require(a135_0x3a151a(0x1e0));module[a135_0x3a151a(0x1c6)]=class ProfileCommand extends tesseract_1[a135_0x3a151a(0x1f2)]{constructor(){const _0x1cab7e=a135_0x3a151a;super('profile',{'description':'It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20Bastion\x20Profile.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['profile',_0x1cab7e(0x1c7)]}),this['exec']=async(_0x403b85,_0x50e379)=>{const _0x5beea7=_0x1cab7e,_0x586947=_0x50e379['_'][_0x5beea7(0x1dc)]?_0x50e379['_'][0x0]:_0x403b85[_0x5beea7(0x1bd)]['id'],_0x7f8d57=_0x586947===_0x403b85[_0x5beea7(0x1bd)]['id']?_0x403b85[_0x5beea7(0x1d7)]:this[_0x5beea7(0x1c0)][_0x5beea7(0x1ef)][_0x5beea7(0x1bb)](_0x403b85['guild'],_0x586947);if(!_0x7f8d57)throw new Error(this[_0x5beea7(0x1c0)][_0x5beea7(0x1d8)]['getString'](_0x403b85['guild'][_0x5beea7(0x1db)][_0x5beea7(0x1c9)],_0x5beea7(0x1ca),'memberNotFound'));const _0x2f9400=_0x586947===_0x403b85['author']['id']?_0x403b85['author'][_0x5beea7(0x1db)]:await User_1[_0x5beea7(0x1f0)]['findById'](_0x586947),_0x1d95dd=_0x586947===_0x403b85[_0x5beea7(0x1bd)]['id']?_0x7f8d57[_0x5beea7(0x1db)]:await Member_1[_0x5beea7(0x1f0)]['findOne']({'user':_0x586947,'guild':_0x403b85['guild']['id']});if(!_0x2f9400||!_0x1d95dd)throw new Error(this[_0x5beea7(0x1c0)][_0x5beea7(0x1d8)][_0x5beea7(0x1ec)](_0x403b85[_0x5beea7(0x1c2)][_0x5beea7(0x1db)]['language'],_0x5beea7(0x1ca),'profileNotFound',_0x7f8d57[_0x5beea7(0x1c8)][_0x5beea7(0x1f5)]));const _0x2830c4=await Member_1['default'][_0x5beea7(0x1ed)]({'guild':_0x403b85[_0x5beea7(0x1c2)]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[_0x5beea7(0x1d2)]({'$or':[{'level':{'$gt':_0x1d95dd[_0x5beea7(0x1fa)]}},{'level':_0x1d95dd[_0x5beea7(0x1fa)],'experience':{'$gt':_0x1d95dd[_0x5beea7(0x1f6)]}},{'level':_0x1d95dd['level'],'experience':_0x1d95dd['experience'],'karma':{'$gt':_0x1d95dd[_0x5beea7(0x1e6)]}},{'level':_0x1d95dd[_0x5beea7(0x1fa)],'experience':_0x1d95dd[_0x5beea7(0x1f6)],'karma':_0x1d95dd['karma'],'balance':{'$gt':_0x1d95dd['balance']}}]}),_0x1d3392={'currentLevel':gamification[_0x5beea7(0x1f7)](_0x1d95dd['level'],_0x403b85[_0x5beea7(0x1c2)][_0x5beea7(0x1db)][_0x5beea7(0x1e3)]?_0x403b85[_0x5beea7(0x1c2)][_0x5beea7(0x1db)][_0x5beea7(0x1e3)][_0x5beea7(0x1f8)]:gamification[_0x5beea7(0x1cb)]),'nextLevel':gamification[_0x5beea7(0x1f7)](_0x1d95dd[_0x5beea7(0x1fa)]+0x1,_0x403b85[_0x5beea7(0x1c2)][_0x5beea7(0x1db)]['gamification']?_0x403b85[_0x5beea7(0x1c2)]['document'][_0x5beea7(0x1e3)][_0x5beea7(0x1f8)]:gamification[_0x5beea7(0x1cb)])},_0xbccdb6={'currentLevel':_0x1d95dd[_0x5beea7(0x1f6)]-_0x1d3392[_0x5beea7(0x1c4)],'nextLevel':_0x1d3392['nextLevel']-_0x1d3392[_0x5beea7(0x1c4)]},_0x24bdc7=_0xbccdb6['currentLevel']/_0xbccdb6['nextLevel']*0x64,_0x1078c8=constants['isPublicBastion'](this[_0x5beea7(0x1c0)][_0x5beea7(0x1c8)])&&await badges[_0x5beea7(0x1f4)](_0x7f8d57['id'])[_0x5beea7(0x1e8)](_0x1e183f=>_0x1e183f['json']())[_0x5beea7(0x1da)](()=>{});_0x403b85[_0x5beea7(0x1ee)][_0x5beea7(0x1dd)]({'embed':{'color':_0x2f9400[_0x5beea7(0x1cf)]||tesseract_1[_0x5beea7(0x1bf)][_0x5beea7(0x1df)][_0x5beea7(0x1e1)],'author':{'name':_0x7f8d57[_0x5beea7(0x1c8)][_0x5beea7(0x1f5)]},'title':'Bastion\x20Profile','description':(_0x1078c8&&_0x5beea7(0x1f1)in _0x1078c8?badges['resolveBadges'](_0x1078c8['badgeValue']):[])[_0x5beea7(0x1c1)](_0xc74648=>_0xc74648['emoji'])['join']('\x20'),'fields':[{'name':_0x5beea7(0x1f9),'value':_0x2f9400['info']||'-'},{'name':'Rank','value':_0x2830c4+0x1,'inline':!![]},{'name':_0x5beea7(0x1ce),'value':_0x1d95dd[_0x5beea7(0x1fa)],'inline':!![]},{'name':'Experience','value':_0x1d95dd[_0x5beea7(0x1f6)],'inline':!![]},{'name':_0x5beea7(0x1d3),'value':_0x1d95dd['karma'],'inline':!![]},{'name':'Bastion\x20Coins','value':_0x1d95dd[_0x5beea7(0x1d0)],'inline':!![]},{'name':_0x5beea7(0x1e2)+_0xbccdb6['currentLevel']+_0x5beea7(0x1d9)+_0xbccdb6['nextLevel']+_0x5beea7(0x1d4)+Math[_0x5beea7(0x1e5)](_0x24bdc7)+'%','value':'`'+progress_1['default'](_0x24bdc7,0x23)+'`'},{'name':_0x5beea7(0x1bc),'value':_0x2f9400['cakeDay']?_0x2f9400['cakeDay'][_0x5beea7(0x1e9)]():'-','inline':!![]},{'name':_0x5beea7(0x1d5),'value':_0x2f9400['location']||'-','inline':!![]}],'thumbnail':{'url':_0x7f8d57[_0x5beea7(0x1c8)]['displayAvatarURL']({'dynamic':!![],'size':0x200})},'image':{'url':_0x2f9400[_0x5beea7(0x1de)]},'footer':{'text':_0x7f8d57['id']===this[_0x5beea7(0x1c0)][_0x5beea7(0x1d8)][_0x5beea7(0x1c5)]('author.discord.id')?_0x5beea7(0x1f3):''}}})[_0x5beea7(0x1da)](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/rank.js b/commands/profile/rank.js index 5420a655e..c93e76669 100644 --- a/commands/profile/rank.js +++ b/commands/profile/rank.js @@ -1 +1 @@ -const a135_0x50b8=['length','memberNotFound','experience','language','apply','info','default','document','level','test','rank','catch','Experience','../../models/Member','Constants','Level','@bastion/tesseract','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','user','Command','countDocuments','guild','resolveGuildMember','client','constructor','It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20rank,\x20level,\x20experience,\x20and\x20karma.','profileNotFound','locale','exec','checkProfile','return\x20/\x22\x20+\x20this\x20+\x20\x22/','karma','exports','getString','send','COLORS','Karma','displayAvatarURL','author','channel','rank\x20USER','findById','errors'];(function(_0x348011,_0x4322f8){const _0x50b847=function(_0xca083b){while(--_0xca083b){_0x348011['push'](_0x348011['shift']());}},_0x376949=function(){const _0x20f2b9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x57c01a,_0x5d2806,_0x144ff2,_0x13d619){_0x13d619=_0x13d619||{};let _0x597149=_0x5d2806+'='+_0x144ff2,_0x179257=0x0;for(let _0x15f4c1=0x0,_0x262b9e=_0x57c01a['length'];_0x15f4c1<_0x262b9e;_0x15f4c1++){const _0xac6a26=_0x57c01a[_0x15f4c1];_0x597149+=';\x20'+_0xac6a26;const _0x55a33d=_0x57c01a[_0xac6a26];_0x57c01a['push'](_0x55a33d),_0x262b9e=_0x57c01a['length'],_0x55a33d!==!![]&&(_0x597149+='='+_0x55a33d);}_0x13d619['cookie']=_0x597149;},'removeCookie':function(){return'dev';},'getCookie':function(_0x35bca9,_0x4d6356){_0x35bca9=_0x35bca9||function(_0x1a81d7){return _0x1a81d7;};const _0x21cc01=_0x35bca9(new RegExp('(?:^|;\x20)'+_0x4d6356['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29b560=function(_0x2b322f,_0x711717){_0x2b322f(++_0x711717);};return _0x29b560(_0x50b847,_0x4322f8),_0x21cc01?decodeURIComponent(_0x21cc01[0x1]):undefined;}},_0x4ef1b1=function(){const _0x1db925=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1db925['test'](_0x20f2b9['removeCookie']['toString']());};_0x20f2b9['updateCookie']=_0x4ef1b1;let _0x1ba018='';const _0x5eaaa2=_0x20f2b9['updateCookie']();if(!_0x5eaaa2)_0x20f2b9['setCookie'](['*'],'counter',0x1);else _0x5eaaa2?_0x1ba018=_0x20f2b9['getCookie'](null,'counter'):_0x20f2b9['removeCookie']();};_0x376949();}(a135_0x50b8,0x1b4));const a135_0x3769=function(_0x348011,_0x4322f8){_0x348011=_0x348011-0xcb;let _0x50b847=a135_0x50b8[_0x348011];return _0x50b847;};const _0x3e53a0=a135_0x3769,a135_0x4ef1b1=function(){let _0x5eaaa2=!![];return function(_0x57c01a,_0x5d2806){const _0x144ff2=_0x5eaaa2?function(){const _0x4ab0c4=a135_0x3769;if(_0x5d2806){const _0x13d619=_0x5d2806[_0x4ab0c4(0xd3)](_0x57c01a,arguments);return _0x5d2806=null,_0x13d619;}}:function(){};return _0x5eaaa2=![],_0x144ff2;};}(),a135_0x20f2b9=a135_0x4ef1b1(this,function(){const _0x597149=function(){const _0x493738=a135_0x3769,_0x179257=_0x597149[_0x493738(0xe8)](_0x493738(0xee))()['constructor'](_0x493738(0xe1));return!_0x179257[_0x493738(0xd8)](a135_0x20f2b9);};return _0x597149();});a135_0x20f2b9();'use strict';const tesseract_1=require(_0x3e53a0(0xdf)),Member_1=require(_0x3e53a0(0xdc)),User_1=require('../../models/User');module[_0x3e53a0(0xf0)]=class RankCommand extends tesseract_1[_0x3e53a0(0xe3)]{constructor(){const _0x45b940=_0x3e53a0;super(_0x45b940(0xd9),{'description':_0x45b940(0xe9),'triggers':['level','xp'],'arguments':{},'scope':_0x45b940(0xe5),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x45b940(0xd9),_0x45b940(0xcc)]}),this[_0x45b940(0xec)]=async(_0x15f4c1,_0x262b9e)=>{const _0xa75e81=_0x45b940,_0xac6a26=_0x262b9e['_'][_0xa75e81(0xcf)]?_0x262b9e['_'][0x0]:_0x15f4c1[_0xa75e81(0xf6)]['id'],_0x55a33d=_0xac6a26===_0x15f4c1[_0xa75e81(0xf6)]['id']?_0x15f4c1['member']:this[_0xa75e81(0xe7)]['resolver'][_0xa75e81(0xe6)](_0x15f4c1['guild'],_0xac6a26);if(!_0x55a33d)throw new Error(this[_0xa75e81(0xe7)]['locale'][_0xa75e81(0xf1)](_0x15f4c1['guild'][_0xa75e81(0xd6)][_0xa75e81(0xd2)],_0xa75e81(0xce),_0xa75e81(0xd0)));const _0x35bca9=_0xac6a26===_0x15f4c1['author']['id']?_0x15f4c1['author'][_0xa75e81(0xd6)]:await User_1[_0xa75e81(0xd5)][_0xa75e81(0xcd)](_0xac6a26),_0x4d6356=_0xac6a26===_0x15f4c1[_0xa75e81(0xf6)]['id']?_0x55a33d[_0xa75e81(0xd6)]:await Member_1[_0xa75e81(0xd5)]['findOne']({'user':_0xac6a26,'guild':_0x15f4c1[_0xa75e81(0xe5)]['id']});if(!_0x35bca9||!_0x4d6356)throw new Error(this['client'][_0xa75e81(0xeb)][_0xa75e81(0xf1)](_0x15f4c1[_0xa75e81(0xe5)][_0xa75e81(0xd6)]['language'],'errors',_0xa75e81(0xea),_0x55a33d[_0xa75e81(0xe2)][_0xa75e81(0xe0)]));const _0x21cc01=await Member_1[_0xa75e81(0xd5)]['find']({'guild':_0x15f4c1[_0xa75e81(0xe5)]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[_0xa75e81(0xe4)]({'$or':[{'level':{'$gt':_0x4d6356[_0xa75e81(0xd7)]}},{'level':_0x4d6356[_0xa75e81(0xd7)],'experience':{'$gt':_0x4d6356['experience']}},{'level':_0x4d6356['level'],'experience':_0x4d6356[_0xa75e81(0xd1)],'karma':{'$gt':_0x4d6356[_0xa75e81(0xef)]}},{'level':_0x4d6356['level'],'experience':_0x4d6356['experience'],'karma':_0x4d6356['karma'],'balance':{'$gt':_0x4d6356['balance']}}]});await _0x15f4c1[_0xa75e81(0xcb)][_0xa75e81(0xf2)]({'embed':{'color':_0x35bca9['color']||tesseract_1[_0xa75e81(0xdd)][_0xa75e81(0xf3)]['IRIS'],'author':{'name':_0x55a33d[_0xa75e81(0xe2)]['tag']},'title':'Rank\x20'+(_0x21cc01+0x1),'description':this[_0xa75e81(0xe7)][_0xa75e81(0xeb)]['getString'](_0x15f4c1[_0xa75e81(0xe5)][_0xa75e81(0xd6)][_0xa75e81(0xd2)],_0xa75e81(0xd4),_0xa75e81(0xed)),'fields':[{'name':_0xa75e81(0xde),'value':_0x4d6356[_0xa75e81(0xd7)],'inline':!![]},{'name':_0xa75e81(0xdb),'value':_0x4d6356[_0xa75e81(0xd1)],'inline':!![]},{'name':_0xa75e81(0xf4),'value':_0x4d6356[_0xa75e81(0xef)],'inline':!![]}],'thumbnail':{'url':_0x55a33d[_0xa75e81(0xe2)][_0xa75e81(0xf5)]({'dynamic':!![],'size':0x200})}}})[_0xa75e81(0xda)](()=>{});};}}; \ No newline at end of file +const a136_0x4898=['author','It\x20allows\x20you\x20to\x20see\x20your\x20(or\x20any\x20of\x20the\x20server\x20member\x27s)\x20rank,\x20level,\x20experience,\x20and\x20karma.','guild','channel','Command','rank\x20USER','karma','tag','color','rank','../../models/Member','locale','IRIS','length','Rank\x20','findOne','default','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','checkProfile','send','user','resolveGuildMember','memberNotFound','COLORS','find','Constants','resolver','getString','displayAvatarURL','Experience','balance','experience','@bastion/tesseract','catch','profileNotFound','level','client','constructor','test','language','findById','Level','countDocuments','document','exec','../../models/User'];(function(_0x491ecf,_0x15fe0f){const _0x4898d4=function(_0x39840d){while(--_0x39840d){_0x491ecf['push'](_0x491ecf['shift']());}},_0x367798=function(){const _0x99e514={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x393644,_0x128a0f,_0x41a906,_0x40470c){_0x40470c=_0x40470c||{};let _0x19faf0=_0x128a0f+'='+_0x41a906,_0x49e683=0x0;for(let _0x35f938=0x0,_0x1c3309=_0x393644['length'];_0x35f938<_0x1c3309;_0x35f938++){const _0x256037=_0x393644[_0x35f938];_0x19faf0+=';\x20'+_0x256037;const _0x852b1f=_0x393644[_0x256037];_0x393644['push'](_0x852b1f),_0x1c3309=_0x393644['length'],_0x852b1f!==!![]&&(_0x19faf0+='='+_0x852b1f);}_0x40470c['cookie']=_0x19faf0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42200a,_0x16e484){_0x42200a=_0x42200a||function(_0x135c76){return _0x135c76;};const _0x2d97f5=_0x42200a(new RegExp('(?:^|;\x20)'+_0x16e484['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x56cc8a=function(_0x490056,_0x4c52f4){_0x490056(++_0x4c52f4);};return _0x56cc8a(_0x4898d4,_0x15fe0f),_0x2d97f5?decodeURIComponent(_0x2d97f5[0x1]):undefined;}},_0x1641ce=function(){const _0x5b740a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b740a['test'](_0x99e514['removeCookie']['toString']());};_0x99e514['updateCookie']=_0x1641ce;let _0x10cfb2='';const _0x113ad3=_0x99e514['updateCookie']();if(!_0x113ad3)_0x99e514['setCookie'](['*'],'counter',0x1);else _0x113ad3?_0x10cfb2=_0x99e514['getCookie'](null,'counter'):_0x99e514['removeCookie']();};_0x367798();}(a136_0x4898,0xc3));const a136_0x3677=function(_0x491ecf,_0x15fe0f){_0x491ecf=_0x491ecf-0xc7;let _0x4898d4=a136_0x4898[_0x491ecf];return _0x4898d4;};const a136_0x226f85=a136_0x3677,a136_0x1641ce=function(){let _0x113ad3=!![];return function(_0x393644,_0x128a0f){const _0x41a906=_0x113ad3?function(){if(_0x128a0f){const _0x40470c=_0x128a0f['apply'](_0x393644,arguments);return _0x128a0f=null,_0x40470c;}}:function(){};return _0x113ad3=![],_0x41a906;};}(),a136_0x99e514=a136_0x1641ce(this,function(){const _0x19faf0=function(){const _0x5e518=a136_0x3677,_0x49e683=_0x19faf0[_0x5e518(0xe6)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x5e518(0xd2));return!_0x49e683[_0x5e518(0xe7)](a136_0x99e514);};return _0x19faf0();});a136_0x99e514();'use strict';const tesseract_1=require(a136_0x226f85(0xe1)),Member_1=require(a136_0x226f85(0xca)),User_1=require(a136_0x226f85(0xee));module[a136_0x226f85(0xd1)]=class RankCommand extends tesseract_1[a136_0x226f85(0xf3)]{constructor(){const _0x453f82=a136_0x226f85;super(_0x453f82(0xc9),{'description':_0x453f82(0xf0),'triggers':[_0x453f82(0xe4),'xp'],'arguments':{},'scope':_0x453f82(0xf1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['rank',_0x453f82(0xf4)]}),this[_0x453f82(0xed)]=async(_0x35f938,_0x1c3309)=>{const _0x55d81c=_0x453f82,_0x256037=_0x1c3309['_'][_0x55d81c(0xcd)]?_0x1c3309['_'][0x0]:_0x35f938[_0x55d81c(0xef)]['id'],_0x852b1f=_0x256037===_0x35f938[_0x55d81c(0xef)]['id']?_0x35f938['member']:this[_0x55d81c(0xe5)][_0x55d81c(0xdb)][_0x55d81c(0xd6)](_0x35f938[_0x55d81c(0xf1)],_0x256037);if(!_0x852b1f)throw new Error(this['client'][_0x55d81c(0xcb)][_0x55d81c(0xdc)](_0x35f938[_0x55d81c(0xf1)][_0x55d81c(0xec)][_0x55d81c(0xe8)],'errors',_0x55d81c(0xd7)));const _0x42200a=_0x256037===_0x35f938[_0x55d81c(0xef)]['id']?_0x35f938['author']['document']:await User_1[_0x55d81c(0xd0)][_0x55d81c(0xe9)](_0x256037),_0x16e484=_0x256037===_0x35f938['author']['id']?_0x852b1f['document']:await Member_1[_0x55d81c(0xd0)][_0x55d81c(0xcf)]({'user':_0x256037,'guild':_0x35f938[_0x55d81c(0xf1)]['id']});if(!_0x42200a||!_0x16e484)throw new Error(this[_0x55d81c(0xe5)][_0x55d81c(0xcb)][_0x55d81c(0xdc)](_0x35f938[_0x55d81c(0xf1)][_0x55d81c(0xec)][_0x55d81c(0xe8)],'errors',_0x55d81c(0xe3),_0x852b1f[_0x55d81c(0xd5)][_0x55d81c(0xc7)]));const _0x2d97f5=await Member_1['default'][_0x55d81c(0xd9)]({'guild':_0x35f938[_0x55d81c(0xf1)]['id']},null,{'sort':{'level':-0x1,'experience':-0x1,'karma':-0x1,'balance':-0x1}})[_0x55d81c(0xeb)]({'$or':[{'level':{'$gt':_0x16e484[_0x55d81c(0xe4)]}},{'level':_0x16e484[_0x55d81c(0xe4)],'experience':{'$gt':_0x16e484[_0x55d81c(0xe0)]}},{'level':_0x16e484[_0x55d81c(0xe4)],'experience':_0x16e484[_0x55d81c(0xe0)],'karma':{'$gt':_0x16e484[_0x55d81c(0xf5)]}},{'level':_0x16e484[_0x55d81c(0xe4)],'experience':_0x16e484[_0x55d81c(0xe0)],'karma':_0x16e484['karma'],'balance':{'$gt':_0x16e484[_0x55d81c(0xdf)]}}]});await _0x35f938[_0x55d81c(0xf2)][_0x55d81c(0xd4)]({'embed':{'color':_0x42200a[_0x55d81c(0xc8)]||tesseract_1[_0x55d81c(0xda)][_0x55d81c(0xd8)][_0x55d81c(0xcc)],'author':{'name':_0x852b1f['user'][_0x55d81c(0xc7)]},'title':_0x55d81c(0xce)+(_0x2d97f5+0x1),'description':this[_0x55d81c(0xe5)]['locale'][_0x55d81c(0xdc)](_0x35f938[_0x55d81c(0xf1)]['document']['language'],'info',_0x55d81c(0xd3)),'fields':[{'name':_0x55d81c(0xea),'value':_0x16e484[_0x55d81c(0xe4)],'inline':!![]},{'name':_0x55d81c(0xde),'value':_0x16e484[_0x55d81c(0xe0)],'inline':!![]},{'name':'Karma','value':_0x16e484['karma'],'inline':!![]}],'thumbnail':{'url':_0x852b1f['user'][_0x55d81c(0xdd)]({'dynamic':!![],'size':0x200})}}})[_0x55d81c(0xe2)](()=>{});};}}; \ No newline at end of file diff --git a/commands/profile/referral.js b/commands/profile/referral.js index ab0cc2b17..d4d4cf77a 100644 --- a/commands/profile/referral.js +++ b/commands/profile/referral.js @@ -1 +1 @@ -const a136_0x1bc4=['../../models/Role','errors','DiscordError','IRIS','Command','claim','test','exec','../../utils/errors','../../models/Member','ERROR','Referral\x20Invite','save','COLORS','findOne','Constants','tag','send','default','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channels','referralsChannel','uses','code','client','Uses','document','map','apply','noReferralRewards','url','find','language','referral','cache','Referral\x20invite\x20generated\x20for\x20','fetchInvites','member','It\x20allows\x20you\x20to\x20see\x20your\x20referral\x20invite\x20that\x20you\x20can\x20use\x20to\x20invite\x20people\x20to\x20the\x20server\x20and\x20increase\x20your\x20referral\x20points.\x20It\x20can\x20also\x20be\x20used\x20to\x20claim\x20your\x20referral\x20rewards\x20set\x20by\x20the\x20server\x20managers.','referralRewardsClaim','BASTION_ERROR_TYPE','channel','getString','locale','get','guild','author','createInvite','roles','add'];(function(_0x19d5c3,_0x43b74d){const _0x1bc415=function(_0x2066dc){while(--_0x2066dc){_0x19d5c3['push'](_0x19d5c3['shift']());}},_0x592c6d=function(){const _0xa3fe9d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x193a04,_0x528e6c,_0x30d6d4,_0x3fe878){_0x3fe878=_0x3fe878||{};let _0x3252d4=_0x528e6c+'='+_0x30d6d4,_0x3cfc86=0x0;for(let _0x3203bc=0x0,_0x127611=_0x193a04['length'];_0x3203bc<_0x127611;_0x3203bc++){const _0x120dfc=_0x193a04[_0x3203bc];_0x3252d4+=';\x20'+_0x120dfc;const _0x2eecdf=_0x193a04[_0x120dfc];_0x193a04['push'](_0x2eecdf),_0x127611=_0x193a04['length'],_0x2eecdf!==!![]&&(_0x3252d4+='='+_0x2eecdf);}_0x3fe878['cookie']=_0x3252d4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1fd155,_0x251401){_0x1fd155=_0x1fd155||function(_0x35f286){return _0x35f286;};const _0x551225=_0x1fd155(new RegExp('(?:^|;\x20)'+_0x251401['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x55fbfb=function(_0x1a9533,_0x6dc411){_0x1a9533(++_0x6dc411);};return _0x55fbfb(_0x1bc415,_0x43b74d),_0x551225?decodeURIComponent(_0x551225[0x1]):undefined;}},_0x356acd=function(){const _0x2bc4e7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2bc4e7['test'](_0xa3fe9d['removeCookie']['toString']());};_0xa3fe9d['updateCookie']=_0x356acd;let _0x1516ac='';const _0x494c23=_0xa3fe9d['updateCookie']();if(!_0x494c23)_0xa3fe9d['setCookie'](['*'],'counter',0x1);else _0x494c23?_0x1516ac=_0xa3fe9d['getCookie'](null,'counter'):_0xa3fe9d['removeCookie']();};_0x592c6d();}(a136_0x1bc4,0xf0));const a136_0x592c=function(_0x19d5c3,_0x43b74d){_0x19d5c3=_0x19d5c3-0x1b2;let _0x1bc415=a136_0x1bc4[_0x19d5c3];return _0x1bc415;};const _0x15c618=a136_0x592c,a136_0x356acd=function(){let _0x494c23=!![];return function(_0x193a04,_0x528e6c){const _0x30d6d4=_0x494c23?function(){const _0xc25951=a136_0x592c;if(_0x528e6c){const _0x3fe878=_0x528e6c[_0xc25951(0x1de)](_0x193a04,arguments);return _0x528e6c=null,_0x3fe878;}}:function(){};return _0x494c23=![],_0x30d6d4;};}(),a136_0xa3fe9d=a136_0x356acd(this,function(){const _0x3252d4=function(){const _0x4e0d79=a136_0x592c,_0x3cfc86=_0x3252d4[_0x4e0d79(0x1d4)](_0x4e0d79(0x1d5))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3cfc86[_0x4e0d79(0x1c7)](a136_0xa3fe9d);};return _0x3252d4();});a136_0xa3fe9d();'use strict';const tesseract_1=require('@bastion/tesseract'),Member_1=require(_0x15c618(0x1ca)),Role_1=require(_0x15c618(0x1c1)),errors=require(_0x15c618(0x1c9));module['exports']=class ReferralCommand extends tesseract_1[_0x15c618(0x1c5)]{constructor(){const _0x17dfe4=_0x15c618;super(_0x17dfe4(0x1e3),{'description':_0x17dfe4(0x1b5),'triggers':[],'arguments':{'boolean':['claim']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['referral','referral\x20--claim']}),this[_0x17dfe4(0x1c8)]=async(_0x3203bc,_0x127611)=>{const _0xf9a59c=_0x17dfe4,_0x120dfc=await Member_1[_0xf9a59c(0x1d3)][_0xf9a59c(0x1cf)]({'user':_0x3203bc[_0xf9a59c(0x1bd)]['id'],'guild':_0x3203bc[_0xf9a59c(0x1bc)]['id']});let _0x2eecdf;if(_0x120dfc[_0xf9a59c(0x1e3)]){const _0x1fd155=await _0x3203bc['guild'][_0xf9a59c(0x1b3)]();_0x2eecdf=_0x1fd155['get'](_0x120dfc[_0xf9a59c(0x1e3)]);}if(!_0x2eecdf){const _0x251401=_0x3203bc[_0xf9a59c(0x1bc)][_0xf9a59c(0x1d6)][_0xf9a59c(0x1e4)][_0xf9a59c(0x1bb)](_0x3203bc[_0xf9a59c(0x1bc)][_0xf9a59c(0x1dc)][_0xf9a59c(0x1d7)]);if(!_0x251401)throw new errors[(_0xf9a59c(0x1c3))](errors['BASTION_ERROR_TYPE'][_0xf9a59c(0x1cb)],this['client'][_0xf9a59c(0x1ba)][_0xf9a59c(0x1b9)](_0x3203bc[_0xf9a59c(0x1bc)]['document'][_0xf9a59c(0x1e2)],_0xf9a59c(0x1c2),'noReferralsChannel'));_0x2eecdf=await _0x251401[_0xf9a59c(0x1be)]({'reason':_0xf9a59c(0x1b2)+_0x3203bc[_0xf9a59c(0x1bd)][_0xf9a59c(0x1d1)],'temporary':![],'maxAge':0x0,'maxUses':0x0,'unique':!![]}),_0x120dfc[_0xf9a59c(0x1e3)]=_0x2eecdf[_0xf9a59c(0x1d9)],await _0x120dfc[_0xf9a59c(0x1cd)]();}if(_0x127611[_0xf9a59c(0x1c6)]){const _0x551225=await Role_1['default'][_0xf9a59c(0x1e1)]({'guild':_0x3203bc[_0xf9a59c(0x1bc)]['id'],'referrals':{'$lte':_0x2eecdf[_0xf9a59c(0x1d8)]}});if(!_0x551225['length'])throw new errors[(_0xf9a59c(0x1c3))](errors[_0xf9a59c(0x1b7)][_0xf9a59c(0x1cb)],this[_0xf9a59c(0x1da)][_0xf9a59c(0x1ba)][_0xf9a59c(0x1b9)](_0x3203bc[_0xf9a59c(0x1bc)][_0xf9a59c(0x1dc)][_0xf9a59c(0x1e2)],_0xf9a59c(0x1c2),_0xf9a59c(0x1df),_0x2eecdf[_0xf9a59c(0x1d8)]));await _0x3203bc[_0xf9a59c(0x1b4)][_0xf9a59c(0x1bf)][_0xf9a59c(0x1c0)](_0x551225[_0xf9a59c(0x1dd)](_0x55fbfb=>_0x55fbfb['id'])),await _0x3203bc[_0xf9a59c(0x1b8)][_0xf9a59c(0x1d2)]({'embed':{'color':tesseract_1['Constants'][_0xf9a59c(0x1ce)][_0xf9a59c(0x1c4)],'title':'Referral\x20Reward\x20Claimed','description':this[_0xf9a59c(0x1da)][_0xf9a59c(0x1ba)][_0xf9a59c(0x1b9)](_0x3203bc[_0xf9a59c(0x1bc)][_0xf9a59c(0x1dc)][_0xf9a59c(0x1e2)],'info',_0xf9a59c(0x1b6),_0x3203bc[_0xf9a59c(0x1bd)][_0xf9a59c(0x1d1)],_0x2eecdf[_0xf9a59c(0x1d8)])}});}else await _0x3203bc[_0xf9a59c(0x1b8)]['send']({'embed':{'color':tesseract_1[_0xf9a59c(0x1d0)][_0xf9a59c(0x1ce)][_0xf9a59c(0x1c4)],'title':_0xf9a59c(0x1cc),'description':_0x2eecdf[_0xf9a59c(0x1e0)],'fields':[{'name':'Code','value':_0x2eecdf[_0xf9a59c(0x1d9)],'inline':!![]},{'name':_0xf9a59c(0x1db),'value':(_0x2eecdf[_0xf9a59c(0x1d8)]||0x0)['toLocaleString'](),'inline':!![]}]}});};}}; \ No newline at end of file +const a137_0x66b2=['@bastion/tesseract','add','tag','Referral\x20invite\x20generated\x20for\x20','ERROR','member','send','client','errors','test','../../models/Role','referral','toLocaleString','../../utils/errors','save','referralRewardsClaim','roles','It\x20allows\x20you\x20to\x20see\x20your\x20referral\x20invite\x20that\x20you\x20can\x20use\x20to\x20invite\x20people\x20to\x20the\x20server\x20and\x20increase\x20your\x20referral\x20points.\x20It\x20can\x20also\x20be\x20used\x20to\x20claim\x20your\x20referral\x20rewards\x20set\x20by\x20the\x20server\x20managers.','default','Uses','Code','exports','Referral\x20Invite','DiscordError','COLORS','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Referral\x20Reward\x20Claimed','get','../../models/Member','code','locale','createInvite','claim','uses','Command','url','Constants','getString','referralsChannel','author','map','return\x20/\x22\x20+\x20this\x20+\x20\x22/','language','document','find','apply','IRIS','BASTION_ERROR_TYPE','guild','channel','constructor'];(function(_0x3265a3,_0x44f860){const _0x66b2bf=function(_0x5f1ded){while(--_0x5f1ded){_0x3265a3['push'](_0x3265a3['shift']());}},_0x270e19=function(){const _0x2a1cff={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x28a78b,_0x22482c,_0xe98c6d,_0x51413a){_0x51413a=_0x51413a||{};let _0x464d59=_0x22482c+'='+_0xe98c6d,_0x5e4939=0x0;for(let _0x4c58a5=0x0,_0x355624=_0x28a78b['length'];_0x4c58a5<_0x355624;_0x4c58a5++){const _0x264687=_0x28a78b[_0x4c58a5];_0x464d59+=';\x20'+_0x264687;const _0x25887d=_0x28a78b[_0x264687];_0x28a78b['push'](_0x25887d),_0x355624=_0x28a78b['length'],_0x25887d!==!![]&&(_0x464d59+='='+_0x25887d);}_0x51413a['cookie']=_0x464d59;},'removeCookie':function(){return'dev';},'getCookie':function(_0x48699d,_0x73f419){_0x48699d=_0x48699d||function(_0x3dc1a2){return _0x3dc1a2;};const _0x413bc0=_0x48699d(new RegExp('(?:^|;\x20)'+_0x73f419['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x31c8ba=function(_0x2a5393,_0x2c225c){_0x2a5393(++_0x2c225c);};return _0x31c8ba(_0x66b2bf,_0x44f860),_0x413bc0?decodeURIComponent(_0x413bc0[0x1]):undefined;}},_0x3cccd1=function(){const _0x5b7b6b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b7b6b['test'](_0x2a1cff['removeCookie']['toString']());};_0x2a1cff['updateCookie']=_0x3cccd1;let _0x3d9044='';const _0x1cb8ee=_0x2a1cff['updateCookie']();if(!_0x1cb8ee)_0x2a1cff['setCookie'](['*'],'counter',0x1);else _0x1cb8ee?_0x3d9044=_0x2a1cff['getCookie'](null,'counter'):_0x2a1cff['removeCookie']();};_0x270e19();}(a137_0x66b2,0x18f));const a137_0x270e=function(_0x3265a3,_0x44f860){_0x3265a3=_0x3265a3-0x1e3;let _0x66b2bf=a137_0x66b2[_0x3265a3];return _0x66b2bf;};const a137_0x53683d=a137_0x270e,a137_0x3cccd1=function(){let _0x1cb8ee=!![];return function(_0x28a78b,_0x22482c){const _0xe98c6d=_0x1cb8ee?function(){const _0x25f2c4=a137_0x270e;if(_0x22482c){const _0x51413a=_0x22482c[_0x25f2c4(0x1ee)](_0x28a78b,arguments);return _0x22482c=null,_0x51413a;}}:function(){};return _0x1cb8ee=![],_0xe98c6d;};}(),a137_0x2a1cff=a137_0x3cccd1(this,function(){const _0x464d59=function(){const _0x5b1bcc=a137_0x270e,_0x5e4939=_0x464d59[_0x5b1bcc(0x1f3)](_0x5b1bcc(0x1ea))()[_0x5b1bcc(0x1f3)](_0x5b1bcc(0x20e));return!_0x5e4939[_0x5b1bcc(0x1fd)](a137_0x2a1cff);};return _0x464d59();});a137_0x2a1cff();'use strict';const tesseract_1=require(a137_0x53683d(0x1f4)),Member_1=require(a137_0x53683d(0x211)),Role_1=require(a137_0x53683d(0x1fe)),errors=require(a137_0x53683d(0x201));module[a137_0x53683d(0x209)]=class ReferralCommand extends tesseract_1[a137_0x53683d(0x1e3)]{constructor(){const _0x4e8a5b=a137_0x53683d;super(_0x4e8a5b(0x1ff),{'description':_0x4e8a5b(0x205),'triggers':[],'arguments':{'boolean':[_0x4e8a5b(0x215)]},'scope':_0x4e8a5b(0x1f1),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4e8a5b(0x1ff),'referral\x20--claim']}),this['exec']=async(_0x4c58a5,_0x355624)=>{const _0x2b112a=_0x4e8a5b,_0x264687=await Member_1[_0x2b112a(0x206)]['findOne']({'user':_0x4c58a5[_0x2b112a(0x1e8)]['id'],'guild':_0x4c58a5[_0x2b112a(0x1f1)]['id']});let _0x25887d;if(_0x264687[_0x2b112a(0x1ff)]){const _0x48699d=await _0x4c58a5[_0x2b112a(0x1f1)]['fetchInvites']();_0x25887d=_0x48699d[_0x2b112a(0x210)](_0x264687[_0x2b112a(0x1ff)]);}if(!_0x25887d){const _0x73f419=_0x4c58a5['guild']['channels']['cache'][_0x2b112a(0x210)](_0x4c58a5[_0x2b112a(0x1f1)][_0x2b112a(0x1ec)][_0x2b112a(0x1e7)]);if(!_0x73f419)throw new errors[(_0x2b112a(0x20b))](errors[_0x2b112a(0x1f0)][_0x2b112a(0x1f8)],this[_0x2b112a(0x1fb)][_0x2b112a(0x213)][_0x2b112a(0x1e6)](_0x4c58a5[_0x2b112a(0x1f1)][_0x2b112a(0x1ec)][_0x2b112a(0x1eb)],_0x2b112a(0x1fc),'noReferralsChannel'));_0x25887d=await _0x73f419[_0x2b112a(0x214)]({'reason':_0x2b112a(0x1f7)+_0x4c58a5[_0x2b112a(0x1e8)][_0x2b112a(0x1f6)],'temporary':![],'maxAge':0x0,'maxUses':0x0,'unique':!![]}),_0x264687[_0x2b112a(0x1ff)]=_0x25887d[_0x2b112a(0x212)],await _0x264687[_0x2b112a(0x202)]();}if(_0x355624[_0x2b112a(0x215)]){const _0x413bc0=await Role_1[_0x2b112a(0x206)][_0x2b112a(0x1ed)]({'guild':_0x4c58a5[_0x2b112a(0x1f1)]['id'],'referrals':{'$lte':_0x25887d[_0x2b112a(0x216)]}});if(!_0x413bc0['length'])throw new errors[(_0x2b112a(0x20b))](errors[_0x2b112a(0x1f0)][_0x2b112a(0x1f8)],this[_0x2b112a(0x1fb)][_0x2b112a(0x213)][_0x2b112a(0x1e6)](_0x4c58a5[_0x2b112a(0x1f1)][_0x2b112a(0x1ec)][_0x2b112a(0x1eb)],_0x2b112a(0x1fc),'noReferralRewards',_0x25887d['uses']));await _0x4c58a5[_0x2b112a(0x1f9)][_0x2b112a(0x204)][_0x2b112a(0x1f5)](_0x413bc0[_0x2b112a(0x1e9)](_0x31c8ba=>_0x31c8ba['id'])),await _0x4c58a5['channel']['send']({'embed':{'color':tesseract_1[_0x2b112a(0x1e5)]['COLORS'][_0x2b112a(0x1ef)],'title':_0x2b112a(0x20f),'description':this[_0x2b112a(0x1fb)][_0x2b112a(0x213)][_0x2b112a(0x1e6)](_0x4c58a5['guild'][_0x2b112a(0x1ec)][_0x2b112a(0x1eb)],_0x2b112a(0x20d),_0x2b112a(0x203),_0x4c58a5[_0x2b112a(0x1e8)][_0x2b112a(0x1f6)],_0x25887d[_0x2b112a(0x216)])}});}else await _0x4c58a5[_0x2b112a(0x1f2)][_0x2b112a(0x1fa)]({'embed':{'color':tesseract_1[_0x2b112a(0x1e5)][_0x2b112a(0x20c)]['IRIS'],'title':_0x2b112a(0x20a),'description':_0x25887d[_0x2b112a(0x1e4)],'fields':[{'name':_0x2b112a(0x208),'value':_0x25887d[_0x2b112a(0x212)],'inline':!![]},{'name':_0x2b112a(0x207),'value':(_0x25887d[_0x2b112a(0x216)]||0x0)[_0x2b112a(0x200)](),'inline':!![]}]}});};}}; \ No newline at end of file diff --git a/commands/searches/anime.js b/commands/searches/anime.js index 0308321ce..5e8f47cec 100644 --- a/commands/searches/anime.js +++ b/commands/searches/anime.js @@ -1 +1 @@ -const a137_0x5e7a=['channel','synopsis','constructor','original','join','BASTION_ERROR_TYPE','Finished','ageRating','send','nsfw','posterImage','COLORS','[NSFW]','Aired','slug','/kitsu/anime/','\x0a...','json','anime','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','\x20-\x20Present','data','INVALID_COMMAND_SYNTAX','anime\x20TITLE','Status','exports','Airing','DiscordError','../../utils/errors','attributes','\x20-\x20','Command','makeRequest','startDate','apply','name','length','endDate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','titles','../../utils/omnic','https://kitsu.io/anime/','exec','values','test'];(function(_0x43e8b2,_0x1eb36d){const _0x5e7a7c=function(_0x187b36){while(--_0x187b36){_0x43e8b2['push'](_0x43e8b2['shift']());}},_0x4897e4=function(){const _0x30c44e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f5762,_0x3aca32,_0x357e05,_0xdaef5d){_0xdaef5d=_0xdaef5d||{};let _0xd3ade7=_0x3aca32+'='+_0x357e05,_0x57ca20=0x0;for(let _0x6c8895=0x0,_0x2d8216=_0x4f5762['length'];_0x6c8895<_0x2d8216;_0x6c8895++){const _0x33aa0c=_0x4f5762[_0x6c8895];_0xd3ade7+=';\x20'+_0x33aa0c;const _0x41d11d=_0x4f5762[_0x33aa0c];_0x4f5762['push'](_0x41d11d),_0x2d8216=_0x4f5762['length'],_0x41d11d!==!![]&&(_0xd3ade7+='='+_0x41d11d);}_0xdaef5d['cookie']=_0xd3ade7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x23e5c8,_0x2cdaae){_0x23e5c8=_0x23e5c8||function(_0x3907d8){return _0x3907d8;};const _0xf5cd88=_0x23e5c8(new RegExp('(?:^|;\x20)'+_0x2cdaae['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d7931=function(_0xc98730,_0x13f3d8){_0xc98730(++_0x13f3d8);};return _0x5d7931(_0x5e7a7c,_0x1eb36d),_0xf5cd88?decodeURIComponent(_0xf5cd88[0x1]):undefined;}},_0x528077=function(){const _0x1d5263=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1d5263['test'](_0x30c44e['removeCookie']['toString']());};_0x30c44e['updateCookie']=_0x528077;let _0x66119a='';const _0x34770f=_0x30c44e['updateCookie']();if(!_0x34770f)_0x30c44e['setCookie'](['*'],'counter',0x1);else _0x34770f?_0x66119a=_0x30c44e['getCookie'](null,'counter'):_0x30c44e['removeCookie']();};_0x4897e4();}(a137_0x5e7a,0x1e8));const a137_0x4897=function(_0x43e8b2,_0x1eb36d){_0x43e8b2=_0x43e8b2-0xe6;let _0x5e7a7c=a137_0x5e7a[_0x43e8b2];return _0x5e7a7c;};const _0x356d96=a137_0x4897,a137_0x528077=function(){let _0x34770f=!![];return function(_0x4f5762,_0x3aca32){const _0x357e05=_0x34770f?function(){const _0x543989=a137_0x4897;if(_0x3aca32){const _0xdaef5d=_0x3aca32[_0x543989(0xed)](_0x4f5762,arguments);return _0x3aca32=null,_0xdaef5d;}}:function(){};return _0x34770f=![],_0x357e05;};}(),a137_0x30c44e=a137_0x528077(this,function(){const _0xd3ade7=function(){const _0x3db54c=a137_0x4897,_0x57ca20=_0xd3ade7[_0x3db54c(0xfa)](_0x3db54c(0x10c))()[_0x3db54c(0xfa)](_0x3db54c(0xf1));return!_0x57ca20[_0x3db54c(0xf7)](a137_0x30c44e);};return _0xd3ade7();});a137_0x30c44e();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(_0x356d96(0xe7)),omnic=require(_0x356d96(0xf3));module[_0x356d96(0x112)]=class AnimeCommand extends tesseract_1[_0x356d96(0xea)]{constructor(){const _0x2a7f68=_0x356d96;super(_0x2a7f68(0x10a),{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20anime.','triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2a7f68(0x110)]}),this['sanitize']=_0x6c8895=>{const _0x45ec72=_0x2a7f68;return _0x6c8895[_0x45ec72(0xef)]>0x7d0?_0x6c8895['slice'](0x0,0x7d0)+_0x45ec72(0x108):_0x6c8895;},this[_0x2a7f68(0xf5)]=async(_0x2d8216,_0x33aa0c)=>{const _0x339ee9=_0x2a7f68;if(!_0x33aa0c['_'][_0x339ee9(0xef)])throw new errors[(_0x339ee9(0xe6))](errors[_0x339ee9(0xfd)][_0x339ee9(0x10f)],this[_0x339ee9(0xee)]);const _0x41d11d=_0x33aa0c['_'][_0x339ee9(0xfc)]('\x20'),_0x23e5c8=await omnic[_0x339ee9(0xeb)](_0x339ee9(0x107)+encodeURIComponent(_0x41d11d)),_0x2cdaae=await _0x23e5c8[_0x339ee9(0x109)]();if(!_0x2cdaae||!_0x2cdaae[_0x339ee9(0x10e)]||!_0x2cdaae['data'][_0x339ee9(0xef)])throw new Error('NOT_FOUND');await _0x2d8216[_0x339ee9(0xf8)][_0x339ee9(0x100)]({'embed':{'color':tesseract_1[_0x339ee9(0x10b)][_0x339ee9(0x103)]['IRIS'],'author':{'name':'Anime'},'title':Object[_0x339ee9(0xf6)](_0x2cdaae['data'][0x0][_0x339ee9(0xe8)][_0x339ee9(0xf2)])[0x0],'url':_0x339ee9(0xf4)+_0x2cdaae['data'][0x0][_0x339ee9(0xe8)][_0x339ee9(0x106)],'description':this['sanitize'](_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)][_0x339ee9(0xf9)]),'fields':[{'name':_0x339ee9(0x111),'value':_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)][_0x339ee9(0xf0)]?_0x339ee9(0xfe):_0x339ee9(0x113),'inline':!![]},{'name':_0x339ee9(0x105),'value':_0x2cdaae['data'][0x0]['attributes'][_0x339ee9(0xf0)]?_0x2cdaae['data'][0x0]['attributes'][_0x339ee9(0xec)]+'\x20-\x20'+_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)][_0x339ee9(0xf0)]:_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)]['startDate']+_0x339ee9(0x10d),'inline':!![]},{'name':'Rating','value':_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)][_0x339ee9(0xff)]+_0x339ee9(0xe9)+_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)]['ageRatingGuide']+'\x20'+(_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)][_0x339ee9(0x101)]?_0x339ee9(0x104):''),'inline':!![]}],'image':{'url':_0x2cdaae[_0x339ee9(0x10e)][0x0][_0x339ee9(0xe8)][_0x339ee9(0x102)][_0x339ee9(0xfb)]},'footer':{'text':'Powered\x20by\x20Kitsu'}}});};}}; \ No newline at end of file +const a138_0x5388=['ageRatingGuide','nsfw','[NSFW]','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','\x0a...','anime\x20TITLE','apply','/kitsu/anime/','anime','Rating','../../utils/omnic','slice','guild','exec','ageRating','Airing','\x20-\x20','COLORS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','makeRequest','../../utils/errors','original','exports','\x20-\x20Present','startDate','send','join','synopsis','Aired','https://kitsu.io/anime/','Finished','endDate','posterImage','data','Constants','IRIS','Anime','name','constructor','@bastion/tesseract','attributes','titles'];(function(_0x57162a,_0x5deabe){const _0x538824=function(_0x3cc27e){while(--_0x3cc27e){_0x57162a['push'](_0x57162a['shift']());}},_0x4474db=function(){const _0x17247d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4ed282,_0x8afabb,_0x4c3eb4,_0xab9001){_0xab9001=_0xab9001||{};let _0xf892bc=_0x8afabb+'='+_0x4c3eb4,_0x3af6ed=0x0;for(let _0x69969b=0x0,_0x28bb31=_0x4ed282['length'];_0x69969b<_0x28bb31;_0x69969b++){const _0x51a6d6=_0x4ed282[_0x69969b];_0xf892bc+=';\x20'+_0x51a6d6;const _0x1bef79=_0x4ed282[_0x51a6d6];_0x4ed282['push'](_0x1bef79),_0x28bb31=_0x4ed282['length'],_0x1bef79!==!![]&&(_0xf892bc+='='+_0x1bef79);}_0xab9001['cookie']=_0xf892bc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1f0cb7,_0xd73136){_0x1f0cb7=_0x1f0cb7||function(_0x3d0c0e){return _0x3d0c0e;};const _0x2c098f=_0x1f0cb7(new RegExp('(?:^|;\x20)'+_0xd73136['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12b4b6=function(_0x3a9bf3,_0x3068b5){_0x3a9bf3(++_0x3068b5);};return _0x12b4b6(_0x538824,_0x5deabe),_0x2c098f?decodeURIComponent(_0x2c098f[0x1]):undefined;}},_0x29f650=function(){const _0x30fc9c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30fc9c['test'](_0x17247d['removeCookie']['toString']());};_0x17247d['updateCookie']=_0x29f650;let _0x457011='';const _0x4144d1=_0x17247d['updateCookie']();if(!_0x4144d1)_0x17247d['setCookie'](['*'],'counter',0x1);else _0x4144d1?_0x457011=_0x17247d['getCookie'](null,'counter'):_0x17247d['removeCookie']();};_0x4474db();}(a138_0x5388,0x148));const a138_0x4474=function(_0x57162a,_0x5deabe){_0x57162a=_0x57162a-0x16e;let _0x538824=a138_0x5388[_0x57162a];return _0x538824;};const a138_0x21f7ad=a138_0x4474,a138_0x29f650=function(){let _0x4144d1=!![];return function(_0x4ed282,_0x8afabb){const _0x4c3eb4=_0x4144d1?function(){const _0x3e4b51=a138_0x4474;if(_0x8afabb){const _0xab9001=_0x8afabb[_0x3e4b51(0x185)](_0x4ed282,arguments);return _0x8afabb=null,_0xab9001;}}:function(){};return _0x4144d1=![],_0x4c3eb4;};}(),a138_0x17247d=a138_0x29f650(this,function(){const _0xf892bc=function(){const _0x478eba=a138_0x4474,_0x3af6ed=_0xf892bc[_0x478eba(0x17a)](_0x478eba(0x191))()[_0x478eba(0x17a)](_0x478eba(0x181));return!_0x3af6ed['test'](a138_0x17247d);};return _0xf892bc();});a138_0x17247d();'use strict';const tesseract_1=require(a138_0x21f7ad(0x17b)),errors=require(a138_0x21f7ad(0x193)),omnic=require(a138_0x21f7ad(0x189));module[a138_0x21f7ad(0x195)]=class AnimeCommand extends tesseract_1['Command']{constructor(){const _0x104a37=a138_0x21f7ad;super(_0x104a37(0x187),{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20anime.','triggers':[],'arguments':{},'scope':_0x104a37(0x18b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x104a37(0x184)]}),this['sanitize']=_0x69969b=>{const _0x1d9b8c=_0x104a37;return _0x69969b[_0x1d9b8c(0x182)]>0x7d0?_0x69969b[_0x1d9b8c(0x18a)](0x0,0x7d0)+_0x1d9b8c(0x183):_0x69969b;},this[_0x104a37(0x18c)]=async(_0x28bb31,_0x51a6d6)=>{const _0x428de8=_0x104a37;if(!_0x51a6d6['_'][_0x428de8(0x182)])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[_0x428de8(0x179)]);const _0x1bef79=_0x51a6d6['_'][_0x428de8(0x16e)]('\x20'),_0x1f0cb7=await omnic[_0x428de8(0x192)](_0x428de8(0x186)+encodeURIComponent(_0x1bef79)),_0xd73136=await _0x1f0cb7['json']();if(!_0xd73136||!_0xd73136[_0x428de8(0x175)]||!_0xd73136[_0x428de8(0x175)][_0x428de8(0x182)])throw new Error('NOT_FOUND');await _0x28bb31['channel'][_0x428de8(0x198)]({'embed':{'color':tesseract_1[_0x428de8(0x176)][_0x428de8(0x190)][_0x428de8(0x177)],'author':{'name':_0x428de8(0x178)},'title':Object['values'](_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)][_0x428de8(0x17d)])[0x0],'url':_0x428de8(0x171)+_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)]['slug'],'description':this['sanitize'](_0xd73136['data'][0x0][_0x428de8(0x17c)][_0x428de8(0x16f)]),'fields':[{'name':'Status','value':_0xd73136['data'][0x0][_0x428de8(0x17c)][_0x428de8(0x173)]?_0x428de8(0x172):_0x428de8(0x18e),'inline':!![]},{'name':_0x428de8(0x170),'value':_0xd73136['data'][0x0]['attributes'][_0x428de8(0x173)]?_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)][_0x428de8(0x197)]+'\x20-\x20'+_0xd73136[_0x428de8(0x175)][0x0]['attributes'][_0x428de8(0x173)]:_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)]['startDate']+_0x428de8(0x196),'inline':!![]},{'name':_0x428de8(0x188),'value':_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)][_0x428de8(0x18d)]+_0x428de8(0x18f)+_0xd73136[_0x428de8(0x175)][0x0]['attributes'][_0x428de8(0x17e)]+'\x20'+(_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)][_0x428de8(0x17f)]?_0x428de8(0x180):''),'inline':!![]}],'image':{'url':_0xd73136[_0x428de8(0x175)][0x0][_0x428de8(0x17c)][_0x428de8(0x174)][_0x428de8(0x194)]},'footer':{'text':'Powered\x20by\x20Kitsu'}}});};}}; \ No newline at end of file diff --git a/commands/searches/apod.js b/commands/searches/apod.js index c656ea1c9..540f25d85 100644 --- a/commands/searches/apod.js +++ b/commands/searches/apod.js @@ -1 +1 @@ -const a138_0x393a=['Powered\x20by\x20NASA','title','copyright','@bastion/tesseract','guild','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.','COLORS','https://apod.nasa.gov/','hdurl','channel','constructor','Constants','exports','exec','url','json','Astronomy\x20Picture\x20of\x20the\x20Day','../../utils/omnic','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','makeRequest','/nasa/apod','date'];(function(_0x5c82ad,_0x59c85b){const _0x393a91=function(_0x2cdf0c){while(--_0x2cdf0c){_0x5c82ad['push'](_0x5c82ad['shift']());}},_0x2c39b2=function(){const _0x1e5964={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x98ec54,_0x470e25,_0x4d0f34,_0x41caa6){_0x41caa6=_0x41caa6||{};let _0x3cd1ba=_0x470e25+'='+_0x4d0f34,_0x9e296b=0x0;for(let _0x590524=0x0,_0x3bee0d=_0x98ec54['length'];_0x590524<_0x3bee0d;_0x590524++){const _0x130f10=_0x98ec54[_0x590524];_0x3cd1ba+=';\x20'+_0x130f10;const _0x5a11e3=_0x98ec54[_0x130f10];_0x98ec54['push'](_0x5a11e3),_0x3bee0d=_0x98ec54['length'],_0x5a11e3!==!![]&&(_0x3cd1ba+='='+_0x5a11e3);}_0x41caa6['cookie']=_0x3cd1ba;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ab648,_0x3ca8f7){_0x5ab648=_0x5ab648||function(_0x499e4e){return _0x499e4e;};const _0x5e899f=_0x5ab648(new RegExp('(?:^|;\x20)'+_0x3ca8f7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x157930=function(_0x2602ef,_0x5b1a90){_0x2602ef(++_0x5b1a90);};return _0x157930(_0x393a91,_0x59c85b),_0x5e899f?decodeURIComponent(_0x5e899f[0x1]):undefined;}},_0x2d7234=function(){const _0x8406e0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8406e0['test'](_0x1e5964['removeCookie']['toString']());};_0x1e5964['updateCookie']=_0x2d7234;let _0x31dbed='';const _0x4d0dd3=_0x1e5964['updateCookie']();if(!_0x4d0dd3)_0x1e5964['setCookie'](['*'],'counter',0x1);else _0x4d0dd3?_0x31dbed=_0x1e5964['getCookie'](null,'counter'):_0x1e5964['removeCookie']();};_0x2c39b2();}(a138_0x393a,0xf5));const a138_0x2c39=function(_0x5c82ad,_0x59c85b){_0x5c82ad=_0x5c82ad-0x83;let _0x393a91=a138_0x393a[_0x5c82ad];return _0x393a91;};const _0x155527=a138_0x2c39,a138_0x2d7234=function(){let _0x4d0dd3=!![];return function(_0x98ec54,_0x470e25){const _0x4d0f34=_0x4d0dd3?function(){if(_0x470e25){const _0x41caa6=_0x470e25['apply'](_0x98ec54,arguments);return _0x470e25=null,_0x41caa6;}}:function(){};return _0x4d0dd3=![],_0x4d0f34;};}(),a138_0x1e5964=a138_0x2d7234(this,function(){const _0x3cd1ba=function(){const _0x14db9e=a138_0x2c39,_0x9e296b=_0x3cd1ba['constructor'](_0x14db9e(0x90))()[_0x14db9e(0x88)](_0x14db9e(0x92));return!_0x9e296b[_0x14db9e(0x91)](a138_0x1e5964);};return _0x3cd1ba();});a138_0x1e5964();'use strict';const tesseract_1=require(_0x155527(0x99)),omnic=require(_0x155527(0x8f));module[_0x155527(0x8a)]=class APODCommand extends tesseract_1['Command']{constructor(){const _0x514dd4=_0x155527;super('apod',{'description':_0x514dd4(0x83),'triggers':[],'arguments':{},'scope':_0x514dd4(0x9a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x514dd4(0x8b)]=async _0x590524=>{const _0xc1eb67=_0x514dd4,_0x3bee0d=await omnic[_0xc1eb67(0x93)](_0xc1eb67(0x94)),_0x130f10=await _0x3bee0d[_0xc1eb67(0x8d)]();await _0x590524[_0xc1eb67(0x87)]['send']({'embed':{'color':tesseract_1[_0xc1eb67(0x89)][_0xc1eb67(0x84)]['IRIS'],'author':{'name':_0xc1eb67(0x8e),'url':_0xc1eb67(0x85)},'title':_0x130f10[_0xc1eb67(0x97)],'description':_0x130f10['explanation'],'image':{'url':_0x130f10[_0xc1eb67(0x86)]||_0x130f10[_0xc1eb67(0x8c)]},'footer':{'text':_0x130f10[_0xc1eb67(0x98)]?'©️'+_0x130f10[_0xc1eb67(0x98)]:_0xc1eb67(0x96)},'timestamp':new Date(_0x130f10[_0xc1eb67(0x95)])}});};}}; \ No newline at end of file +const a139_0x23ce=['url','Command','constructor','title','hdurl','test','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.','json','apod','Astronomy\x20Picture\x20of\x20the\x20Day','apply','send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','COLORS','copyright','makeRequest','@bastion/tesseract','Constants','../../utils/omnic','exports','https://apod.nasa.gov/','explanation','exec'];(function(_0xff1fd2,_0x30666b){const _0x23cebc=function(_0x155353){while(--_0x155353){_0xff1fd2['push'](_0xff1fd2['shift']());}},_0x38583d=function(){const _0x2c52da={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xab6a0,_0xa9779f,_0x501ee2,_0xcc123a){_0xcc123a=_0xcc123a||{};let _0x215163=_0xa9779f+'='+_0x501ee2,_0x12d42d=0x0;for(let _0x5e04ba=0x0,_0x4fe1b0=_0xab6a0['length'];_0x5e04ba<_0x4fe1b0;_0x5e04ba++){const _0x4df8b7=_0xab6a0[_0x5e04ba];_0x215163+=';\x20'+_0x4df8b7;const _0x1e398a=_0xab6a0[_0x4df8b7];_0xab6a0['push'](_0x1e398a),_0x4fe1b0=_0xab6a0['length'],_0x1e398a!==!![]&&(_0x215163+='='+_0x1e398a);}_0xcc123a['cookie']=_0x215163;},'removeCookie':function(){return'dev';},'getCookie':function(_0x18a8a0,_0x2aecf2){_0x18a8a0=_0x18a8a0||function(_0x27494a){return _0x27494a;};const _0x290a37=_0x18a8a0(new RegExp('(?:^|;\x20)'+_0x2aecf2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45a0d0=function(_0x130115,_0x18c79d){_0x130115(++_0x18c79d);};return _0x45a0d0(_0x23cebc,_0x30666b),_0x290a37?decodeURIComponent(_0x290a37[0x1]):undefined;}},_0x2bd089=function(){const _0x5518fd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5518fd['test'](_0x2c52da['removeCookie']['toString']());};_0x2c52da['updateCookie']=_0x2bd089;let _0x28c2e8='';const _0xf90430=_0x2c52da['updateCookie']();if(!_0xf90430)_0x2c52da['setCookie'](['*'],'counter',0x1);else _0xf90430?_0x28c2e8=_0x2c52da['getCookie'](null,'counter'):_0x2c52da['removeCookie']();};_0x38583d();}(a139_0x23ce,0x115));const a139_0x3858=function(_0xff1fd2,_0x30666b){_0xff1fd2=_0xff1fd2-0x13e;let _0x23cebc=a139_0x23ce[_0xff1fd2];return _0x23cebc;};const a139_0x19779d=a139_0x3858,a139_0x2bd089=function(){let _0xf90430=!![];return function(_0xab6a0,_0xa9779f){const _0x501ee2=_0xf90430?function(){const _0x5cbf07=a139_0x3858;if(_0xa9779f){const _0xcc123a=_0xa9779f[_0x5cbf07(0x147)](_0xab6a0,arguments);return _0xa9779f=null,_0xcc123a;}}:function(){};return _0xf90430=![],_0x501ee2;};}(),a139_0x2c52da=a139_0x2bd089(this,function(){const _0x215163=function(){const _0x28f533=a139_0x3858,_0x12d42d=_0x215163[_0x28f533(0x13f)](_0x28f533(0x149))()[_0x28f533(0x13f)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x12d42d[_0x28f533(0x142)](a139_0x2c52da);};return _0x215163();});a139_0x2c52da();'use strict';const tesseract_1=require(a139_0x19779d(0x14d)),omnic=require(a139_0x19779d(0x14f));module[a139_0x19779d(0x150)]=class APODCommand extends tesseract_1[a139_0x19779d(0x13e)]{constructor(){const _0x350774=a139_0x19779d;super(_0x350774(0x145),{'description':_0x350774(0x143),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[]}),this[_0x350774(0x153)]=async _0x5e04ba=>{const _0x4de033=_0x350774,_0x4fe1b0=await omnic[_0x4de033(0x14c)]('/nasa/apod'),_0x4df8b7=await _0x4fe1b0[_0x4de033(0x144)]();await _0x5e04ba['channel'][_0x4de033(0x148)]({'embed':{'color':tesseract_1[_0x4de033(0x14e)][_0x4de033(0x14a)]['IRIS'],'author':{'name':_0x4de033(0x146),'url':_0x4de033(0x151)},'title':_0x4df8b7[_0x4de033(0x140)],'description':_0x4df8b7[_0x4de033(0x152)],'image':{'url':_0x4df8b7[_0x4de033(0x141)]||_0x4df8b7[_0x4de033(0x154)]},'footer':{'text':_0x4df8b7[_0x4de033(0x14b)]?'©️'+_0x4df8b7[_0x4de033(0x14b)]:'Powered\x20by\x20NASA'},'timestamp':new Date(_0x4df8b7['date'])}});};}}; \ No newline at end of file diff --git a/commands/searches/covid19.js b/commands/searches/covid19.js index eafe9978a..9274ee1da 100644 --- a/commands/searches/covid19.js +++ b/commands/searches/covid19.js @@ -1 +1 @@ -const a139_0x4ca9=['name','Deaths','coronavirus','code','RED','COLORS','apply','test','join','data','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20global\x20and\x20regional\x20stats\x20on\x20COVID-19.','Case-Recovery\x20%','makeRequest','**\x20confirmed\x20cases\x20have\x20been\x20recorded\x20in\x20','Command','Active','covid19','https://coronavirus.traction.one','Get\x20more\x20details','Constants','deaths','exports','channel','recovered','toFixed','guild','The\x20first\x20case\x20of\x20the\x20new\x20Coronavirus\x20COVID-19\x20was\x20recorded\x20on\x2031\x20December\x20in\x20Wuhan,\x20China\x20(WHO).\x20Since\x20then,\x20**','/covid19/regions/','Regional\x20Stats\x20-\x20','confirmed','Recoveries','covid','[WHO\x20(World\x20Health\x20Organization)](https://www.who.int/emergencies/diseases/novel-coronavirus-2019)\x0a\x0aUse\x20the\x20`','\x20--help`\x20command\x20to\x20see\x20more\x20usage\x20of\x20this\x20command.','Case-Fatality\x20%','Confirmed','json','/covid19','COVID-19\x20Tracker','toLocaleString','covid19\x20REGION','exec','location','https://coronavirus.traction.one/regions/','constructor'];(function(_0x39a1a6,_0x2caec7){const _0x4ca967=function(_0x3a6de9){while(--_0x3a6de9){_0x39a1a6['push'](_0x39a1a6['shift']());}},_0x343f12=function(){const _0x42cf06={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3233dd,_0xfbede8,_0x2c3cba,_0x5033cf){_0x5033cf=_0x5033cf||{};let _0x2c829c=_0xfbede8+'='+_0x2c3cba,_0x10aa8f=0x0;for(let _0x117685=0x0,_0x4ae55f=_0x3233dd['length'];_0x117685<_0x4ae55f;_0x117685++){const _0x4c5f0b=_0x3233dd[_0x117685];_0x2c829c+=';\x20'+_0x4c5f0b;const _0x1fc556=_0x3233dd[_0x4c5f0b];_0x3233dd['push'](_0x1fc556),_0x4ae55f=_0x3233dd['length'],_0x1fc556!==!![]&&(_0x2c829c+='='+_0x1fc556);}_0x5033cf['cookie']=_0x2c829c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x385f41,_0x317e9a){_0x385f41=_0x385f41||function(_0x378435){return _0x378435;};const _0x38993c=_0x385f41(new RegExp('(?:^|;\x20)'+_0x317e9a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3e4de3=function(_0x4b33cf,_0x486965){_0x4b33cf(++_0x486965);};return _0x3e4de3(_0x4ca967,_0x2caec7),_0x38993c?decodeURIComponent(_0x38993c[0x1]):undefined;}},_0x48be07=function(){const _0x580777=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x580777['test'](_0x42cf06['removeCookie']['toString']());};_0x42cf06['updateCookie']=_0x48be07;let _0x4a54dc='';const _0x1dc273=_0x42cf06['updateCookie']();if(!_0x1dc273)_0x42cf06['setCookie'](['*'],'counter',0x1);else _0x1dc273?_0x4a54dc=_0x42cf06['getCookie'](null,'counter'):_0x42cf06['removeCookie']();};_0x343f12();}(a139_0x4ca9,0x117));const a139_0x343f=function(_0x39a1a6,_0x2caec7){_0x39a1a6=_0x39a1a6-0x7b;let _0x4ca967=a139_0x4ca9[_0x39a1a6];return _0x4ca967;};const _0x205049=a139_0x343f,a139_0x48be07=function(){let _0x1dc273=!![];return function(_0x3233dd,_0xfbede8){const _0x2c3cba=_0x1dc273?function(){const _0x5b8f14=a139_0x343f;if(_0xfbede8){const _0x5033cf=_0xfbede8[_0x5b8f14(0xa5)](_0x3233dd,arguments);return _0xfbede8=null,_0x5033cf;}}:function(){};return _0x1dc273=![],_0x2c3cba;};}(),a139_0x42cf06=a139_0x48be07(this,function(){const _0x2c829c=function(){const _0x40ab5a=a139_0x343f,_0x10aa8f=_0x2c829c[_0x40ab5a(0x9e)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x10aa8f[_0x40ab5a(0xa6)](a139_0x42cf06);};return _0x2c829c();});a139_0x42cf06();'use strict';const tesseract_1=require('@bastion/tesseract'),extraction=require('../../utils/extraction');module[_0x205049(0x87)]=class COVID19Command extends tesseract_1[_0x205049(0x80)]{constructor(){const _0xf49b02=_0x205049;super(_0xf49b02(0x82),{'description':_0xf49b02(0x7c),'triggers':[_0xf49b02(0x91),_0xf49b02(0xa1)],'arguments':{},'scope':_0xf49b02(0x8b),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xf49b02(0x82),_0xf49b02(0x9a)]}),this[_0xf49b02(0x9b)]=async(_0x117685,_0x4ae55f)=>{const _0x263bb4=_0xf49b02;if(_0x4ae55f['_']['length']){const _0x385f41=await extraction[_0x263bb4(0x7e)](_0x263bb4(0x8d)+_0x4ae55f['_'][_0x263bb4(0xa7)]('\x20')),_0x317e9a=await _0x385f41[_0x263bb4(0x96)]();return await _0x117685[_0x263bb4(0x88)]['send']({'embed':{'color':tesseract_1['Constants'][_0x263bb4(0xa4)][_0x263bb4(0xa3)],'author':{'name':'COVID-19\x20Tracker','url':_0x263bb4(0x83)},'title':_0x263bb4(0x8e)+_0x317e9a[_0x263bb4(0x9c)],'url':_0x263bb4(0x9d)+_0x317e9a[_0x263bb4(0xa2)],'description':_0x263bb4(0x8c)+_0x317e9a[_0x263bb4(0x8f)][_0x263bb4(0x99)]()+_0x263bb4(0x7f)+_0x317e9a[_0x263bb4(0x9c)]+'.','fields':[{'name':_0x263bb4(0x95),'value':_0x317e9a['confirmed'][_0x263bb4(0x99)](),'inline':!![]},{'name':_0x263bb4(0x90),'value':_0x317e9a[_0x263bb4(0x89)]['toLocaleString'](),'inline':!![]},{'name':_0x263bb4(0xa0),'value':_0x317e9a[_0x263bb4(0x86)][_0x263bb4(0x99)](),'inline':!![]},{'name':_0x263bb4(0x81),'value':(_0x317e9a[_0x263bb4(0x8f)]-_0x317e9a[_0x263bb4(0x89)]-_0x317e9a[_0x263bb4(0x86)])['toLocaleString'](),'inline':!![]},{'name':'Case-Recovery\x20%','value':(_0x317e9a[_0x263bb4(0x89)]/_0x317e9a[_0x263bb4(0x8f)]*0x64)[_0x263bb4(0x8a)](0x2)+'%','inline':!![]},{'name':_0x263bb4(0x94),'value':(_0x317e9a[_0x263bb4(0x86)]/_0x317e9a[_0x263bb4(0x8f)]*0x64)[_0x263bb4(0x8a)](0x2)+'%','inline':!![]},{'name':'Get\x20more\x20details','value':_0x263bb4(0x92)+this['name']+_0x263bb4(0x93)}],'footer':{'text':'Powered\x20by\x20COVID-19\x20Tracker'}}});}const _0x4c5f0b=await extraction['makeRequest'](_0x263bb4(0x97)),_0x1fc556=await _0x4c5f0b['json']();await _0x117685[_0x263bb4(0x88)]['send']({'embed':{'color':tesseract_1[_0x263bb4(0x85)][_0x263bb4(0xa4)][_0x263bb4(0xa3)],'author':{'name':_0x263bb4(0x98),'url':_0x263bb4(0x83)},'title':'Global\x20Stats','url':_0x263bb4(0x83),'description':'The\x20first\x20case\x20of\x20the\x20new\x20Coronavirus\x20COVID-19\x20was\x20recorded\x20on\x2031\x20December\x20in\x20Wuhan,\x20China\x20(WHO).\x20Since\x20then,\x20**'+_0x1fc556[_0x263bb4(0x7b)][_0x263bb4(0x8f)][_0x263bb4(0x99)]()+'**\x20confirmed\x20cases\x20have\x20been\x20recorded\x20worldwide.','fields':[{'name':_0x263bb4(0x95),'value':_0x1fc556['data']['confirmed'][_0x263bb4(0x99)](),'inline':!![]},{'name':_0x263bb4(0x90),'value':_0x1fc556[_0x263bb4(0x7b)][_0x263bb4(0x89)]['toLocaleString'](),'inline':!![]},{'name':_0x263bb4(0xa0),'value':_0x1fc556[_0x263bb4(0x7b)][_0x263bb4(0x86)]['toLocaleString'](),'inline':!![]},{'name':_0x263bb4(0x81),'value':(_0x1fc556[_0x263bb4(0x7b)][_0x263bb4(0x8f)]-_0x1fc556[_0x263bb4(0x7b)]['recovered']-_0x1fc556[_0x263bb4(0x7b)]['deaths'])[_0x263bb4(0x99)](),'inline':!![]},{'name':_0x263bb4(0x7d),'value':(_0x1fc556[_0x263bb4(0x7b)]['recovered']/_0x1fc556['data'][_0x263bb4(0x8f)]*0x64)['toFixed'](0x2)+'%','inline':!![]},{'name':_0x263bb4(0x94),'value':(_0x1fc556[_0x263bb4(0x7b)][_0x263bb4(0x86)]/_0x1fc556[_0x263bb4(0x7b)][_0x263bb4(0x8f)]*0x64)[_0x263bb4(0x8a)](0x2)+'%','inline':!![]},{'name':_0x263bb4(0x84),'value':_0x263bb4(0x92)+this[_0x263bb4(0x9f)]+_0x263bb4(0x93)}],'footer':{'text':'Powered\x20by\x20COVID-19\x20Tracker'},'timestamp':new Date(_0x1fc556['ts'])}});};}}; \ No newline at end of file +const a140_0x448c=['**\x20confirmed\x20cases\x20have\x20been\x20recorded\x20in\x20','confirmed','guild','Active','exports','Command','test','covid19','coronavirus','COVID-19\x20Tracker','RED','Confirmed','json','location','https://coronavirus.traction.one','constructor','\x20--help`\x20command\x20to\x20see\x20more\x20usage\x20of\x20this\x20command.','apply','Deaths','data','Case-Recovery\x20%','Recoveries','Constants','[WHO\x20(World\x20Health\x20Organization)](https://www.who.int/emergencies/diseases/novel-coronavirus-2019)\x0a\x0aUse\x20the\x20`','return\x20/\x22\x20+\x20this\x20+\x20\x22/','**\x20confirmed\x20cases\x20have\x20been\x20recorded\x20worldwide.','code','/covid19/regions/','recovered','exec','channel','It\x20allows\x20you\x20to\x20see\x20the\x20latest\x20global\x20and\x20regional\x20stats\x20on\x20COVID-19.','https://coronavirus.traction.one/regions/','toLocaleString','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','toFixed','COLORS','Regional\x20Stats\x20-\x20','covid19\x20REGION','@bastion/tesseract','../../utils/extraction','deaths','send','Get\x20more\x20details','length','Powered\x20by\x20COVID-19\x20Tracker','name'];(function(_0x49e2c6,_0x175dd3){const _0x448c2c=function(_0x1f9bd1){while(--_0x1f9bd1){_0x49e2c6['push'](_0x49e2c6['shift']());}},_0x3da06e=function(){const _0x14c65a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x380faf,_0x4c26f5,_0x326436,_0x2b2f93){_0x2b2f93=_0x2b2f93||{};let _0x157473=_0x4c26f5+'='+_0x326436,_0x36eae4=0x0;for(let _0x1e52c3=0x0,_0x112726=_0x380faf['length'];_0x1e52c3<_0x112726;_0x1e52c3++){const _0x460eb4=_0x380faf[_0x1e52c3];_0x157473+=';\x20'+_0x460eb4;const _0x1e1b12=_0x380faf[_0x460eb4];_0x380faf['push'](_0x1e1b12),_0x112726=_0x380faf['length'],_0x1e1b12!==!![]&&(_0x157473+='='+_0x1e1b12);}_0x2b2f93['cookie']=_0x157473;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a6ccf,_0x34f941){_0x5a6ccf=_0x5a6ccf||function(_0xbb64ec){return _0xbb64ec;};const _0x128545=_0x5a6ccf(new RegExp('(?:^|;\x20)'+_0x34f941['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xc0c0f3=function(_0x50c05a,_0x318062){_0x50c05a(++_0x318062);};return _0xc0c0f3(_0x448c2c,_0x175dd3),_0x128545?decodeURIComponent(_0x128545[0x1]):undefined;}},_0x1fcf3f=function(){const _0x2e9c0d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e9c0d['test'](_0x14c65a['removeCookie']['toString']());};_0x14c65a['updateCookie']=_0x1fcf3f;let _0x530463='';const _0x1e3a79=_0x14c65a['updateCookie']();if(!_0x1e3a79)_0x14c65a['setCookie'](['*'],'counter',0x1);else _0x1e3a79?_0x530463=_0x14c65a['getCookie'](null,'counter'):_0x14c65a['removeCookie']();};_0x3da06e();}(a140_0x448c,0x1c8));const a140_0x3da0=function(_0x49e2c6,_0x175dd3){_0x49e2c6=_0x49e2c6-0xdc;let _0x448c2c=a140_0x448c[_0x49e2c6];return _0x448c2c;};const a140_0x2b4714=a140_0x3da0,a140_0x1fcf3f=function(){let _0x1e3a79=!![];return function(_0x380faf,_0x4c26f5){const _0x326436=_0x1e3a79?function(){const _0x2a7c72=a140_0x3da0;if(_0x4c26f5){const _0x2b2f93=_0x4c26f5[_0x2a7c72(0xfb)](_0x380faf,arguments);return _0x4c26f5=null,_0x2b2f93;}}:function(){};return _0x1e3a79=![],_0x326436;};}(),a140_0x14c65a=a140_0x1fcf3f(this,function(){const _0x157473=function(){const _0x38a7e2=a140_0x3da0,_0x36eae4=_0x157473[_0x38a7e2(0xf9)](_0x38a7e2(0x102))()[_0x38a7e2(0xf9)](_0x38a7e2(0xdd));return!_0x36eae4[_0x38a7e2(0xf0)](a140_0x14c65a);};return _0x157473();});a140_0x14c65a();'use strict';const tesseract_1=require(a140_0x2b4714(0xe2)),extraction=require(a140_0x2b4714(0xe3));module[a140_0x2b4714(0xee)]=class COVID19Command extends tesseract_1[a140_0x2b4714(0xef)]{constructor(){const _0x1a6825=a140_0x2b4714;super(_0x1a6825(0xf1),{'description':_0x1a6825(0x109),'triggers':['covid',_0x1a6825(0xf2)],'arguments':{},'scope':_0x1a6825(0xec),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['covid19',_0x1a6825(0xe1)]}),this[_0x1a6825(0x107)]=async(_0x1e52c3,_0x112726)=>{const _0x23ec94=_0x1a6825;if(_0x112726['_'][_0x23ec94(0xe7)]){const _0x5a6ccf=await extraction['makeRequest'](_0x23ec94(0x105)+_0x112726['_']['join']('\x20')),_0x34f941=await _0x5a6ccf[_0x23ec94(0xf6)]();return await _0x1e52c3[_0x23ec94(0x108)][_0x23ec94(0xe5)]({'embed':{'color':tesseract_1[_0x23ec94(0x100)][_0x23ec94(0xdf)][_0x23ec94(0xf4)],'author':{'name':_0x23ec94(0xf3),'url':_0x23ec94(0xf8)},'title':_0x23ec94(0xe0)+_0x34f941['location'],'url':_0x23ec94(0x10a)+_0x34f941[_0x23ec94(0x104)],'description':'The\x20first\x20case\x20of\x20the\x20new\x20Coronavirus\x20COVID-19\x20was\x20recorded\x20on\x2031\x20December\x20in\x20Wuhan,\x20China\x20(WHO).\x20Since\x20then,\x20**'+_0x34f941['confirmed'][_0x23ec94(0xdc)]()+_0x23ec94(0xea)+_0x34f941[_0x23ec94(0xf7)]+'.','fields':[{'name':_0x23ec94(0xf5),'value':_0x34f941[_0x23ec94(0xeb)][_0x23ec94(0xdc)](),'inline':!![]},{'name':_0x23ec94(0xff),'value':_0x34f941[_0x23ec94(0x106)][_0x23ec94(0xdc)](),'inline':!![]},{'name':_0x23ec94(0xfc),'value':_0x34f941[_0x23ec94(0xe4)][_0x23ec94(0xdc)](),'inline':!![]},{'name':_0x23ec94(0xed),'value':(_0x34f941['confirmed']-_0x34f941[_0x23ec94(0x106)]-_0x34f941[_0x23ec94(0xe4)])[_0x23ec94(0xdc)](),'inline':!![]},{'name':_0x23ec94(0xfe),'value':(_0x34f941[_0x23ec94(0x106)]/_0x34f941[_0x23ec94(0xeb)]*0x64)[_0x23ec94(0xde)](0x2)+'%','inline':!![]},{'name':'Case-Fatality\x20%','value':(_0x34f941['deaths']/_0x34f941[_0x23ec94(0xeb)]*0x64)[_0x23ec94(0xde)](0x2)+'%','inline':!![]},{'name':'Get\x20more\x20details','value':'[WHO\x20(World\x20Health\x20Organization)](https://www.who.int/emergencies/diseases/novel-coronavirus-2019)\x0a\x0aUse\x20the\x20`'+this[_0x23ec94(0xe9)]+_0x23ec94(0xfa)}],'footer':{'text':_0x23ec94(0xe8)}}});}const _0x460eb4=await extraction['makeRequest']('/covid19'),_0x1e1b12=await _0x460eb4[_0x23ec94(0xf6)]();await _0x1e52c3[_0x23ec94(0x108)][_0x23ec94(0xe5)]({'embed':{'color':tesseract_1[_0x23ec94(0x100)][_0x23ec94(0xdf)]['RED'],'author':{'name':_0x23ec94(0xf3),'url':_0x23ec94(0xf8)},'title':'Global\x20Stats','url':'https://coronavirus.traction.one','description':'The\x20first\x20case\x20of\x20the\x20new\x20Coronavirus\x20COVID-19\x20was\x20recorded\x20on\x2031\x20December\x20in\x20Wuhan,\x20China\x20(WHO).\x20Since\x20then,\x20**'+_0x1e1b12['data'][_0x23ec94(0xeb)][_0x23ec94(0xdc)]()+_0x23ec94(0x103),'fields':[{'name':'Confirmed','value':_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0xeb)][_0x23ec94(0xdc)](),'inline':!![]},{'name':'Recoveries','value':_0x1e1b12['data']['recovered']['toLocaleString'](),'inline':!![]},{'name':'Deaths','value':_0x1e1b12[_0x23ec94(0xfd)]['deaths']['toLocaleString'](),'inline':!![]},{'name':_0x23ec94(0xed),'value':(_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0xeb)]-_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0x106)]-_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0xe4)])['toLocaleString'](),'inline':!![]},{'name':_0x23ec94(0xfe),'value':(_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0x106)]/_0x1e1b12['data']['confirmed']*0x64)[_0x23ec94(0xde)](0x2)+'%','inline':!![]},{'name':'Case-Fatality\x20%','value':(_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0xe4)]/_0x1e1b12[_0x23ec94(0xfd)][_0x23ec94(0xeb)]*0x64)['toFixed'](0x2)+'%','inline':!![]},{'name':_0x23ec94(0xe6),'value':_0x23ec94(0x101)+this[_0x23ec94(0xe9)]+_0x23ec94(0xfa)}],'footer':{'text':_0x23ec94(0xe8)},'timestamp':new Date(_0x1e1b12['ts'])}});};}}; \ No newline at end of file diff --git a/commands/searches/cryptocurrency.js b/commands/searches/cryptocurrency.js index 46b47815f..863481c3d 100644 --- a/commands/searches/cryptocurrency.js +++ b/commands/searches/cryptocurrency.js @@ -1 +1 @@ -const a140_0x396f=['cryptocurrency','Cryptocurrency','exports','send','test','logo','error_code','name','../../utils/errors','cryptocurrency\x20SYMBOL','json','IRIS','Command','/currencies/crypto/','apply','error_message','values','../../utils/omnic','exec','@bastion/tesseract','constructor','length','channel','Powered\x20by\x20CoinMarketCap\x20•\x20Added','INVALID_COMMAND_SYNTAX','makeRequest','symbol','guild','BASTION_ERROR_TYPE','COLORS'];(function(_0x10fd64,_0x5f4a6e){const _0x396f0d=function(_0x508ff5){while(--_0x508ff5){_0x10fd64['push'](_0x10fd64['shift']());}},_0xa344e=function(){const _0x4908b6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4815b6,_0x588b0d,_0x487022,_0x4fa78e){_0x4fa78e=_0x4fa78e||{};let _0x3ba2d1=_0x588b0d+'='+_0x487022,_0x7f2400=0x0;for(let _0x215467=0x0,_0x15cc2d=_0x4815b6['length'];_0x215467<_0x15cc2d;_0x215467++){const _0x2018c4=_0x4815b6[_0x215467];_0x3ba2d1+=';\x20'+_0x2018c4;const _0x560af9=_0x4815b6[_0x2018c4];_0x4815b6['push'](_0x560af9),_0x15cc2d=_0x4815b6['length'],_0x560af9!==!![]&&(_0x3ba2d1+='='+_0x560af9);}_0x4fa78e['cookie']=_0x3ba2d1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3c24ca,_0x41202c){_0x3c24ca=_0x3c24ca||function(_0x2a3e66){return _0x2a3e66;};const _0xd4f910=_0x3c24ca(new RegExp('(?:^|;\x20)'+_0x41202c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x343563=function(_0x244b00,_0x3f1593){_0x244b00(++_0x3f1593);};return _0x343563(_0x396f0d,_0x5f4a6e),_0xd4f910?decodeURIComponent(_0xd4f910[0x1]):undefined;}},_0x42248e=function(){const _0x51d6db=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x51d6db['test'](_0x4908b6['removeCookie']['toString']());};_0x4908b6['updateCookie']=_0x42248e;let _0x261c94='';const _0x5f1c55=_0x4908b6['updateCookie']();if(!_0x5f1c55)_0x4908b6['setCookie'](['*'],'counter',0x1);else _0x5f1c55?_0x261c94=_0x4908b6['getCookie'](null,'counter'):_0x4908b6['removeCookie']();};_0xa344e();}(a140_0x396f,0x109));const a140_0xa344=function(_0x10fd64,_0x5f4a6e){_0x10fd64=_0x10fd64-0xc5;let _0x396f0d=a140_0x396f[_0x10fd64];return _0x396f0d;};const _0x25c661=a140_0xa344,a140_0x42248e=function(){let _0x5f1c55=!![];return function(_0x4815b6,_0x588b0d){const _0x487022=_0x5f1c55?function(){const _0x1b578d=a140_0xa344;if(_0x588b0d){const _0x4fa78e=_0x588b0d[_0x1b578d(0xd8)](_0x4815b6,arguments);return _0x588b0d=null,_0x4fa78e;}}:function(){};return _0x5f1c55=![],_0x487022;};}(),a140_0x4908b6=a140_0x42248e(this,function(){const _0x3ba2d1=function(){const _0x4b7be0=a140_0xa344,_0x7f2400=_0x3ba2d1[_0x4b7be0(0xde)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4b7be0(0xde)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x7f2400[_0x4b7be0(0xce)](a140_0x4908b6);};return _0x3ba2d1();});a140_0x4908b6();'use strict';const tesseract_1=require(_0x25c661(0xdd)),errors=require(_0x25c661(0xd2)),omnic=require(_0x25c661(0xdb));module[_0x25c661(0xcc)]=class CryptocurrencyCommand extends tesseract_1[_0x25c661(0xd6)]{constructor(){const _0x3426c9=_0x25c661;super(_0x3426c9(0xca),{'description':'It\x20allows\x20you\x20to\x20see\x20some\x20information\x20on\x20the\x20specified\x20cryptocurrency.','triggers':[],'arguments':{},'scope':_0x3426c9(0xc7),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3426c9(0xd3)]}),this[_0x3426c9(0xdc)]=async(_0x215467,_0x15cc2d)=>{const _0x1e25fd=_0x3426c9;if(!_0x15cc2d['_'][_0x1e25fd(0xdf)])throw new errors['DiscordError'](errors[_0x1e25fd(0xc8)][_0x1e25fd(0xe2)],this['name']);const _0x2018c4=_0x15cc2d['_']['join']('\x20'),_0x560af9=await omnic[_0x1e25fd(0xc5)](_0x1e25fd(0xd7)+encodeURIComponent(_0x2018c4)),{status:_0x3c24ca,data:_0x41202c}=await _0x560af9[_0x1e25fd(0xd4)]();if(_0x3c24ca[_0x1e25fd(0xd0)]!==0x0)throw new Error(_0x3c24ca[_0x1e25fd(0xd9)]);const _0xd4f910=Object[_0x1e25fd(0xda)](_0x41202c)[0x0];await _0x215467[_0x1e25fd(0xe0)][_0x1e25fd(0xcd)]({'embed':{'color':tesseract_1['Constants'][_0x1e25fd(0xc9)][_0x1e25fd(0xd5)],'author':{'name':_0x1e25fd(0xcb)},'title':_0xd4f910[_0x1e25fd(0xd1)]+'\x20('+_0xd4f910[_0x1e25fd(0xc6)]+')','description':_0xd4f910['description'],'thumbnail':{'url':_0xd4f910[_0x1e25fd(0xcf)]},'footer':{'text':_0x1e25fd(0xe1)},'timestamp':new Date(_0xd4f910['date_added'])}});};}}; \ No newline at end of file +const a141_0x366f=['send','return\x20/\x22\x20+\x20this\x20+\x20\x22/','error_message','constructor','BASTION_ERROR_TYPE','@bastion/tesseract','description','channel','cryptocurrency\x20SYMBOL','symbol','json','error_code','cryptocurrency','Powered\x20by\x20CoinMarketCap\x20•\x20Added','name','test','join','Command','values','date_added','logo','../../utils/errors','Constants','guild','exports','It\x20allows\x20you\x20to\x20see\x20some\x20information\x20on\x20the\x20specified\x20cryptocurrency.'];(function(_0x2614b4,_0x1aafb4){const _0x366f3e=function(_0x3b33e3){while(--_0x3b33e3){_0x2614b4['push'](_0x2614b4['shift']());}},_0x438f68=function(){const _0x5e2f2b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x278ae6,_0x21d3de,_0x190b70,_0x484ff2){_0x484ff2=_0x484ff2||{};let _0x4c4417=_0x21d3de+'='+_0x190b70,_0x3fb9ac=0x0;for(let _0xa6e8ff=0x0,_0x33028f=_0x278ae6['length'];_0xa6e8ff<_0x33028f;_0xa6e8ff++){const _0x317773=_0x278ae6[_0xa6e8ff];_0x4c4417+=';\x20'+_0x317773;const _0x19de20=_0x278ae6[_0x317773];_0x278ae6['push'](_0x19de20),_0x33028f=_0x278ae6['length'],_0x19de20!==!![]&&(_0x4c4417+='='+_0x19de20);}_0x484ff2['cookie']=_0x4c4417;},'removeCookie':function(){return'dev';},'getCookie':function(_0x37e48c,_0x2ac934){_0x37e48c=_0x37e48c||function(_0x5294ad){return _0x5294ad;};const _0x34ed35=_0x37e48c(new RegExp('(?:^|;\x20)'+_0x2ac934['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x484af3=function(_0xf40d43,_0x1ca6d9){_0xf40d43(++_0x1ca6d9);};return _0x484af3(_0x366f3e,_0x1aafb4),_0x34ed35?decodeURIComponent(_0x34ed35[0x1]):undefined;}},_0x18f793=function(){const _0x4e0784=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4e0784['test'](_0x5e2f2b['removeCookie']['toString']());};_0x5e2f2b['updateCookie']=_0x18f793;let _0x81bea='';const _0x35fdba=_0x5e2f2b['updateCookie']();if(!_0x35fdba)_0x5e2f2b['setCookie'](['*'],'counter',0x1);else _0x35fdba?_0x81bea=_0x5e2f2b['getCookie'](null,'counter'):_0x5e2f2b['removeCookie']();};_0x438f68();}(a141_0x366f,0xef));const a141_0x438f=function(_0x2614b4,_0x1aafb4){_0x2614b4=_0x2614b4-0x172;let _0x366f3e=a141_0x366f[_0x2614b4];return _0x366f3e;};const a141_0x135718=a141_0x438f,a141_0x18f793=function(){let _0x35fdba=!![];return function(_0x278ae6,_0x21d3de){const _0x190b70=_0x35fdba?function(){if(_0x21d3de){const _0x484ff2=_0x21d3de['apply'](_0x278ae6,arguments);return _0x21d3de=null,_0x484ff2;}}:function(){};return _0x35fdba=![],_0x190b70;};}(),a141_0x5e2f2b=a141_0x18f793(this,function(){const _0x4c4417=function(){const _0x165e5e=a141_0x438f,_0x3fb9ac=_0x4c4417['constructor'](_0x165e5e(0x188))()[_0x165e5e(0x18a)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3fb9ac[_0x165e5e(0x17c)](a141_0x5e2f2b);};return _0x4c4417();});a141_0x5e2f2b();'use strict';const tesseract_1=require(a141_0x135718(0x172)),errors=require(a141_0x135718(0x182)),omnic=require('../../utils/omnic');module[a141_0x135718(0x185)]=class CryptocurrencyCommand extends tesseract_1[a141_0x135718(0x17e)]{constructor(){const _0x17ec10=a141_0x135718;super(_0x17ec10(0x179),{'description':_0x17ec10(0x186),'triggers':[],'arguments':{},'scope':_0x17ec10(0x184),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x17ec10(0x175)]}),this['exec']=async(_0xa6e8ff,_0x33028f)=>{const _0x1dbed6=_0x17ec10;if(!_0x33028f['_']['length'])throw new errors['DiscordError'](errors[_0x1dbed6(0x18b)]['INVALID_COMMAND_SYNTAX'],this[_0x1dbed6(0x17b)]);const _0x317773=_0x33028f['_'][_0x1dbed6(0x17d)]('\x20'),_0x19de20=await omnic['makeRequest']('/currencies/crypto/'+encodeURIComponent(_0x317773)),{status:_0x37e48c,data:_0x2ac934}=await _0x19de20[_0x1dbed6(0x177)]();if(_0x37e48c[_0x1dbed6(0x178)]!==0x0)throw new Error(_0x37e48c[_0x1dbed6(0x189)]);const _0x34ed35=Object[_0x1dbed6(0x17f)](_0x2ac934)[0x0];await _0xa6e8ff[_0x1dbed6(0x174)][_0x1dbed6(0x187)]({'embed':{'color':tesseract_1[_0x1dbed6(0x183)]['COLORS']['IRIS'],'author':{'name':'Cryptocurrency'},'title':_0x34ed35[_0x1dbed6(0x17b)]+'\x20('+_0x34ed35[_0x1dbed6(0x176)]+')','description':_0x34ed35[_0x1dbed6(0x173)],'thumbnail':{'url':_0x34ed35[_0x1dbed6(0x181)]},'footer':{'text':_0x1dbed6(0x17a)},'timestamp':new Date(_0x34ed35[_0x1dbed6(0x180)])}});};}}; \ No newline at end of file diff --git a/commands/searches/game.js b/commands/searches/game.js index 56852b38e..ba3d88c62 100644 --- a/commands/searches/game.js +++ b/commands/searches/game.js @@ -1 +1 @@ -const a141_0x2715=['BASTION_ERROR_TYPE','cover','constructor','toFixed','game','version_title','slice','Constants','\x0a...','guild','INVALID_COMMAND_SYNTAX','summary','NOT_FOUND','../../utils/errors','test','first_release_date','channel','DiscordError','total_rating','toDateString','game\x20TITLE','Command','Rating','@bastion/tesseract','url','Powered\x20by\x20IGDB','return\x20/\x22\x20+\x20this\x20+\x20\x22/','IRIS','length','websites','name','sanitize','exec','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20game.','/games/search/','json'];(function(_0x5bece7,_0xba1dcc){const _0x2715f7=function(_0x5007f4){while(--_0x5007f4){_0x5bece7['push'](_0x5bece7['shift']());}},_0x5b6649=function(){const _0x3c58eb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4005f8,_0x45a39a,_0x37d983,_0x54e175){_0x54e175=_0x54e175||{};let _0xeaa84=_0x45a39a+'='+_0x37d983,_0x366398=0x0;for(let _0x8de346=0x0,_0x26cc5f=_0x4005f8['length'];_0x8de346<_0x26cc5f;_0x8de346++){const _0x235560=_0x4005f8[_0x8de346];_0xeaa84+=';\x20'+_0x235560;const _0x49c29e=_0x4005f8[_0x235560];_0x4005f8['push'](_0x49c29e),_0x26cc5f=_0x4005f8['length'],_0x49c29e!==!![]&&(_0xeaa84+='='+_0x49c29e);}_0x54e175['cookie']=_0xeaa84;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1bbbd9,_0x191557){_0x1bbbd9=_0x1bbbd9||function(_0x44f72f){return _0x44f72f;};const _0x4d8e48=_0x1bbbd9(new RegExp('(?:^|;\x20)'+_0x191557['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xbcf330=function(_0x254f25,_0x305a1f){_0x254f25(++_0x305a1f);};return _0xbcf330(_0x2715f7,_0xba1dcc),_0x4d8e48?decodeURIComponent(_0x4d8e48[0x1]):undefined;}},_0x3b338c=function(){const _0x30bf59=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30bf59['test'](_0x3c58eb['removeCookie']['toString']());};_0x3c58eb['updateCookie']=_0x3b338c;let _0x599b66='';const _0x2c45cc=_0x3c58eb['updateCookie']();if(!_0x2c45cc)_0x3c58eb['setCookie'](['*'],'counter',0x1);else _0x2c45cc?_0x599b66=_0x3c58eb['getCookie'](null,'counter'):_0x3c58eb['removeCookie']();};_0x5b6649();}(a141_0x2715,0x147));const a141_0x5b66=function(_0x5bece7,_0xba1dcc){_0x5bece7=_0x5bece7-0x1e7;let _0x2715f7=a141_0x2715[_0x5bece7];return _0x2715f7;};const _0x195a3b=a141_0x5b66,a141_0x3b338c=function(){let _0x2c45cc=!![];return function(_0x4005f8,_0x45a39a){const _0x37d983=_0x2c45cc?function(){if(_0x45a39a){const _0x54e175=_0x45a39a['apply'](_0x4005f8,arguments);return _0x45a39a=null,_0x54e175;}}:function(){};return _0x2c45cc=![],_0x37d983;};}(),a141_0x3c58eb=a141_0x3b338c(this,function(){const _0xeaa84=function(){const _0x1234a3=a141_0x5b66,_0x366398=_0xeaa84[_0x1234a3(0x20a)](_0x1234a3(0x1fe))()[_0x1234a3(0x20a)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x366398[_0x1234a3(0x1f2)](a141_0x3c58eb);};return _0xeaa84();});a141_0x3c58eb();'use strict';const tesseract_1=require(_0x195a3b(0x1fb)),errors=require(_0x195a3b(0x1f1)),omnic=require('../../utils/omnic');module['exports']=class GameCommand extends tesseract_1[_0x195a3b(0x1f9)]{constructor(){const _0x37c690=_0x195a3b;super(_0x37c690(0x1e8),{'description':_0x37c690(0x205),'triggers':[],'arguments':{},'scope':_0x37c690(0x1ed),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x37c690(0x1f8)]}),this[_0x37c690(0x203)]=_0x8de346=>{const _0x31c406=_0x37c690;return _0x8de346[_0x31c406(0x200)]>0x7d0?_0x8de346[_0x31c406(0x1ea)](0x0,0x7d0)+_0x31c406(0x1ec):_0x8de346;},this[_0x37c690(0x204)]=async(_0x26cc5f,_0x235560)=>{const _0x5401db=_0x37c690;if(!_0x235560['_']['length'])throw new errors[(_0x5401db(0x1f5))](errors[_0x5401db(0x208)][_0x5401db(0x1ee)],this[_0x5401db(0x202)]);const _0x49c29e=_0x235560['_']['join']('\x20'),_0x1bbbd9=await omnic['makeRequest'](_0x5401db(0x206)+_0x49c29e),_0x191557=await _0x1bbbd9[_0x5401db(0x207)]();if(!_0x191557[_0x5401db(0x200)])throw new Error(_0x5401db(0x1f0));await _0x26cc5f[_0x5401db(0x1f4)]['send']({'embed':{'color':tesseract_1[_0x5401db(0x1eb)]['COLORS'][_0x5401db(0x1ff)],'author':{'name':_0x191557[0x0][_0x5401db(0x1e9)]},'title':_0x191557[0x0][_0x5401db(0x202)],'url':_0x191557[0x0][_0x5401db(0x1fc)],'description':this[_0x5401db(0x203)](_0x191557[0x0][_0x5401db(0x1ef)]),'fields':[{'name':_0x5401db(0x1fa),'value':_0x191557[0x0][_0x5401db(0x1f6)]?_0x191557[0x0]['total_rating'][_0x5401db(0x1e7)](0x2):'-','inline':!![]},{'name':'Release\x20Date','value':_0x191557[0x0]['first_release_date']?new Date(_0x191557[0x0][_0x5401db(0x1f3)]*0x3e8)[_0x5401db(0x1f7)]():'-','inline':!![]},{'name':'Links','value':_0x191557[0x0][_0x5401db(0x201)]?_0x191557[0x0]['websites']['join']('\x0a'):'-'}],'image':{'url':_0x191557[0x0][_0x5401db(0x209)]},'footer':{'text':_0x5401db(0x1fd)}}});};}}; \ No newline at end of file +const a142_0x263f=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../../utils/errors','length','first_release_date','version_title','json','exec','/games/search/','Links','exports','../../utils/omnic','game','Command','total_rating','sanitize','IRIS','COLORS','toDateString','@bastion/tesseract','slice','guild','test','send','join','Rating','websites','name','Powered\x20by\x20IGDB','INVALID_COMMAND_SYNTAX','game\x20TITLE','summary','constructor','cover','url','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20game.'];(function(_0x2d9994,_0x5c2bcf){const _0x263fb1=function(_0x26ef20){while(--_0x26ef20){_0x2d9994['push'](_0x2d9994['shift']());}},_0x463be3=function(){const _0x5bbb05={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1d3237,_0x46e3d4,_0x3fe9c2,_0x56ce90){_0x56ce90=_0x56ce90||{};let _0x415de1=_0x46e3d4+'='+_0x3fe9c2,_0x48ab85=0x0;for(let _0xd25636=0x0,_0x18cbd5=_0x1d3237['length'];_0xd25636<_0x18cbd5;_0xd25636++){const _0x4f6850=_0x1d3237[_0xd25636];_0x415de1+=';\x20'+_0x4f6850;const _0x266a4a=_0x1d3237[_0x4f6850];_0x1d3237['push'](_0x266a4a),_0x18cbd5=_0x1d3237['length'],_0x266a4a!==!![]&&(_0x415de1+='='+_0x266a4a);}_0x56ce90['cookie']=_0x415de1;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe2ab14,_0x1becc9){_0xe2ab14=_0xe2ab14||function(_0x597bd8){return _0x597bd8;};const _0x55a4ef=_0xe2ab14(new RegExp('(?:^|;\x20)'+_0x1becc9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ac326=function(_0x47557a,_0x1a0ac5){_0x47557a(++_0x1a0ac5);};return _0x5ac326(_0x263fb1,_0x5c2bcf),_0x55a4ef?decodeURIComponent(_0x55a4ef[0x1]):undefined;}},_0x168f96=function(){const _0x5d2b91=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d2b91['test'](_0x5bbb05['removeCookie']['toString']());};_0x5bbb05['updateCookie']=_0x168f96;let _0x32f1cf='';const _0x118aee=_0x5bbb05['updateCookie']();if(!_0x118aee)_0x5bbb05['setCookie'](['*'],'counter',0x1);else _0x118aee?_0x32f1cf=_0x5bbb05['getCookie'](null,'counter'):_0x5bbb05['removeCookie']();};_0x463be3();}(a142_0x263f,0xb7));const a142_0x463b=function(_0x2d9994,_0x5c2bcf){_0x2d9994=_0x2d9994-0x91;let _0x263fb1=a142_0x263f[_0x2d9994];return _0x263fb1;};const a142_0x20814b=a142_0x463b,a142_0x168f96=function(){let _0x118aee=!![];return function(_0x1d3237,_0x46e3d4){const _0x3fe9c2=_0x118aee?function(){if(_0x46e3d4){const _0x56ce90=_0x46e3d4['apply'](_0x1d3237,arguments);return _0x46e3d4=null,_0x56ce90;}}:function(){};return _0x118aee=![],_0x3fe9c2;};}(),a142_0x5bbb05=a142_0x168f96(this,function(){const _0x415de1=function(){const _0x2364e1=a142_0x463b,_0x48ab85=_0x415de1['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x2364e1(0xa8)](_0x2364e1(0xac));return!_0x48ab85[_0x2364e1(0x9e)](a142_0x5bbb05);};return _0x415de1();});a142_0x5bbb05();'use strict';const tesseract_1=require(a142_0x20814b(0x9b)),errors=require(a142_0x20814b(0xad)),omnic=require(a142_0x20814b(0x93));module[a142_0x20814b(0x92)]=class GameCommand extends tesseract_1[a142_0x20814b(0x95)]{constructor(){const _0x2301d0=a142_0x20814b;super(_0x2301d0(0x94),{'description':_0x2301d0(0xab),'triggers':[],'arguments':{},'scope':_0x2301d0(0x9d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2301d0(0xa6)]}),this['sanitize']=_0xd25636=>{const _0x236a32=_0x2301d0;return _0xd25636['length']>0x7d0?_0xd25636[_0x236a32(0x9c)](0x0,0x7d0)+'\x0a...':_0xd25636;},this[_0x2301d0(0xb2)]=async(_0x18cbd5,_0x4f6850)=>{const _0x2d1ec3=_0x2301d0;if(!_0x4f6850['_'][_0x2d1ec3(0xae)])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x2d1ec3(0xa5)],this[_0x2d1ec3(0xa3)]);const _0x266a4a=_0x4f6850['_'][_0x2d1ec3(0xa0)]('\x20'),_0xe2ab14=await omnic['makeRequest'](_0x2d1ec3(0xb3)+_0x266a4a),_0x1becc9=await _0xe2ab14[_0x2d1ec3(0xb1)]();if(!_0x1becc9[_0x2d1ec3(0xae)])throw new Error('NOT_FOUND');await _0x18cbd5['channel'][_0x2d1ec3(0x9f)]({'embed':{'color':tesseract_1['Constants'][_0x2d1ec3(0x99)][_0x2d1ec3(0x98)],'author':{'name':_0x1becc9[0x0][_0x2d1ec3(0xb0)]},'title':_0x1becc9[0x0][_0x2d1ec3(0xa3)],'url':_0x1becc9[0x0][_0x2d1ec3(0xaa)],'description':this[_0x2d1ec3(0x97)](_0x1becc9[0x0][_0x2d1ec3(0xa7)]),'fields':[{'name':_0x2d1ec3(0xa1),'value':_0x1becc9[0x0][_0x2d1ec3(0x96)]?_0x1becc9[0x0][_0x2d1ec3(0x96)]['toFixed'](0x2):'-','inline':!![]},{'name':'Release\x20Date','value':_0x1becc9[0x0][_0x2d1ec3(0xaf)]?new Date(_0x1becc9[0x0][_0x2d1ec3(0xaf)]*0x3e8)[_0x2d1ec3(0x9a)]():'-','inline':!![]},{'name':_0x2d1ec3(0x91),'value':_0x1becc9[0x0]['websites']?_0x1becc9[0x0][_0x2d1ec3(0xa2)][_0x2d1ec3(0xa0)]('\x0a'):'-'}],'image':{'url':_0x1becc9[0x0][_0x2d1ec3(0xa9)]},'footer':{'text':_0x2d1ec3(0xa4)}}});};}}; \ No newline at end of file diff --git a/commands/searches/manga.js b/commands/searches/manga.js index e711fc41f..d010bae74 100644 --- a/commands/searches/manga.js +++ b/commands/searches/manga.js @@ -1 +1 @@ -const a142_0x1274=['exports','../../utils/omnic','test','exec','../../utils/errors','BASTION_ERROR_TYPE','channel','sanitize','guild','\x0a...','/kitsu/manga/','posterImage','@bastion/tesseract','Powered\x20by\x20Kitsu','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20manga.','COLORS','Published','slug','INVALID_COMMAND_SYNTAX','Publishing','original','join','values','return\x20/\x22\x20+\x20this\x20+\x20\x22/','slice','\x20-\x20Present','Finished','endDate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','IRIS','length','manga','startDate','name','attributes','Constants','send','apply','makeRequest','constructor','DiscordError','manga\x20TITLE','synopsis','Status','data'];(function(_0x9bb7e6,_0x13fd10){const _0x127476=function(_0x7a07ee){while(--_0x7a07ee){_0x9bb7e6['push'](_0x9bb7e6['shift']());}},_0x1c3485=function(){const _0x236ce1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x37c6c9,_0x110b86,_0x1912b9,_0x1f8818){_0x1f8818=_0x1f8818||{};let _0x52eb03=_0x110b86+'='+_0x1912b9,_0x5e9b44=0x0;for(let _0x300a6f=0x0,_0x7a09f8=_0x37c6c9['length'];_0x300a6f<_0x7a09f8;_0x300a6f++){const _0x4dd534=_0x37c6c9[_0x300a6f];_0x52eb03+=';\x20'+_0x4dd534;const _0x844b3b=_0x37c6c9[_0x4dd534];_0x37c6c9['push'](_0x844b3b),_0x7a09f8=_0x37c6c9['length'],_0x844b3b!==!![]&&(_0x52eb03+='='+_0x844b3b);}_0x1f8818['cookie']=_0x52eb03;},'removeCookie':function(){return'dev';},'getCookie':function(_0x43861b,_0x10cb75){_0x43861b=_0x43861b||function(_0x6f520f){return _0x6f520f;};const _0x2eaa0d=_0x43861b(new RegExp('(?:^|;\x20)'+_0x10cb75['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f05b1=function(_0x149ecc,_0xd742ae){_0x149ecc(++_0xd742ae);};return _0x4f05b1(_0x127476,_0x13fd10),_0x2eaa0d?decodeURIComponent(_0x2eaa0d[0x1]):undefined;}},_0x3f0b99=function(){const _0x167df8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x167df8['test'](_0x236ce1['removeCookie']['toString']());};_0x236ce1['updateCookie']=_0x3f0b99;let _0x4df689='';const _0x48ba9d=_0x236ce1['updateCookie']();if(!_0x48ba9d)_0x236ce1['setCookie'](['*'],'counter',0x1);else _0x48ba9d?_0x4df689=_0x236ce1['getCookie'](null,'counter'):_0x236ce1['removeCookie']();};_0x1c3485();}(a142_0x1274,0x9d));const a142_0x1c34=function(_0x9bb7e6,_0x13fd10){_0x9bb7e6=_0x9bb7e6-0x1cf;let _0x127476=a142_0x1274[_0x9bb7e6];return _0x127476;};const _0x351b71=a142_0x1c34,a142_0x3f0b99=function(){let _0x48ba9d=!![];return function(_0x37c6c9,_0x110b86){const _0x1912b9=_0x48ba9d?function(){const _0x298e93=a142_0x1c34;if(_0x110b86){const _0x1f8818=_0x110b86[_0x298e93(0x1de)](_0x37c6c9,arguments);return _0x110b86=null,_0x1f8818;}}:function(){};return _0x48ba9d=![],_0x1912b9;};}(),a142_0x236ce1=a142_0x3f0b99(this,function(){const _0x52eb03=function(){const _0x128487=a142_0x1c34,_0x5e9b44=_0x52eb03[_0x128487(0x1e0)](_0x128487(0x1d0))()[_0x128487(0x1e0)](_0x128487(0x1d5));return!_0x5e9b44[_0x128487(0x1e8)](a142_0x236ce1);};return _0x52eb03();});a142_0x236ce1();'use strict';const tesseract_1=require(_0x351b71(0x1f2)),errors=require(_0x351b71(0x1ea)),omnic=require(_0x351b71(0x1e7));module[_0x351b71(0x1e6)]=class MangaCommand extends tesseract_1['Command']{constructor(){const _0x489b23=_0x351b71;super(_0x489b23(0x1d8),{'description':_0x489b23(0x1f4),'triggers':[],'arguments':{},'scope':_0x489b23(0x1ee),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x489b23(0x1e2)]}),this[_0x489b23(0x1ed)]=_0x300a6f=>{const _0x4f8bed=_0x489b23;return _0x300a6f[_0x4f8bed(0x1d7)]>0x7d0?_0x300a6f[_0x4f8bed(0x1d1)](0x0,0x7d0)+_0x4f8bed(0x1ef):_0x300a6f;},this[_0x489b23(0x1e9)]=async(_0x7a09f8,_0x4dd534)=>{const _0x4ac4fb=_0x489b23;if(!_0x4dd534['_'][_0x4ac4fb(0x1d7)])throw new errors[(_0x4ac4fb(0x1e1))](errors[_0x4ac4fb(0x1eb)][_0x4ac4fb(0x1f8)],this[_0x4ac4fb(0x1da)]);const _0x844b3b=_0x4dd534['_'][_0x4ac4fb(0x1fb)]('\x20'),_0x43861b=await omnic[_0x4ac4fb(0x1df)](_0x4ac4fb(0x1f0)+encodeURIComponent(_0x844b3b)),_0x10cb75=await _0x43861b['json']();if(!_0x10cb75||!_0x10cb75[_0x4ac4fb(0x1e5)]||!_0x10cb75[_0x4ac4fb(0x1e5)]['length'])throw new Error('NOT_FOUND');await _0x7a09f8[_0x4ac4fb(0x1ec)][_0x4ac4fb(0x1dd)]({'embed':{'color':tesseract_1[_0x4ac4fb(0x1dc)][_0x4ac4fb(0x1f5)][_0x4ac4fb(0x1d6)],'author':{'name':'Manga'},'title':Object[_0x4ac4fb(0x1cf)](_0x10cb75['data'][0x0][_0x4ac4fb(0x1db)]['titles'])[0x0],'url':'https://kitsu.io/manga/'+_0x10cb75[_0x4ac4fb(0x1e5)][0x0][_0x4ac4fb(0x1db)][_0x4ac4fb(0x1f7)],'description':this[_0x4ac4fb(0x1ed)](_0x10cb75[_0x4ac4fb(0x1e5)][0x0]['attributes'][_0x4ac4fb(0x1e3)]),'fields':[{'name':_0x4ac4fb(0x1e4),'value':_0x10cb75[_0x4ac4fb(0x1e5)][0x0]['attributes']['endDate']?_0x4ac4fb(0x1d3):_0x4ac4fb(0x1f9),'inline':!![]},{'name':_0x4ac4fb(0x1f6),'value':_0x10cb75[_0x4ac4fb(0x1e5)][0x0][_0x4ac4fb(0x1db)]['endDate']?_0x10cb75['data'][0x0][_0x4ac4fb(0x1db)][_0x4ac4fb(0x1d9)]+'\x20-\x20'+_0x10cb75['data'][0x0][_0x4ac4fb(0x1db)][_0x4ac4fb(0x1d4)]:_0x10cb75[_0x4ac4fb(0x1e5)][0x0][_0x4ac4fb(0x1db)]['startDate']+_0x4ac4fb(0x1d2),'inline':!![]}],'image':{'url':_0x10cb75['data'][0x0][_0x4ac4fb(0x1db)][_0x4ac4fb(0x1f1)][_0x4ac4fb(0x1fa)]},'footer':{'text':_0x4ac4fb(0x1f3)}}});};}}; \ No newline at end of file +const a143_0x5047=['channel','manga\x20TITLE','length','sanitize','join','Powered\x20by\x20Kitsu','Manga','Command','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Publishing','data','send','exports','attributes','posterImage','\x20-\x20Present','https://kitsu.io/manga/','Finished','BASTION_ERROR_TYPE','synopsis','/kitsu/manga/','name','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20manga.','\x0a...','apply','manga','COLORS','startDate','test','original','Published','../../utils/omnic','NOT_FOUND','DiscordError','Status','IRIS','slug','constructor','json','endDate'];(function(_0x44e5f4,_0x32372b){const _0x5047d1=function(_0xa2e3bc){while(--_0xa2e3bc){_0x44e5f4['push'](_0x44e5f4['shift']());}},_0x8f7e1c=function(){const _0x36fb0c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f36e1,_0x3465c5,_0x489e41,_0x587622){_0x587622=_0x587622||{};let _0x2c3892=_0x3465c5+'='+_0x489e41,_0x569a59=0x0;for(let _0x56f853=0x0,_0x1f083a=_0x5f36e1['length'];_0x56f853<_0x1f083a;_0x56f853++){const _0xbdb332=_0x5f36e1[_0x56f853];_0x2c3892+=';\x20'+_0xbdb332;const _0x12e4ed=_0x5f36e1[_0xbdb332];_0x5f36e1['push'](_0x12e4ed),_0x1f083a=_0x5f36e1['length'],_0x12e4ed!==!![]&&(_0x2c3892+='='+_0x12e4ed);}_0x587622['cookie']=_0x2c3892;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5e175d,_0x59528c){_0x5e175d=_0x5e175d||function(_0x50db9c){return _0x50db9c;};const _0x41c662=_0x5e175d(new RegExp('(?:^|;\x20)'+_0x59528c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4ddff9=function(_0x4b0b1c,_0x41208b){_0x4b0b1c(++_0x41208b);};return _0x4ddff9(_0x5047d1,_0x32372b),_0x41c662?decodeURIComponent(_0x41c662[0x1]):undefined;}},_0x18133e=function(){const _0x120e72=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x120e72['test'](_0x36fb0c['removeCookie']['toString']());};_0x36fb0c['updateCookie']=_0x18133e;let _0x8da083='';const _0x4a7753=_0x36fb0c['updateCookie']();if(!_0x4a7753)_0x36fb0c['setCookie'](['*'],'counter',0x1);else _0x4a7753?_0x8da083=_0x36fb0c['getCookie'](null,'counter'):_0x36fb0c['removeCookie']();};_0x8f7e1c();}(a143_0x5047,0x70));const a143_0x8f7e=function(_0x44e5f4,_0x32372b){_0x44e5f4=_0x44e5f4-0x1d0;let _0x5047d1=a143_0x5047[_0x44e5f4];return _0x5047d1;};const a143_0x4d8bca=a143_0x8f7e,a143_0x18133e=function(){let _0x4a7753=!![];return function(_0x5f36e1,_0x3465c5){const _0x489e41=_0x4a7753?function(){const _0x58dae3=a143_0x8f7e;if(_0x3465c5){const _0x587622=_0x3465c5[_0x58dae3(0x1f0)](_0x5f36e1,arguments);return _0x3465c5=null,_0x587622;}}:function(){};return _0x4a7753=![],_0x489e41;};}(),a143_0x36fb0c=a143_0x18133e(this,function(){const _0x2c3892=function(){const _0x256323=a143_0x8f7e,_0x569a59=_0x2c3892['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x256323(0x1d5)](_0x256323(0x1e0));return!_0x569a59[_0x256323(0x1f4)](a143_0x36fb0c);};return _0x2c3892();});a143_0x36fb0c();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors'),omnic=require(a143_0x4d8bca(0x1f7));module[a143_0x4d8bca(0x1e4)]=class MangaCommand extends tesseract_1[a143_0x4d8bca(0x1df)]{constructor(){const _0xcdc81b=a143_0x4d8bca;super(_0xcdc81b(0x1f1),{'description':_0xcdc81b(0x1ee),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xcdc81b(0x1d9)]}),this['sanitize']=_0x56f853=>{const _0x1eee0a=_0xcdc81b;return _0x56f853[_0x1eee0a(0x1da)]>0x7d0?_0x56f853['slice'](0x0,0x7d0)+_0x1eee0a(0x1ef):_0x56f853;},this['exec']=async(_0x1f083a,_0xbdb332)=>{const _0x814b05=_0xcdc81b;if(!_0xbdb332['_'][_0x814b05(0x1da)])throw new errors[(_0x814b05(0x1d1))](errors[_0x814b05(0x1ea)]['INVALID_COMMAND_SYNTAX'],this[_0x814b05(0x1ed)]);const _0x12e4ed=_0xbdb332['_'][_0x814b05(0x1dc)]('\x20'),_0x5e175d=await omnic['makeRequest'](_0x814b05(0x1ec)+encodeURIComponent(_0x12e4ed)),_0x59528c=await _0x5e175d[_0x814b05(0x1d6)]();if(!_0x59528c||!_0x59528c[_0x814b05(0x1e2)]||!_0x59528c[_0x814b05(0x1e2)][_0x814b05(0x1da)])throw new Error(_0x814b05(0x1d0));await _0x1f083a[_0x814b05(0x1d8)][_0x814b05(0x1e3)]({'embed':{'color':tesseract_1['Constants'][_0x814b05(0x1f2)][_0x814b05(0x1d3)],'author':{'name':_0x814b05(0x1de)},'title':Object['values'](_0x59528c[_0x814b05(0x1e2)][0x0][_0x814b05(0x1e5)]['titles'])[0x0],'url':_0x814b05(0x1e8)+_0x59528c[_0x814b05(0x1e2)][0x0]['attributes'][_0x814b05(0x1d4)],'description':this[_0x814b05(0x1db)](_0x59528c['data'][0x0]['attributes'][_0x814b05(0x1eb)]),'fields':[{'name':_0x814b05(0x1d2),'value':_0x59528c[_0x814b05(0x1e2)][0x0][_0x814b05(0x1e5)]['endDate']?_0x814b05(0x1e9):_0x814b05(0x1e1),'inline':!![]},{'name':_0x814b05(0x1f6),'value':_0x59528c[_0x814b05(0x1e2)][0x0]['attributes'][_0x814b05(0x1d7)]?_0x59528c[_0x814b05(0x1e2)][0x0][_0x814b05(0x1e5)][_0x814b05(0x1f3)]+'\x20-\x20'+_0x59528c[_0x814b05(0x1e2)][0x0]['attributes']['endDate']:_0x59528c[_0x814b05(0x1e2)][0x0][_0x814b05(0x1e5)]['startDate']+_0x814b05(0x1e7),'inline':!![]}],'image':{'url':_0x59528c[_0x814b05(0x1e2)][0x0][_0x814b05(0x1e5)][_0x814b05(0x1e6)][_0x814b05(0x1f5)]},'footer':{'text':_0x814b05(0x1dd)}}});};}}; \ No newline at end of file diff --git a/commands/searches/movie.js b/commands/searches/movie.js index a477912af..85e3a33b4 100644 --- a/commands/searches/movie.js +++ b/commands/searches/movie.js @@ -1 +1 @@ -const a143_0x103c=['guild','nsfw','Language','original_language','genres','Western','backdrop_path','NOT_FOUND','movie','War','release_date','join','test','../../utils/omnic','\x0a...','@bastion/tesseract','Release\x20Date','Comedy','Thriller','https://image.tmdb.org/t/p/original','Adventure','../../utils/errors','Genre','Animation','/tmdb/movies/','title','Mystery','Rating','Crime','slice','poster_path','sanitize','genre_ids','BASTION_ERROR_TYPE','History','Movie','overview','channel','Command','exec','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20movie.','apply','exports','name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Horror','Constants','length','Powered\x20by\x20The\x20Movie\x20Database','makeRequest','adult','vote_average','toUpperCase','Drama','Science\x20Fiction','IRIS','filter','constructor'];(function(_0x5a4484,_0x130a18){const _0x103ce9=function(_0x5469fd){while(--_0x5469fd){_0x5a4484['push'](_0x5a4484['shift']());}},_0x2fb528=function(){const _0x32b48f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x427b93,_0x207660,_0x342df4,_0x5a218b){_0x5a218b=_0x5a218b||{};let _0xce1e6f=_0x207660+'='+_0x342df4,_0x17985b=0x0;for(let _0x4bafd7=0x0,_0x558e87=_0x427b93['length'];_0x4bafd7<_0x558e87;_0x4bafd7++){const _0x5f0050=_0x427b93[_0x4bafd7];_0xce1e6f+=';\x20'+_0x5f0050;const _0x12721d=_0x427b93[_0x5f0050];_0x427b93['push'](_0x12721d),_0x558e87=_0x427b93['length'],_0x12721d!==!![]&&(_0xce1e6f+='='+_0x12721d);}_0x5a218b['cookie']=_0xce1e6f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x172d30,_0x212c2b){_0x172d30=_0x172d30||function(_0x429e10){return _0x429e10;};const _0x373eb6=_0x172d30(new RegExp('(?:^|;\x20)'+_0x212c2b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2a74fd=function(_0x29c77a,_0x6764dd){_0x29c77a(++_0x6764dd);};return _0x2a74fd(_0x103ce9,_0x130a18),_0x373eb6?decodeURIComponent(_0x373eb6[0x1]):undefined;}},_0x57814d=function(){const _0x59bb40=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x59bb40['test'](_0x32b48f['removeCookie']['toString']());};_0x32b48f['updateCookie']=_0x57814d;let _0x5d3f07='';const _0x3618e7=_0x32b48f['updateCookie']();if(!_0x3618e7)_0x32b48f['setCookie'](['*'],'counter',0x1);else _0x3618e7?_0x5d3f07=_0x32b48f['getCookie'](null,'counter'):_0x32b48f['removeCookie']();};_0x2fb528();}(a143_0x103c,0x10c));const a143_0x2fb5=function(_0x5a4484,_0x130a18){_0x5a4484=_0x5a4484-0x1c0;let _0x103ce9=a143_0x103c[_0x5a4484];return _0x103ce9;};const _0x336069=a143_0x2fb5,a143_0x57814d=function(){let _0x3618e7=!![];return function(_0x427b93,_0x207660){const _0x342df4=_0x3618e7?function(){const _0x313bde=a143_0x2fb5;if(_0x207660){const _0x5a218b=_0x207660[_0x313bde(0x1c9)](_0x427b93,arguments);return _0x207660=null,_0x5a218b;}}:function(){};return _0x3618e7=![],_0x342df4;};}(),a143_0x32b48f=a143_0x57814d(this,function(){const _0xce1e6f=function(){const _0x337c85=a143_0x2fb5,_0x17985b=_0xce1e6f['constructor'](_0x337c85(0x1cc))()[_0x337c85(0x1da)](_0x337c85(0x1cd));return!_0x17985b[_0x337c85(0x1e7)](a143_0x32b48f);};return _0xce1e6f();});a143_0x32b48f();'use strict';const tesseract_1=require(_0x336069(0x1ea)),errors=require(_0x336069(0x1f0)),omnic=require(_0x336069(0x1e8));module[_0x336069(0x1ca)]=class MovieCommand extends tesseract_1[_0x336069(0x1c6)]{constructor(){const _0xca377a=_0x336069;super(_0xca377a(0x1e3),{'description':_0xca377a(0x1c8),'triggers':[],'arguments':{},'scope':_0xca377a(0x1db),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['movie\x20TITLE']}),this[_0xca377a(0x1fa)]=_0x4bafd7=>{const _0xf8e4a9=_0xca377a;return _0x4bafd7['length']>0x7d0?_0x4bafd7[_0xf8e4a9(0x1f8)](0x0,0x7d0)+_0xf8e4a9(0x1e9):_0x4bafd7;},this[_0xca377a(0x1c7)]=async(_0x558e87,_0x5f0050)=>{const _0x4ebf07=_0xca377a;if(!_0x5f0050['_']['length'])throw new errors['DiscordError'](errors[_0x4ebf07(0x1c1)]['INVALID_COMMAND_SYNTAX'],this[_0x4ebf07(0x1cb)]);const _0x12721d=_0x5f0050['_']['join']('\x20'),_0x172d30=await omnic[_0x4ebf07(0x1d2)](_0x4ebf07(0x1f3)+_0x12721d),_0x212c2b=await _0x172d30['json'](),_0x373eb6=_0x558e87[_0x4ebf07(0x1c5)][_0x4ebf07(0x1dc)]?_0x212c2b['results']:_0x212c2b['results'][_0x4ebf07(0x1d9)](_0x2a74fd=>!_0x2a74fd[_0x4ebf07(0x1d3)]);if(!_0x373eb6||!_0x373eb6[_0x4ebf07(0x1d0)])throw new Error(_0x4ebf07(0x1e2));await _0x558e87['channel']['send']({'embed':{'color':tesseract_1[_0x4ebf07(0x1cf)]['COLORS'][_0x4ebf07(0x1d8)],'author':{'name':_0x4ebf07(0x1c3)},'title':_0x373eb6[0x0][_0x4ebf07(0x1f4)],'url':'https://themoviedb.org/movie/'+_0x373eb6[0x0]['id'],'description':this['sanitize'](_0x373eb6[0x0][_0x4ebf07(0x1c4)]),'fields':[{'name':_0x4ebf07(0x1f1),'value':_0x373eb6[0x0][_0x4ebf07(0x1c0)]['map'](_0x429e10=>this[_0x4ebf07(0x1df)][_0x429e10])[_0x4ebf07(0x1e6)]('\x0a'),'inline':!![]},{'name':_0x4ebf07(0x1dd),'value':_0x373eb6[0x0][_0x4ebf07(0x1de)][_0x4ebf07(0x1d5)](),'inline':!![]},{'name':_0x4ebf07(0x1f6),'value':''+_0x373eb6[0x0][_0x4ebf07(0x1d4)],'inline':!![]},{'name':_0x4ebf07(0x1eb),'value':_0x373eb6[0x0][_0x4ebf07(0x1e5)],'inline':!![]}],'image':{'url':_0x373eb6[0x0][_0x4ebf07(0x1f9)]?_0x4ebf07(0x1ee)+_0x373eb6[0x0][_0x4ebf07(0x1f9)]:_0x4ebf07(0x1ee)+_0x373eb6[0x0][_0x4ebf07(0x1e1)]},'footer':{'text':_0x4ebf07(0x1d1)}}});},this[_0xca377a(0x1df)]={'28':'Action','12':_0xca377a(0x1ef),'16':_0xca377a(0x1f2),'35':_0xca377a(0x1ec),'80':_0xca377a(0x1f7),'99':'Documentary','18':_0xca377a(0x1d6),'10751':'Family','14':'Fantasy','36':_0xca377a(0x1c2),'27':_0xca377a(0x1ce),'10402':'Music','9648':_0xca377a(0x1f5),'10749':'Romance','878':_0xca377a(0x1d7),'10770':'TV\x20Movie','53':_0xca377a(0x1ed),'10752':_0xca377a(0x1e4),'37':_0xca377a(0x1e0)};}}; \ No newline at end of file +const a144_0x2f69=['sanitize','Release\x20Date','Western','Movie','War','results','/tmdb/movies/','Documentary','Constants','guild','Animation','Thriller','../../utils/errors','movie\x20TITLE','test','length','Family','Powered\x20by\x20The\x20Movie\x20Database','Command','Science\x20Fiction','https://themoviedb.org/movie/','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20movie.','overview','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','map','makeRequest','title','Action','adult','genres','poster_path','name','Fantasy','../../utils/omnic','constructor','slice','Music','genre_ids','movie','https://image.tmdb.org/t/p/original','Drama','apply','INVALID_COMMAND_SYNTAX','Horror','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','History','TV\x20Movie','json','NOT_FOUND','backdrop_path','channel','join','COLORS','Genre'];(function(_0xb3ed7c,_0x7102e5){const _0x2f69b3=function(_0x474cc0){while(--_0x474cc0){_0xb3ed7c['push'](_0xb3ed7c['shift']());}},_0x4ae9db=function(){const _0x46de84={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f15a3,_0x2a7b34,_0x19c1f4,_0x364a76){_0x364a76=_0x364a76||{};let _0x26404e=_0x2a7b34+'='+_0x19c1f4,_0x5ab6eb=0x0;for(let _0x3a1174=0x0,_0x5be3e9=_0x3f15a3['length'];_0x3a1174<_0x5be3e9;_0x3a1174++){const _0x5b9386=_0x3f15a3[_0x3a1174];_0x26404e+=';\x20'+_0x5b9386;const _0x2ac823=_0x3f15a3[_0x5b9386];_0x3f15a3['push'](_0x2ac823),_0x5be3e9=_0x3f15a3['length'],_0x2ac823!==!![]&&(_0x26404e+='='+_0x2ac823);}_0x364a76['cookie']=_0x26404e;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa33324,_0xff70b7){_0xa33324=_0xa33324||function(_0x9140dc){return _0x9140dc;};const _0x10517f=_0xa33324(new RegExp('(?:^|;\x20)'+_0xff70b7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x307e63=function(_0xaf52d5,_0x32f4fc){_0xaf52d5(++_0x32f4fc);};return _0x307e63(_0x2f69b3,_0x7102e5),_0x10517f?decodeURIComponent(_0x10517f[0x1]):undefined;}},_0x570f61=function(){const _0x26bd88=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x26bd88['test'](_0x46de84['removeCookie']['toString']());};_0x46de84['updateCookie']=_0x570f61;let _0x22a521='';const _0x1d2b51=_0x46de84['updateCookie']();if(!_0x1d2b51)_0x46de84['setCookie'](['*'],'counter',0x1);else _0x1d2b51?_0x22a521=_0x46de84['getCookie'](null,'counter'):_0x46de84['removeCookie']();};_0x4ae9db();}(a144_0x2f69,0x85));const a144_0x4ae9=function(_0xb3ed7c,_0x7102e5){_0xb3ed7c=_0xb3ed7c-0xc8;let _0x2f69b3=a144_0x2f69[_0xb3ed7c];return _0x2f69b3;};const a144_0x2b5c9e=a144_0x4ae9,a144_0x570f61=function(){let _0x1d2b51=!![];return function(_0x3f15a3,_0x2a7b34){const _0x19c1f4=_0x1d2b51?function(){const _0x5e0c39=a144_0x4ae9;if(_0x2a7b34){const _0x364a76=_0x2a7b34[_0x5e0c39(0xdd)](_0x3f15a3,arguments);return _0x2a7b34=null,_0x364a76;}}:function(){};return _0x1d2b51=![],_0x19c1f4;};}(),a144_0x46de84=a144_0x570f61(this,function(){const _0x26404e=function(){const _0x274d8d=a144_0x4ae9,_0x5ab6eb=_0x26404e[_0x274d8d(0xd6)](_0x274d8d(0xe1))()[_0x274d8d(0xd6)](_0x274d8d(0xcb));return!_0x5ab6eb[_0x274d8d(0xf9)](a144_0x46de84);};return _0x26404e();});a144_0x46de84();'use strict';const tesseract_1=require(a144_0x2b5c9e(0xe0)),errors=require(a144_0x2b5c9e(0xf7)),omnic=require(a144_0x2b5c9e(0xd5));module['exports']=class MovieCommand extends tesseract_1[a144_0x2b5c9e(0xfd)]{constructor(){const _0x368563=a144_0x2b5c9e;super(_0x368563(0xda),{'description':_0x368563(0xc8),'triggers':[],'arguments':{},'scope':_0x368563(0xf4),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x368563(0xf8)]}),this[_0x368563(0xeb)]=_0x3a1174=>{const _0x4b8b17=_0x368563;return _0x3a1174[_0x4b8b17(0xfa)]>0x7d0?_0x3a1174[_0x4b8b17(0xd7)](0x0,0x7d0)+'\x0a...':_0x3a1174;},this[_0x368563(0xca)]=async(_0x5be3e9,_0x5b9386)=>{const _0x3b604f=_0x368563;if(!_0x5b9386['_'][_0x3b604f(0xfa)])throw new errors['DiscordError'](errors['BASTION_ERROR_TYPE'][_0x3b604f(0xde)],this[_0x3b604f(0xd3)]);const _0x2ac823=_0x5b9386['_'][_0x3b604f(0xe8)]('\x20'),_0xa33324=await omnic[_0x3b604f(0xcd)](_0x3b604f(0xf1)+_0x2ac823),_0xff70b7=await _0xa33324[_0x3b604f(0xe4)](),_0x10517f=_0x5be3e9[_0x3b604f(0xe7)]['nsfw']?_0xff70b7[_0x3b604f(0xf0)]:_0xff70b7[_0x3b604f(0xf0)]['filter'](_0x307e63=>!_0x307e63[_0x3b604f(0xd0)]);if(!_0x10517f||!_0x10517f[_0x3b604f(0xfa)])throw new Error(_0x3b604f(0xe5));await _0x5be3e9[_0x3b604f(0xe7)]['send']({'embed':{'color':tesseract_1[_0x3b604f(0xf3)][_0x3b604f(0xe9)]['IRIS'],'author':{'name':_0x3b604f(0xee)},'title':_0x10517f[0x0][_0x3b604f(0xce)],'url':_0x3b604f(0xff)+_0x10517f[0x0]['id'],'description':this[_0x3b604f(0xeb)](_0x10517f[0x0][_0x3b604f(0xc9)]),'fields':[{'name':_0x3b604f(0xea),'value':_0x10517f[0x0][_0x3b604f(0xd9)][_0x3b604f(0xcc)](_0x9140dc=>this[_0x3b604f(0xd1)][_0x9140dc])[_0x3b604f(0xe8)]('\x0a'),'inline':!![]},{'name':'Language','value':_0x10517f[0x0]['original_language']['toUpperCase'](),'inline':!![]},{'name':'Rating','value':''+_0x10517f[0x0]['vote_average'],'inline':!![]},{'name':_0x3b604f(0xec),'value':_0x10517f[0x0]['release_date'],'inline':!![]}],'image':{'url':_0x10517f[0x0][_0x3b604f(0xd2)]?'https://image.tmdb.org/t/p/original'+_0x10517f[0x0][_0x3b604f(0xd2)]:_0x3b604f(0xdb)+_0x10517f[0x0][_0x3b604f(0xe6)]},'footer':{'text':_0x3b604f(0xfc)}}});},this[_0x368563(0xd1)]={'28':_0x368563(0xcf),'12':'Adventure','16':_0x368563(0xf5),'35':'Comedy','80':'Crime','99':_0x368563(0xf2),'18':_0x368563(0xdc),'10751':_0x368563(0xfb),'14':_0x368563(0xd4),'36':_0x368563(0xe2),'27':_0x368563(0xdf),'10402':_0x368563(0xd8),'9648':'Mystery','10749':'Romance','878':_0x368563(0xfe),'10770':_0x368563(0xe3),'53':_0x368563(0xf6),'10752':_0x368563(0xef),'37':_0x368563(0xed)};}}; \ No newline at end of file diff --git a/commands/searches/pokemon.js b/commands/searches/pokemon.js index 5c634b23c..b95d54656 100644 --- a/commands/searches/pokemon.js +++ b/commands/searches/pokemon.js @@ -1 +1 @@ -const a144_0x3063=['join','guild','length','sprite','Gender\x20Ratio','https://pokeapi.glitch.me/v1/pokemon/','Command','mega','ultraBeast','DiscordError','INVALID_COMMAND_SYNTAX','name','Normal:\x20','exports','../../utils/errors','height','species','Types','node-fetch','description','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','pokemon\x20NUMBER','mythical','normal','error','apply','Pokémon','pokemon','IRIS','gen','Evolution\x20Line','Ultra\x20Beast','eggGroups','Starter\x20','@bastion/tesseract','Description','Legendary\x20','weight','number','COLORS','BASTION_ERROR_TYPE','exec','constructor','types','pokemon\x20NAME','Height','hidden','gender','Powered\x20by\x20PokéDex\x20API','Abilities','legendary','Constants','send','Egg\x20Groups','\x0aHidden:\x20','abilities'];(function(_0x201d25,_0x3790f4){const _0x3063f9=function(_0x3d1a62){while(--_0x3d1a62){_0x201d25['push'](_0x201d25['shift']());}},_0x6379a0=function(){const _0x11e4f2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18c973,_0x2a27af,_0x3ca305,_0x488958){_0x488958=_0x488958||{};let _0x53ec98=_0x2a27af+'='+_0x3ca305,_0x262ed1=0x0;for(let _0xedc850=0x0,_0x515ad1=_0x18c973['length'];_0xedc850<_0x515ad1;_0xedc850++){const _0x2fdf48=_0x18c973[_0xedc850];_0x53ec98+=';\x20'+_0x2fdf48;const _0x4c58a5=_0x18c973[_0x2fdf48];_0x18c973['push'](_0x4c58a5),_0x515ad1=_0x18c973['length'],_0x4c58a5!==!![]&&(_0x53ec98+='='+_0x4c58a5);}_0x488958['cookie']=_0x53ec98;},'removeCookie':function(){return'dev';},'getCookie':function(_0x57420b,_0xb55202){_0x57420b=_0x57420b||function(_0x102704){return _0x102704;};const _0x17e67b=_0x57420b(new RegExp('(?:^|;\x20)'+_0xb55202['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x24ff94=function(_0x4d4ae0,_0x19e97d){_0x4d4ae0(++_0x19e97d);};return _0x24ff94(_0x3063f9,_0x3790f4),_0x17e67b?decodeURIComponent(_0x17e67b[0x1]):undefined;}},_0x317c56=function(){const _0x574b90=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x574b90['test'](_0x11e4f2['removeCookie']['toString']());};_0x11e4f2['updateCookie']=_0x317c56;let _0x2e53e4='';const _0x4a0a3c=_0x11e4f2['updateCookie']();if(!_0x4a0a3c)_0x11e4f2['setCookie'](['*'],'counter',0x1);else _0x4a0a3c?_0x2e53e4=_0x11e4f2['getCookie'](null,'counter'):_0x11e4f2['removeCookie']();};_0x6379a0();}(a144_0x3063,0xb0));const a144_0x6379=function(_0x201d25,_0x3790f4){_0x201d25=_0x201d25-0x17a;let _0x3063f9=a144_0x3063[_0x201d25];return _0x3063f9;};const _0x3d40ef=a144_0x6379,a144_0x317c56=function(){let _0x4a0a3c=!![];return function(_0x18c973,_0x2a27af){const _0x3ca305=_0x4a0a3c?function(){const _0x3043f0=a144_0x6379;if(_0x2a27af){const _0x488958=_0x2a27af[_0x3043f0(0x18f)](_0x18c973,arguments);return _0x2a27af=null,_0x488958;}}:function(){};return _0x4a0a3c=![],_0x3ca305;};}(),a144_0x11e4f2=a144_0x317c56(this,function(){const _0x53ec98=function(){const _0x11effd=a144_0x6379,_0x262ed1=_0x53ec98[_0x11effd(0x1a0)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x11effd(0x1a0)](_0x11effd(0x18a));return!_0x262ed1['test'](a144_0x11e4f2);};return _0x53ec98();});a144_0x11e4f2();'use strict';const tesseract_1=require(_0x3d40ef(0x198)),node_fetch_1=require(_0x3d40ef(0x187)),errors=require(_0x3d40ef(0x183));module[_0x3d40ef(0x182)]=class PokemonCommand extends tesseract_1[_0x3d40ef(0x17b)]{constructor(){const _0x1c737e=_0x3d40ef;super(_0x1c737e(0x191),{'description':'It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20Pokémon.','triggers':[],'arguments':{},'scope':_0x1c737e(0x1af),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1c737e(0x1a2),_0x1c737e(0x18b)]}),this[_0x1c737e(0x19f)]=async(_0xedc850,_0x515ad1)=>{const _0x540c53=_0x1c737e;if(!_0x515ad1['_'][_0x540c53(0x1b0)])throw new errors[(_0x540c53(0x17e))](errors[_0x540c53(0x19e)][_0x540c53(0x17f)],this[_0x540c53(0x180)]);const _0x2fdf48=_0x515ad1['_'][_0x540c53(0x1ae)]('\x20'),_0x4c58a5=await node_fetch_1['default'](_0x540c53(0x17a)+encodeURIComponent(_0x2fdf48)),_0x57420b=await _0x4c58a5['json']();if(_0x57420b[_0x540c53(0x18e)])throw new Error(_0x57420b['message']);await _0xedc850[_0x540c53(0x189)][_0x540c53(0x1aa)]({'embed':{'color':tesseract_1[_0x540c53(0x1a9)][_0x540c53(0x19d)][_0x540c53(0x192)],'author':{'name':(_0x57420b[0x0][_0x540c53(0x18c)]?'Mythical\x20':'')+(_0x57420b[0x0][_0x540c53(0x1a8)]?_0x540c53(0x19a):'')+(_0x57420b[0x0][_0x540c53(0x17c)]?'Mega':'')+(_0x57420b[0x0][_0x540c53(0x17d)]?_0x540c53(0x195):'')+(_0x57420b[0x0]['starter']?_0x540c53(0x197):'')+_0x540c53(0x190)},'title':_0x57420b[0x0][_0x540c53(0x180)],'description':'Discovered\x20in\x20generation\x20'+_0x57420b[0x0][_0x540c53(0x193)],'fields':[{'name':'Number','value':_0x57420b[0x0][_0x540c53(0x19c)],'inline':!![]},{'name':'Species','value':_0x57420b[0x0][_0x540c53(0x185)],'inline':!![]},{'name':_0x540c53(0x186),'value':_0x57420b[0x0][_0x540c53(0x1a1)][_0x540c53(0x1ae)]('\x0a'),'inline':!![]},{'name':_0x540c53(0x1a7),'value':_0x540c53(0x181)+(_0x57420b[0x0]['abilities'][_0x540c53(0x18d)][_0x540c53(0x1ae)](',\x20')||'-')+_0x540c53(0x1ac)+(_0x57420b[0x0][_0x540c53(0x1ad)][_0x540c53(0x1a4)][_0x540c53(0x1ae)](',\x20')||'-'),'inline':!![]},{'name':_0x540c53(0x1ab),'value':_0x57420b[0x0][_0x540c53(0x196)][_0x540c53(0x1ae)]('\x0a'),'inline':!![]},{'name':_0x540c53(0x1b2),'value':_0x57420b[0x0]['gender'][_0x540c53(0x1b0)]?_0x57420b[0x0][_0x540c53(0x1a5)][0x0]+':'+_0x57420b[0x0][_0x540c53(0x1a5)][0x1]:'Genderless','inline':!![]},{'name':_0x540c53(0x1a3),'value':_0x57420b[0x0][_0x540c53(0x184)],'inline':!![]},{'name':'Weight','value':_0x57420b[0x0][_0x540c53(0x19b)],'inline':!![]},{'name':_0x540c53(0x194),'value':_0x57420b[0x0]['family']['evolutionLine'][_0x540c53(0x1ae)]('\x20->\x20')},{'name':_0x540c53(0x199),'value':_0x57420b[0x0][_0x540c53(0x188)]}],'thumbnail':{'url':_0x57420b[0x0][_0x540c53(0x1b1)]},'footer':{'text':_0x540c53(0x1a6)}}});};}}; \ No newline at end of file +const a145_0x3bfc=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','BASTION_ERROR_TYPE','https://pokeapi.glitch.me/v1/pokemon/','pokemon\x20NAME','Ultra\x20Beast','gen','Species','Command','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20Pokémon.','exec','legendary','hidden','exports','Pokémon','Description','constructor','INVALID_COMMAND_SYNTAX','abilities','join','../../utils/errors','Egg\x20Groups','Genderless','Height','description','node-fetch','Mythical\x20','types','\x0aHidden:\x20','Discovered\x20in\x20generation\x20','test','mythical','eggGroups','\x20->\x20','json','Starter\x20','starter','length','name','evolutionLine','Evolution\x20Line','Gender\x20Ratio','apply','DiscordError','number','gender','normal','Number','Legendary\x20','family','message','COLORS','weight','Abilities','height','@bastion/tesseract'];(function(_0x523f4e,_0x14b53d){const _0x3bfc89=function(_0x3df0fd){while(--_0x3df0fd){_0x523f4e['push'](_0x523f4e['shift']());}},_0xee688d=function(){const _0xc81ceb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x59d8c5,_0x38ce3b,_0x348354,_0x3afc98){_0x3afc98=_0x3afc98||{};let _0x34319e=_0x38ce3b+'='+_0x348354,_0x20d1f9=0x0;for(let _0x4cdbab=0x0,_0xa4d2e3=_0x59d8c5['length'];_0x4cdbab<_0xa4d2e3;_0x4cdbab++){const _0xd3642c=_0x59d8c5[_0x4cdbab];_0x34319e+=';\x20'+_0xd3642c;const _0x1845fc=_0x59d8c5[_0xd3642c];_0x59d8c5['push'](_0x1845fc),_0xa4d2e3=_0x59d8c5['length'],_0x1845fc!==!![]&&(_0x34319e+='='+_0x1845fc);}_0x3afc98['cookie']=_0x34319e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x10e70a,_0x5ad3c3){_0x10e70a=_0x10e70a||function(_0x19e769){return _0x19e769;};const _0xc4ccb4=_0x10e70a(new RegExp('(?:^|;\x20)'+_0x5ad3c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22cef8=function(_0xa8de1,_0x2a3462){_0xa8de1(++_0x2a3462);};return _0x22cef8(_0x3bfc89,_0x14b53d),_0xc4ccb4?decodeURIComponent(_0xc4ccb4[0x1]):undefined;}},_0x289e70=function(){const _0x364c22=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x364c22['test'](_0xc81ceb['removeCookie']['toString']());};_0xc81ceb['updateCookie']=_0x289e70;let _0x2a7076='';const _0x51fd7c=_0xc81ceb['updateCookie']();if(!_0x51fd7c)_0xc81ceb['setCookie'](['*'],'counter',0x1);else _0x51fd7c?_0x2a7076=_0xc81ceb['getCookie'](null,'counter'):_0xc81ceb['removeCookie']();};_0xee688d();}(a145_0x3bfc,0xfc));const a145_0xee68=function(_0x523f4e,_0x14b53d){_0x523f4e=_0x523f4e-0x1f2;let _0x3bfc89=a145_0x3bfc[_0x523f4e];return _0x3bfc89;};const a145_0x227893=a145_0xee68,a145_0x289e70=function(){let _0x51fd7c=!![];return function(_0x59d8c5,_0x38ce3b){const _0x348354=_0x51fd7c?function(){const _0x552f80=a145_0xee68;if(_0x38ce3b){const _0x3afc98=_0x38ce3b[_0x552f80(0x1fb)](_0x59d8c5,arguments);return _0x38ce3b=null,_0x3afc98;}}:function(){};return _0x51fd7c=![],_0x348354;};}(),a145_0xc81ceb=a145_0x289e70(this,function(){const _0x34319e=function(){const _0x17d2e1=a145_0xee68,_0x20d1f9=_0x34319e[_0x17d2e1(0x218)](_0x17d2e1(0x209))()[_0x17d2e1(0x218)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x20d1f9[_0x17d2e1(0x226)](a145_0xc81ceb);};return _0x34319e();});a145_0xc81ceb();'use strict';const tesseract_1=require(a145_0x227893(0x208)),node_fetch_1=require(a145_0x227893(0x221)),errors=require(a145_0x227893(0x21c));module[a145_0x227893(0x215)]=class PokemonCommand extends tesseract_1[a145_0x227893(0x210)]{constructor(){const _0x4a954d=a145_0x227893;super('pokemon',{'description':_0x4a954d(0x211),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4a954d(0x20c),'pokemon\x20NUMBER']}),this[_0x4a954d(0x212)]=async(_0x4cdbab,_0xa4d2e3)=>{const _0x13046a=_0x4a954d;if(!_0xa4d2e3['_'][_0x13046a(0x1f6)])throw new errors[(_0x13046a(0x1fc))](errors[_0x13046a(0x20a)][_0x13046a(0x219)],this['name']);const _0xd3642c=_0xa4d2e3['_'][_0x13046a(0x21b)]('\x20'),_0x1845fc=await node_fetch_1['default'](_0x13046a(0x20b)+encodeURIComponent(_0xd3642c)),_0x10e70a=await _0x1845fc[_0x13046a(0x1f3)]();if(_0x10e70a['error'])throw new Error(_0x10e70a[_0x13046a(0x203)]);await _0x4cdbab['channel']['send']({'embed':{'color':tesseract_1['Constants'][_0x13046a(0x204)]['IRIS'],'author':{'name':(_0x10e70a[0x0][_0x13046a(0x227)]?_0x13046a(0x222):'')+(_0x10e70a[0x0][_0x13046a(0x213)]?_0x13046a(0x201):'')+(_0x10e70a[0x0]['mega']?'Mega':'')+(_0x10e70a[0x0]['ultraBeast']?_0x13046a(0x20d):'')+(_0x10e70a[0x0][_0x13046a(0x1f5)]?_0x13046a(0x1f4):'')+_0x13046a(0x216)},'title':_0x10e70a[0x0][_0x13046a(0x1f7)],'description':_0x13046a(0x225)+_0x10e70a[0x0][_0x13046a(0x20e)],'fields':[{'name':_0x13046a(0x200),'value':_0x10e70a[0x0][_0x13046a(0x1fd)],'inline':!![]},{'name':_0x13046a(0x20f),'value':_0x10e70a[0x0]['species'],'inline':!![]},{'name':'Types','value':_0x10e70a[0x0][_0x13046a(0x223)][_0x13046a(0x21b)]('\x0a'),'inline':!![]},{'name':_0x13046a(0x206),'value':'Normal:\x20'+(_0x10e70a[0x0][_0x13046a(0x21a)][_0x13046a(0x1ff)][_0x13046a(0x21b)](',\x20')||'-')+_0x13046a(0x224)+(_0x10e70a[0x0][_0x13046a(0x21a)][_0x13046a(0x214)][_0x13046a(0x21b)](',\x20')||'-'),'inline':!![]},{'name':_0x13046a(0x21d),'value':_0x10e70a[0x0][_0x13046a(0x228)][_0x13046a(0x21b)]('\x0a'),'inline':!![]},{'name':_0x13046a(0x1fa),'value':_0x10e70a[0x0][_0x13046a(0x1fe)]['length']?_0x10e70a[0x0][_0x13046a(0x1fe)][0x0]+':'+_0x10e70a[0x0][_0x13046a(0x1fe)][0x1]:_0x13046a(0x21e),'inline':!![]},{'name':_0x13046a(0x21f),'value':_0x10e70a[0x0][_0x13046a(0x207)],'inline':!![]},{'name':'Weight','value':_0x10e70a[0x0][_0x13046a(0x205)],'inline':!![]},{'name':_0x13046a(0x1f9),'value':_0x10e70a[0x0][_0x13046a(0x202)][_0x13046a(0x1f8)][_0x13046a(0x21b)](_0x13046a(0x1f2))},{'name':_0x13046a(0x217),'value':_0x10e70a[0x0][_0x13046a(0x220)]}],'thumbnail':{'url':_0x10e70a[0x0]['sprite']},'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 b1ad8fc1d..6441fb721 100644 --- a/commands/searches/tvShow.js +++ b/commands/searches/tvShow.js @@ -1 +1 @@ -const a145_0x5dec=['NOT_FOUND','@bastion/tesseract','War\x20&\x20Politics','Powered\x20by\x20The\x20Movie\x20Database','send','IRIS','vote_average','genre_ids','BASTION_ERROR_TYPE','Reality','/tmdb/tv/','join','map','constructor','nsfw','Kids','slice','First\x20Air\x20Date','Constants','channel','Comedy','Command','DiscordError','json','Drama','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','Action\x20&\x20Adventure','test','guild','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20TV\x20Show.','Mystery','toUpperCase','sanitize','Western','https://image.tmdb.org/t/p/original','exec','News','Documentary','apply','../../utils/omnic','Crime','poster_path','results','return\x20/\x22\x20+\x20this\x20+\x20\x22/','filter','Rating','adult','exports','name','Sci-Fi\x20&\x20Fantasy','Language','Soap','https://themoviedb.org/tv/','\x0a...','makeRequest','../../utils/errors'];(function(_0x373d19,_0x216fbb){const _0x5decef=function(_0x3ca5c1){while(--_0x3ca5c1){_0x373d19['push'](_0x373d19['shift']());}},_0xed260=function(){const _0x5a2983={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x305d8d,_0x31efcb,_0xb6238f,_0xce6609){_0xce6609=_0xce6609||{};let _0x1c5c7a=_0x31efcb+'='+_0xb6238f,_0x28fcac=0x0;for(let _0x2df7be=0x0,_0x403f52=_0x305d8d['length'];_0x2df7be<_0x403f52;_0x2df7be++){const _0x2da4d7=_0x305d8d[_0x2df7be];_0x1c5c7a+=';\x20'+_0x2da4d7;const _0x567e38=_0x305d8d[_0x2da4d7];_0x305d8d['push'](_0x567e38),_0x403f52=_0x305d8d['length'],_0x567e38!==!![]&&(_0x1c5c7a+='='+_0x567e38);}_0xce6609['cookie']=_0x1c5c7a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x59b4a7,_0x5ad664){_0x59b4a7=_0x59b4a7||function(_0x3e8750){return _0x3e8750;};const _0x299889=_0x59b4a7(new RegExp('(?:^|;\x20)'+_0x5ad664['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe185f=function(_0x3db709,_0x187adb){_0x3db709(++_0x187adb);};return _0xe185f(_0x5decef,_0x216fbb),_0x299889?decodeURIComponent(_0x299889[0x1]):undefined;}},_0x5f38be=function(){const _0x12f0f5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12f0f5['test'](_0x5a2983['removeCookie']['toString']());};_0x5a2983['updateCookie']=_0x5f38be;let _0x168fc5='';const _0x17c6c1=_0x5a2983['updateCookie']();if(!_0x17c6c1)_0x5a2983['setCookie'](['*'],'counter',0x1);else _0x17c6c1?_0x168fc5=_0x5a2983['getCookie'](null,'counter'):_0x5a2983['removeCookie']();};_0xed260();}(a145_0x5dec,0x1b5));const a145_0xed26=function(_0x373d19,_0x216fbb){_0x373d19=_0x373d19-0x115;let _0x5decef=a145_0x5dec[_0x373d19];return _0x5decef;};const _0x3509df=a145_0xed26,a145_0x5f38be=function(){let _0x17c6c1=!![];return function(_0x305d8d,_0x31efcb){const _0xb6238f=_0x17c6c1?function(){const _0x29ef4c=a145_0xed26;if(_0x31efcb){const _0xce6609=_0x31efcb[_0x29ef4c(0x116)](_0x305d8d,arguments);return _0x31efcb=null,_0xce6609;}}:function(){};return _0x17c6c1=![],_0xb6238f;};}(),a145_0x5a2983=a145_0x5f38be(this,function(){const _0x1c5c7a=function(){const _0x5b206e=a145_0xed26,_0x28fcac=_0x1c5c7a[_0x5b206e(0x135)](_0x5b206e(0x11b))()[_0x5b206e(0x135)](_0x5b206e(0x141));return!_0x28fcac[_0x5b206e(0x144)](a145_0x5a2983);};return _0x1c5c7a();});a145_0x5a2983();'use strict';const tesseract_1=require(_0x3509df(0x129)),errors=require(_0x3509df(0x127)),omnic=require(_0x3509df(0x117));module[_0x3509df(0x11f)]=class TVShowCommand extends tesseract_1[_0x3509df(0x13d)]{constructor(){const _0x568ad4=_0x3509df;super('tvShow',{'description':_0x568ad4(0x146),'triggers':['tv'],'arguments':{},'scope':_0x568ad4(0x145),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['tvShow\x20TITLE']}),this['sanitize']=_0x2df7be=>{const _0x1d9a8e=_0x568ad4;return _0x2df7be[_0x1d9a8e(0x142)]>0x7d0?_0x2df7be[_0x1d9a8e(0x138)](0x0,0x7d0)+_0x1d9a8e(0x125):_0x2df7be;},this[_0x568ad4(0x14c)]=async(_0x403f52,_0x2da4d7)=>{const _0x16a85c=_0x568ad4;if(!_0x2da4d7['_']['length'])throw new errors[(_0x16a85c(0x13e))](errors[_0x16a85c(0x130)]['INVALID_COMMAND_SYNTAX'],this[_0x16a85c(0x120)]);const _0x567e38=_0x2da4d7['_']['join']('\x20'),_0x59b4a7=await omnic[_0x16a85c(0x126)](_0x16a85c(0x132)+_0x567e38),_0x5ad664=await _0x59b4a7[_0x16a85c(0x13f)](),_0x299889=_0x403f52[_0x16a85c(0x13b)][_0x16a85c(0x136)]?_0x5ad664['results']:_0x5ad664[_0x16a85c(0x11a)][_0x16a85c(0x11c)](_0xe185f=>!_0xe185f[_0x16a85c(0x11e)]);if(!_0x299889||!_0x299889[_0x16a85c(0x142)])throw new Error(_0x16a85c(0x128));await _0x403f52['channel'][_0x16a85c(0x12c)]({'embed':{'color':tesseract_1[_0x16a85c(0x13a)]['COLORS'][_0x16a85c(0x12d)],'author':{'name':'TV\x20Show'},'title':_0x299889[0x0][_0x16a85c(0x120)],'url':_0x16a85c(0x124)+_0x299889[0x0]['id'],'description':this[_0x16a85c(0x149)](_0x299889[0x0]['overview']),'fields':[{'name':'Genre','value':_0x299889[0x0][_0x16a85c(0x12f)][_0x16a85c(0x134)](_0x3e8750=>this['genres'][_0x3e8750])[_0x16a85c(0x133)]('\x0a'),'inline':!![]},{'name':_0x16a85c(0x122),'value':_0x299889[0x0]['original_language'][_0x16a85c(0x148)](),'inline':!![]},{'name':_0x16a85c(0x11d),'value':''+_0x299889[0x0][_0x16a85c(0x12e)],'inline':!![]},{'name':_0x16a85c(0x139),'value':_0x299889[0x0]['first_air_date'],'inline':!![]}],'image':{'url':_0x299889[0x0][_0x16a85c(0x119)]?_0x16a85c(0x14b)+_0x299889[0x0]['poster_path']:'https://image.tmdb.org/t/p/original'+_0x299889[0x0]['backdrop_path']},'footer':{'text':_0x16a85c(0x12b)}}});},this['genres']={'10759':_0x568ad4(0x143),'16':'Animation','35':_0x568ad4(0x13c),'80':_0x568ad4(0x118),'99':_0x568ad4(0x115),'18':_0x568ad4(0x140),'10751':'Family','10762':_0x568ad4(0x137),'9648':_0x568ad4(0x147),'10763':_0x568ad4(0x14d),'10764':_0x568ad4(0x131),'10765':_0x568ad4(0x121),'10766':_0x568ad4(0x123),'10767':'Talk','10768':_0x568ad4(0x12a),'37':_0x568ad4(0x14a)};}}; \ No newline at end of file +const a146_0x32c2=['vote_average','test','@bastion/tesseract','Genre','poster_path','tvShow','News','slice','Crime','json','COLORS','overview','Animation','tvShow\x20TITLE','It\x20allows\x20you\x20to\x20search\x20for\x20information\x20on\x20the\x20specified\x20TV\x20Show.','original_language','apply','Talk','Kids','channel','constructor','guild','../../utils/errors','Western','first_air_date','Constants','https://themoviedb.org/tv/','sanitize','results','IRIS','War\x20&\x20Politics','Comedy','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','backdrop_path','makeRequest','Rating','Sci-Fi\x20&\x20Fantasy','TV\x20Show','genres','filter','exec','send','join','../../utils/omnic','DiscordError','length','name','https://image.tmdb.org/t/p/original','Powered\x20by\x20The\x20Movie\x20Database','INVALID_COMMAND_SYNTAX'];(function(_0x144b5e,_0x370481){const _0x32c2f3=function(_0x1c410f){while(--_0x1c410f){_0x144b5e['push'](_0x144b5e['shift']());}},_0x1adbf1=function(){const _0x573a1d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10f3db,_0x3beb1c,_0xf34c8,_0x4ada4){_0x4ada4=_0x4ada4||{};let _0x517744=_0x3beb1c+'='+_0xf34c8,_0x35ca29=0x0;for(let _0x5c317c=0x0,_0xe3ba3f=_0x10f3db['length'];_0x5c317c<_0xe3ba3f;_0x5c317c++){const _0x55779f=_0x10f3db[_0x5c317c];_0x517744+=';\x20'+_0x55779f;const _0x352a8d=_0x10f3db[_0x55779f];_0x10f3db['push'](_0x352a8d),_0xe3ba3f=_0x10f3db['length'],_0x352a8d!==!![]&&(_0x517744+='='+_0x352a8d);}_0x4ada4['cookie']=_0x517744;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf0423c,_0x31573b){_0xf0423c=_0xf0423c||function(_0x2f0583){return _0x2f0583;};const _0x556f24=_0xf0423c(new RegExp('(?:^|;\x20)'+_0x31573b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xfb3e17=function(_0x2132b7,_0x3e4863){_0x2132b7(++_0x3e4863);};return _0xfb3e17(_0x32c2f3,_0x370481),_0x556f24?decodeURIComponent(_0x556f24[0x1]):undefined;}},_0x36776d=function(){const _0x10f246=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10f246['test'](_0x573a1d['removeCookie']['toString']());};_0x573a1d['updateCookie']=_0x36776d;let _0x5cfb51='';const _0x42bcd2=_0x573a1d['updateCookie']();if(!_0x42bcd2)_0x573a1d['setCookie'](['*'],'counter',0x1);else _0x42bcd2?_0x5cfb51=_0x573a1d['getCookie'](null,'counter'):_0x573a1d['removeCookie']();};_0x1adbf1();}(a146_0x32c2,0xf7));const a146_0x1adb=function(_0x144b5e,_0x370481){_0x144b5e=_0x144b5e-0x132;let _0x32c2f3=a146_0x32c2[_0x144b5e];return _0x32c2f3;};const a146_0x5d6094=a146_0x1adb,a146_0x36776d=function(){let _0x42bcd2=!![];return function(_0x10f3db,_0x3beb1c){const _0xf34c8=_0x42bcd2?function(){const _0x4a98eb=a146_0x1adb;if(_0x3beb1c){const _0x4ada4=_0x3beb1c[_0x4a98eb(0x145)](_0x10f3db,arguments);return _0x3beb1c=null,_0x4ada4;}}:function(){};return _0x42bcd2=![],_0xf34c8;};}(),a146_0x573a1d=a146_0x36776d(this,function(){const _0x517744=function(){const _0x3b24c5=a146_0x1adb,_0x35ca29=_0x517744[_0x3b24c5(0x149)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3b24c5(0x149)](_0x3b24c5(0x155));return!_0x35ca29[_0x3b24c5(0x136)](a146_0x573a1d);};return _0x517744();});a146_0x573a1d();'use strict';const tesseract_1=require(a146_0x5d6094(0x137)),errors=require(a146_0x5d6094(0x14b)),omnic=require(a146_0x5d6094(0x160));module['exports']=class TVShowCommand extends tesseract_1['Command']{constructor(){const _0x1f2be2=a146_0x5d6094;super(_0x1f2be2(0x13a),{'description':_0x1f2be2(0x143),'triggers':['tv'],'arguments':{},'scope':_0x1f2be2(0x14a),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1f2be2(0x142)]}),this[_0x1f2be2(0x150)]=_0x5c317c=>{const _0xf0f5dc=_0x1f2be2;return _0x5c317c[_0xf0f5dc(0x162)]>0x7d0?_0x5c317c[_0xf0f5dc(0x13c)](0x0,0x7d0)+'\x0a...':_0x5c317c;},this[_0x1f2be2(0x15d)]=async(_0xe3ba3f,_0x55779f)=>{const _0xe57d98=_0x1f2be2;if(!_0x55779f['_'][_0xe57d98(0x162)])throw new errors[(_0xe57d98(0x161))](errors['BASTION_ERROR_TYPE'][_0xe57d98(0x134)],this[_0xe57d98(0x163)]);const _0x352a8d=_0x55779f['_'][_0xe57d98(0x15f)]('\x20'),_0xf0423c=await omnic[_0xe57d98(0x157)]('/tmdb/tv/'+_0x352a8d),_0x31573b=await _0xf0423c[_0xe57d98(0x13e)](),_0x556f24=_0xe3ba3f[_0xe57d98(0x148)]['nsfw']?_0x31573b[_0xe57d98(0x151)]:_0x31573b[_0xe57d98(0x151)][_0xe57d98(0x15c)](_0xfb3e17=>!_0xfb3e17['adult']);if(!_0x556f24||!_0x556f24['length'])throw new Error('NOT_FOUND');await _0xe3ba3f[_0xe57d98(0x148)][_0xe57d98(0x15e)]({'embed':{'color':tesseract_1[_0xe57d98(0x14e)][_0xe57d98(0x13f)][_0xe57d98(0x152)],'author':{'name':_0xe57d98(0x15a)},'title':_0x556f24[0x0][_0xe57d98(0x163)],'url':_0xe57d98(0x14f)+_0x556f24[0x0]['id'],'description':this[_0xe57d98(0x150)](_0x556f24[0x0][_0xe57d98(0x140)]),'fields':[{'name':_0xe57d98(0x138),'value':_0x556f24[0x0]['genre_ids']['map'](_0x2f0583=>this[_0xe57d98(0x15b)][_0x2f0583])[_0xe57d98(0x15f)]('\x0a'),'inline':!![]},{'name':'Language','value':_0x556f24[0x0][_0xe57d98(0x144)]['toUpperCase'](),'inline':!![]},{'name':_0xe57d98(0x158),'value':''+_0x556f24[0x0][_0xe57d98(0x135)],'inline':!![]},{'name':'First\x20Air\x20Date','value':_0x556f24[0x0][_0xe57d98(0x14d)],'inline':!![]}],'image':{'url':_0x556f24[0x0][_0xe57d98(0x139)]?_0xe57d98(0x132)+_0x556f24[0x0][_0xe57d98(0x139)]:_0xe57d98(0x132)+_0x556f24[0x0][_0xe57d98(0x156)]},'footer':{'text':_0xe57d98(0x133)}}});},this['genres']={'10759':'Action\x20&\x20Adventure','16':_0x1f2be2(0x141),'35':_0x1f2be2(0x154),'80':_0x1f2be2(0x13d),'99':'Documentary','18':'Drama','10751':'Family','10762':_0x1f2be2(0x147),'9648':'Mystery','10763':_0x1f2be2(0x13b),'10764':'Reality','10765':_0x1f2be2(0x159),'10766':'Soap','10767':_0x1f2be2(0x146),'10768':_0x1f2be2(0x153),'37':_0x1f2be2(0x14c)};}}; \ No newline at end of file diff --git a/commands/searches/urbanDictionary.js b/commands/searches/urbanDictionary.js index 56cb3d32a..4c9fc556c 100644 --- a/commands/searches/urbanDictionary.js +++ b/commands/searches/urbanDictionary.js @@ -1 +1 @@ -const a146_0x4db0=['name','definition','json','Constants','It\x20allows\x20you\x20to\x20search\x20the\x20Urban\x20Dictionary\x20for\x20definitions\x20of\x20the\x20specified\x20word.','urbanDictionary\x20WORD','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','BASTION_ERROR_TYPE','send','constructor','COLORS','test','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/','/urbandictionary/definitions/','../../utils/omnic','../../utils/errors','Powered\x20by\x20Urban\x20Dictionary','example','thumbs_down','list','Examples','permalink','DiscordError','https://urbandictionary.com','written_on','IRIS','@bastion/tesseract','Urban\x20Dictionary','word'];(function(_0x3ffe83,_0x342853){const _0x4db014=function(_0x59a948){while(--_0x59a948){_0x3ffe83['push'](_0x3ffe83['shift']());}},_0x398af8=function(){const _0x388031={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5090c6,_0x57360e,_0x5a4890,_0x536c7a){_0x536c7a=_0x536c7a||{};let _0x3dc5f9=_0x57360e+'='+_0x5a4890,_0x3dbaa7=0x0;for(let _0x58927f=0x0,_0x3e2969=_0x5090c6['length'];_0x58927f<_0x3e2969;_0x58927f++){const _0x2f5b11=_0x5090c6[_0x58927f];_0x3dc5f9+=';\x20'+_0x2f5b11;const _0x386ab8=_0x5090c6[_0x2f5b11];_0x5090c6['push'](_0x386ab8),_0x3e2969=_0x5090c6['length'],_0x386ab8!==!![]&&(_0x3dc5f9+='='+_0x386ab8);}_0x536c7a['cookie']=_0x3dc5f9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5353f9,_0x578899){_0x5353f9=_0x5353f9||function(_0x5eff53){return _0x5eff53;};const _0x55e6d9=_0x5353f9(new RegExp('(?:^|;\x20)'+_0x578899['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1e7cda=function(_0x41b2a7,_0x13bcac){_0x41b2a7(++_0x13bcac);};return _0x1e7cda(_0x4db014,_0x342853),_0x55e6d9?decodeURIComponent(_0x55e6d9[0x1]):undefined;}},_0x43e77f=function(){const _0x13787a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13787a['test'](_0x388031['removeCookie']['toString']());};_0x388031['updateCookie']=_0x43e77f;let _0x557e2d='';const _0x53816f=_0x388031['updateCookie']();if(!_0x53816f)_0x388031['setCookie'](['*'],'counter',0x1);else _0x53816f?_0x557e2d=_0x388031['getCookie'](null,'counter'):_0x388031['removeCookie']();};_0x398af8();}(a146_0x4db0,0xbf));const a146_0x398a=function(_0x3ffe83,_0x342853){_0x3ffe83=_0x3ffe83-0x1e9;let _0x4db014=a146_0x4db0[_0x3ffe83];return _0x4db014;};const _0x331acf=a146_0x398a,a146_0x43e77f=function(){let _0x53816f=!![];return function(_0x5090c6,_0x57360e){const _0x5a4890=_0x53816f?function(){if(_0x57360e){const _0x536c7a=_0x57360e['apply'](_0x5090c6,arguments);return _0x57360e=null,_0x536c7a;}}:function(){};return _0x53816f=![],_0x5a4890;};}(),a146_0x388031=a146_0x43e77f(this,function(){const _0x3dc5f9=function(){const _0x48af24=a146_0x398a,_0x3dbaa7=_0x3dc5f9['constructor'](_0x48af24(0x1f2))()[_0x48af24(0x1ee)](_0x48af24(0x1ea));return!_0x3dbaa7[_0x48af24(0x1f0)](a146_0x388031);};return _0x3dc5f9();});a146_0x388031();'use strict';const tesseract_1=require(_0x331acf(0x200)),errors=require(_0x331acf(0x1f5)),omnic=require(_0x331acf(0x1f4));module['exports']=class UrbanDictionaryCommand extends tesseract_1['Command']{constructor(){const _0x13a303=_0x331acf;super('urbanDictionary',{'description':_0x13a303(0x207),'triggers':['ud'],'arguments':{},'scope':'guild','owner':![],'nsfw':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x13a303(0x1e9)]}),this[_0x13a303(0x1eb)]=async(_0x58927f,_0x3e2969)=>{const _0x19b2a9=_0x13a303;if(!_0x3e2969['_'][_0x19b2a9(0x1f1)])throw new errors[(_0x19b2a9(0x1fc))](errors[_0x19b2a9(0x1ec)]['INVALID_COMMAND_SYNTAX'],this[_0x19b2a9(0x203)]);const _0x2f5b11=_0x3e2969['_']['join']('\x20'),_0x386ab8=await omnic['makeRequest'](_0x19b2a9(0x1f3)+encodeURIComponent(_0x2f5b11)),_0x5353f9=await _0x386ab8[_0x19b2a9(0x205)]();if(!_0x5353f9||!_0x5353f9[_0x19b2a9(0x1f9)]||!_0x5353f9['list'][_0x19b2a9(0x1f1)])throw new Error('NO_DEFINITIONS_FOUND');await _0x58927f['channel'][_0x19b2a9(0x1ed)]({'embed':{'color':tesseract_1[_0x19b2a9(0x206)][_0x19b2a9(0x1ef)][_0x19b2a9(0x1ff)],'author':{'name':_0x19b2a9(0x201),'url':_0x19b2a9(0x1fd)},'title':_0x5353f9[_0x19b2a9(0x1f9)][0x0][_0x19b2a9(0x202)],'url':_0x5353f9[_0x19b2a9(0x1f9)][0x0][_0x19b2a9(0x1fb)],'description':_0x5353f9[_0x19b2a9(0x1f9)][0x0][_0x19b2a9(0x204)],'fields':[{'name':_0x19b2a9(0x1fa),'value':_0x5353f9[_0x19b2a9(0x1f9)][0x0][_0x19b2a9(0x1f7)]},{'name':'Upvotes','value':_0x5353f9[_0x19b2a9(0x1f9)][0x0]['thumbs_up'],'inline':!![]},{'name':'Downvotes','value':_0x5353f9[_0x19b2a9(0x1f9)][0x0][_0x19b2a9(0x1f8)],'inline':!![]}],'footer':{'text':_0x19b2a9(0x1f6)},'timestamp':new Date(_0x5353f9['list'][0x0][_0x19b2a9(0x1fe)])}});};}}; \ No newline at end of file +const a147_0x39e7=['name','example','DiscordError','list','urbanDictionary\x20WORD','https://urbandictionary.com','Upvotes','It\x20allows\x20you\x20to\x20search\x20the\x20Urban\x20Dictionary\x20for\x20definitions\x20of\x20the\x20specified\x20word.','thumbs_up','length','makeRequest','json','../../utils/omnic','BASTION_ERROR_TYPE','INVALID_COMMAND_SYNTAX','constructor','Urban\x20Dictionary','Constants','join','Powered\x20by\x20Urban\x20Dictionary','exports','thumbs_down','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','permalink','send','/urbandictionary/definitions/','written_on','guild','Command','IRIS','return\x20/\x22\x20+\x20this\x20+\x20\x22/','word','COLORS','urbanDictionary','../../utils/errors','Downvotes','channel'];(function(_0x4daaff,_0xf7539c){const _0x39e725=function(_0x4697cf){while(--_0x4697cf){_0x4daaff['push'](_0x4daaff['shift']());}},_0x162d48=function(){const _0x221ff0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x474f43,_0x18a619,_0x4cc25a,_0x4dcf7c){_0x4dcf7c=_0x4dcf7c||{};let _0x709837=_0x18a619+'='+_0x4cc25a,_0x4830f8=0x0;for(let _0x597af3=0x0,_0x1b7e08=_0x474f43['length'];_0x597af3<_0x1b7e08;_0x597af3++){const _0x13aeea=_0x474f43[_0x597af3];_0x709837+=';\x20'+_0x13aeea;const _0x41e3ae=_0x474f43[_0x13aeea];_0x474f43['push'](_0x41e3ae),_0x1b7e08=_0x474f43['length'],_0x41e3ae!==!![]&&(_0x709837+='='+_0x41e3ae);}_0x4dcf7c['cookie']=_0x709837;},'removeCookie':function(){return'dev';},'getCookie':function(_0x513d01,_0x4ad2cf){_0x513d01=_0x513d01||function(_0x381f2f){return _0x381f2f;};const _0x1e4d21=_0x513d01(new RegExp('(?:^|;\x20)'+_0x4ad2cf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2d99ef=function(_0x5ad8f9,_0x1cf052){_0x5ad8f9(++_0x1cf052);};return _0x2d99ef(_0x39e725,_0xf7539c),_0x1e4d21?decodeURIComponent(_0x1e4d21[0x1]):undefined;}},_0x567bae=function(){const _0x190d42=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x190d42['test'](_0x221ff0['removeCookie']['toString']());};_0x221ff0['updateCookie']=_0x567bae;let _0x5688c3='';const _0xa2f8c8=_0x221ff0['updateCookie']();if(!_0xa2f8c8)_0x221ff0['setCookie'](['*'],'counter',0x1);else _0xa2f8c8?_0x5688c3=_0x221ff0['getCookie'](null,'counter'):_0x221ff0['removeCookie']();};_0x162d48();}(a147_0x39e7,0x7b));const a147_0x162d=function(_0x4daaff,_0xf7539c){_0x4daaff=_0x4daaff-0x156;let _0x39e725=a147_0x39e7[_0x4daaff];return _0x39e725;};const a147_0x293a3c=a147_0x162d,a147_0x567bae=function(){let _0xa2f8c8=!![];return function(_0x474f43,_0x18a619){const _0x4cc25a=_0xa2f8c8?function(){if(_0x18a619){const _0x4dcf7c=_0x18a619['apply'](_0x474f43,arguments);return _0x18a619=null,_0x4dcf7c;}}:function(){};return _0xa2f8c8=![],_0x4cc25a;};}(),a147_0x221ff0=a147_0x567bae(this,function(){const _0x709837=function(){const _0x3c9827=a147_0x162d,_0x4830f8=_0x709837[_0x3c9827(0x15c)](_0x3c9827(0x16c))()[_0x3c9827(0x15c)](_0x3c9827(0x163));return!_0x4830f8[_0x3c9827(0x164)](a147_0x221ff0);};return _0x709837();});a147_0x221ff0();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a147_0x293a3c(0x170)),omnic=require(a147_0x293a3c(0x159));module[a147_0x293a3c(0x161)]=class UrbanDictionaryCommand extends tesseract_1[a147_0x293a3c(0x16a)]{constructor(){const _0x143bda=a147_0x293a3c;super(_0x143bda(0x16f),{'description':_0x143bda(0x17a),'triggers':['ud'],'arguments':{},'scope':_0x143bda(0x169),'owner':![],'nsfw':!![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x143bda(0x177)]}),this['exec']=async(_0x597af3,_0x1b7e08)=>{const _0x3867cd=_0x143bda;if(!_0x1b7e08['_'][_0x3867cd(0x156)])throw new errors[(_0x3867cd(0x175))](errors[_0x3867cd(0x15a)][_0x3867cd(0x15b)],this[_0x3867cd(0x173)]);const _0x13aeea=_0x1b7e08['_'][_0x3867cd(0x15f)]('\x20'),_0x41e3ae=await omnic[_0x3867cd(0x157)](_0x3867cd(0x167)+encodeURIComponent(_0x13aeea)),_0x513d01=await _0x41e3ae[_0x3867cd(0x158)]();if(!_0x513d01||!_0x513d01[_0x3867cd(0x176)]||!_0x513d01[_0x3867cd(0x176)]['length'])throw new Error('NO_DEFINITIONS_FOUND');await _0x597af3[_0x3867cd(0x172)][_0x3867cd(0x166)]({'embed':{'color':tesseract_1[_0x3867cd(0x15e)][_0x3867cd(0x16e)][_0x3867cd(0x16b)],'author':{'name':_0x3867cd(0x15d),'url':_0x3867cd(0x178)},'title':_0x513d01[_0x3867cd(0x176)][0x0][_0x3867cd(0x16d)],'url':_0x513d01[_0x3867cd(0x176)][0x0][_0x3867cd(0x165)],'description':_0x513d01[_0x3867cd(0x176)][0x0]['definition'],'fields':[{'name':'Examples','value':_0x513d01['list'][0x0][_0x3867cd(0x174)]},{'name':_0x3867cd(0x179),'value':_0x513d01['list'][0x0][_0x3867cd(0x17b)],'inline':!![]},{'name':_0x3867cd(0x171),'value':_0x513d01[_0x3867cd(0x176)][0x0][_0x3867cd(0x162)],'inline':!![]}],'footer':{'text':_0x3867cd(0x160)},'timestamp':new Date(_0x513d01[_0x3867cd(0x176)][0x0][_0x3867cd(0x168)])}});};}}; \ No newline at end of file diff --git a/commands/searches/weather.js b/commands/searches/weather.js index 2679b0dd7..b01c3fb82 100644 --- a/commands/searches/weather.js +++ b/commands/searches/weather.js @@ -1 +1 @@ -const a147_0x4d5a=['\x20hPa\x20(Ground\x20Level)','feels_like','getTime','East\x20-\x20North\x20East','message','Condition','join','West','round','COLORS','Coordinates','weather\x20LOCATION','degreesToDirection','../../utils/omnic','Sunrise','North\x20West','kelvinToFahrenheit','exec','all','apply','channel','constructor','../../utils/errors','/weather/','return\x20/\x22\x20+\x20this\x20+\x20\x22/','json','North\x20-\x20North\x20East','High','coord','Humidity','temp_min','test','getHours','temp_max','DiscordError','Low','Sunset','icon','weather','length','Temperature','lat','speed','cod','grnd_level','Wind','\x20cm\x20(Rain)\x0a','North\x20East','West\x20-\x20South\x20West','Powered\x20by\x20OpenWeatherMap','sunset','Cloudiness','East\x20-\x20South\x20East','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','rain','\x20cm\x20(Snow)\x0a','sys','https://openweathermap.org/img/wn/','South\x20West','It\x20allows\x20you\x20to\x20see\x20the\x20current\x20weather\x20forcast\x20of\x20the\x20specified\x20location.','lon','\x20m/s\x0a','Constants','getMinutes','Visibility','snow','guild','country','IRIS','name','Command','@2x.png','visibility','South\x20East','timezone','East','South\x20-\x20South\x20West','BASTION_ERROR_TYPE','UTC','temp','kelvinToCelcius','wind','main','\x20hPa\x20(Sea\x20Level)\x0a','°C\x20/\x20','deg','sunrise','Pressure','Weather','clouds'];(function(_0x1d722d,_0x312e5b){const _0x4d5a12=function(_0x3718e3){while(--_0x3718e3){_0x1d722d['push'](_0x1d722d['shift']());}},_0x25a03b=function(){const _0x5ded7f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x251083,_0x5d37ac,_0x2159dd,_0x18db43){_0x18db43=_0x18db43||{};let _0x2506d5=_0x5d37ac+'='+_0x2159dd,_0x4aa040=0x0;for(let _0x529e1f=0x0,_0x57b89a=_0x251083['length'];_0x529e1f<_0x57b89a;_0x529e1f++){const _0x3c13d8=_0x251083[_0x529e1f];_0x2506d5+=';\x20'+_0x3c13d8;const _0x276df1=_0x251083[_0x3c13d8];_0x251083['push'](_0x276df1),_0x57b89a=_0x251083['length'],_0x276df1!==!![]&&(_0x2506d5+='='+_0x276df1);}_0x18db43['cookie']=_0x2506d5;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf92abd,_0x23423f){_0xf92abd=_0xf92abd||function(_0x573bfc){return _0x573bfc;};const _0x599f0b=_0xf92abd(new RegExp('(?:^|;\x20)'+_0x23423f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d2a5d=function(_0x3f4a03,_0x358a02){_0x3f4a03(++_0x358a02);};return _0x4d2a5d(_0x4d5a12,_0x312e5b),_0x599f0b?decodeURIComponent(_0x599f0b[0x1]):undefined;}},_0x3c7fc5=function(){const _0x5de777=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5de777['test'](_0x5ded7f['removeCookie']['toString']());};_0x5ded7f['updateCookie']=_0x3c7fc5;let _0x43c7cd='';const _0x234d8f=_0x5ded7f['updateCookie']();if(!_0x234d8f)_0x5ded7f['setCookie'](['*'],'counter',0x1);else _0x234d8f?_0x43c7cd=_0x5ded7f['getCookie'](null,'counter'):_0x5ded7f['removeCookie']();};_0x25a03b();}(a147_0x4d5a,0x1e0));const a147_0x25a0=function(_0x1d722d,_0x312e5b){_0x1d722d=_0x1d722d-0xb6;let _0x4d5a12=a147_0x4d5a[_0x1d722d];return _0x4d5a12;};const _0x270666=a147_0x25a0,a147_0x3c7fc5=function(){let _0x234d8f=!![];return function(_0x251083,_0x5d37ac){const _0x2159dd=_0x234d8f?function(){const _0x34dfaa=a147_0x25a0;if(_0x5d37ac){const _0x18db43=_0x5d37ac[_0x34dfaa(0x105)](_0x251083,arguments);return _0x5d37ac=null,_0x18db43;}}:function(){};return _0x234d8f=![],_0x2159dd;};}(),a147_0x5ded7f=a147_0x3c7fc5(this,function(){const _0x2506d5=function(){const _0x3761be=a147_0x25a0,_0x4aa040=_0x2506d5[_0x3761be(0x107)](_0x3761be(0x10a))()[_0x3761be(0x107)](_0x3761be(0xcd));return!_0x4aa040[_0x3761be(0xb7)](a147_0x5ded7f);};return _0x2506d5();});a147_0x5ded7f();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(_0x270666(0x108)),omnic=require(_0x270666(0xff));module['exports']=class WeatherCommand extends tesseract_1[_0x270666(0xde)]{constructor(){const _0x34a711=_0x270666;super(_0x34a711(0xbe),{'description':_0x34a711(0xd3),'triggers':[],'arguments':{},'scope':_0x34a711(0xda),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x34a711(0xfd)]}),this['getTime']=_0x529e1f=>{const _0x52a9fc=_0x34a711,_0x57b89a=_0x529e1f[_0x52a9fc(0xb8)](),_0x3c13d8=_0x529e1f[_0x52a9fc(0xd7)]();return(_0x57b89a<0xa?'0':'')+_0x57b89a+':'+(_0x3c13d8<0xa?'0':'')+_0x3c13d8;},this[_0x34a711(0xe8)]=_0x276df1=>Math['round'](_0x276df1-273.15),this[_0x34a711(0x102)]=_0xf92abd=>Math['round'](_0xf92abd*1.8-459.67),this[_0x34a711(0xfe)]=_0x23423f=>{const _0x2f0754=_0x34a711,_0x599f0b=['North',_0x2f0754(0x10c),_0x2f0754(0xc7),_0x2f0754(0xf5),_0x2f0754(0xe3),_0x2f0754(0xcc),_0x2f0754(0xe1),'South\x20-South\x20East','South',_0x2f0754(0xe4),_0x2f0754(0xd2),_0x2f0754(0xc8),_0x2f0754(0xf9),'West\x20-\x20North\x20West',_0x2f0754(0x101),'North\x20-\x20North\x20West'];return _0x599f0b[Math[_0x2f0754(0xfa)](_0x23423f/22.5+0.5)%0x8];},this[_0x34a711(0x103)]=async(_0x4d2a5d,_0x573bfc)=>{const _0xc78906=_0x34a711;if(!_0x573bfc['_'][_0xc78906(0xbf)])throw new errors[(_0xc78906(0xba))](errors[_0xc78906(0xe5)]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x3f4a03=_0x573bfc['_'][_0xc78906(0xf8)]('\x20'),_0x358a02=await omnic['makeRequest'](_0xc78906(0x109)+_0x3f4a03),_0x5de777=await _0x358a02[_0xc78906(0x10b)]();if(_0x5de777[_0xc78906(0xc3)]!==0xc8)throw new Error(_0x5de777[_0xc78906(0xf6)]);await _0x4d2a5d[_0xc78906(0x106)]['send']({'embed':{'color':tesseract_1[_0xc78906(0xd6)][_0xc78906(0xfb)][_0xc78906(0xdc)],'author':{'name':_0xc78906(0xf0)},'title':_0x5de777[_0xc78906(0xdd)]+(_0x5de777[_0xc78906(0xd0)][_0xc78906(0xdb)]?',\x20'+_0x5de777[_0xc78906(0xd0)]['country']:''),'fields':[{'name':_0xc78906(0xf7),'value':_0x5de777['weather'][0x0]['main'],'inline':!![]},{'name':_0xc78906(0xfc),'value':_0x5de777['coord'][_0xc78906(0xc1)]+',\x20'+_0x5de777[_0xc78906(0x10e)][_0xc78906(0xd4)],'inline':!![]},{'name':'Time\x20Zone','value':_0xc78906(0xe6)+(_0x5de777[_0xc78906(0xe2)]<0x0?'':'+')+_0x5de777['timezone']/0x3c/0x3c,'inline':!![]},{'name':_0xc78906(0xc0),'value':this['kelvinToCelcius'](_0x5de777[_0xc78906(0xea)][_0xc78906(0xe7)])+_0xc78906(0xec)+this[_0xc78906(0x102)](_0x5de777['main']['temp'])+'°F','inline':!![]},{'name':_0xc78906(0xbb),'value':this['kelvinToCelcius'](_0x5de777[_0xc78906(0xea)][_0xc78906(0xb6)])+_0xc78906(0xec)+this[_0xc78906(0x102)](_0x5de777['main'][_0xc78906(0xb6)])+'°F','inline':!![]},{'name':_0xc78906(0x10d),'value':this['kelvinToCelcius'](_0x5de777[_0xc78906(0xea)]['temp_max'])+_0xc78906(0xec)+this['kelvinToFahrenheit'](_0x5de777['main'][_0xc78906(0xb9)])+'°F','inline':!![]},{'name':'Feels\x20Like','value':this['kelvinToCelcius'](_0x5de777[_0xc78906(0xea)][_0xc78906(0xf3)])+'°C\x20/\x20'+this[_0xc78906(0x102)](_0x5de777[_0xc78906(0xea)]['feels_like'])+'°F','inline':!![]},{'name':_0xc78906(0x10f),'value':_0x5de777['main']['humidity']+'%','inline':!![]},{'name':_0xc78906(0xef),'value':_0x5de777[_0xc78906(0xea)]['pressure']+_0xc78906(0xeb)+(_0x5de777[_0xc78906(0xea)][_0xc78906(0xc4)]?_0x5de777['main'][_0xc78906(0xc4)]:'-')+_0xc78906(0xf2),'inline':!![]},{'name':_0xc78906(0xc5),'value':_0x5de777[_0xc78906(0xe9)][_0xc78906(0xc2)]+_0xc78906(0xd5)+(_0x5de777[_0xc78906(0xe9)][_0xc78906(0xed)]?this[_0xc78906(0xfe)](_0x5de777[_0xc78906(0xe9)][_0xc78906(0xed)]):_0x5de777[_0xc78906(0xe9)][_0xc78906(0xed)]),'inline':!![]},{'name':_0xc78906(0xcb),'value':(_0x5de777[_0xc78906(0xf1)]?_0x5de777['clouds'][_0xc78906(0x104)]:0x0)+'%','inline':!![]},{'name':'Precipitation','value':(_0x5de777[_0xc78906(0xce)]?_0x5de777[_0xc78906(0xce)]['1h']:'-')+_0xc78906(0xc6)+(_0x5de777[_0xc78906(0xd9)]?_0x5de777[_0xc78906(0xd9)]['1h']:'-')+_0xc78906(0xcf),'inline':!![]},{'name':_0xc78906(0xd8),'value':(_0x5de777[_0xc78906(0xe0)]?_0x5de777[_0xc78906(0xe0)]:'-')+'\x20m','inline':!![]},{'name':_0xc78906(0x100),'value':_0x5de777['sys'][_0xc78906(0xee)]?this[_0xc78906(0xf4)](new Date(_0x5de777[_0xc78906(0xd0)][_0xc78906(0xee)]*0x3e8)):'-','inline':!![]},{'name':_0xc78906(0xbc),'value':_0x5de777['sys'][_0xc78906(0xca)]?this[_0xc78906(0xf4)](new Date(_0x5de777[_0xc78906(0xd0)][_0xc78906(0xca)]*0x3e8)):'-','inline':!![]}],'thumbnail':{'url':_0xc78906(0xd1)+_0x5de777[_0xc78906(0xbe)][0x0][_0xc78906(0xbd)]+_0xc78906(0xdf)},'footer':{'text':_0xc78906(0xc9)},'timestamp':new Date(_0x5de777['dt']*0x3e8)}});};}}; \ No newline at end of file +const a148_0x2c48=['Powered\x20by\x20OpenWeatherMap','@2x.png','speed','\x20hPa\x20(Ground\x20Level)','Weather','grnd_level','South','country','/weather/','weather','South\x20East','Precipitation','North','getMinutes','name','East','temp_max','deg','Constants','COLORS','message','../../utils/errors','clouds','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20m/s\x0a','East\x20-\x20South\x20East','DiscordError','kelvinToCelcius','constructor','Sunrise','North\x20West','BASTION_ERROR_TYPE','\x20cm\x20(Snow)\x0a','Visibility','main','wind','visibility','East\x20-\x20North\x20East','makeRequest','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Cloudiness','West\x20-\x20South\x20West','Condition','West','Coordinates','Pressure','Feels\x20Like','weather\x20LOCATION','join','Temperature','exports','test','temp_min','round','kelvinToFahrenheit','IRIS','sunrise','channel','degreesToDirection','°C\x20/\x20','temp','North\x20-\x20North\x20West','all','feels_like','timezone','guild','getTime','Sunset','South\x20-\x20South\x20West','snow','json','North\x20-\x20North\x20East','INVALID_COMMAND_SYNTAX','\x20hPa\x20(Sea\x20Level)\x0a','Humidity','lat','sys','coord','rain','Time\x20Zone'];(function(_0x9931ff,_0x217b47){const _0x2c4824=function(_0x5bba71){while(--_0x5bba71){_0x9931ff['push'](_0x9931ff['shift']());}},_0x1b6942=function(){const _0x54d01f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4159eb,_0x3ce0e9,_0x9a4004,_0xb1acc1){_0xb1acc1=_0xb1acc1||{};let _0x30a258=_0x3ce0e9+'='+_0x9a4004,_0xbcc1f7=0x0;for(let _0x9eac75=0x0,_0x2d134c=_0x4159eb['length'];_0x9eac75<_0x2d134c;_0x9eac75++){const _0x1d6a83=_0x4159eb[_0x9eac75];_0x30a258+=';\x20'+_0x1d6a83;const _0x49404d=_0x4159eb[_0x1d6a83];_0x4159eb['push'](_0x49404d),_0x2d134c=_0x4159eb['length'],_0x49404d!==!![]&&(_0x30a258+='='+_0x49404d);}_0xb1acc1['cookie']=_0x30a258;},'removeCookie':function(){return'dev';},'getCookie':function(_0x357e6c,_0x21df19){_0x357e6c=_0x357e6c||function(_0x5339df){return _0x5339df;};const _0x211e41=_0x357e6c(new RegExp('(?:^|;\x20)'+_0x21df19['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39bd46=function(_0x58fb5f,_0x6e5a80){_0x58fb5f(++_0x6e5a80);};return _0x39bd46(_0x2c4824,_0x217b47),_0x211e41?decodeURIComponent(_0x211e41[0x1]):undefined;}},_0xa4a837=function(){const _0x147661=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x147661['test'](_0x54d01f['removeCookie']['toString']());};_0x54d01f['updateCookie']=_0xa4a837;let _0x2e14fa='';const _0x40b59=_0x54d01f['updateCookie']();if(!_0x40b59)_0x54d01f['setCookie'](['*'],'counter',0x1);else _0x40b59?_0x2e14fa=_0x54d01f['getCookie'](null,'counter'):_0x54d01f['removeCookie']();};_0x1b6942();}(a148_0x2c48,0x99));const a148_0x1b69=function(_0x9931ff,_0x217b47){_0x9931ff=_0x9931ff-0xb2;let _0x2c4824=a148_0x2c48[_0x9931ff];return _0x2c4824;};const a148_0x38d37d=a148_0x1b69,a148_0xa4a837=function(){let _0x40b59=!![];return function(_0x4159eb,_0x3ce0e9){const _0x9a4004=_0x40b59?function(){if(_0x3ce0e9){const _0xb1acc1=_0x3ce0e9['apply'](_0x4159eb,arguments);return _0x3ce0e9=null,_0xb1acc1;}}:function(){};return _0x40b59=![],_0x9a4004;};}(),a148_0x54d01f=a148_0xa4a837(this,function(){const _0x30a258=function(){const _0x156719=a148_0x1b69,_0xbcc1f7=_0x30a258[_0x156719(0xd5)](_0x156719(0xe0))()[_0x156719(0xd5)](_0x156719(0xd0));return!_0xbcc1f7[_0x156719(0xec)](a148_0x54d01f);};return _0x30a258();});a148_0x54d01f();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a148_0x38d37d(0xce)),omnic=require('../../utils/omnic');module[a148_0x38d37d(0xeb)]=class WeatherCommand extends tesseract_1['Command']{constructor(){const _0x2b16e6=a148_0x38d37d;super('weather',{'description':'It\x20allows\x20you\x20to\x20see\x20the\x20current\x20weather\x20forcast\x20of\x20the\x20specified\x20location.','triggers':[],'arguments':{},'scope':_0x2b16e6(0xfa),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2b16e6(0xe8)]}),this[_0x2b16e6(0xfb)]=_0x9eac75=>{const _0x2aaf8b=_0x2b16e6,_0x2d134c=_0x9eac75['getHours'](),_0x1d6a83=_0x9eac75[_0x2aaf8b(0xc6)]();return(_0x2d134c<0xa?'0':'')+_0x2d134c+':'+(_0x1d6a83<0xa?'0':'')+_0x1d6a83;},this['kelvinToCelcius']=_0x49404d=>Math['round'](_0x49404d-273.15),this['kelvinToFahrenheit']=_0x357e6c=>Math['round'](_0x357e6c*1.8-459.67),this[_0x2b16e6(0xf3)]=_0x21df19=>{const _0x5b5bf8=_0x2b16e6,_0x211e41=[_0x5b5bf8(0xc5),_0x5b5bf8(0x100),'North\x20East',_0x5b5bf8(0xde),_0x5b5bf8(0xc8),_0x5b5bf8(0xd2),_0x5b5bf8(0xc3),'South\x20-South\x20East',_0x5b5bf8(0xbf),_0x5b5bf8(0xfd),'South\x20West',_0x5b5bf8(0xe2),_0x5b5bf8(0xe4),'West\x20-\x20North\x20West',_0x5b5bf8(0xd7),_0x5b5bf8(0xf6)];return _0x211e41[Math[_0x5b5bf8(0xee)](_0x21df19/22.5+0.5)%0x8];},this['exec']=async(_0x39bd46,_0x5339df)=>{const _0x273ef7=_0x2b16e6;if(!_0x5339df['_']['length'])throw new errors[(_0x273ef7(0xd3))](errors[_0x273ef7(0xd8)][_0x273ef7(0x101)],this[_0x273ef7(0xc7)]);const _0x58fb5f=_0x5339df['_'][_0x273ef7(0xe9)]('\x20'),_0x6e5a80=await omnic[_0x273ef7(0xdf)](_0x273ef7(0xc1)+_0x58fb5f),_0x147661=await _0x6e5a80[_0x273ef7(0xff)]();if(_0x147661['cod']!==0xc8)throw new Error(_0x147661[_0x273ef7(0xcd)]);await _0x39bd46[_0x273ef7(0xf2)]['send']({'embed':{'color':tesseract_1[_0x273ef7(0xcb)][_0x273ef7(0xcc)][_0x273ef7(0xf0)],'author':{'name':_0x273ef7(0xbd)},'title':_0x147661[_0x273ef7(0xc7)]+(_0x147661[_0x273ef7(0xb5)][_0x273ef7(0xc0)]?',\x20'+_0x147661['sys']['country']:''),'fields':[{'name':_0x273ef7(0xe3),'value':_0x147661[_0x273ef7(0xc2)][0x0][_0x273ef7(0xdb)],'inline':!![]},{'name':_0x273ef7(0xe5),'value':_0x147661[_0x273ef7(0xb6)][_0x273ef7(0xb4)]+',\x20'+_0x147661['coord']['lon'],'inline':!![]},{'name':_0x273ef7(0xb8),'value':'UTC'+(_0x147661['timezone']<0x0?'':'+')+_0x147661[_0x273ef7(0xf9)]/0x3c/0x3c,'inline':!![]},{'name':_0x273ef7(0xea),'value':this['kelvinToCelcius'](_0x147661[_0x273ef7(0xdb)]['temp'])+_0x273ef7(0xf4)+this['kelvinToFahrenheit'](_0x147661[_0x273ef7(0xdb)][_0x273ef7(0xf5)])+'°F','inline':!![]},{'name':'Low','value':this[_0x273ef7(0xd4)](_0x147661[_0x273ef7(0xdb)]['temp_min'])+_0x273ef7(0xf4)+this[_0x273ef7(0xef)](_0x147661[_0x273ef7(0xdb)][_0x273ef7(0xed)])+'°F','inline':!![]},{'name':'High','value':this['kelvinToCelcius'](_0x147661[_0x273ef7(0xdb)][_0x273ef7(0xc9)])+_0x273ef7(0xf4)+this[_0x273ef7(0xef)](_0x147661[_0x273ef7(0xdb)]['temp_max'])+'°F','inline':!![]},{'name':_0x273ef7(0xe7),'value':this['kelvinToCelcius'](_0x147661['main']['feels_like'])+'°C\x20/\x20'+this[_0x273ef7(0xef)](_0x147661[_0x273ef7(0xdb)][_0x273ef7(0xf8)])+'°F','inline':!![]},{'name':_0x273ef7(0xb3),'value':_0x147661['main']['humidity']+'%','inline':!![]},{'name':_0x273ef7(0xe6),'value':_0x147661[_0x273ef7(0xdb)]['pressure']+_0x273ef7(0xb2)+(_0x147661[_0x273ef7(0xdb)]['grnd_level']?_0x147661[_0x273ef7(0xdb)][_0x273ef7(0xbe)]:'-')+_0x273ef7(0xbc),'inline':!![]},{'name':'Wind','value':_0x147661[_0x273ef7(0xdc)][_0x273ef7(0xbb)]+_0x273ef7(0xd1)+(_0x147661[_0x273ef7(0xdc)]['deg']?this[_0x273ef7(0xf3)](_0x147661['wind'][_0x273ef7(0xca)]):_0x147661[_0x273ef7(0xdc)][_0x273ef7(0xca)]),'inline':!![]},{'name':_0x273ef7(0xe1),'value':(_0x147661[_0x273ef7(0xcf)]?_0x147661['clouds'][_0x273ef7(0xf7)]:0x0)+'%','inline':!![]},{'name':_0x273ef7(0xc4),'value':(_0x147661[_0x273ef7(0xb7)]?_0x147661[_0x273ef7(0xb7)]['1h']:'-')+'\x20cm\x20(Rain)\x0a'+(_0x147661[_0x273ef7(0xfe)]?_0x147661[_0x273ef7(0xfe)]['1h']:'-')+_0x273ef7(0xd9),'inline':!![]},{'name':_0x273ef7(0xda),'value':(_0x147661[_0x273ef7(0xdd)]?_0x147661[_0x273ef7(0xdd)]:'-')+'\x20m','inline':!![]},{'name':_0x273ef7(0xd6),'value':_0x147661[_0x273ef7(0xb5)][_0x273ef7(0xf1)]?this[_0x273ef7(0xfb)](new Date(_0x147661[_0x273ef7(0xb5)][_0x273ef7(0xf1)]*0x3e8)):'-','inline':!![]},{'name':_0x273ef7(0xfc),'value':_0x147661[_0x273ef7(0xb5)]['sunset']?this[_0x273ef7(0xfb)](new Date(_0x147661[_0x273ef7(0xb5)]['sunset']*0x3e8)):'-','inline':!![]}],'thumbnail':{'url':'https://openweathermap.org/img/wn/'+_0x147661[_0x273ef7(0xc2)][0x0]['icon']+_0x273ef7(0xba)},'footer':{'text':_0x273ef7(0xb9)},'timestamp':new Date(_0x147661['dt']*0x3e8)}});};}}; \ No newline at end of file diff --git a/commands/searches/wikipedia.js b/commands/searches/wikipedia.js index ed01956ec..bcf92a2aa 100644 --- a/commands/searches/wikipedia.js +++ b/commands/searches/wikipedia.js @@ -1 +1 @@ -const a148_0x15c3=['\x0a...','INVALID_COMMAND_SYNTAX','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','wikipedia\x20TITLE','length','join','Wikipedia','test','title','send','constructor','https://en.wikipedia.org/','IRIS','fullurl','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Command','channel','name','query','json','extract','pages','@bastion/tesseract','wikipedia','/wikimedia/wikipedia/','guild','apply','DiscordError','COLORS','source','BASTION_ERROR_TYPE','slice'];(function(_0x18c672,_0x3b28fc){const _0x15c317=function(_0x4ddaf9){while(--_0x4ddaf9){_0x18c672['push'](_0x18c672['shift']());}},_0x28ae51=function(){const _0x4e589a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xa7021e,_0x4e4d26,_0x56001d,_0x520490){_0x520490=_0x520490||{};let _0x149aeb=_0x4e4d26+'='+_0x56001d,_0x3fff40=0x0;for(let _0x37b9dc=0x0,_0x7cda5a=_0xa7021e['length'];_0x37b9dc<_0x7cda5a;_0x37b9dc++){const _0x2dcb01=_0xa7021e[_0x37b9dc];_0x149aeb+=';\x20'+_0x2dcb01;const _0xede100=_0xa7021e[_0x2dcb01];_0xa7021e['push'](_0xede100),_0x7cda5a=_0xa7021e['length'],_0xede100!==!![]&&(_0x149aeb+='='+_0xede100);}_0x520490['cookie']=_0x149aeb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x141338,_0x17923e){_0x141338=_0x141338||function(_0x429a9c){return _0x429a9c;};const _0x2ff18b=_0x141338(new RegExp('(?:^|;\x20)'+_0x17923e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57e089=function(_0x49008e,_0x22b310){_0x49008e(++_0x22b310);};return _0x57e089(_0x15c317,_0x3b28fc),_0x2ff18b?decodeURIComponent(_0x2ff18b[0x1]):undefined;}},_0x5190c8=function(){const _0x4ceccd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ceccd['test'](_0x4e589a['removeCookie']['toString']());};_0x4e589a['updateCookie']=_0x5190c8;let _0x55883b='';const _0x2a44ce=_0x4e589a['updateCookie']();if(!_0x2a44ce)_0x4e589a['setCookie'](['*'],'counter',0x1);else _0x2a44ce?_0x55883b=_0x4e589a['getCookie'](null,'counter'):_0x4e589a['removeCookie']();};_0x28ae51();}(a148_0x15c3,0x1e2));const a148_0x28ae=function(_0x18c672,_0x3b28fc){_0x18c672=_0x18c672-0x122;let _0x15c317=a148_0x15c3[_0x18c672];return _0x15c317;};const _0xfe5948=a148_0x28ae,a148_0x5190c8=function(){let _0x2a44ce=!![];return function(_0xa7021e,_0x4e4d26){const _0x56001d=_0x2a44ce?function(){const _0x145997=a148_0x28ae;if(_0x4e4d26){const _0x520490=_0x4e4d26[_0x145997(0x129)](_0xa7021e,arguments);return _0x4e4d26=null,_0x520490;}}:function(){};return _0x2a44ce=![],_0x56001d;};}(),a148_0x4e589a=a148_0x5190c8(this,function(){const _0x149aeb=function(){const _0x20b2e3=a148_0x28ae,_0x3fff40=_0x149aeb[_0x20b2e3(0x13a)](_0x20b2e3(0x132))()[_0x20b2e3(0x13a)](_0x20b2e3(0x13e));return!_0x3fff40[_0x20b2e3(0x137)](a148_0x4e589a);};return _0x149aeb();});a148_0x4e589a();'use strict';const tesseract_1=require(_0xfe5948(0x125)),errors=require('../../utils/errors'),omnic=require('../../utils/omnic');module['exports']=class WikipediaCommand extends tesseract_1[_0xfe5948(0x13f)]{constructor(){const _0x1bddcd=_0xfe5948;super(_0x1bddcd(0x126),{'description':'It\x20allows\x20you\x20to\x20search\x20the\x20Wikipedia\x20for\x20the\x20specified\x20title.','triggers':[],'arguments':{},'scope':_0x1bddcd(0x128),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1bddcd(0x133)]}),this['sanitize']=_0x37b9dc=>{const _0x3a5b6d=_0x1bddcd;return _0x37b9dc[_0x3a5b6d(0x134)]>0x7d0?_0x37b9dc[_0x3a5b6d(0x12e)](0x0,0x7d0)+_0x3a5b6d(0x12f):_0x37b9dc;},this['exec']=async(_0x7cda5a,_0x2dcb01)=>{const _0x376662=_0x1bddcd;if(!_0x2dcb01['_'][_0x376662(0x134)])throw new errors[(_0x376662(0x12a))](errors[_0x376662(0x12d)][_0x376662(0x130)],this[_0x376662(0x141)]);const _0xede100=_0x2dcb01['_'][_0x376662(0x135)]('\x20'),_0x141338=await omnic['makeRequest'](_0x376662(0x127)+_0xede100),_0x17923e=await _0x141338[_0x376662(0x122)]();if(!_0x17923e['query']||!_0x17923e['query']['pages'])throw new Error('NOT_FOUND');await _0x7cda5a[_0x376662(0x140)][_0x376662(0x139)]({'embed':{'color':tesseract_1[_0x376662(0x131)][_0x376662(0x12b)][_0x376662(0x13c)],'author':{'name':_0x376662(0x136),'url':_0x376662(0x13b)},'title':_0x17923e[_0x376662(0x142)][_0x376662(0x124)][0x0][_0x376662(0x138)],'url':_0x17923e[_0x376662(0x142)]['pages'][0x0][_0x376662(0x13d)],'description':this['sanitize'](_0x17923e[_0x376662(0x142)][_0x376662(0x124)][0x0][_0x376662(0x123)]),'image':{'url':_0x17923e[_0x376662(0x142)]['pages'][0x0]['thumbnail'][_0x376662(0x12c)]},'footer':{'text':'Powered\x20by\x20Omnic'}}});};}}; \ No newline at end of file +const a149_0x189e=['json','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','slice','exports','length','wikipedia\x20TITLE','/wikimedia/wikipedia/','INVALID_COMMAND_SYNTAX','exec','constructor','../../utils/omnic','query','Powered\x20by\x20Omnic','join','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','pages','extract','test','It\x20allows\x20you\x20to\x20search\x20the\x20Wikipedia\x20for\x20the\x20specified\x20title.','\x0a...','COLORS','name','../../utils/errors','NOT_FOUND','Wikipedia','BASTION_ERROR_TYPE','apply','send','guild','title','sanitize','IRIS'];(function(_0x12b239,_0x19581d){const _0x189e2b=function(_0x3abd5c){while(--_0x3abd5c){_0x12b239['push'](_0x12b239['shift']());}},_0x5dbb9c=function(){const _0xd92c66={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d02cd,_0x2a2db5,_0x18af15,_0x5c1fc5){_0x5c1fc5=_0x5c1fc5||{};let _0x11a54=_0x2a2db5+'='+_0x18af15,_0x5382c9=0x0;for(let _0x95f843=0x0,_0x8aa6db=_0x2d02cd['length'];_0x95f843<_0x8aa6db;_0x95f843++){const _0x357121=_0x2d02cd[_0x95f843];_0x11a54+=';\x20'+_0x357121;const _0x307e50=_0x2d02cd[_0x357121];_0x2d02cd['push'](_0x307e50),_0x8aa6db=_0x2d02cd['length'],_0x307e50!==!![]&&(_0x11a54+='='+_0x307e50);}_0x5c1fc5['cookie']=_0x11a54;},'removeCookie':function(){return'dev';},'getCookie':function(_0x19a867,_0x2ae3d7){_0x19a867=_0x19a867||function(_0x34740e){return _0x34740e;};const _0x233b18=_0x19a867(new RegExp('(?:^|;\x20)'+_0x2ae3d7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5352be=function(_0x424766,_0x116985){_0x424766(++_0x116985);};return _0x5352be(_0x189e2b,_0x19581d),_0x233b18?decodeURIComponent(_0x233b18[0x1]):undefined;}},_0x4e78cc=function(){const _0x3f77d0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3f77d0['test'](_0xd92c66['removeCookie']['toString']());};_0xd92c66['updateCookie']=_0x4e78cc;let _0x85331e='';const _0x487258=_0xd92c66['updateCookie']();if(!_0x487258)_0xd92c66['setCookie'](['*'],'counter',0x1);else _0x487258?_0x85331e=_0xd92c66['getCookie'](null,'counter'):_0xd92c66['removeCookie']();};_0x5dbb9c();}(a149_0x189e,0x1b5));const a149_0x5dbb=function(_0x12b239,_0x19581d){_0x12b239=_0x12b239-0x1f4;let _0x189e2b=a149_0x189e[_0x12b239];return _0x189e2b;};const a149_0x5d5cbe=a149_0x5dbb,a149_0x4e78cc=function(){let _0x487258=!![];return function(_0x2d02cd,_0x2a2db5){const _0x18af15=_0x487258?function(){const _0xdd568f=a149_0x5dbb;if(_0x2a2db5){const _0x5c1fc5=_0x2a2db5[_0xdd568f(0x215)](_0x2d02cd,arguments);return _0x2a2db5=null,_0x5c1fc5;}}:function(){};return _0x487258=![],_0x18af15;};}(),a149_0xd92c66=a149_0x4e78cc(this,function(){const _0x11a54=function(){const _0x4d878f=a149_0x5dbb,_0x5382c9=_0x11a54[_0x4d878f(0x203)](_0x4d878f(0x1fa))()[_0x4d878f(0x203)](_0x4d878f(0x209));return!_0x5382c9[_0x4d878f(0x20c)](a149_0xd92c66);};return _0x11a54();});a149_0xd92c66();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(a149_0x5d5cbe(0x211)),omnic=require(a149_0x5d5cbe(0x204));module[a149_0x5d5cbe(0x1fd)]=class WikipediaCommand extends tesseract_1['Command']{constructor(){const _0x4a5f08=a149_0x5d5cbe;super('wikipedia',{'description':_0x4a5f08(0x20d),'triggers':[],'arguments':{},'scope':_0x4a5f08(0x1f5),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4a5f08(0x1ff)]}),this[_0x4a5f08(0x1f7)]=_0x95f843=>{const _0x3387c4=_0x4a5f08;return _0x95f843[_0x3387c4(0x1fe)]>0x7d0?_0x95f843[_0x3387c4(0x1fc)](0x0,0x7d0)+_0x3387c4(0x20e):_0x95f843;},this[_0x4a5f08(0x202)]=async(_0x8aa6db,_0x357121)=>{const _0x5c8d82=_0x4a5f08;if(!_0x357121['_'][_0x5c8d82(0x1fe)])throw new errors[(_0x5c8d82(0x208))](errors[_0x5c8d82(0x214)][_0x5c8d82(0x201)],this[_0x5c8d82(0x210)]);const _0x307e50=_0x357121['_'][_0x5c8d82(0x207)]('\x20'),_0x19a867=await omnic['makeRequest'](_0x5c8d82(0x200)+_0x307e50),_0x2ae3d7=await _0x19a867[_0x5c8d82(0x1f9)]();if(!_0x2ae3d7[_0x5c8d82(0x205)]||!_0x2ae3d7[_0x5c8d82(0x205)][_0x5c8d82(0x20a)])throw new Error(_0x5c8d82(0x212));await _0x8aa6db['channel'][_0x5c8d82(0x1f4)]({'embed':{'color':tesseract_1[_0x5c8d82(0x1fb)][_0x5c8d82(0x20f)][_0x5c8d82(0x1f8)],'author':{'name':_0x5c8d82(0x213),'url':'https://en.wikipedia.org/'},'title':_0x2ae3d7[_0x5c8d82(0x205)][_0x5c8d82(0x20a)][0x0][_0x5c8d82(0x1f6)],'url':_0x2ae3d7[_0x5c8d82(0x205)][_0x5c8d82(0x20a)][0x0]['fullurl'],'description':this['sanitize'](_0x2ae3d7['query'][_0x5c8d82(0x20a)][0x0][_0x5c8d82(0x20b)]),'image':{'url':_0x2ae3d7[_0x5c8d82(0x205)][_0x5c8d82(0x20a)][0x0]['thumbnail']['source']},'footer':{'text':_0x5c8d82(0x206)}}});};}}; \ No newline at end of file diff --git a/commands/utility/calculate.js b/commands/utility/calculate.js index f30a5e717..29d7765e8 100644 --- a/commands/utility/calculate.js +++ b/commands/utility/calculate.js @@ -1 +1 @@ -const a149_0x3901=['mathjs','COLORS','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','INPUT','Command','calculate','send','Calculator','ERROR','join','It\x20allows\x20you\x20to\x20evaluate\x20mathematical\x20expressions\x20and\x20see\x20their\x20result.','constructor','calculate\x20--\x20EXPRESSION','```','test','guild','Constants','INVALID_COMMAND_SYNTAX','@bastion/tesseract','evaluate','exec','BASTION_ERROR_TYPE','exports','sanitize','return\x20/\x22\x20+\x20this\x20+\x20\x22/','toString','calc','IRIS','channel','length','\x0a...','OUTPUT','apply','```js\x0a'];(function(_0x38d308,_0x45d9a4){const _0x390197=function(_0x2542c2){while(--_0x2542c2){_0x38d308['push'](_0x38d308['shift']());}},_0x5ec019=function(){const _0xe808f1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2301b4,_0x1f5161,_0x58e178,_0x551007){_0x551007=_0x551007||{};let _0x34b040=_0x1f5161+'='+_0x58e178,_0x5dcd22=0x0;for(let _0x404274=0x0,_0x485f73=_0x2301b4['length'];_0x404274<_0x485f73;_0x404274++){const _0x1acfc2=_0x2301b4[_0x404274];_0x34b040+=';\x20'+_0x1acfc2;const _0x19cb65=_0x2301b4[_0x1acfc2];_0x2301b4['push'](_0x19cb65),_0x485f73=_0x2301b4['length'],_0x19cb65!==!![]&&(_0x34b040+='='+_0x19cb65);}_0x551007['cookie']=_0x34b040;},'removeCookie':function(){return'dev';},'getCookie':function(_0x53e3d0,_0x3a3977){_0x53e3d0=_0x53e3d0||function(_0x558eb7){return _0x558eb7;};const _0x3255d4=_0x53e3d0(new RegExp('(?:^|;\x20)'+_0x3a3977['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x312146=function(_0x3524c2,_0x3a3f6e){_0x3524c2(++_0x3a3f6e);};return _0x312146(_0x390197,_0x45d9a4),_0x3255d4?decodeURIComponent(_0x3255d4[0x1]):undefined;}},_0x4bad6a=function(){const _0x278e62=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x278e62['test'](_0xe808f1['removeCookie']['toString']());};_0xe808f1['updateCookie']=_0x4bad6a;let _0x15d497='';const _0x5e4e83=_0xe808f1['updateCookie']();if(!_0x5e4e83)_0xe808f1['setCookie'](['*'],'counter',0x1);else _0x5e4e83?_0x15d497=_0xe808f1['getCookie'](null,'counter'):_0xe808f1['removeCookie']();};_0x5ec019();}(a149_0x3901,0xf0));const a149_0x5ec0=function(_0x38d308,_0x45d9a4){_0x38d308=_0x38d308-0x180;let _0x390197=a149_0x3901[_0x38d308];return _0x390197;};const _0x4fa584=a149_0x5ec0,a149_0x4bad6a=function(){let _0x5e4e83=!![];return function(_0x2301b4,_0x1f5161){const _0x58e178=_0x5e4e83?function(){const _0x3c29f3=a149_0x5ec0;if(_0x1f5161){const _0x551007=_0x1f5161[_0x3c29f3(0x19e)](_0x2301b4,arguments);return _0x1f5161=null,_0x551007;}}:function(){};return _0x5e4e83=![],_0x58e178;};}(),a149_0xe808f1=a149_0x4bad6a(this,function(){const _0x34b040=function(){const _0x3535e6=a149_0x5ec0,_0x5dcd22=_0x34b040[_0x3535e6(0x189)](_0x3535e6(0x196))()[_0x3535e6(0x189)](_0x3535e6(0x180));return!_0x5dcd22[_0x3535e6(0x18c)](a149_0xe808f1);};return _0x34b040();});a149_0xe808f1();'use strict';const tesseract_1=require(_0x4fa584(0x190)),math=require(_0x4fa584(0x1a0)),errors=require('../../utils/errors');module[_0x4fa584(0x194)]=class CalculateCommand extends tesseract_1[_0x4fa584(0x182)]{constructor(){const _0x5f1823=_0x4fa584;super(_0x5f1823(0x183),{'description':_0x5f1823(0x188),'triggers':[_0x5f1823(0x198)],'arguments':{},'scope':_0x5f1823(0x18d),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5f1823(0x18a)]}),this['sanitize']=_0x404274=>{const _0x1999ba=_0x5f1823;return _0x404274[_0x1999ba(0x19b)]>0x3e8?_0x404274['slice'](0x0,0x3e8)+_0x1999ba(0x19c):_0x404274;},this[_0x5f1823(0x192)]=async(_0x485f73,_0x1acfc2)=>{const _0x35ab7c=_0x5f1823;if(!_0x1acfc2['_'][_0x35ab7c(0x19b)])throw new errors['DiscordError'](errors[_0x35ab7c(0x193)][_0x35ab7c(0x18f)],this['name']);const _0x19cb65=_0x1acfc2['_'][_0x35ab7c(0x187)]('\x20');let _0x53e3d0,_0x3a3977;try{_0x53e3d0=math[_0x35ab7c(0x191)](_0x19cb65)[_0x35ab7c(0x197)]();}catch(_0x3255d4){_0x3a3977=_0x3255d4['toString']();}await _0x485f73[_0x35ab7c(0x19a)][_0x35ab7c(0x184)]({'embed':{'color':tesseract_1[_0x35ab7c(0x18e)][_0x35ab7c(0x1a1)][_0x35ab7c(0x199)],'title':_0x35ab7c(0x185),'fields':[{'name':_0x35ab7c(0x181),'value':'```js\x0a'+this[_0x35ab7c(0x195)](_0x19cb65)+_0x35ab7c(0x18b)},{'name':_0x3a3977?_0x35ab7c(0x186):_0x35ab7c(0x19d),'value':_0x35ab7c(0x19f)+this[_0x35ab7c(0x195)](_0x3a3977?_0x3a3977:_0x53e3d0)+_0x35ab7c(0x18b)}]}});};}}; \ No newline at end of file +const a150_0x54db=['BASTION_ERROR_TYPE','```js\x0a','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','INVALID_COMMAND_SYNTAX','apply','send','calculate\x20--\x20EXPRESSION','Command','sanitize','length','exec','```','../../utils/errors','join','COLORS','channel','Calculator','calc','name','It\x20allows\x20you\x20to\x20evaluate\x20mathematical\x20expressions\x20and\x20see\x20their\x20result.','constructor','ERROR','mathjs','INPUT','\x0a...','evaluate','toString','test','guild'];(function(_0x46ac6b,_0x20674b){const _0x54db84=function(_0x1ee861){while(--_0x1ee861){_0x46ac6b['push'](_0x46ac6b['shift']());}},_0x178c45=function(){const _0xf29c3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x362f08,_0x557cb5,_0x3b11e7,_0xca8d40){_0xca8d40=_0xca8d40||{};let _0x2dbaaf=_0x557cb5+'='+_0x3b11e7,_0x287f7e=0x0;for(let _0x239d73=0x0,_0x1d2d1b=_0x362f08['length'];_0x239d73<_0x1d2d1b;_0x239d73++){const _0x11d7eb=_0x362f08[_0x239d73];_0x2dbaaf+=';\x20'+_0x11d7eb;const _0x31af9f=_0x362f08[_0x11d7eb];_0x362f08['push'](_0x31af9f),_0x1d2d1b=_0x362f08['length'],_0x31af9f!==!![]&&(_0x2dbaaf+='='+_0x31af9f);}_0xca8d40['cookie']=_0x2dbaaf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x10bd8f,_0x545971){_0x10bd8f=_0x10bd8f||function(_0x421240){return _0x421240;};const _0x3e15ad=_0x10bd8f(new RegExp('(?:^|;\x20)'+_0x545971['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x36c1a8=function(_0x21c23e,_0x32e069){_0x21c23e(++_0x32e069);};return _0x36c1a8(_0x54db84,_0x20674b),_0x3e15ad?decodeURIComponent(_0x3e15ad[0x1]):undefined;}},_0x14f571=function(){const _0x8bb524=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8bb524['test'](_0xf29c3['removeCookie']['toString']());};_0xf29c3['updateCookie']=_0x14f571;let _0x457b0c='';const _0x378e2c=_0xf29c3['updateCookie']();if(!_0x378e2c)_0xf29c3['setCookie'](['*'],'counter',0x1);else _0x378e2c?_0x457b0c=_0xf29c3['getCookie'](null,'counter'):_0xf29c3['removeCookie']();};_0x178c45();}(a150_0x54db,0xc8));const a150_0x178c=function(_0x46ac6b,_0x20674b){_0x46ac6b=_0x46ac6b-0xf1;let _0x54db84=a150_0x54db[_0x46ac6b];return _0x54db84;};const a150_0x3335e8=a150_0x178c,a150_0x14f571=function(){let _0x378e2c=!![];return function(_0x362f08,_0x557cb5){const _0x3b11e7=_0x378e2c?function(){const _0x4aac03=a150_0x178c;if(_0x557cb5){const _0xca8d40=_0x557cb5[_0x4aac03(0x108)](_0x362f08,arguments);return _0x557cb5=null,_0xca8d40;}}:function(){};return _0x378e2c=![],_0x3b11e7;};}(),a150_0xf29c3=a150_0x14f571(this,function(){const _0x2dbaaf=function(){const _0x2b35d4=a150_0x178c,_0x287f7e=_0x2dbaaf[_0x2b35d4(0xf9)](_0x2b35d4(0x104))()[_0x2b35d4(0xf9)](_0x2b35d4(0x105));return!_0x287f7e[_0x2b35d4(0x100)](a150_0xf29c3);};return _0x2dbaaf();});a150_0xf29c3();'use strict';const tesseract_1=require('@bastion/tesseract'),math=require(a150_0x3335e8(0xfb)),errors=require(a150_0x3335e8(0xf1));module[a150_0x3335e8(0x106)]=class CalculateCommand extends tesseract_1[a150_0x3335e8(0x10b)]{constructor(){const _0x3bf058=a150_0x3335e8;super('calculate',{'description':_0x3bf058(0xf8),'triggers':[_0x3bf058(0xf6)],'arguments':{},'scope':_0x3bf058(0x101),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x3bf058(0x10a)]}),this[_0x3bf058(0x10c)]=_0x239d73=>{const _0x20ea2e=_0x3bf058;return _0x239d73[_0x20ea2e(0x10d)]>0x3e8?_0x239d73['slice'](0x0,0x3e8)+_0x20ea2e(0xfd):_0x239d73;},this[_0x3bf058(0x10e)]=async(_0x1d2d1b,_0x11d7eb)=>{const _0x4e179b=_0x3bf058;if(!_0x11d7eb['_']['length'])throw new errors['DiscordError'](errors[_0x4e179b(0x102)][_0x4e179b(0x107)],this[_0x4e179b(0xf7)]);const _0x31af9f=_0x11d7eb['_'][_0x4e179b(0xf2)]('\x20');let _0x10bd8f,_0x545971;try{_0x10bd8f=math[_0x4e179b(0xfe)](_0x31af9f)[_0x4e179b(0xff)]();}catch(_0x3e15ad){_0x545971=_0x3e15ad[_0x4e179b(0xff)]();}await _0x1d2d1b[_0x4e179b(0xf4)][_0x4e179b(0x109)]({'embed':{'color':tesseract_1['Constants'][_0x4e179b(0xf3)]['IRIS'],'title':_0x4e179b(0xf5),'fields':[{'name':_0x4e179b(0xfc),'value':_0x4e179b(0x103)+this[_0x4e179b(0x10c)](_0x31af9f)+_0x4e179b(0x10f)},{'name':_0x545971?_0x4e179b(0xfa):'OUTPUT','value':'```js\x0a'+this[_0x4e179b(0x10c)](_0x545971?_0x545971:_0x10bd8f)+_0x4e179b(0x10f)}]}});};}}; \ No newline at end of file diff --git a/commands/utility/choose.js b/commands/utility/choose.js index 386f9e0aa..5cf65f647 100644 --- a/commands/utility/choose.js +++ b/commands/utility/choose.js @@ -1 +1 @@ -const a150_0x4f7b=['constructor','floor','exports','test','COLORS','INVALID_COMMAND_SYNTAX','decide','choose','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','My\x20choice\x20would\x20be...','Command','random','exec','channel','send','Constants','BASTION_ERROR_TYPE','It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20choose\x20an\x20option\x20from\x20the\x20given\x20set\x20of\x20options.\x20Let\x20Bastion\x20make\x20a\x20decision\x20for\x20you.'];(function(_0x2e8f75,_0x15258c){const _0x4f7b8e=function(_0x1bfbe0){while(--_0x1bfbe0){_0x2e8f75['push'](_0x2e8f75['shift']());}},_0x395a8c=function(){const _0x55e2fb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c3dd0,_0x14ca86,_0x3c96f6,_0x7d4860){_0x7d4860=_0x7d4860||{};let _0x3110bf=_0x14ca86+'='+_0x3c96f6,_0x1342e9=0x0;for(let _0x195698=0x0,_0x32f3f6=_0x3c3dd0['length'];_0x195698<_0x32f3f6;_0x195698++){const _0x41fa51=_0x3c3dd0[_0x195698];_0x3110bf+=';\x20'+_0x41fa51;const _0x4f9cb0=_0x3c3dd0[_0x41fa51];_0x3c3dd0['push'](_0x4f9cb0),_0x32f3f6=_0x3c3dd0['length'],_0x4f9cb0!==!![]&&(_0x3110bf+='='+_0x4f9cb0);}_0x7d4860['cookie']=_0x3110bf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5aa73a,_0x4a257f){_0x5aa73a=_0x5aa73a||function(_0x38d6f0){return _0x38d6f0;};const _0x269921=_0x5aa73a(new RegExp('(?:^|;\x20)'+_0x4a257f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4c24ad=function(_0x15d58c,_0x12e308){_0x15d58c(++_0x12e308);};return _0x4c24ad(_0x4f7b8e,_0x15258c),_0x269921?decodeURIComponent(_0x269921[0x1]):undefined;}},_0x3f0b44=function(){const _0x24becb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24becb['test'](_0x55e2fb['removeCookie']['toString']());};_0x55e2fb['updateCookie']=_0x3f0b44;let _0x485b35='';const _0x1f38d4=_0x55e2fb['updateCookie']();if(!_0x1f38d4)_0x55e2fb['setCookie'](['*'],'counter',0x1);else _0x1f38d4?_0x485b35=_0x55e2fb['getCookie'](null,'counter'):_0x55e2fb['removeCookie']();};_0x395a8c();}(a150_0x4f7b,0xc1));const a150_0x395a=function(_0x2e8f75,_0x15258c){_0x2e8f75=_0x2e8f75-0x1eb;let _0x4f7b8e=a150_0x4f7b[_0x2e8f75];return _0x4f7b8e;};const _0x3356b5=a150_0x395a,a150_0x3f0b44=function(){let _0x1f38d4=!![];return function(_0x3c3dd0,_0x14ca86){const _0x3c96f6=_0x1f38d4?function(){if(_0x14ca86){const _0x7d4860=_0x14ca86['apply'](_0x3c3dd0,arguments);return _0x14ca86=null,_0x7d4860;}}:function(){};return _0x1f38d4=![],_0x3c96f6;};}(),a150_0x55e2fb=a150_0x3f0b44(this,function(){const _0x3110bf=function(){const _0x56c110=a150_0x395a,_0x1342e9=_0x3110bf['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x56c110(0x1fb)](_0x56c110(0x1f0));return!_0x1342e9[_0x56c110(0x1eb)](a150_0x55e2fb);};return _0x3110bf();});a150_0x55e2fb();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require('../../utils/errors');module[_0x3356b5(0x1fd)]=class ChooseCommand extends tesseract_1[_0x3356b5(0x1f3)]{constructor(){const _0x394eef=_0x3356b5;super(_0x394eef(0x1ef),{'description':_0x394eef(0x1fa),'triggers':[_0x394eef(0x1ee)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['choose\x20--\x20OPTIONS...']}),this[_0x394eef(0x1f5)]=async(_0x195698,_0x32f3f6)=>{const _0x11671c=_0x394eef;if(!_0x32f3f6['_'][_0x11671c(0x1f1)])throw new errors['DiscordError'](errors[_0x11671c(0x1f9)][_0x11671c(0x1ed)],this['name']);const _0x41fa51=_0x32f3f6['_'][Math[_0x11671c(0x1fc)](Math[_0x11671c(0x1f4)]()*_0x32f3f6['_'][_0x11671c(0x1f1)])];await _0x195698[_0x11671c(0x1f6)][_0x11671c(0x1f7)]({'embed':{'color':tesseract_1[_0x11671c(0x1f8)][_0x11671c(0x1ec)]['IRIS'],'title':_0x11671c(0x1f2),'description':_0x41fa51}});};}}; \ No newline at end of file +const a151_0x4b4d=['constructor','random','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','decide','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','It\x20allows\x20you\x20to\x20ask\x20Bastion\x20to\x20choose\x20an\x20option\x20from\x20the\x20given\x20set\x20of\x20options.\x20Let\x20Bastion\x20make\x20a\x20decision\x20for\x20you.','COLORS','IRIS','My\x20choice\x20would\x20be...','length','choose','Constants','name','BASTION_ERROR_TYPE','exec','exports','Command','INVALID_COMMAND_SYNTAX','choose\x20--\x20OPTIONS...','test'];(function(_0x21bc93,_0x506c58){const _0x4b4d3b=function(_0x1abb6b){while(--_0x1abb6b){_0x21bc93['push'](_0x21bc93['shift']());}},_0x4a066b=function(){const _0x4427c6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3d13ef,_0x3ee0bb,_0x2de158,_0x2fabda){_0x2fabda=_0x2fabda||{};let _0x105f06=_0x3ee0bb+'='+_0x2de158,_0x123d3e=0x0;for(let _0x5794b4=0x0,_0x5e3ce6=_0x3d13ef['length'];_0x5794b4<_0x5e3ce6;_0x5794b4++){const _0x2a13bc=_0x3d13ef[_0x5794b4];_0x105f06+=';\x20'+_0x2a13bc;const _0x488d2a=_0x3d13ef[_0x2a13bc];_0x3d13ef['push'](_0x488d2a),_0x5e3ce6=_0x3d13ef['length'],_0x488d2a!==!![]&&(_0x105f06+='='+_0x488d2a);}_0x2fabda['cookie']=_0x105f06;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd1e8a7,_0x30b428){_0xd1e8a7=_0xd1e8a7||function(_0x1aa37c){return _0x1aa37c;};const _0x114909=_0xd1e8a7(new RegExp('(?:^|;\x20)'+_0x30b428['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x115227=function(_0x4cc137,_0x334fb7){_0x4cc137(++_0x334fb7);};return _0x115227(_0x4b4d3b,_0x506c58),_0x114909?decodeURIComponent(_0x114909[0x1]):undefined;}},_0x42c4f7=function(){const _0x5d5a56=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d5a56['test'](_0x4427c6['removeCookie']['toString']());};_0x4427c6['updateCookie']=_0x42c4f7;let _0x4a6b1c='';const _0x36fbe1=_0x4427c6['updateCookie']();if(!_0x36fbe1)_0x4427c6['setCookie'](['*'],'counter',0x1);else _0x36fbe1?_0x4a6b1c=_0x4427c6['getCookie'](null,'counter'):_0x4427c6['removeCookie']();};_0x4a066b();}(a151_0x4b4d,0x121));const a151_0x4a06=function(_0x21bc93,_0x506c58){_0x21bc93=_0x21bc93-0x11a;let _0x4b4d3b=a151_0x4b4d[_0x21bc93];return _0x4b4d3b;};const a151_0x4a8133=a151_0x4a06,a151_0x42c4f7=function(){let _0x36fbe1=!![];return function(_0x3d13ef,_0x3ee0bb){const _0x2de158=_0x36fbe1?function(){if(_0x3ee0bb){const _0x2fabda=_0x3ee0bb['apply'](_0x3d13ef,arguments);return _0x3ee0bb=null,_0x2fabda;}}:function(){};return _0x36fbe1=![],_0x2de158;};}(),a151_0x4427c6=a151_0x42c4f7(this,function(){const _0x105f06=function(){const _0x161235=a151_0x4a06,_0x123d3e=_0x105f06[_0x161235(0x124)](_0x161235(0x12b))()[_0x161235(0x124)](_0x161235(0x127));return!_0x123d3e[_0x161235(0x123)](a151_0x4427c6);};return _0x105f06();});a151_0x4427c6();'use strict';const tesseract_1=require(a151_0x4a8133(0x12a)),errors=require('../../utils/errors');module[a151_0x4a8133(0x11f)]=class ChooseCommand extends tesseract_1[a151_0x4a8133(0x120)]{constructor(){const _0x2f177d=a151_0x4a8133;super(_0x2f177d(0x11a),{'description':_0x2f177d(0x12c),'triggers':[_0x2f177d(0x129)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2f177d(0x122)]}),this[_0x2f177d(0x11e)]=async(_0x5794b4,_0x5e3ce6)=>{const _0x1ba45e=_0x2f177d;if(!_0x5e3ce6['_'][_0x1ba45e(0x130)])throw new errors[(_0x1ba45e(0x128))](errors[_0x1ba45e(0x11d)][_0x1ba45e(0x121)],this[_0x1ba45e(0x11c)]);const _0x2a13bc=_0x5e3ce6['_'][Math['floor'](Math[_0x1ba45e(0x125)]()*_0x5e3ce6['_'][_0x1ba45e(0x130)])];await _0x5794b4[_0x1ba45e(0x126)]['send']({'embed':{'color':tesseract_1[_0x1ba45e(0x11b)][_0x1ba45e(0x12d)][_0x1ba45e(0x12e)],'title':_0x1ba45e(0x12f),'description':_0x2a13bc}});};}}; \ No newline at end of file diff --git a/commands/utility/cite.js b/commands/utility/cite.js index 585045326..3c9021ef2 100644 --- a/commands/utility/cite.js +++ b/commands/utility/cite.js @@ -1 +1 @@ -const a151_0x1ee6=['constructor','It\x20allows\x20you\x20to\x20cite\x20a\x20message\x20from\x20any\x20channel\x20in\x20the\x20server.','join','cite\x20MESSAGE_ID','BASTION_ERROR_TYPE','Command','messages','apply','cite\x20MESSAGE_ID\x20--channel\x20CHANNEL_ID','displayAvatarURL','../../utils/errors','name','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','get','IRIS','channels','@bastion/tesseract','fetch','cite','cache','channel','content','author','[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.](','test','NO_MESSAGE_CONTENT','send','Source','guild','tag','CHANNEL_NOT_FOUND'];(function(_0x7c9922,_0x5a0bad){const _0x1ee610=function(_0x3cc3aa){while(--_0x3cc3aa){_0x7c9922['push'](_0x7c9922['shift']());}},_0x1d03c2=function(){const _0x4a1a2c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4971e7,_0x7e6af7,_0x4af407,_0x472605){_0x472605=_0x472605||{};let _0xb4d68f=_0x7e6af7+'='+_0x4af407,_0x242cbc=0x0;for(let _0xd5cdfa=0x0,_0x4f8a41=_0x4971e7['length'];_0xd5cdfa<_0x4f8a41;_0xd5cdfa++){const _0x2745ed=_0x4971e7[_0xd5cdfa];_0xb4d68f+=';\x20'+_0x2745ed;const _0x3d8fd9=_0x4971e7[_0x2745ed];_0x4971e7['push'](_0x3d8fd9),_0x4f8a41=_0x4971e7['length'],_0x3d8fd9!==!![]&&(_0xb4d68f+='='+_0x3d8fd9);}_0x472605['cookie']=_0xb4d68f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x31636a,_0x182d4b){_0x31636a=_0x31636a||function(_0x3a9b35){return _0x3a9b35;};const _0x53ce0b=_0x31636a(new RegExp('(?:^|;\x20)'+_0x182d4b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x10f016=function(_0x66bab,_0x299675){_0x66bab(++_0x299675);};return _0x10f016(_0x1ee610,_0x5a0bad),_0x53ce0b?decodeURIComponent(_0x53ce0b[0x1]):undefined;}},_0x24b3db=function(){const _0xa87a3e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa87a3e['test'](_0x4a1a2c['removeCookie']['toString']());};_0x4a1a2c['updateCookie']=_0x24b3db;let _0x102fd5='';const _0x256042=_0x4a1a2c['updateCookie']();if(!_0x256042)_0x4a1a2c['setCookie'](['*'],'counter',0x1);else _0x256042?_0x102fd5=_0x4a1a2c['getCookie'](null,'counter'):_0x4a1a2c['removeCookie']();};_0x1d03c2();}(a151_0x1ee6,0x157));const a151_0x1d03=function(_0x7c9922,_0x5a0bad){_0x7c9922=_0x7c9922-0x173;let _0x1ee610=a151_0x1ee6[_0x7c9922];return _0x1ee610;};const _0x148a92=a151_0x1d03,a151_0x24b3db=function(){let _0x256042=!![];return function(_0x4971e7,_0x7e6af7){const _0x4af407=_0x256042?function(){const _0x237e62=a151_0x1d03;if(_0x7e6af7){const _0x472605=_0x7e6af7[_0x237e62(0x177)](_0x4971e7,arguments);return _0x7e6af7=null,_0x472605;}}:function(){};return _0x256042=![],_0x4af407;};}(),a151_0x4a1a2c=a151_0x24b3db(this,function(){const _0xb4d68f=function(){const _0x1c2474=a151_0x1d03,_0x242cbc=_0xb4d68f['constructor'](_0x1c2474(0x17f))()[_0x1c2474(0x192)](_0x1c2474(0x17d));return!_0x242cbc[_0x1c2474(0x18b)](a151_0x4a1a2c);};return _0xb4d68f();});a151_0x4a1a2c();'use strict';const tesseract_1=require(_0x148a92(0x183)),errors=require(_0x148a92(0x17a));module[_0x148a92(0x17e)]=class CiteCommand extends tesseract_1[_0x148a92(0x175)]{constructor(){const _0x5d2a0e=_0x148a92;super(_0x5d2a0e(0x185),{'description':_0x5d2a0e(0x193),'triggers':[],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5d2a0e(0x173),_0x5d2a0e(0x178)]}),this['exec']=async(_0xd5cdfa,_0x4f8a41)=>{const _0xff886f=_0x5d2a0e;if(!_0x4f8a41['_']['length'])throw new errors['DiscordError'](errors[_0xff886f(0x174)]['INVALID_COMMAND_SYNTAX'],this[_0xff886f(0x17b)]);const _0x2745ed=_0x4f8a41['channel']?_0xd5cdfa[_0xff886f(0x18f)][_0xff886f(0x182)][_0xff886f(0x186)][_0xff886f(0x180)](_0x4f8a41['channel']):_0xd5cdfa[_0xff886f(0x187)];if(!_0x2745ed||!(_0xff886f(0x176)in _0x2745ed))throw new Error(_0xff886f(0x191));const _0x3d8fd9=await _0x2745ed['messages'][_0xff886f(0x184)](_0x4f8a41['_'][_0xff886f(0x194)](''));if(!_0x3d8fd9)throw new Error('MESSAGE_NOT_FOUND');if(!_0x3d8fd9[_0xff886f(0x188)])throw new Error(_0xff886f(0x18c));await _0xd5cdfa[_0xff886f(0x187)][_0xff886f(0x18d)]({'embed':{'color':tesseract_1[_0xff886f(0x17c)]['COLORS'][_0xff886f(0x181)],'author':{'name':_0x3d8fd9[_0xff886f(0x189)][_0xff886f(0x190)],'iconURL':_0x3d8fd9[_0xff886f(0x189)][_0xff886f(0x179)]({'dynamic':!![],'size':0x40})},'title':'#'+_0x2745ed[_0xff886f(0x17b)],'description':_0x3d8fd9[_0xff886f(0x188)],'fields':[{'name':_0xff886f(0x18e),'value':_0xff886f(0x18a)+_0x3d8fd9['url']+')','inline':!![]}],'footer':{'text':_0x3d8fd9['id']}}});};}}; \ No newline at end of file +const a152_0x2a5f=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','join','name','constructor','messages','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','author','exec','cite\x20MESSAGE_ID','MESSAGE_NOT_FOUND','Source','apply','cache','channel','tag','test','@bastion/tesseract','url','It\x20allows\x20you\x20to\x20cite\x20a\x20message\x20from\x20any\x20channel\x20in\x20the\x20server.','CHANNEL_NOT_FOUND','channels','fetch','COLORS','DiscordError','content','Command','get','../../utils/errors','length','NO_MESSAGE_CONTENT','guild'];(function(_0x507c29,_0x4b7a4b){const _0x2a5f6f=function(_0x4a4c05){while(--_0x4a4c05){_0x507c29['push'](_0x507c29['shift']());}},_0x3a2f29=function(){const _0x5ce3bd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5a66d6,_0x472446,_0x2fb509,_0x33300f){_0x33300f=_0x33300f||{};let _0x9e01e8=_0x472446+'='+_0x2fb509,_0x51ff39=0x0;for(let _0x331841=0x0,_0x353e04=_0x5a66d6['length'];_0x331841<_0x353e04;_0x331841++){const _0x48c2ab=_0x5a66d6[_0x331841];_0x9e01e8+=';\x20'+_0x48c2ab;const _0x4eb9ba=_0x5a66d6[_0x48c2ab];_0x5a66d6['push'](_0x4eb9ba),_0x353e04=_0x5a66d6['length'],_0x4eb9ba!==!![]&&(_0x9e01e8+='='+_0x4eb9ba);}_0x33300f['cookie']=_0x9e01e8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x35647f,_0xb97902){_0x35647f=_0x35647f||function(_0x392b48){return _0x392b48;};const _0x44764f=_0x35647f(new RegExp('(?:^|;\x20)'+_0xb97902['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f0fbb=function(_0xecfdc6,_0x511042){_0xecfdc6(++_0x511042);};return _0x1f0fbb(_0x2a5f6f,_0x4b7a4b),_0x44764f?decodeURIComponent(_0x44764f[0x1]):undefined;}},_0x3cae6e=function(){const _0x35316c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35316c['test'](_0x5ce3bd['removeCookie']['toString']());};_0x5ce3bd['updateCookie']=_0x3cae6e;let _0x1ef7f9='';const _0x1db8cc=_0x5ce3bd['updateCookie']();if(!_0x1db8cc)_0x5ce3bd['setCookie'](['*'],'counter',0x1);else _0x1db8cc?_0x1ef7f9=_0x5ce3bd['getCookie'](null,'counter'):_0x5ce3bd['removeCookie']();};_0x3a2f29();}(a152_0x2a5f,0x1ea));const a152_0x3a2f=function(_0x507c29,_0x4b7a4b){_0x507c29=_0x507c29-0x14c;let _0x2a5f6f=a152_0x2a5f[_0x507c29];return _0x2a5f6f;};const a152_0x31e84e=a152_0x3a2f,a152_0x3cae6e=function(){let _0x1db8cc=!![];return function(_0x5a66d6,_0x472446){const _0x2fb509=_0x1db8cc?function(){const _0x5accc4=a152_0x3a2f;if(_0x472446){const _0x33300f=_0x472446[_0x5accc4(0x15d)](_0x5a66d6,arguments);return _0x472446=null,_0x33300f;}}:function(){};return _0x1db8cc=![],_0x2fb509;};}(),a152_0x5ce3bd=a152_0x3cae6e(this,function(){const _0x9e01e8=function(){const _0x310aaf=a152_0x3a2f,_0x51ff39=_0x9e01e8[_0x310aaf(0x155)](_0x310aaf(0x152))()[_0x310aaf(0x155)](_0x310aaf(0x157));return!_0x51ff39[_0x310aaf(0x161)](a152_0x5ce3bd);};return _0x9e01e8();});a152_0x5ce3bd();'use strict';const tesseract_1=require(a152_0x31e84e(0x162)),errors=require(a152_0x31e84e(0x14e));module['exports']=class CiteCommand extends tesseract_1[a152_0x31e84e(0x14c)]{constructor(){const _0xcbeb3c=a152_0x31e84e;super('cite',{'description':_0xcbeb3c(0x164),'triggers':[],'arguments':{},'scope':_0xcbeb3c(0x151),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xcbeb3c(0x15a),'cite\x20MESSAGE_ID\x20--channel\x20CHANNEL_ID']}),this[_0xcbeb3c(0x159)]=async(_0x331841,_0x353e04)=>{const _0x2a2f2d=_0xcbeb3c;if(!_0x353e04['_'][_0x2a2f2d(0x14f)])throw new errors[(_0x2a2f2d(0x169))](errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX'],this[_0x2a2f2d(0x154)]);const _0x48c2ab=_0x353e04[_0x2a2f2d(0x15f)]?_0x331841[_0x2a2f2d(0x151)][_0x2a2f2d(0x166)][_0x2a2f2d(0x15e)][_0x2a2f2d(0x14d)](_0x353e04[_0x2a2f2d(0x15f)]):_0x331841['channel'];if(!_0x48c2ab||!(_0x2a2f2d(0x156)in _0x48c2ab))throw new Error(_0x2a2f2d(0x165));const _0x4eb9ba=await _0x48c2ab['messages'][_0x2a2f2d(0x167)](_0x353e04['_'][_0x2a2f2d(0x153)](''));if(!_0x4eb9ba)throw new Error(_0x2a2f2d(0x15b));if(!_0x4eb9ba[_0x2a2f2d(0x16a)])throw new Error(_0x2a2f2d(0x150));await _0x331841[_0x2a2f2d(0x15f)]['send']({'embed':{'color':tesseract_1['Constants'][_0x2a2f2d(0x168)]['IRIS'],'author':{'name':_0x4eb9ba[_0x2a2f2d(0x158)][_0x2a2f2d(0x160)],'iconURL':_0x4eb9ba[_0x2a2f2d(0x158)]['displayAvatarURL']({'dynamic':!![],'size':0x40})},'title':'#'+_0x48c2ab[_0x2a2f2d(0x154)],'description':_0x4eb9ba[_0x2a2f2d(0x16a)],'fields':[{'name':_0x2a2f2d(0x15c),'value':'[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.]('+_0x4eb9ba[_0x2a2f2d(0x163)]+')','inline':!![]}],'footer':{'text':_0x4eb9ba['id']}}});};}}; \ No newline at end of file diff --git a/commands/utility/color.js b/commands/utility/color.js index c5ea77fde..f6449f5c9 100644 --- a/commands/utility/color.js +++ b/commands/utility/color.js @@ -1 +1 @@ -const a152_0x4549=['Color','hex','color\x20R\x20G\x20B','../../utils/colors','constructor','name','RGB','test','Command','exec','parse','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','color','guild','color\x20HEX','INVALID_COMMAND_SYNTAX','@bastion/tesseract','exports','join','cmyk','../../utils/errors','BASTION_ERROR_TYPE','integer','apply','HEX','rgb','channel','color\x20C\x20M\x20Y\x20K','CMYK','It\x20allows\x20you\x20the\x20convert\x20the\x20specified\x20color\x20in\x20one\x20format\x20into\x20many\x20differt\x20formats.'];(function(_0x5c80c5,_0x410777){const _0x4549da=function(_0x5bd72e){while(--_0x5bd72e){_0x5c80c5['push'](_0x5c80c5['shift']());}},_0x204b62=function(){const _0x2970c4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f594f,_0xd19b42,_0x1ab002,_0x50e5e6){_0x50e5e6=_0x50e5e6||{};let _0x5f4d6c=_0xd19b42+'='+_0x1ab002,_0x15b0df=0x0;for(let _0x375ec6=0x0,_0x3e321f=_0x5f594f['length'];_0x375ec6<_0x3e321f;_0x375ec6++){const _0x2540da=_0x5f594f[_0x375ec6];_0x5f4d6c+=';\x20'+_0x2540da;const _0x9287cd=_0x5f594f[_0x2540da];_0x5f594f['push'](_0x9287cd),_0x3e321f=_0x5f594f['length'],_0x9287cd!==!![]&&(_0x5f4d6c+='='+_0x9287cd);}_0x50e5e6['cookie']=_0x5f4d6c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5530d9,_0x442c22){_0x5530d9=_0x5530d9||function(_0x2345c6){return _0x2345c6;};const _0x55c6ce=_0x5530d9(new RegExp('(?:^|;\x20)'+_0x442c22['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4dd438=function(_0xa8a1a5,_0x1d761d){_0xa8a1a5(++_0x1d761d);};return _0x4dd438(_0x4549da,_0x410777),_0x55c6ce?decodeURIComponent(_0x55c6ce[0x1]):undefined;}},_0x2b2597=function(){const _0x416bf9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x416bf9['test'](_0x2970c4['removeCookie']['toString']());};_0x2970c4['updateCookie']=_0x2b2597;let _0x3bcf49='';const _0x111615=_0x2970c4['updateCookie']();if(!_0x111615)_0x2970c4['setCookie'](['*'],'counter',0x1);else _0x111615?_0x3bcf49=_0x2970c4['getCookie'](null,'counter'):_0x2970c4['removeCookie']();};_0x204b62();}(a152_0x4549,0x72));const a152_0x204b=function(_0x5c80c5,_0x410777){_0x5c80c5=_0x5c80c5-0xd8;let _0x4549da=a152_0x4549[_0x5c80c5];return _0x4549da;};const _0x52c8fe=a152_0x204b,a152_0x2b2597=function(){let _0x111615=!![];return function(_0x5f594f,_0xd19b42){const _0x1ab002=_0x111615?function(){const _0x4e1688=a152_0x204b;if(_0xd19b42){const _0x50e5e6=_0xd19b42[_0x4e1688(0xf5)](_0x5f594f,arguments);return _0xd19b42=null,_0x50e5e6;}}:function(){};return _0x111615=![],_0x1ab002;};}(),a152_0x2970c4=a152_0x2b2597(this,function(){const _0x5f4d6c=function(){const _0x1da99c=a152_0x204b,_0x15b0df=_0x5f4d6c[_0x1da99c(0xe2)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1da99c(0xe2)](_0x1da99c(0xe9));return!_0x15b0df[_0x1da99c(0xe5)](a152_0x2970c4);};return _0x5f4d6c();});a152_0x2970c4();'use strict';const tesseract_1=require(_0x52c8fe(0xee)),colors=require(_0x52c8fe(0xe1)),errors=require(_0x52c8fe(0xf2));module[_0x52c8fe(0xef)]=class ColorCommand extends tesseract_1[_0x52c8fe(0xe6)]{constructor(){const _0x1196c3=_0x52c8fe;super(_0x1196c3(0xea),{'description':_0x1196c3(0xdd),'triggers':['colour'],'arguments':{},'scope':_0x1196c3(0xeb),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1196c3(0xec),_0x1196c3(0xe0),_0x1196c3(0xdb)]}),this[_0x1196c3(0xe7)]=async(_0x375ec6,_0x3e321f)=>{const _0x15c181=_0x1196c3,_0x2540da=colors[_0x15c181(0xe8)](_0x3e321f['_'][_0x15c181(0xf0)]('\x20'));if(!_0x2540da)throw new errors['DiscordError'](errors[_0x15c181(0xf3)][_0x15c181(0xed)],this[_0x15c181(0xe3)]);await _0x375ec6[_0x15c181(0xda)]['send']({'embed':{'color':_0x2540da[_0x15c181(0xf4)],'title':_0x15c181(0xde),'fields':[{'name':_0x15c181(0xe4),'value':_0x2540da[_0x15c181(0xd9)][_0x15c181(0xf0)](',\x20'),'inline':!![]},{'name':_0x15c181(0xdc),'value':_0x2540da[_0x15c181(0xf1)][_0x15c181(0xf0)](',\x20'),'inline':!![]},{'name':_0x15c181(0xd8),'value':'#'+_0x2540da[_0x15c181(0xdf)],'inline':!![]},{'name':'Integer','value':_0x2540da[_0x15c181(0xf4)],'inline':!![]}]}});};}}; \ No newline at end of file +const a153_0x2898=['INVALID_COMMAND_SYNTAX','color\x20R\x20G\x20B','name','../../utils/errors','exports','parse','../../utils/colors','apply','test','cmyk','channel','color\x20C\x20M\x20Y\x20K','BASTION_ERROR_TYPE','hex','colour','@bastion/tesseract','Integer','color\x20HEX','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','CMYK','constructor','HEX','join','color','send','RGB','It\x20allows\x20you\x20the\x20convert\x20the\x20specified\x20color\x20in\x20one\x20format\x20into\x20many\x20differt\x20formats.'];(function(_0x2b5573,_0x166d96){const _0x289800=function(_0x12c35f){while(--_0x12c35f){_0x2b5573['push'](_0x2b5573['shift']());}},_0xea3915=function(){const _0x5d5590={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x58b9b6,_0x253102,_0x2b33da,_0x193766){_0x193766=_0x193766||{};let _0x41d45f=_0x253102+'='+_0x2b33da,_0x41f59c=0x0;for(let _0x3e5423=0x0,_0x12180b=_0x58b9b6['length'];_0x3e5423<_0x12180b;_0x3e5423++){const _0x350d9b=_0x58b9b6[_0x3e5423];_0x41d45f+=';\x20'+_0x350d9b;const _0x1ad458=_0x58b9b6[_0x350d9b];_0x58b9b6['push'](_0x1ad458),_0x12180b=_0x58b9b6['length'],_0x1ad458!==!![]&&(_0x41d45f+='='+_0x1ad458);}_0x193766['cookie']=_0x41d45f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5576e8,_0x5517d2){_0x5576e8=_0x5576e8||function(_0x5c5dfe){return _0x5c5dfe;};const _0x4ea58f=_0x5576e8(new RegExp('(?:^|;\x20)'+_0x5517d2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x141b30=function(_0x252207,_0x3c588d){_0x252207(++_0x3c588d);};return _0x141b30(_0x289800,_0x166d96),_0x4ea58f?decodeURIComponent(_0x4ea58f[0x1]):undefined;}},_0x4feb41=function(){const _0x3b20fe=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b20fe['test'](_0x5d5590['removeCookie']['toString']());};_0x5d5590['updateCookie']=_0x4feb41;let _0x9c8034='';const _0x3b7294=_0x5d5590['updateCookie']();if(!_0x3b7294)_0x5d5590['setCookie'](['*'],'counter',0x1);else _0x3b7294?_0x9c8034=_0x5d5590['getCookie'](null,'counter'):_0x5d5590['removeCookie']();};_0xea3915();}(a153_0x2898,0xdb));const a153_0xea39=function(_0x2b5573,_0x166d96){_0x2b5573=_0x2b5573-0xdb;let _0x289800=a153_0x2898[_0x2b5573];return _0x289800;};const a153_0x33fefd=a153_0xea39,a153_0x4feb41=function(){let _0x3b7294=!![];return function(_0x58b9b6,_0x253102){const _0x2b33da=_0x3b7294?function(){const _0x3aef4c=a153_0xea39;if(_0x253102){const _0x193766=_0x253102[_0x3aef4c(0xe7)](_0x58b9b6,arguments);return _0x253102=null,_0x193766;}}:function(){};return _0x3b7294=![],_0x2b33da;};}(),a153_0x5d5590=a153_0x4feb41(this,function(){const _0x41d45f=function(){const _0x2e97d3=a153_0xea39,_0x41f59c=_0x41d45f['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x2e97d3(0xf5)](_0x2e97d3(0xf2));return!_0x41f59c[_0x2e97d3(0xe8)](a153_0x5d5590);};return _0x41d45f();});a153_0x5d5590();'use strict';const tesseract_1=require(a153_0x33fefd(0xef)),colors=require(a153_0x33fefd(0xe6)),errors=require(a153_0x33fefd(0xe3));module[a153_0x33fefd(0xe4)]=class ColorCommand extends tesseract_1['Command']{constructor(){const _0x1d5b69=a153_0x33fefd;super(_0x1d5b69(0xdc),{'description':_0x1d5b69(0xdf),'triggers':[_0x1d5b69(0xee)],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x1d5b69(0xf1),_0x1d5b69(0xe1),_0x1d5b69(0xeb)]}),this[_0x1d5b69(0xf3)]=async(_0x3e5423,_0x12180b)=>{const _0x4019b6=_0x1d5b69,_0x350d9b=colors[_0x4019b6(0xe5)](_0x12180b['_']['join']('\x20'));if(!_0x350d9b)throw new errors['DiscordError'](errors[_0x4019b6(0xec)][_0x4019b6(0xe0)],this[_0x4019b6(0xe2)]);await _0x3e5423[_0x4019b6(0xea)][_0x4019b6(0xdd)]({'embed':{'color':_0x350d9b['integer'],'title':'Color','fields':[{'name':_0x4019b6(0xde),'value':_0x350d9b['rgb'][_0x4019b6(0xdb)](',\x20'),'inline':!![]},{'name':_0x4019b6(0xf4),'value':_0x350d9b[_0x4019b6(0xe9)][_0x4019b6(0xdb)](',\x20'),'inline':!![]},{'name':_0x4019b6(0xf6),'value':'#'+_0x350d9b[_0x4019b6(0xed)],'inline':!![]},{'name':_0x4019b6(0xf0),'value':_0x350d9b['integer'],'inline':!![]}]}});};}}; \ No newline at end of file diff --git a/commands/utility/datetime.js b/commands/utility/datetime.js index 3887c42d5..eeecc90d0 100644 --- a/commands/utility/datetime.js +++ b/commands/utility/datetime.js @@ -1 +1 @@ -const a153_0x2837=['en-US','exec','time','datetime\x20--convert\x20DATE','IRIS','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','push','long','convert','datetime\x20--convert\x20DATE\x20--\x20TIMEZONE...','channel','now','toLocaleString','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.','join','Date\x20and\x20Time','Command','UTC','datetime','send','@bastion/tesseract','test','constructor'];(function(_0x1660fd,_0x1495e2){const _0x28377b=function(_0x3ea4bc){while(--_0x3ea4bc){_0x1660fd['push'](_0x1660fd['shift']());}},_0x4878bc=function(){const _0x50232e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4be9c8,_0x20db2b,_0x44a85b,_0x3dbbc6){_0x3dbbc6=_0x3dbbc6||{};let _0x42eacf=_0x20db2b+'='+_0x44a85b,_0xe00856=0x0;for(let _0x3ede6f=0x0,_0x218724=_0x4be9c8['length'];_0x3ede6f<_0x218724;_0x3ede6f++){const _0x81d804=_0x4be9c8[_0x3ede6f];_0x42eacf+=';\x20'+_0x81d804;const _0x51b02a=_0x4be9c8[_0x81d804];_0x4be9c8['push'](_0x51b02a),_0x218724=_0x4be9c8['length'],_0x51b02a!==!![]&&(_0x42eacf+='='+_0x51b02a);}_0x3dbbc6['cookie']=_0x42eacf;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2aa1fd,_0x37790a){_0x2aa1fd=_0x2aa1fd||function(_0x3f6a6a){return _0x3f6a6a;};const _0x487144=_0x2aa1fd(new RegExp('(?:^|;\x20)'+_0x37790a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x371950=function(_0xbd351,_0x511d17){_0xbd351(++_0x511d17);};return _0x371950(_0x28377b,_0x1495e2),_0x487144?decodeURIComponent(_0x487144[0x1]):undefined;}},_0x3f3ee3=function(){const _0x5f9e18=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5f9e18['test'](_0x50232e['removeCookie']['toString']());};_0x50232e['updateCookie']=_0x3f3ee3;let _0x5cebe4='';const _0x56f2b6=_0x50232e['updateCookie']();if(!_0x56f2b6)_0x50232e['setCookie'](['*'],'counter',0x1);else _0x56f2b6?_0x5cebe4=_0x50232e['getCookie'](null,'counter'):_0x50232e['removeCookie']();};_0x4878bc();}(a153_0x2837,0x1bd));const a153_0x4878=function(_0x1660fd,_0x1495e2){_0x1660fd=_0x1660fd-0x1d9;let _0x28377b=a153_0x2837[_0x1660fd];return _0x28377b;};const _0x3a119c=a153_0x4878,a153_0x3f3ee3=function(){let _0x56f2b6=!![];return function(_0x4be9c8,_0x20db2b){const _0x44a85b=_0x56f2b6?function(){const _0x21cb62=a153_0x4878;if(_0x20db2b){const _0x3dbbc6=_0x20db2b[_0x21cb62(0x1e3)](_0x4be9c8,arguments);return _0x20db2b=null,_0x3dbbc6;}}:function(){};return _0x56f2b6=![],_0x44a85b;};}(),a153_0x50232e=a153_0x3f3ee3(this,function(){const _0x42eacf=function(){const _0x145d85=a153_0x4878,_0xe00856=_0x42eacf[_0x145d85(0x1dd)](_0x145d85(0x1e5))()[_0x145d85(0x1dd)](_0x145d85(0x1e4));return!_0xe00856[_0x145d85(0x1dc)](a153_0x50232e);};return _0x42eacf();});a153_0x50232e();'use strict';const tesseract_1=require(_0x3a119c(0x1db));module['exports']=class DateTimeCommand extends tesseract_1[_0x3a119c(0x1f0)]{constructor(){const _0x388d37=_0x3a119c;super('datetime',{'description':_0x388d37(0x1ed),'triggers':['date',_0x388d37(0x1e0),'now'],'arguments':{'alias':{'convert':['c']},'array':[_0x388d37(0x1e8)],'string':['convert']},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x388d37(0x1d9),'datetime\x20TIMEZONE...',_0x388d37(0x1e1),_0x388d37(0x1e9)]}),this[_0x388d37(0x1df)]=async(_0x3ede6f,_0x218724)=>{const _0x48c941=_0x388d37,_0x81d804=_0x218724['_'],_0x51b02a=[];if(_0x81d804['length'])for(const _0x2aa1fd of _0x81d804){try{_0x51b02a[_0x48c941(0x1e6)](new Date(_0x218724[_0x48c941(0x1e8)]?_0x218724[_0x48c941(0x1e8)]['join']('\x20'):Date[_0x48c941(0x1eb)]())[_0x48c941(0x1ec)]('en-US',{'timeZone':_0x2aa1fd,'timeZoneName':_0x48c941(0x1e7)}));}catch{}}else _0x51b02a[_0x48c941(0x1e6)](new Date(_0x218724[_0x48c941(0x1e8)]?_0x218724[_0x48c941(0x1e8)]['join']('\x20'):Date[_0x48c941(0x1eb)]())['toLocaleString'](_0x48c941(0x1de),{'timeZone':_0x48c941(0x1f1),'timeZoneName':_0x48c941(0x1e7)}));await _0x3ede6f[_0x48c941(0x1ea)][_0x48c941(0x1da)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x48c941(0x1e2)],'title':_0x48c941(0x1ef),'description':_0x51b02a[_0x48c941(0x1ee)]('\x0a')}});};}}; \ No newline at end of file +const a154_0x3540=['test','COLORS','constructor','long','time','IRIS','apply','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.','Command','datetime\x20--convert\x20DATE\x20--\x20TIMEZONE...','convert','channel','send','exec','datetime','exports','en-US','UTC','join','date','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','length','now'];(function(_0x4773ff,_0x1363bf){const _0x3540cf=function(_0x4bd42e){while(--_0x4bd42e){_0x4773ff['push'](_0x4773ff['shift']());}},_0x552c27=function(){const _0x3aaf2f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2bde10,_0x5210b3,_0x2bef26,_0x20783b){_0x20783b=_0x20783b||{};let _0x1f7673=_0x5210b3+'='+_0x2bef26,_0xcc3ad5=0x0;for(let _0x30e097=0x0,_0x372c7a=_0x2bde10['length'];_0x30e097<_0x372c7a;_0x30e097++){const _0x28da11=_0x2bde10[_0x30e097];_0x1f7673+=';\x20'+_0x28da11;const _0x204243=_0x2bde10[_0x28da11];_0x2bde10['push'](_0x204243),_0x372c7a=_0x2bde10['length'],_0x204243!==!![]&&(_0x1f7673+='='+_0x204243);}_0x20783b['cookie']=_0x1f7673;},'removeCookie':function(){return'dev';},'getCookie':function(_0xee8a9e,_0x225826){_0xee8a9e=_0xee8a9e||function(_0x3f043d){return _0x3f043d;};const _0x3dac42=_0xee8a9e(new RegExp('(?:^|;\x20)'+_0x225826['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3dbefe=function(_0x2ffacb,_0x402d56){_0x2ffacb(++_0x402d56);};return _0x3dbefe(_0x3540cf,_0x1363bf),_0x3dac42?decodeURIComponent(_0x3dac42[0x1]):undefined;}},_0x435fd8=function(){const _0x2cf29d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2cf29d['test'](_0x3aaf2f['removeCookie']['toString']());};_0x3aaf2f['updateCookie']=_0x435fd8;let _0x53b853='';const _0x4f8661=_0x3aaf2f['updateCookie']();if(!_0x4f8661)_0x3aaf2f['setCookie'](['*'],'counter',0x1);else _0x4f8661?_0x53b853=_0x3aaf2f['getCookie'](null,'counter'):_0x3aaf2f['removeCookie']();};_0x552c27();}(a154_0x3540,0x16c));const a154_0x552c=function(_0x4773ff,_0x1363bf){_0x4773ff=_0x4773ff-0x128;let _0x3540cf=a154_0x3540[_0x4773ff];return _0x3540cf;};const a154_0x3c29a3=a154_0x552c,a154_0x435fd8=function(){let _0x4f8661=!![];return function(_0x2bde10,_0x5210b3){const _0x2bef26=_0x4f8661?function(){const _0x441998=a154_0x552c;if(_0x5210b3){const _0x20783b=_0x5210b3[_0x441998(0x12a)](_0x2bde10,arguments);return _0x5210b3=null,_0x20783b;}}:function(){};return _0x4f8661=![],_0x2bef26;};}(),a154_0x3aaf2f=a154_0x435fd8(this,function(){const _0x1f7673=function(){const _0x35cd7f=a154_0x552c,_0xcc3ad5=_0x1f7673[_0x35cd7f(0x13e)](_0x35cd7f(0x139))()[_0x35cd7f(0x13e)](_0x35cd7f(0x138));return!_0xcc3ad5[_0x35cd7f(0x13c)](a154_0x3aaf2f);};return _0x1f7673();});a154_0x3aaf2f();'use strict';const tesseract_1=require('@bastion/tesseract');module[a154_0x3c29a3(0x133)]=class DateTimeCommand extends tesseract_1[a154_0x3c29a3(0x12c)]{constructor(){const _0x38439a=a154_0x3c29a3;super(_0x38439a(0x132),{'description':_0x38439a(0x12b),'triggers':[_0x38439a(0x137),_0x38439a(0x128),_0x38439a(0x13b)],'arguments':{'alias':{'convert':['c']},'array':[_0x38439a(0x12e)],'string':[_0x38439a(0x12e)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x38439a(0x132),'datetime\x20TIMEZONE...','datetime\x20--convert\x20DATE',_0x38439a(0x12d)]}),this[_0x38439a(0x131)]=async(_0x30e097,_0x372c7a)=>{const _0x5ec92e=_0x38439a,_0x28da11=_0x372c7a['_'],_0x204243=[];if(_0x28da11[_0x5ec92e(0x13a)])for(const _0xee8a9e of _0x28da11){try{_0x204243['push'](new Date(_0x372c7a[_0x5ec92e(0x12e)]?_0x372c7a[_0x5ec92e(0x12e)][_0x5ec92e(0x136)]('\x20'):Date[_0x5ec92e(0x13b)]())['toLocaleString']('en-US',{'timeZone':_0xee8a9e,'timeZoneName':_0x5ec92e(0x13f)}));}catch{}}else _0x204243['push'](new Date(_0x372c7a[_0x5ec92e(0x12e)]?_0x372c7a[_0x5ec92e(0x12e)]['join']('\x20'):Date[_0x5ec92e(0x13b)]())['toLocaleString'](_0x5ec92e(0x134),{'timeZone':_0x5ec92e(0x135),'timeZoneName':_0x5ec92e(0x13f)}));await _0x30e097[_0x5ec92e(0x12f)][_0x5ec92e(0x130)]({'embed':{'color':tesseract_1['Constants'][_0x5ec92e(0x13d)][_0x5ec92e(0x129)],'title':'Date\x20and\x20Time','description':_0x204243[_0x5ec92e(0x136)]('\x0a')}});};}}; \ No newline at end of file diff --git a/commands/utility/definitions.js b/commands/utility/definitions.js index 4e8cf5b77..60bfa7401 100644 --- a/commands/utility/definitions.js +++ b/commands/utility/definitions.js @@ -1 +1 @@ -const a154_0x5c39=['@bastion/tesseract','makeRequest','Definitions','slice','toLowerCase','../../utils/omnic','definitions\x20WORD','name','Powered\x20by\x20Century\x20Dictionary,\x20the\x20American\x20Heritage\x20Dictionary,\x20and\x20Wiktionary.','It\x20allows\x20you\x20to\x20look\x20up\x20definitions\x20for\x20the\x20specified\x20word.','Constants','IRIS','json','apply','definitions','filter','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','INVALID_COMMAND_SYNTAX','exports','channel','test','map','BASTION_ERROR_TYPE','length','text','COLORS','join'];(function(_0x246b4e,_0x2002eb){const _0x5c3968=function(_0x62c936){while(--_0x62c936){_0x246b4e['push'](_0x246b4e['shift']());}},_0x3679b4=function(){const _0x56acc6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x49d7ff,_0x3635e1,_0x5d9dbf,_0x339fa0){_0x339fa0=_0x339fa0||{};let _0x1e7c3c=_0x3635e1+'='+_0x5d9dbf,_0x5d3fce=0x0;for(let _0x1224d3=0x0,_0x568a63=_0x49d7ff['length'];_0x1224d3<_0x568a63;_0x1224d3++){const _0x182409=_0x49d7ff[_0x1224d3];_0x1e7c3c+=';\x20'+_0x182409;const _0x1a078f=_0x49d7ff[_0x182409];_0x49d7ff['push'](_0x1a078f),_0x568a63=_0x49d7ff['length'],_0x1a078f!==!![]&&(_0x1e7c3c+='='+_0x1a078f);}_0x339fa0['cookie']=_0x1e7c3c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x50c2eb,_0xd932cb){_0x50c2eb=_0x50c2eb||function(_0x3f622b){return _0x3f622b;};const _0x511417=_0x50c2eb(new RegExp('(?:^|;\x20)'+_0xd932cb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x32b3ae=function(_0xf129a5,_0x972f9a){_0xf129a5(++_0x972f9a);};return _0x32b3ae(_0x5c3968,_0x2002eb),_0x511417?decodeURIComponent(_0x511417[0x1]):undefined;}},_0x472a5f=function(){const _0x47cc8d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x47cc8d['test'](_0x56acc6['removeCookie']['toString']());};_0x56acc6['updateCookie']=_0x472a5f;let _0x4dc546='';const _0xe30c08=_0x56acc6['updateCookie']();if(!_0xe30c08)_0x56acc6['setCookie'](['*'],'counter',0x1);else _0xe30c08?_0x4dc546=_0x56acc6['getCookie'](null,'counter'):_0x56acc6['removeCookie']();};_0x3679b4();}(a154_0x5c39,0x193));const a154_0x3679=function(_0x246b4e,_0x2002eb){_0x246b4e=_0x246b4e-0x141;let _0x5c3968=a154_0x5c39[_0x246b4e];return _0x5c3968;};const _0x1c73a7=a154_0x3679,a154_0x472a5f=function(){let _0xe30c08=!![];return function(_0x49d7ff,_0x3635e1){const _0x5d9dbf=_0xe30c08?function(){const _0x23048e=a154_0x3679;if(_0x3635e1){const _0x339fa0=_0x3635e1[_0x23048e(0x151)](_0x49d7ff,arguments);return _0x3635e1=null,_0x339fa0;}}:function(){};return _0xe30c08=![],_0x5d9dbf;};}(),a154_0x56acc6=a154_0x472a5f(this,function(){const _0x1e7c3c=function(){const _0x32ed7e=a154_0x3679,_0x5d3fce=_0x1e7c3c[_0x32ed7e(0x156)](_0x32ed7e(0x154))()[_0x32ed7e(0x156)](_0x32ed7e(0x155));return!_0x5d3fce[_0x32ed7e(0x15a)](a154_0x56acc6);};return _0x1e7c3c();});a154_0x56acc6();'use strict';const tesseract_1=require(_0x1c73a7(0x144)),errors=require('../../utils/errors'),omnic=require(_0x1c73a7(0x149));module[_0x1c73a7(0x158)]=class DefinitionsCommand extends tesseract_1['Command']{constructor(){const _0x2606fc=_0x1c73a7;super(_0x2606fc(0x152),{'description':_0x2606fc(0x14d),'triggers':['define'],'arguments':{},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x2606fc(0x14a)]}),this['exec']=async(_0x1224d3,_0x568a63)=>{const _0x59bfde=_0x2606fc;if(!_0x568a63['_'][_0x59bfde(0x15d)])throw new errors['DiscordError'](errors[_0x59bfde(0x15c)][_0x59bfde(0x157)],this[_0x59bfde(0x14b)]);const _0x182409=_0x568a63['_'][_0x59bfde(0x143)]('\x20'),_0x1a078f=await omnic[_0x59bfde(0x145)]('/words/definitions/'+_0x182409),_0x50c2eb=await _0x1a078f[_0x59bfde(0x150)]();await _0x1224d3[_0x59bfde(0x159)]['send']({'embed':{'color':tesseract_1[_0x59bfde(0x14e)][_0x59bfde(0x142)][_0x59bfde(0x14f)],'author':{'name':_0x182409[_0x59bfde(0x148)]()},'title':_0x59bfde(0x146),'fields':_0x50c2eb[_0x59bfde(0x153)](_0xd932cb=>_0xd932cb['text'])[_0x59bfde(0x147)](0x0,0x5)[_0x59bfde(0x15b)]((_0x511417,_0x32b3ae)=>({'name':_0x32b3ae+0x1+'.\x20'+(_0x511417['partOfSpeech']||''),'value':_0x511417[_0x59bfde(0x141)][_0x59bfde(0x147)](0x0,0x400)})),'footer':{'text':_0x59bfde(0x14c)}}});};}}; \ No newline at end of file +const a155_0x3f62=['@bastion/tesseract','Command','channel','define','exports','text','json','slice','test','../../utils/omnic','INVALID_COMMAND_SYNTAX','map','Powered\x20by\x20Century\x20Dictionary,\x20the\x20American\x20Heritage\x20Dictionary,\x20and\x20Wiktionary.','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','definitions','send','filter','../../utils/errors','toLowerCase','partOfSpeech','BASTION_ERROR_TYPE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','join','makeRequest','DiscordError','definitions\x20WORD','constructor','IRIS','It\x20allows\x20you\x20to\x20look\x20up\x20definitions\x20for\x20the\x20specified\x20word.','name','Definitions','Constants'];(function(_0x20ee53,_0x5cb1bb){const _0x3f6210=function(_0x1a61a6){while(--_0x1a61a6){_0x20ee53['push'](_0x20ee53['shift']());}},_0xc0ca3=function(){const _0x582eae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11c3e7,_0x396f80,_0x3bf047,_0x5d4e98){_0x5d4e98=_0x5d4e98||{};let _0x13bb7f=_0x396f80+'='+_0x3bf047,_0x2801ea=0x0;for(let _0x106c3b=0x0,_0x5b667f=_0x11c3e7['length'];_0x106c3b<_0x5b667f;_0x106c3b++){const _0x202dea=_0x11c3e7[_0x106c3b];_0x13bb7f+=';\x20'+_0x202dea;const _0x48f2ac=_0x11c3e7[_0x202dea];_0x11c3e7['push'](_0x48f2ac),_0x5b667f=_0x11c3e7['length'],_0x48f2ac!==!![]&&(_0x13bb7f+='='+_0x48f2ac);}_0x5d4e98['cookie']=_0x13bb7f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1fa2c0,_0x19f44e){_0x1fa2c0=_0x1fa2c0||function(_0x572991){return _0x572991;};const _0x41ec71=_0x1fa2c0(new RegExp('(?:^|;\x20)'+_0x19f44e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3ac195=function(_0x3e9dd2,_0x575a00){_0x3e9dd2(++_0x575a00);};return _0x3ac195(_0x3f6210,_0x5cb1bb),_0x41ec71?decodeURIComponent(_0x41ec71[0x1]):undefined;}},_0x5ea7c2=function(){const _0x13b5c8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13b5c8['test'](_0x582eae['removeCookie']['toString']());};_0x582eae['updateCookie']=_0x5ea7c2;let _0x10226c='';const _0x536da4=_0x582eae['updateCookie']();if(!_0x536da4)_0x582eae['setCookie'](['*'],'counter',0x1);else _0x536da4?_0x10226c=_0x582eae['getCookie'](null,'counter'):_0x582eae['removeCookie']();};_0xc0ca3();}(a155_0x3f62,0xa3));const a155_0xc0ca=function(_0x20ee53,_0x5cb1bb){_0x20ee53=_0x20ee53-0x1de;let _0x3f6210=a155_0x3f62[_0x20ee53];return _0x3f6210;};const a155_0x33a98f=a155_0xc0ca,a155_0x5ea7c2=function(){let _0x536da4=!![];return function(_0x11c3e7,_0x396f80){const _0x3bf047=_0x536da4?function(){if(_0x396f80){const _0x5d4e98=_0x396f80['apply'](_0x11c3e7,arguments);return _0x396f80=null,_0x5d4e98;}}:function(){};return _0x536da4=![],_0x3bf047;};}(),a155_0x582eae=a155_0x5ea7c2(this,function(){const _0x13bb7f=function(){const _0x3d54f1=a155_0xc0ca,_0x2801ea=_0x13bb7f[_0x3d54f1(0x1df)](_0x3d54f1(0x1f3))()[_0x3d54f1(0x1df)](_0x3d54f1(0x1fb));return!_0x2801ea[_0x3d54f1(0x1ed)](a155_0x582eae);};return _0x13bb7f();});a155_0x582eae();'use strict';const tesseract_1=require(a155_0x33a98f(0x1e5)),errors=require(a155_0x33a98f(0x1f7)),omnic=require(a155_0x33a98f(0x1ee));module[a155_0x33a98f(0x1e9)]=class DefinitionsCommand extends tesseract_1[a155_0x33a98f(0x1e6)]{constructor(){const _0x36525e=a155_0x33a98f;super(_0x36525e(0x1f4),{'description':_0x36525e(0x1e1),'triggers':[_0x36525e(0x1e8)],'arguments':{},'scope':_0x36525e(0x1f2),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x36525e(0x1de)]}),this['exec']=async(_0x106c3b,_0x5b667f)=>{const _0x263a68=_0x36525e;if(!_0x5b667f['_'][_0x263a68(0x1fc)])throw new errors[(_0x263a68(0x1ff))](errors[_0x263a68(0x1fa)][_0x263a68(0x1ef)],this[_0x263a68(0x1e2)]);const _0x202dea=_0x5b667f['_'][_0x263a68(0x1fd)]('\x20'),_0x48f2ac=await omnic[_0x263a68(0x1fe)]('/words/definitions/'+_0x202dea),_0x1fa2c0=await _0x48f2ac[_0x263a68(0x1eb)]();await _0x106c3b[_0x263a68(0x1e7)][_0x263a68(0x1f5)]({'embed':{'color':tesseract_1[_0x263a68(0x1e4)]['COLORS'][_0x263a68(0x1e0)],'author':{'name':_0x202dea[_0x263a68(0x1f8)]()},'title':_0x263a68(0x1e3),'fields':_0x1fa2c0[_0x263a68(0x1f6)](_0x19f44e=>_0x19f44e[_0x263a68(0x1ea)])[_0x263a68(0x1ec)](0x0,0x5)[_0x263a68(0x1f0)]((_0x41ec71,_0x3ac195)=>({'name':_0x3ac195+0x1+'.\x20'+(_0x41ec71[_0x263a68(0x1f9)]||''),'value':_0x41ec71[_0x263a68(0x1ea)][_0x263a68(0x1ec)](0x0,0x400)})),'footer':{'text':_0x263a68(0x1f1)}}});};}}; \ No newline at end of file diff --git a/commands/utility/echo.js b/commands/utility/echo.js index c50c0692a..7917a8df0 100644 --- a/commands/utility/echo.js +++ b/commands/utility/echo.js @@ -1 +1 @@ -const a155_0x14e1=['text','resolver','join','name','createDM','length','user','constructor','INVALID_COMMAND_SYNTAX','resolveGuildChannel','isValidBastionEmbed','locale','echo\x20--\x20MESSAGE','author','exec','DiscordError','echo\x20--user\x20USER\x20--\x20MESSAGE','guild','Sent\x20by\x20','resolveGuildMember','../../utils/errors','channel','apply','send','parse','It\x20allows\x20you\x20to\x20send\x20a\x20message\x20through\x20Bastion\x20to\x20any\x20channel\x20or\x20member\x20in\x20the\x20server.\x20It\x20also\x20supports\x20Bastion\x20embed\x20objects.','document','client','INVALID_BASTION_EMBED','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','Command','test','ERROR','member','\x20from\x20','errors','BASTION_ERROR_TYPE','channelNotFound','../../utils/embeds','news','MANAGE_MESSAGES','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','permissions'];(function(_0x287ccc,_0x447ba1){const _0x14e108=function(_0x3c7a41){while(--_0x3c7a41){_0x287ccc['push'](_0x287ccc['shift']());}},_0x1369ac=function(){const _0x18e4dd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2c941f,_0x3f43a6,_0x5c4031,_0x58b3ba){_0x58b3ba=_0x58b3ba||{};let _0x1b5633=_0x3f43a6+'='+_0x5c4031,_0x13f627=0x0;for(let _0x13a134=0x0,_0x372ef9=_0x2c941f['length'];_0x13a134<_0x372ef9;_0x13a134++){const _0x10fe20=_0x2c941f[_0x13a134];_0x1b5633+=';\x20'+_0x10fe20;const _0x1f7d21=_0x2c941f[_0x10fe20];_0x2c941f['push'](_0x1f7d21),_0x372ef9=_0x2c941f['length'],_0x1f7d21!==!![]&&(_0x1b5633+='='+_0x1f7d21);}_0x58b3ba['cookie']=_0x1b5633;},'removeCookie':function(){return'dev';},'getCookie':function(_0x51ec11,_0x3c9539){_0x51ec11=_0x51ec11||function(_0xef29be){return _0xef29be;};const _0x171a48=_0x51ec11(new RegExp('(?:^|;\x20)'+_0x3c9539['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2f1421=function(_0x348eff,_0x1340d9){_0x348eff(++_0x1340d9);};return _0x2f1421(_0x14e108,_0x447ba1),_0x171a48?decodeURIComponent(_0x171a48[0x1]):undefined;}},_0x30c61d=function(){const _0xa0db91=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xa0db91['test'](_0x18e4dd['removeCookie']['toString']());};_0x18e4dd['updateCookie']=_0x30c61d;let _0x2bcca9='';const _0x4fa11e=_0x18e4dd['updateCookie']();if(!_0x4fa11e)_0x18e4dd['setCookie'](['*'],'counter',0x1);else _0x4fa11e?_0x2bcca9=_0x18e4dd['getCookie'](null,'counter'):_0x18e4dd['removeCookie']();};_0x1369ac();}(a155_0x14e1,0xd1));const a155_0x1369=function(_0x287ccc,_0x447ba1){_0x287ccc=_0x287ccc-0xbd;let _0x14e108=a155_0x14e1[_0x287ccc];return _0x14e108;};const _0x692b58=a155_0x1369,a155_0x30c61d=function(){let _0x4fa11e=!![];return function(_0x2c941f,_0x3f43a6){const _0x5c4031=_0x4fa11e?function(){const _0x2ca4b4=a155_0x1369;if(_0x3f43a6){const _0x58b3ba=_0x3f43a6[_0x2ca4b4(0xe3)](_0x2c941f,arguments);return _0x3f43a6=null,_0x58b3ba;}}:function(){};return _0x4fa11e=![],_0x5c4031;};}(),a155_0x18e4dd=a155_0x30c61d(this,function(){const _0x1b5633=function(){const _0x3c3564=a155_0x1369,_0x13f627=_0x1b5633[_0x3c3564(0xd4)](_0x3c3564(0xbe))()[_0x3c3564(0xd4)](_0x3c3564(0xcb));return!_0x13f627[_0x3c3564(0xc1)](a155_0x18e4dd);};return _0x1b5633();});a155_0x18e4dd();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(_0x692b58(0xe1)),embeds=require(_0x692b58(0xc8));module[_0x692b58(0xbd)]=class EchoCommand extends tesseract_1[_0x692b58(0xc0)]{constructor(){const _0x385a18=_0x692b58;super('echo',{'description':_0x385a18(0xe6),'triggers':[],'arguments':{'alias':{'channel':['c'],'user':['u']},'string':[_0x385a18(0xe2),'user']},'scope':_0x385a18(0xde),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x385a18(0xca)],'syntax':[_0x385a18(0xd9),'echo\x20--channel\x20ID\x20--\x20MESSAGE',_0x385a18(0xdd)]}),this[_0x385a18(0xdb)]=async(_0x13a134,_0x372ef9)=>{const _0x587abb=_0x385a18;if(!_0x372ef9['_'][_0x587abb(0xd2)])throw new errors[(_0x587abb(0xdc))](errors[_0x587abb(0xc6)][_0x587abb(0xd5)],this[_0x587abb(0xd0)]);const _0x10fe20=this[_0x587abb(0xe8)]['resolver'][_0x587abb(0xe0)](_0x13a134[_0x587abb(0xde)],_0x372ef9[_0x587abb(0xd3)]),_0x1f7d21=_0x10fe20&&_0x13a134[_0x587abb(0xc3)][_0x587abb(0xcc)]['has']('MANAGE_GUILD')?await _0x10fe20[_0x587abb(0xd1)]():this['client'][_0x587abb(0xce)][_0x587abb(0xd6)](_0x13a134[_0x587abb(0xde)],_0x372ef9[_0x587abb(0xe2)]?_0x372ef9['channel']:_0x13a134[_0x587abb(0xe2)]['id'],[_0x587abb(0xcd),_0x587abb(0xc9)]);if(!_0x1f7d21)throw new errors[(_0x587abb(0xdc))](errors[_0x587abb(0xc6)][_0x587abb(0xc2)],this[_0x587abb(0xe8)][_0x587abb(0xd8)]['getString'](_0x13a134['guild'][_0x587abb(0xe7)]['language'],_0x587abb(0xc5),_0x587abb(0xc7)));const _0x51ec11=_0x372ef9['_'][_0x587abb(0xcf)]('\x20');let _0x3c9539;try{_0x3c9539=JSON[_0x587abb(0xe5)](_0x51ec11);if(!embeds[_0x587abb(0xd7)](_0x3c9539))throw new Error(_0x587abb(0xe9));}catch{_0x3c9539=_0x51ec11;}await _0x1f7d21[_0x587abb(0xe4)]({'embed':{...embeds['generateEmbed'](_0x3c9539),'footer':{'text':_0x587abb(0xdf)+_0x13a134[_0x587abb(0xda)][_0x587abb(0xbf)]+(_0x10fe20?_0x587abb(0xc4)+_0x13a134[_0x587abb(0xde)][_0x587abb(0xd0)]:'')}}});};}}; \ No newline at end of file +const a156_0x444b=['has','echo\x20--\x20MESSAGE','BASTION_ERROR_TYPE','tag','apply','generateEmbed','resolveGuildMember','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DiscordError','@bastion/tesseract','createDM','channel','resolver','getString','parse','send','client','echo\x20--channel\x20ID\x20--\x20MESSAGE','resolveGuildChannel','guild','echo','test','channelNotFound','It\x20allows\x20you\x20to\x20send\x20a\x20message\x20through\x20Bastion\x20to\x20any\x20channel\x20or\x20member\x20in\x20the\x20server.\x20It\x20also\x20supports\x20Bastion\x20embed\x20objects.','exec','MANAGE_MESSAGES','text','INVALID_COMMAND_SYNTAX','locale','permissions','ERROR','errors','exports','MANAGE_GUILD','join','news','language','isValidBastionEmbed','INVALID_BASTION_EMBED','name','\x20from\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','../../utils/embeds'];(function(_0x5c8f8a,_0x575e33){const _0x444b01=function(_0x43bc35){while(--_0x43bc35){_0x5c8f8a['push'](_0x5c8f8a['shift']());}},_0x1562c7=function(){const _0x372da4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f2ce3,_0x10a0ad,_0x41bc9f,_0x2f3c04){_0x2f3c04=_0x2f3c04||{};let _0x4e0184=_0x10a0ad+'='+_0x41bc9f,_0x457798=0x0;for(let _0x3b0b88=0x0,_0x2c2ea5=_0x5f2ce3['length'];_0x3b0b88<_0x2c2ea5;_0x3b0b88++){const _0x3ae2e0=_0x5f2ce3[_0x3b0b88];_0x4e0184+=';\x20'+_0x3ae2e0;const _0x50b980=_0x5f2ce3[_0x3ae2e0];_0x5f2ce3['push'](_0x50b980),_0x2c2ea5=_0x5f2ce3['length'],_0x50b980!==!![]&&(_0x4e0184+='='+_0x50b980);}_0x2f3c04['cookie']=_0x4e0184;},'removeCookie':function(){return'dev';},'getCookie':function(_0x14a3cf,_0x32f211){_0x14a3cf=_0x14a3cf||function(_0x50ecd4){return _0x50ecd4;};const _0x2ce383=_0x14a3cf(new RegExp('(?:^|;\x20)'+_0x32f211['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17bace=function(_0x43342d,_0x38686a){_0x43342d(++_0x38686a);};return _0x17bace(_0x444b01,_0x575e33),_0x2ce383?decodeURIComponent(_0x2ce383[0x1]):undefined;}},_0x2f4a9e=function(){const _0x58326d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58326d['test'](_0x372da4['removeCookie']['toString']());};_0x372da4['updateCookie']=_0x2f4a9e;let _0x4825b4='';const _0x11231a=_0x372da4['updateCookie']();if(!_0x11231a)_0x372da4['setCookie'](['*'],'counter',0x1);else _0x11231a?_0x4825b4=_0x372da4['getCookie'](null,'counter'):_0x372da4['removeCookie']();};_0x1562c7();}(a156_0x444b,0x98));const a156_0x1562=function(_0x5c8f8a,_0x575e33){_0x5c8f8a=_0x5c8f8a-0x142;let _0x444b01=a156_0x444b[_0x5c8f8a];return _0x444b01;};const a156_0x5603f7=a156_0x1562,a156_0x2f4a9e=function(){let _0x11231a=!![];return function(_0x5f2ce3,_0x10a0ad){const _0x41bc9f=_0x11231a?function(){const _0x3b31ae=a156_0x1562;if(_0x10a0ad){const _0x2f3c04=_0x10a0ad[_0x3b31ae(0x15a)](_0x5f2ce3,arguments);return _0x10a0ad=null,_0x2f3c04;}}:function(){};return _0x11231a=![],_0x41bc9f;};}(),a156_0x372da4=a156_0x2f4a9e(this,function(){const _0x4e0184=function(){const _0x549e78=a156_0x1562,_0x457798=_0x4e0184['constructor'](_0x549e78(0x154))()['constructor'](_0x549e78(0x15d));return!_0x457798[_0x549e78(0x16b)](a156_0x372da4);};return _0x4e0184();});a156_0x372da4();'use strict';const tesseract_1=require(a156_0x5603f7(0x15f)),errors=require('../../utils/errors'),embeds=require(a156_0x5603f7(0x155));module[a156_0x5603f7(0x14b)]=class EchoCommand extends tesseract_1['Command']{constructor(){const _0x5ad3ce=a156_0x5603f7;super(_0x5ad3ce(0x16a),{'description':_0x5ad3ce(0x142),'triggers':[],'arguments':{'alias':{'channel':['c'],'user':['u']},'string':[_0x5ad3ce(0x161),'user']},'scope':_0x5ad3ce(0x169),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x5ad3ce(0x144)],'syntax':[_0x5ad3ce(0x157),_0x5ad3ce(0x167),'echo\x20--user\x20USER\x20--\x20MESSAGE']}),this[_0x5ad3ce(0x143)]=async(_0x3b0b88,_0x2c2ea5)=>{const _0x3daa50=_0x5ad3ce;if(!_0x2c2ea5['_']['length'])throw new errors[(_0x3daa50(0x15e))](errors[_0x3daa50(0x158)][_0x3daa50(0x146)],this[_0x3daa50(0x152)]);const _0x3ae2e0=this[_0x3daa50(0x166)][_0x3daa50(0x162)][_0x3daa50(0x15c)](_0x3b0b88[_0x3daa50(0x169)],_0x2c2ea5['user']),_0x50b980=_0x3ae2e0&&_0x3b0b88['member'][_0x3daa50(0x148)][_0x3daa50(0x156)](_0x3daa50(0x14c))?await _0x3ae2e0[_0x3daa50(0x160)]():this['client'][_0x3daa50(0x162)][_0x3daa50(0x168)](_0x3b0b88['guild'],_0x2c2ea5['channel']?_0x2c2ea5['channel']:_0x3b0b88[_0x3daa50(0x161)]['id'],[_0x3daa50(0x145),_0x3daa50(0x14e)]);if(!_0x50b980)throw new errors[(_0x3daa50(0x15e))](errors[_0x3daa50(0x158)][_0x3daa50(0x149)],this['client'][_0x3daa50(0x147)][_0x3daa50(0x163)](_0x3b0b88[_0x3daa50(0x169)]['document'][_0x3daa50(0x14f)],_0x3daa50(0x14a),_0x3daa50(0x16c)));const _0x14a3cf=_0x2c2ea5['_'][_0x3daa50(0x14d)]('\x20');let _0x32f211;try{_0x32f211=JSON[_0x3daa50(0x164)](_0x14a3cf);if(!embeds[_0x3daa50(0x150)](_0x32f211))throw new Error(_0x3daa50(0x151));}catch{_0x32f211=_0x14a3cf;}await _0x50b980[_0x3daa50(0x165)]({'embed':{...embeds[_0x3daa50(0x15b)](_0x32f211),'footer':{'text':'Sent\x20by\x20'+_0x3b0b88['author'][_0x3daa50(0x159)]+(_0x3ae2e0?_0x3daa50(0x153)+_0x3b0b88[_0x3daa50(0x169)][_0x3daa50(0x152)]:'')}}});};}}; \ No newline at end of file diff --git a/commands/utility/followRedirects.js b/commands/utility/followRedirects.js index ddcc37283..8125e547d 100644 --- a/commands/utility/followRedirects.js +++ b/commands/utility/followRedirects.js @@ -1 +1 @@ -const a156_0x5383=['Command','exec','followRedirects\x20URL','IRIS','send','../../utils/errors','INVALID_COMMAND_SYNTAX','exports','test','constructor','@bastion/tesseract','name','default','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','followRedirects','url','Constants','join','BASTION_ERROR_TYPE','followURL','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','URL','follow','channel','node-fetch','Original\x20URL','HEAD','length'];(function(_0x4c0216,_0x57042d){const _0x5383ee=function(_0x2f4204){while(--_0x2f4204){_0x4c0216['push'](_0x4c0216['shift']());}},_0x5bdf0d=function(){const _0x5bacb3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5e04b0,_0x20bdb5,_0x1b5a74,_0x2e907f){_0x2e907f=_0x2e907f||{};let _0x21fa7=_0x20bdb5+'='+_0x1b5a74,_0x4fa641=0x0;for(let _0x1015f1=0x0,_0x4f6427=_0x5e04b0['length'];_0x1015f1<_0x4f6427;_0x1015f1++){const _0x23a162=_0x5e04b0[_0x1015f1];_0x21fa7+=';\x20'+_0x23a162;const _0x495603=_0x5e04b0[_0x23a162];_0x5e04b0['push'](_0x495603),_0x4f6427=_0x5e04b0['length'],_0x495603!==!![]&&(_0x21fa7+='='+_0x495603);}_0x2e907f['cookie']=_0x21fa7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1b28fe,_0x441df9){_0x1b28fe=_0x1b28fe||function(_0x814cf3){return _0x814cf3;};const _0x16e13a=_0x1b28fe(new RegExp('(?:^|;\x20)'+_0x441df9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x51d8ff=function(_0x24fb4b,_0x551280){_0x24fb4b(++_0x551280);};return _0x51d8ff(_0x5383ee,_0x57042d),_0x16e13a?decodeURIComponent(_0x16e13a[0x1]):undefined;}},_0x1107fb=function(){const _0x2fe5fd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2fe5fd['test'](_0x5bacb3['removeCookie']['toString']());};_0x5bacb3['updateCookie']=_0x1107fb;let _0x3affc5='';const _0x4f2059=_0x5bacb3['updateCookie']();if(!_0x4f2059)_0x5bacb3['setCookie'](['*'],'counter',0x1);else _0x4f2059?_0x3affc5=_0x5bacb3['getCookie'](null,'counter'):_0x5bacb3['removeCookie']();};_0x5bdf0d();}(a156_0x5383,0x86));const a156_0x5bdf=function(_0x4c0216,_0x57042d){_0x4c0216=_0x4c0216-0x104;let _0x5383ee=a156_0x5383[_0x4c0216];return _0x5383ee;};const _0x47a7e5=a156_0x5bdf,a156_0x1107fb=function(){let _0x4f2059=!![];return function(_0x5e04b0,_0x20bdb5){const _0x1b5a74=_0x4f2059?function(){const _0x3cf33a=a156_0x5bdf;if(_0x20bdb5){const _0x2e907f=_0x20bdb5[_0x3cf33a(0x10b)](_0x5e04b0,arguments);return _0x20bdb5=null,_0x2e907f;}}:function(){};return _0x4f2059=![],_0x1b5a74;};}(),a156_0x5bacb3=a156_0x1107fb(this,function(){const _0x21fa7=function(){const _0x43f20f=a156_0x5bdf,_0x4fa641=_0x21fa7[_0x43f20f(0x11d)](_0x43f20f(0x10c))()['constructor'](_0x43f20f(0x104));return!_0x4fa641[_0x43f20f(0x11c)](a156_0x5bacb3);};return _0x21fa7();});a156_0x5bacb3();'use strict';const tesseract_1=require(_0x47a7e5(0x11e)),node_fetch_1=require(_0x47a7e5(0x110)),errors=require(_0x47a7e5(0x119));module[_0x47a7e5(0x11b)]=class FollowRedirectsCommand extends tesseract_1[_0x47a7e5(0x114)]{constructor(){const _0x276ede=_0x47a7e5;super(_0x276ede(0x105),{'description':'It\x20follows\x20all\x20the\x20redirects\x20in\x20the\x20specified\x20URL\x20and\x20allows\x20you\x20to\x20see\x20the\x20final\x20URL.','triggers':[_0x276ede(0x10a)],'arguments':{},'scope':_0x276ede(0x121),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x276ede(0x116)]}),this[_0x276ede(0x115)]=async(_0x1015f1,_0x4f6427)=>{const _0x545bd4=_0x276ede;if(!_0x4f6427['_'][_0x545bd4(0x113)])throw new errors['DiscordError'](errors[_0x545bd4(0x109)][_0x545bd4(0x11a)],this[_0x545bd4(0x11f)]);const _0x23a162=_0x4f6427['_'][_0x545bd4(0x108)]('\x20'),_0x495603=await node_fetch_1[_0x545bd4(0x120)](_0x23a162,{'method':_0x545bd4(0x112),'redirect':_0x545bd4(0x10e)});await _0x1015f1[_0x545bd4(0x10f)][_0x545bd4(0x118)]({'embed':{'color':tesseract_1[_0x545bd4(0x107)]['COLORS'][_0x545bd4(0x117)],'fields':[{'name':_0x545bd4(0x10d),'value':_0x23a162},{'name':_0x545bd4(0x111),'value':_0x495603[_0x545bd4(0x106)]}]}});};}}; \ No newline at end of file +const a157_0xdf19=['It\x20follows\x20all\x20the\x20redirects\x20in\x20the\x20specified\x20URL\x20and\x20allows\x20you\x20to\x20see\x20the\x20final\x20URL.','URL','INVALID_COMMAND_SYNTAX','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','send','constructor','followRedirects','length','../../utils/errors','HEAD','@bastion/tesseract','exports','join','followURL','IRIS','node-fetch','guild','exec','default','DiscordError','COLORS','url','Constants','follow','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x41a019,_0x791260){const _0xdf197e=function(_0xd92662){while(--_0xd92662){_0x41a019['push'](_0x41a019['shift']());}},_0x459440=function(){const _0x247fd6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4dfe2b,_0xc61ac4,_0x326b2e,_0xfa2382){_0xfa2382=_0xfa2382||{};let _0x26d40c=_0xc61ac4+'='+_0x326b2e,_0x325c92=0x0;for(let _0x402aed=0x0,_0x2d0520=_0x4dfe2b['length'];_0x402aed<_0x2d0520;_0x402aed++){const _0x5dc48f=_0x4dfe2b[_0x402aed];_0x26d40c+=';\x20'+_0x5dc48f;const _0x1bb132=_0x4dfe2b[_0x5dc48f];_0x4dfe2b['push'](_0x1bb132),_0x2d0520=_0x4dfe2b['length'],_0x1bb132!==!![]&&(_0x26d40c+='='+_0x1bb132);}_0xfa2382['cookie']=_0x26d40c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5b97bc,_0x1d2bd5){_0x5b97bc=_0x5b97bc||function(_0x4c935f){return _0x4c935f;};const _0xd3ba45=_0x5b97bc(new RegExp('(?:^|;\x20)'+_0x1d2bd5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23da12=function(_0x1b1b91,_0x16c133){_0x1b1b91(++_0x16c133);};return _0x23da12(_0xdf197e,_0x791260),_0xd3ba45?decodeURIComponent(_0xd3ba45[0x1]):undefined;}},_0x3264b4=function(){const _0x32d4a4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x32d4a4['test'](_0x247fd6['removeCookie']['toString']());};_0x247fd6['updateCookie']=_0x3264b4;let _0x4ffbcd='';const _0x1e62b6=_0x247fd6['updateCookie']();if(!_0x1e62b6)_0x247fd6['setCookie'](['*'],'counter',0x1);else _0x1e62b6?_0x4ffbcd=_0x247fd6['getCookie'](null,'counter'):_0x247fd6['removeCookie']();};_0x459440();}(a157_0xdf19,0x1dd));const a157_0x4594=function(_0x41a019,_0x791260){_0x41a019=_0x41a019-0x12a;let _0xdf197e=a157_0xdf19[_0x41a019];return _0xdf197e;};const a157_0x430af0=a157_0x4594,a157_0x3264b4=function(){let _0x1e62b6=!![];return function(_0x4dfe2b,_0xc61ac4){const _0x326b2e=_0x1e62b6?function(){if(_0xc61ac4){const _0xfa2382=_0xc61ac4['apply'](_0x4dfe2b,arguments);return _0xc61ac4=null,_0xfa2382;}}:function(){};return _0x1e62b6=![],_0x326b2e;};}(),a157_0x247fd6=a157_0x3264b4(this,function(){const _0x26d40c=function(){const _0x321acb=a157_0x4594,_0x325c92=_0x26d40c[_0x321acb(0x141)](_0x321acb(0x13a))()[_0x321acb(0x141)](_0x321acb(0x13e));return!_0x325c92['test'](a157_0x247fd6);};return _0x26d40c();});a157_0x247fd6();'use strict';const tesseract_1=require(a157_0x430af0(0x12c)),node_fetch_1=require(a157_0x430af0(0x131)),errors=require(a157_0x430af0(0x12a));module[a157_0x430af0(0x12d)]=class FollowRedirectsCommand extends tesseract_1['Command']{constructor(){const _0x3da5b6=a157_0x430af0;super(_0x3da5b6(0x142),{'description':_0x3da5b6(0x13b),'triggers':[_0x3da5b6(0x12f)],'arguments':{},'scope':_0x3da5b6(0x132),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':['followRedirects\x20URL']}),this[_0x3da5b6(0x133)]=async(_0x402aed,_0x2d0520)=>{const _0x52d4c3=_0x3da5b6;if(!_0x2d0520['_'][_0x52d4c3(0x143)])throw new errors[(_0x52d4c3(0x135))](errors['BASTION_ERROR_TYPE'][_0x52d4c3(0x13d)],this[_0x52d4c3(0x13f)]);const _0x5dc48f=_0x2d0520['_'][_0x52d4c3(0x12e)]('\x20'),_0x1bb132=await node_fetch_1[_0x52d4c3(0x134)](_0x5dc48f,{'method':_0x52d4c3(0x12b),'redirect':_0x52d4c3(0x139)});await _0x402aed['channel'][_0x52d4c3(0x140)]({'embed':{'color':tesseract_1[_0x52d4c3(0x138)][_0x52d4c3(0x136)][_0x52d4c3(0x130)],'fields':[{'name':_0x52d4c3(0x13c),'value':_0x5dc48f},{'name':'Original\x20URL','value':_0x1bb132[_0x52d4c3(0x137)]}]}});};}}; \ No newline at end of file diff --git a/commands/utility/invite.js b/commands/utility/invite.js index e4d7bb085..1918697d5 100644 --- a/commands/utility/invite.js +++ b/commands/utility/invite.js @@ -1 +1 @@ -const a157_0x3934=['channel','replace','exec','../../utils/constants','author','constructor','user','has','url','getConstant','apply','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.','send','locale','invite','Requested\x20by\x20','credentials','tag','temporary','permissionsFor','guild','Command','invite\x20--temporary','client','You\x20don\x27t\x20have\x20perms\x20to\x20create\x20an\x20instant\x20invite\x20for\x20the\x20channel.','isPublicBastion','CREATE_INSTANT_INVITE','\x0a\x0aAnd\x20if\x20you\x20wanna\x20invite\x20me\x20to\x20your\x20server,\x20use\x20the\x20following\x20link.\x0aBeep.\x0a','createInvite','return\x20/\x22\x20+\x20this\x20+\x20\x22/','bastion.bot.invite'];(function(_0x829457,_0xeb5961){const _0x3934ef=function(_0x15d1cb){while(--_0x15d1cb){_0x829457['push'](_0x829457['shift']());}},_0x206691=function(){const _0x5295af={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xd69ac2,_0x16e708,_0x526b59,_0x1f1082){_0x1f1082=_0x1f1082||{};let _0x1687f0=_0x16e708+'='+_0x526b59,_0x5d893c=0x0;for(let _0x13348c=0x0,_0x1e0d9c=_0xd69ac2['length'];_0x13348c<_0x1e0d9c;_0x13348c++){const _0x1bd342=_0xd69ac2[_0x13348c];_0x1687f0+=';\x20'+_0x1bd342;const _0x41b38a=_0xd69ac2[_0x1bd342];_0xd69ac2['push'](_0x41b38a),_0x1e0d9c=_0xd69ac2['length'],_0x41b38a!==!![]&&(_0x1687f0+='='+_0x41b38a);}_0x1f1082['cookie']=_0x1687f0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x246e87,_0x4fe54f){_0x246e87=_0x246e87||function(_0x2cf34b){return _0x2cf34b;};const _0x3aa2ed=_0x246e87(new RegExp('(?:^|;\x20)'+_0x4fe54f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17a79b=function(_0xcabba1,_0x1746ed){_0xcabba1(++_0x1746ed);};return _0x17a79b(_0x3934ef,_0xeb5961),_0x3aa2ed?decodeURIComponent(_0x3aa2ed[0x1]):undefined;}},_0x432510=function(){const _0x221338=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x221338['test'](_0x5295af['removeCookie']['toString']());};_0x5295af['updateCookie']=_0x432510;let _0x5a4d10='';const _0x351ec2=_0x5295af['updateCookie']();if(!_0x351ec2)_0x5295af['setCookie'](['*'],'counter',0x1);else _0x351ec2?_0x5a4d10=_0x5295af['getCookie'](null,'counter'):_0x5295af['removeCookie']();};_0x206691();}(a157_0x3934,0x1e4));const a157_0x2066=function(_0x829457,_0xeb5961){_0x829457=_0x829457-0x128;let _0x3934ef=a157_0x3934[_0x829457];return _0x3934ef;};const _0x7b220f=a157_0x2066,a157_0x432510=function(){let _0x351ec2=!![];return function(_0xd69ac2,_0x16e708){const _0x526b59=_0x351ec2?function(){const _0x989b66=a157_0x2066;if(_0x16e708){const _0x1f1082=_0x16e708[_0x989b66(0x13e)](_0xd69ac2,arguments);return _0x16e708=null,_0x1f1082;}}:function(){};return _0x351ec2=![],_0x526b59;};}(),a157_0x5295af=a157_0x432510(this,function(){const _0x1687f0=function(){const _0x394bbd=a157_0x2066,_0x5d893c=_0x1687f0[_0x394bbd(0x139)](_0x394bbd(0x132))()[_0x394bbd(0x139)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5d893c['test'](a157_0x5295af);};return _0x1687f0();});a157_0x5295af();'use strict';const tesseract_1=require('@bastion/tesseract'),constants=require(_0x7b220f(0x137));module['exports']=class InviteCommand extends tesseract_1[_0x7b220f(0x12a)]{constructor(){const _0x4c15d9=_0x7b220f;super(_0x4c15d9(0x142),{'description':_0x4c15d9(0x13f),'triggers':[],'arguments':{'alias':{'temporary':['t']},'boolean':[_0x4c15d9(0x146)]},'scope':'guild','owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x4c15d9(0x142),_0x4c15d9(0x12b)]}),this[_0x4c15d9(0x136)]=async(_0x13348c,_0x1e0d9c)=>{const _0x5dda93=_0x4c15d9,_0x1bd342=_0x13348c[_0x5dda93(0x129)]['widgetChannel']||_0x13348c[_0x5dda93(0x134)];let _0x41b38a;_0x1bd342[_0x5dda93(0x128)](_0x13348c['member'])[_0x5dda93(0x13b)](_0x5dda93(0x12f))&&(_0x41b38a=await _0x1bd342[_0x5dda93(0x131)]({'reason':_0x5dda93(0x143)+_0x13348c[_0x5dda93(0x138)][_0x5dda93(0x145)],'temporary':_0x1e0d9c[_0x5dda93(0x146)]})),await _0x13348c[_0x5dda93(0x134)][_0x5dda93(0x140)]((_0x41b38a?'Hello.\x20Beep.\x20Boop.\x0aIf\x20you\x20wanna\x20invite\x20friends\x20to\x20this\x20server,\x20share\x20the\x20following\x20invite\x20link\x20with\x20your\x20friends.\x0aBeep!\x0a'+_0x41b38a[_0x5dda93(0x13c)]:_0x5dda93(0x12d))+(constants[_0x5dda93(0x12e)](this[_0x5dda93(0x12c)][_0x5dda93(0x13a)])||this['client'][_0x5dda93(0x144)]['owners']['includes'](_0x13348c[_0x5dda93(0x138)]['id'])?_0x5dda93(0x130)+this[_0x5dda93(0x12c)][_0x5dda93(0x141)]['getConstant'](_0x5dda93(0x133))[_0x5dda93(0x135)](this['client'][_0x5dda93(0x141)][_0x5dda93(0x13d)]('bastion.bot.id'),this[_0x5dda93(0x12c)][_0x5dda93(0x13a)]['id']):''));};}}; \ No newline at end of file +const a158_0x13f6=['locale','Requested\x20by\x20','credentials','permissionsFor','Hello.\x20Beep.\x20Boop.\x0aIf\x20you\x20wanna\x20invite\x20friends\x20to\x20this\x20server,\x20share\x20the\x20following\x20invite\x20link\x20with\x20your\x20friends.\x0aBeep!\x0a','replace','url','createInvite','invite\x20--temporary','guild','test','bastion.bot.id','bastion.bot.invite','CREATE_INSTANT_INVITE','getConstant','apply','@bastion/tesseract','temporary','Command','\x0a\x0aAnd\x20if\x20you\x20wanna\x20invite\x20me\x20to\x20your\x20server,\x20use\x20the\x20following\x20link.\x0aBeep.\x0a','return\x20/\x22\x20+\x20this\x20+\x20\x22/','You\x20don\x27t\x20have\x20perms\x20to\x20create\x20an\x20instant\x20invite\x20for\x20the\x20channel.','client','exec','member','tag','user','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','owners','author','has','constructor','invite','../../utils/constants'];(function(_0x27940c,_0x5259f4){const _0x13f6f2=function(_0x2ec250){while(--_0x2ec250){_0x27940c['push'](_0x27940c['shift']());}},_0x3969df=function(){const _0x3222ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5efbf8,_0x261eae,_0x1a06c1,_0x41461f){_0x41461f=_0x41461f||{};let _0x278ebd=_0x261eae+'='+_0x1a06c1,_0x18f875=0x0;for(let _0x528e4d=0x0,_0x25be95=_0x5efbf8['length'];_0x528e4d<_0x25be95;_0x528e4d++){const _0x1393e9=_0x5efbf8[_0x528e4d];_0x278ebd+=';\x20'+_0x1393e9;const _0x2972ae=_0x5efbf8[_0x1393e9];_0x5efbf8['push'](_0x2972ae),_0x25be95=_0x5efbf8['length'],_0x2972ae!==!![]&&(_0x278ebd+='='+_0x2972ae);}_0x41461f['cookie']=_0x278ebd;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf422b1,_0x19111f){_0xf422b1=_0xf422b1||function(_0x310418){return _0x310418;};const _0x22a958=_0xf422b1(new RegExp('(?:^|;\x20)'+_0x19111f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20ec8f=function(_0xeec57f,_0x327ac6){_0xeec57f(++_0x327ac6);};return _0x20ec8f(_0x13f6f2,_0x5259f4),_0x22a958?decodeURIComponent(_0x22a958[0x1]):undefined;}},_0x9ceaa4=function(){const _0x156aa8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x156aa8['test'](_0x3222ea['removeCookie']['toString']());};_0x3222ea['updateCookie']=_0x9ceaa4;let _0x467969='';const _0x103821=_0x3222ea['updateCookie']();if(!_0x103821)_0x3222ea['setCookie'](['*'],'counter',0x1);else _0x103821?_0x467969=_0x3222ea['getCookie'](null,'counter'):_0x3222ea['removeCookie']();};_0x3969df();}(a158_0x13f6,0xa4));const a158_0x3969=function(_0x27940c,_0x5259f4){_0x27940c=_0x27940c-0x121;let _0x13f6f2=a158_0x13f6[_0x27940c];return _0x13f6f2;};const a158_0x50ccfc=a158_0x3969,a158_0x9ceaa4=function(){let _0x103821=!![];return function(_0x5efbf8,_0x261eae){const _0x1a06c1=_0x103821?function(){const _0x1e74e9=a158_0x3969;if(_0x261eae){const _0x41461f=_0x261eae[_0x1e74e9(0x13b)](_0x5efbf8,arguments);return _0x261eae=null,_0x41461f;}}:function(){};return _0x103821=![],_0x1a06c1;};}(),a158_0x3222ea=a158_0x9ceaa4(this,function(){const _0x278ebd=function(){const _0x5bac02=a158_0x3969,_0x18f875=_0x278ebd[_0x5bac02(0x129)](_0x5bac02(0x140))()[_0x5bac02(0x129)](_0x5bac02(0x124));return!_0x18f875[_0x5bac02(0x136)](a158_0x3222ea);};return _0x278ebd();});a158_0x3222ea();'use strict';const tesseract_1=require(a158_0x50ccfc(0x13c)),constants=require(a158_0x50ccfc(0x12b));module[a158_0x50ccfc(0x125)]=class InviteCommand extends tesseract_1[a158_0x50ccfc(0x13e)]{constructor(){const _0x35a1f7=a158_0x50ccfc;super(_0x35a1f7(0x12a),{'description':'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.','triggers':[],'arguments':{'alias':{'temporary':['t']},'boolean':[_0x35a1f7(0x13d)]},'scope':_0x35a1f7(0x135),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x35a1f7(0x12a),_0x35a1f7(0x134)]}),this[_0x35a1f7(0x143)]=async(_0x528e4d,_0x25be95)=>{const _0x5ac678=_0x35a1f7,_0x1393e9=_0x528e4d['guild']['widgetChannel']||_0x528e4d['channel'];let _0x2972ae;_0x1393e9[_0x5ac678(0x12f)](_0x528e4d[_0x5ac678(0x121)])[_0x5ac678(0x128)](_0x5ac678(0x139))&&(_0x2972ae=await _0x1393e9[_0x5ac678(0x133)]({'reason':_0x5ac678(0x12d)+_0x528e4d['author'][_0x5ac678(0x122)],'temporary':_0x25be95['temporary']})),await _0x528e4d['channel']['send']((_0x2972ae?_0x5ac678(0x130)+_0x2972ae[_0x5ac678(0x132)]:_0x5ac678(0x141))+(constants['isPublicBastion'](this[_0x5ac678(0x142)][_0x5ac678(0x123)])||this[_0x5ac678(0x142)][_0x5ac678(0x12e)][_0x5ac678(0x126)]['includes'](_0x528e4d[_0x5ac678(0x127)]['id'])?_0x5ac678(0x13f)+this[_0x5ac678(0x142)][_0x5ac678(0x12c)][_0x5ac678(0x13a)](_0x5ac678(0x138))[_0x5ac678(0x131)](this[_0x5ac678(0x142)][_0x5ac678(0x12c)]['getConstant'](_0x5ac678(0x137)),this[_0x5ac678(0x142)][_0x5ac678(0x123)]['id']):''));};}}; \ No newline at end of file diff --git a/commands/utility/lmstfy.js b/commands/utility/lmstfy.js index bf4ca7340..089d5b859 100644 --- a/commands/utility/lmstfy.js +++ b/commands/utility/lmstfy.js @@ -1 +1 @@ -const a158_0x3436=['BASTION_ERROR_TYPE','test','send','lmstfy\x20QUERY','channel','../../utils/errors','lmstfy\x20--google\x20QUERY','length','Let\x20me\x20search\x20that\x20for\x20you...','constructor','ddg','DiscordError','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Powered\x20by\x20LMGTFY','lmgtfy','exports','exec','lmstfy','INVALID_COMMAND_SYNTAX','guild','google','name','COLORS','Command','IRIS','join','apply','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.'];(function(_0x29ca57,_0xd94a09){const _0x3436b4=function(_0x5d312a){while(--_0x5d312a){_0x29ca57['push'](_0x29ca57['shift']());}},_0x1007a1=function(){const _0x1474de={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x318f38,_0x1bc791,_0x527866,_0x5dffb5){_0x5dffb5=_0x5dffb5||{};let _0x27e98b=_0x1bc791+'='+_0x527866,_0x30db0b=0x0;for(let _0x407f31=0x0,_0x49feb7=_0x318f38['length'];_0x407f31<_0x49feb7;_0x407f31++){const _0x38135b=_0x318f38[_0x407f31];_0x27e98b+=';\x20'+_0x38135b;const _0x39ee74=_0x318f38[_0x38135b];_0x318f38['push'](_0x39ee74),_0x49feb7=_0x318f38['length'],_0x39ee74!==!![]&&(_0x27e98b+='='+_0x39ee74);}_0x5dffb5['cookie']=_0x27e98b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f0c56,_0x19e638){_0x3f0c56=_0x3f0c56||function(_0x193ca4){return _0x193ca4;};const _0x4d9a76=_0x3f0c56(new RegExp('(?:^|;\x20)'+_0x19e638['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34de13=function(_0x3c7d34,_0x52dfb5){_0x3c7d34(++_0x52dfb5);};return _0x34de13(_0x3436b4,_0xd94a09),_0x4d9a76?decodeURIComponent(_0x4d9a76[0x1]):undefined;}},_0x3ed436=function(){const _0x220f9b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x220f9b['test'](_0x1474de['removeCookie']['toString']());};_0x1474de['updateCookie']=_0x3ed436;let _0x428003='';const _0x225921=_0x1474de['updateCookie']();if(!_0x225921)_0x1474de['setCookie'](['*'],'counter',0x1);else _0x225921?_0x428003=_0x1474de['getCookie'](null,'counter'):_0x1474de['removeCookie']();};_0x1007a1();}(a158_0x3436,0x19b));const a158_0x1007=function(_0x29ca57,_0xd94a09){_0x29ca57=_0x29ca57-0x1f3;let _0x3436b4=a158_0x3436[_0x29ca57];return _0x3436b4;};const _0x57ec03=a158_0x1007,a158_0x3ed436=function(){let _0x225921=!![];return function(_0x318f38,_0x1bc791){const _0x527866=_0x225921?function(){const _0x45b88e=a158_0x1007;if(_0x1bc791){const _0x5dffb5=_0x1bc791[_0x45b88e(0x1fa)](_0x318f38,arguments);return _0x1bc791=null,_0x5dffb5;}}:function(){};return _0x225921=![],_0x527866;};}(),a158_0x1474de=a158_0x3ed436(this,function(){const _0x27e98b=function(){const _0x3f02d6=a158_0x1007,_0x30db0b=_0x27e98b[_0x3f02d6(0x205)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3f02d6(0x205)](_0x3f02d6(0x208));return!_0x30db0b[_0x3f02d6(0x1fd)](a158_0x1474de);};return _0x27e98b();});a158_0x1474de();'use strict';const tesseract_1=require('@bastion/tesseract'),errors=require(_0x57ec03(0x201));module[_0x57ec03(0x20b)]=class LMSTFYCommand extends tesseract_1[_0x57ec03(0x1f7)]{constructor(){const _0xfef89a=_0x57ec03;super(_0xfef89a(0x20d),{'description':_0xfef89a(0x1fb),'triggers':[_0xfef89a(0x20a)],'arguments':{'alias':{'duckduckgo':[_0xfef89a(0x206),'d'],'google':['g']},'boolean':['duckduckgo','google']},'scope':_0xfef89a(0x1f3),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0xfef89a(0x1ff),'lmstfy\x20--duckduckgo\x20QUERY',_0xfef89a(0x202)]}),this[_0xfef89a(0x20c)]=async(_0x407f31,_0x49feb7)=>{const _0x52a6e2=_0xfef89a;if(!_0x49feb7['_'][_0x52a6e2(0x203)])throw new errors[(_0x52a6e2(0x207))](errors[_0x52a6e2(0x1fc)][_0x52a6e2(0x20e)],this[_0x52a6e2(0x1f5)]);await _0x407f31[_0x52a6e2(0x200)][_0x52a6e2(0x1fe)]({'embed':{'color':tesseract_1['Constants'][_0x52a6e2(0x1f6)][_0x52a6e2(0x1f8)],'title':_0x52a6e2(0x204),'description':'https://lmgtfy.com/?s='+(_0x49feb7[_0x52a6e2(0x1f4)]?'g':'d')+'&q='+encodeURIComponent(_0x49feb7['_'][_0x52a6e2(0x1f9)]('\x20')),'footer':{'text':_0x52a6e2(0x209)}}});};}}; \ No newline at end of file +const a159_0x3b88=['join','BASTION_ERROR_TYPE','send','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.','guild','exec','https://lmgtfy.com/?s=','Powered\x20by\x20LMGTFY','INVALID_COMMAND_SYNTAX','constructor','duckduckgo','Constants','name','lmstfy','DiscordError','Command','lmstfy\x20--duckduckgo\x20QUERY','@bastion/tesseract','apply','ddg','&q=','lmstfy\x20--google\x20QUERY','../../utils/errors','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','length','google','lmstfy\x20QUERY'];(function(_0x59346a,_0x14546c){const _0x3b8861=function(_0x46960d){while(--_0x46960d){_0x59346a['push'](_0x59346a['shift']());}},_0x2222f5=function(){const _0x1e00da={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2653f1,_0x57f160,_0x249e71,_0x7dc110){_0x7dc110=_0x7dc110||{};let _0x57bf23=_0x57f160+'='+_0x249e71,_0x66d834=0x0;for(let _0x3b942c=0x0,_0x31d976=_0x2653f1['length'];_0x3b942c<_0x31d976;_0x3b942c++){const _0x15df28=_0x2653f1[_0x3b942c];_0x57bf23+=';\x20'+_0x15df28;const _0x399984=_0x2653f1[_0x15df28];_0x2653f1['push'](_0x399984),_0x31d976=_0x2653f1['length'],_0x399984!==!![]&&(_0x57bf23+='='+_0x399984);}_0x7dc110['cookie']=_0x57bf23;},'removeCookie':function(){return'dev';},'getCookie':function(_0x46a1d9,_0x42a6cc){_0x46a1d9=_0x46a1d9||function(_0x28b278){return _0x28b278;};const _0x391ced=_0x46a1d9(new RegExp('(?:^|;\x20)'+_0x42a6cc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x36bfcc=function(_0x37a484,_0x2cb9da){_0x37a484(++_0x2cb9da);};return _0x36bfcc(_0x3b8861,_0x14546c),_0x391ced?decodeURIComponent(_0x391ced[0x1]):undefined;}},_0x1f9096=function(){const _0x498909=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x498909['test'](_0x1e00da['removeCookie']['toString']());};_0x1e00da['updateCookie']=_0x1f9096;let _0x2a6a73='';const _0x177c07=_0x1e00da['updateCookie']();if(!_0x177c07)_0x1e00da['setCookie'](['*'],'counter',0x1);else _0x177c07?_0x2a6a73=_0x1e00da['getCookie'](null,'counter'):_0x1e00da['removeCookie']();};_0x2222f5();}(a159_0x3b88,0x1ee));const a159_0x2222=function(_0x59346a,_0x14546c){_0x59346a=_0x59346a-0x145;let _0x3b8861=a159_0x3b88[_0x59346a];return _0x3b8861;};const a159_0x5c6d07=a159_0x2222,a159_0x1f9096=function(){let _0x177c07=!![];return function(_0x2653f1,_0x57f160){const _0x249e71=_0x177c07?function(){const _0x17b179=a159_0x2222;if(_0x57f160){const _0x7dc110=_0x57f160[_0x17b179(0x156)](_0x2653f1,arguments);return _0x57f160=null,_0x7dc110;}}:function(){};return _0x177c07=![],_0x249e71;};}(),a159_0x1e00da=a159_0x1f9096(this,function(){const _0x57bf23=function(){const _0x3a17e7=a159_0x2222,_0x66d834=_0x57bf23[_0x3a17e7(0x14d)](_0x3a17e7(0x15d))()[_0x3a17e7(0x14d)](_0x3a17e7(0x15b));return!_0x66d834['test'](a159_0x1e00da);};return _0x57bf23();});a159_0x1e00da();'use strict';const tesseract_1=require(a159_0x5c6d07(0x155)),errors=require(a159_0x5c6d07(0x15a));module[a159_0x5c6d07(0x15c)]=class LMSTFYCommand extends tesseract_1[a159_0x5c6d07(0x153)]{constructor(){const _0x5bc82b=a159_0x5c6d07;super(_0x5bc82b(0x151),{'description':_0x5bc82b(0x147),'triggers':['lmgtfy'],'arguments':{'alias':{'duckduckgo':[_0x5bc82b(0x157),'d'],'google':['g']},'boolean':[_0x5bc82b(0x14e),_0x5bc82b(0x15f)]},'scope':_0x5bc82b(0x148),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x5bc82b(0x160),_0x5bc82b(0x154),_0x5bc82b(0x159)]}),this[_0x5bc82b(0x149)]=async(_0x3b942c,_0x31d976)=>{const _0x20b466=_0x5bc82b;if(!_0x31d976['_'][_0x20b466(0x15e)])throw new errors[(_0x20b466(0x152))](errors[_0x20b466(0x145)][_0x20b466(0x14c)],this[_0x20b466(0x150)]);await _0x3b942c['channel'][_0x20b466(0x146)]({'embed':{'color':tesseract_1[_0x20b466(0x14f)]['COLORS']['IRIS'],'title':'Let\x20me\x20search\x20that\x20for\x20you...','description':_0x20b466(0x14a)+(_0x31d976[_0x20b466(0x15f)]?'g':'d')+_0x20b466(0x158)+encodeURIComponent(_0x31d976['_'][_0x20b466(0x161)]('\x20')),'footer':{'text':_0x20b466(0x14b)}}});};}}; \ No newline at end of file diff --git a/commands/utility/poll.js b/commands/utility/poll.js index c972f1ffb..f826e22b4 100644 --- a/commands/utility/poll.js +++ b/commands/utility/poll.js @@ -1 +1 @@ -const a159_0x6b89=['React\x20to\x20this\x20message\x20with\x20the\x20corresponding\x20emoji\x20to\x20vote\x20for\x20that\x20option.','fields','fetch','LIMITS','PREMIUM_MEMBERSHIP_REQUIRED','GOLD','poll\x20--option\x20OPTIONS...\x20--\x20QUESTION','option','test','defaultTimeout','../../utils/errors','create','now','channel','poll','timeout','exec','POLLS','MANAGE_CHANNELS','IRIS','\x20/\x20','Command','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.','map','_id','has','status','../../utils/omnic','../../utils/constants','clamp','Constants','../../utils/numbers','toFixed','POLL_NOT_FOUND','value','slice','title','exports','filter','length','BASTION_ERROR_TYPE','../../models/Poll','errors','PremiumTier','countDocuments','premiumPolls','POLL_TIMEOUT','getString','DiscordError','ends','guild','fetchPremiumTier','get','locale','catch','document','embeds','channels','POLL','user','membershipLimitPollTimeout','PLATINUM','isPublicBastion','Ends','reactions','name','send','COLORS','poll\x20--timeout\x20HOURS\x20--option\x20OPTIONS...\x20--\x20QUESTION','language','cache','LIMITED_PREMIUM_MEMBERSHIP','join','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','messages','apply','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','number','membershipLimitPolls','default','client'];(function(_0x89a52a,_0x27a7f4){const _0x6b89d8=function(_0x537483){while(--_0x537483){_0x89a52a['push'](_0x89a52a['shift']());}},_0x4ee7af=function(){const _0x2ec503={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x15fd63,_0x42f0a3,_0x4ea435,_0x168be3){_0x168be3=_0x168be3||{};let _0x10622a=_0x42f0a3+'='+_0x4ea435,_0x4f2f3b=0x0;for(let _0x49b40a=0x0,_0x4d9b2e=_0x15fd63['length'];_0x49b40a<_0x4d9b2e;_0x49b40a++){const _0x3d9d1d=_0x15fd63[_0x49b40a];_0x10622a+=';\x20'+_0x3d9d1d;const _0x5c7435=_0x15fd63[_0x3d9d1d];_0x15fd63['push'](_0x5c7435),_0x4d9b2e=_0x15fd63['length'],_0x5c7435!==!![]&&(_0x10622a+='='+_0x5c7435);}_0x168be3['cookie']=_0x10622a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1824ec,_0x48d41e){_0x1824ec=_0x1824ec||function(_0x1b7fea){return _0x1b7fea;};const _0x218e92=_0x1824ec(new RegExp('(?:^|;\x20)'+_0x48d41e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x261b6e=function(_0x4dd2c8,_0x292154){_0x4dd2c8(++_0x292154);};return _0x261b6e(_0x6b89d8,_0x27a7f4),_0x218e92?decodeURIComponent(_0x218e92[0x1]):undefined;}},_0x10ae90=function(){const _0x10eca2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10eca2['test'](_0x2ec503['removeCookie']['toString']());};_0x2ec503['updateCookie']=_0x10ae90;let _0x3eed8a='';const _0x5064f2=_0x2ec503['updateCookie']();if(!_0x5064f2)_0x2ec503['setCookie'](['*'],'counter',0x1);else _0x5064f2?_0x3eed8a=_0x2ec503['getCookie'](null,'counter'):_0x2ec503['removeCookie']();};_0x4ee7af();}(a159_0x6b89,0x168));const a159_0x4ee7=function(_0x89a52a,_0x27a7f4){_0x89a52a=_0x89a52a-0x1b3;let _0x6b89d8=a159_0x6b89[_0x89a52a];return _0x6b89d8;};const _0x189a9e=a159_0x4ee7,a159_0x10ae90=function(){let _0x5064f2=!![];return function(_0x15fd63,_0x42f0a3){const _0x4ea435=_0x5064f2?function(){const _0x171dd4=a159_0x4ee7;if(_0x42f0a3){const _0x168be3=_0x42f0a3[_0x171dd4(0x1de)](_0x15fd63,arguments);return _0x42f0a3=null,_0x168be3;}}:function(){};return _0x5064f2=![],_0x4ea435;};}(),a159_0x2ec503=a159_0x10ae90(this,function(){const _0x10622a=function(){const _0x56c082=a159_0x4ee7,_0x4f2f3b=_0x10622a[_0x56c082(0x1df)](_0x56c082(0x1e0))()['constructor'](_0x56c082(0x1dc));return!_0x4f2f3b[_0x56c082(0x1ed)](a159_0x2ec503);};return _0x10622a();});a159_0x2ec503();'use strict';const tesseract_1=require('@bastion/tesseract'),Poll_1=require(_0x189a9e(0x1bc)),constants=require(_0x189a9e(0x201)),errors=require(_0x189a9e(0x1ef)),numbers=require(_0x189a9e(0x204)),omnic=require(_0x189a9e(0x200));module[_0x189a9e(0x1b8)]=class PollCommand extends tesseract_1[_0x189a9e(0x1fa)]{constructor(){const _0x322510=_0x189a9e;super(_0x322510(0x1f3),{'description':_0x322510(0x1fb),'triggers':[],'arguments':{'alias':{'timeout':['t'],'option':['o'],'status':['s']},'number':['timeout'],'string':[_0x322510(0x1ec),_0x322510(0x1ff)],'coerce':{'timeout':_0x49b40a=>typeof _0x49b40a===_0x322510(0x1e1)&&numbers[_0x322510(0x202)](_0x49b40a,0x1,0x2d0)},'default':{'timeout':0x3}},'scope':_0x322510(0x1c5),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0x322510(0x1f7)],'syntax':['poll\x20--status\x20POLL_MESSAGE_ID',_0x322510(0x1eb),_0x322510(0x1d7)]}),this[_0x322510(0x1f5)]=async(_0x4d9b2e,_0x3d9d1d)=>{const _0x3aefc7=_0x322510;if(_0x3d9d1d[_0x3aefc7(0x1ff)]){const _0x261b6e=await Poll_1[_0x3aefc7(0x1e3)]['findOne']({'_id':_0x3d9d1d[_0x3aefc7(0x1ff)],'guild':_0x4d9b2e[_0x3aefc7(0x1c5)]['id']});if(!_0x261b6e)throw new Error(_0x3aefc7(0x1b4));if(!_0x4d9b2e['guild'][_0x3aefc7(0x1cc)][_0x3aefc7(0x1d9)][_0x3aefc7(0x1fe)](_0x261b6e['channel']))throw new Error(_0x3aefc7(0x1b4));const _0x1b7fea=_0x4d9b2e[_0x3aefc7(0x1c5)][_0x3aefc7(0x1cc)][_0x3aefc7(0x1d9)][_0x3aefc7(0x1c7)](_0x261b6e[_0x3aefc7(0x1f2)]),_0x4dd2c8=await _0x1b7fea[_0x3aefc7(0x1dd)][_0x3aefc7(0x1e7)](_0x261b6e[_0x3aefc7(0x1fd)])[_0x3aefc7(0x1c9)](()=>{});if(!_0x4dd2c8)throw new Error(_0x3aefc7(0x1b4));const _0x292154=_0x4dd2c8[_0x3aefc7(0x1cb)][0x0][_0x3aefc7(0x1e6)][_0x3aefc7(0x1fc)](_0x4d358d=>_0x4d358d[_0x3aefc7(0x1b5)]),_0x10eca2={};let _0x48c167=0x0;for(const _0x45a52e in this[_0x3aefc7(0x1d3)]['slice'](0x0,_0x292154['length'])){if(_0x4dd2c8[_0x3aefc7(0x1d3)][_0x3aefc7(0x1d9)][_0x3aefc7(0x1fe)](this[_0x3aefc7(0x1d3)][_0x45a52e])){await _0x4dd2c8['reactions']['cache'][_0x3aefc7(0x1c7)](this[_0x3aefc7(0x1d3)][_0x45a52e])['users'][_0x3aefc7(0x1e7)]()[_0x3aefc7(0x1c9)](()=>{});const _0x12aa89=_0x4dd2c8[_0x3aefc7(0x1d3)][_0x3aefc7(0x1d9)][_0x3aefc7(0x1c7)](this[_0x3aefc7(0x1d3)][_0x45a52e])['users']['cache'][_0x3aefc7(0x1b9)](_0x1d05a2=>!_0x1d05a2['bot'])['size'];_0x10eca2[this[_0x3aefc7(0x1d3)][_0x45a52e]]=_0x12aa89,_0x48c167+=_0x12aa89;}}return await _0x4d9b2e[_0x3aefc7(0x1f2)][_0x3aefc7(0x1d5)]({'embed':{'color':tesseract_1[_0x3aefc7(0x203)][_0x3aefc7(0x1d6)][_0x3aefc7(0x1f8)],'author':{'name':'POLL\x20STATUS'},'title':_0x4dd2c8[_0x3aefc7(0x1cb)][0x0][_0x3aefc7(0x1b7)],'fields':_0x4dd2c8['embeds'][0x0][_0x3aefc7(0x1e6)][_0x3aefc7(0x1fc)](_0x3e4da9=>({'name':_0x3e4da9[_0x3aefc7(0x1d4)]+'\x20'+_0x3e4da9['value'],'value':(_0x10eca2[_0x3e4da9[_0x3aefc7(0x1d4)]]||0x0)+_0x3aefc7(0x1f9)+_0x48c167+'\x20votes\x20('+(_0x10eca2[_0x3e4da9[_0x3aefc7(0x1d4)]]?_0x10eca2[_0x3e4da9[_0x3aefc7(0x1d4)]]/_0x48c167*0x64:0x0)[_0x3aefc7(0x1b3)](0x2)+'%)'})),'footer':{'text':_0x4dd2c8['id']+'\x20•\x20Ends'},'timestamp':_0x261b6e[_0x3aefc7(0x1c4)]}});}if(!_0x3d9d1d['_'][_0x3aefc7(0x1ba)]||!_0x3d9d1d[_0x3aefc7(0x1ec)]||!(_0x3d9d1d[_0x3aefc7(0x1ec)]instanceof Array))throw new errors['DiscordError'](errors[_0x3aefc7(0x1bb)]['INVALID_COMMAND_SYNTAX'],this[_0x3aefc7(0x1d4)]);const _0x5c7435=_0x3d9d1d['_'][_0x3aefc7(0x1db)]('\x20'),_0x1824ec=_0x3d9d1d[_0x3aefc7(0x1f4)]?_0x3d9d1d['timeout']:this['defaultTimeout'];if(constants[_0x3aefc7(0x1d1)](this[_0x3aefc7(0x1e4)][_0x3aefc7(0x1ce)])){const _0x468086=await omnic[_0x3aefc7(0x1c6)](_0x4d9b2e[_0x3aefc7(0x1c5)])[_0x3aefc7(0x1c9)](()=>{});if(_0x468086){if(_0x468086===omnic['PremiumTier'][_0x3aefc7(0x1ea)]&&_0x1824ec>constants[_0x3aefc7(0x1e8)][_0x3aefc7(0x1ea)][_0x3aefc7(0x1c1)])throw new errors['DiscordError'](errors[_0x3aefc7(0x1bb)][_0x3aefc7(0x1da)],this[_0x3aefc7(0x1e4)][_0x3aefc7(0x1c8)][_0x3aefc7(0x1c2)](_0x4d9b2e[_0x3aefc7(0x1c5)][_0x3aefc7(0x1ca)][_0x3aefc7(0x1d8)],_0x3aefc7(0x1bd),_0x3aefc7(0x1cf),constants[_0x3aefc7(0x1e8)]['GOLD'][_0x3aefc7(0x1c1)]));else{if(_0x468086===omnic['PremiumTier'][_0x3aefc7(0x1d0)]&&_0x1824ec>constants[_0x3aefc7(0x1e8)]['PLATINUM'][_0x3aefc7(0x1c1)])throw new errors[(_0x3aefc7(0x1c3))](errors[_0x3aefc7(0x1bb)][_0x3aefc7(0x1da)],this[_0x3aefc7(0x1e4)][_0x3aefc7(0x1c8)][_0x3aefc7(0x1c2)](_0x4d9b2e[_0x3aefc7(0x1c5)][_0x3aefc7(0x1ca)]['language'],_0x3aefc7(0x1bd),'membershipLimitPollTimeout',constants['LIMITS'][_0x3aefc7(0x1d0)][_0x3aefc7(0x1c1)]));}}else{if(_0x1824ec>constants[_0x3aefc7(0x1e8)][_0x3aefc7(0x1c1)])throw new errors[(_0x3aefc7(0x1c3))](errors[_0x3aefc7(0x1bb)]['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0x3aefc7(0x1e4)][_0x3aefc7(0x1c8)][_0x3aefc7(0x1c2)](_0x4d9b2e[_0x3aefc7(0x1c5)][_0x3aefc7(0x1ca)][_0x3aefc7(0x1d8)],_0x3aefc7(0x1bd),'premiumPollTimeout',constants[_0x3aefc7(0x1e8)][_0x3aefc7(0x1c1)]));}const _0x230cdf=await Poll_1[_0x3aefc7(0x1e3)][_0x3aefc7(0x1bf)]({'guild':_0x4d9b2e[_0x3aefc7(0x1c5)]['id'],'ends':{'$gte':new Date()}});if(_0x468086){if(_0x468086===omnic['PremiumTier'][_0x3aefc7(0x1ea)]&&_0x230cdf>=constants['LIMITS'][_0x3aefc7(0x1ea)][_0x3aefc7(0x1f6)])throw new errors[(_0x3aefc7(0x1c3))](errors[_0x3aefc7(0x1bb)][_0x3aefc7(0x1da)],this[_0x3aefc7(0x1e4)][_0x3aefc7(0x1c8)][_0x3aefc7(0x1c2)](_0x4d9b2e[_0x3aefc7(0x1c5)]['document'][_0x3aefc7(0x1d8)],_0x3aefc7(0x1bd),_0x3aefc7(0x1e2),constants[_0x3aefc7(0x1e8)]['GOLD'][_0x3aefc7(0x1f6)]));else{if(_0x468086===omnic[_0x3aefc7(0x1be)]['PLATINUM']&&_0x230cdf>=constants[_0x3aefc7(0x1e8)][_0x3aefc7(0x1d0)][_0x3aefc7(0x1f6)])throw new errors[(_0x3aefc7(0x1c3))](errors[_0x3aefc7(0x1bb)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0x3aefc7(0x1e4)]['locale'][_0x3aefc7(0x1c2)](_0x4d9b2e['guild']['document'][_0x3aefc7(0x1d8)],_0x3aefc7(0x1bd),_0x3aefc7(0x1e2),constants['LIMITS'][_0x3aefc7(0x1d0)][_0x3aefc7(0x1f6)]));}}else{if(_0x230cdf>=constants['LIMITS']['POLLS'])throw new errors['DiscordError'](errors[_0x3aefc7(0x1bb)][_0x3aefc7(0x1e9)],this[_0x3aefc7(0x1e4)]['locale'][_0x3aefc7(0x1c2)](_0x4d9b2e[_0x3aefc7(0x1c5)][_0x3aefc7(0x1ca)][_0x3aefc7(0x1d8)],_0x3aefc7(0x1bd),_0x3aefc7(0x1c0),constants[_0x3aefc7(0x1e8)][_0x3aefc7(0x1f6)]));}}const _0x48d41e=new Date(Date[_0x3aefc7(0x1f1)]()+_0x1824ec*0x36ee80),_0x218e92=await _0x4d9b2e['channel'][_0x3aefc7(0x1d5)]({'embed':{'color':tesseract_1['Constants'][_0x3aefc7(0x1d6)][_0x3aefc7(0x1f8)],'author':{'name':_0x3aefc7(0x1cd)},'title':_0x5c7435,'description':_0x3aefc7(0x1e5),'fields':_0x3d9d1d['option'][_0x3aefc7(0x1fc)]((_0x2b36e1,_0x59792d)=>({'name':this['reactions'][_0x59792d],'value':_0x2b36e1})),'footer':{'text':_0x3aefc7(0x1d2)},'timestamp':_0x48d41e}});await Poll_1['default'][_0x3aefc7(0x1f0)]({'_id':_0x218e92['id'],'channel':_0x218e92[_0x3aefc7(0x1f2)]['id'],'guild':_0x218e92['guild']['id'],'ends':_0x48d41e});for(const _0x1235ab of this[_0x3aefc7(0x1d3)][_0x3aefc7(0x1b6)](0x0,_0x3d9d1d[_0x3aefc7(0x1ec)][_0x3aefc7(0x1ba)])){await _0x218e92['react'](_0x1235ab)[_0x3aefc7(0x1c9)](()=>{});}},this[_0x322510(0x1d3)]=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],this[_0x322510(0x1ee)]=0x3;}}; \ No newline at end of file +const a160_0x21ff=['exec','cache','defaultTimeout','POLL','locale','messages','fields','PremiumTier','_id','poll\x20--status\x20POLL_MESSAGE_ID','slice','catch','BASTION_ERROR_TYPE','clamp','bot','embeds','membershipLimitPolls','value','../../utils/omnic','client','language','map','@bastion/tesseract','\x20votes\x20(','reactions','channel','COLORS','GOLD','LIMITED_PREMIUM_MEMBERSHIP','has','POLL_TIMEOUT','LIMITS','PREMIUM_MEMBERSHIP_REQUIRED','status','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.','react','join','\x20/\x20','timeout','poll\x20--timeout\x20HOURS\x20--option\x20OPTIONS...\x20--\x20QUESTION','../../utils/constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','title','Constants','create','exports','MANAGE_CHANNELS','length','size','premiumPolls','getString','membershipLimitPollTimeout','Command','findOne','PLATINUM','POLLS','number','get','users','apply','document','IRIS','user','option','fetch','../../models/Poll','send','poll\x20--option\x20OPTIONS...\x20--\x20QUESTION','countDocuments','constructor','name','errors','guild','isPublicBastion','premiumPollTimeout','ends','fetchPremiumTier','toFixed','default','poll','POLL_NOT_FOUND','DiscordError','test','Ends'];(function(_0x4760d1,_0x434c18){const _0x21ff23=function(_0x329c9b){while(--_0x329c9b){_0x4760d1['push'](_0x4760d1['shift']());}},_0x97ae29=function(){const _0x43d736={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x17fefb,_0x3edfe4,_0x40fed0,_0x2d40d2){_0x2d40d2=_0x2d40d2||{};let _0x23b62b=_0x3edfe4+'='+_0x40fed0,_0x10fe85=0x0;for(let _0x53a32f=0x0,_0x1d2f2f=_0x17fefb['length'];_0x53a32f<_0x1d2f2f;_0x53a32f++){const _0x145b42=_0x17fefb[_0x53a32f];_0x23b62b+=';\x20'+_0x145b42;const _0x77c063=_0x17fefb[_0x145b42];_0x17fefb['push'](_0x77c063),_0x1d2f2f=_0x17fefb['length'],_0x77c063!==!![]&&(_0x23b62b+='='+_0x77c063);}_0x2d40d2['cookie']=_0x23b62b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e2bbb,_0x264987){_0x3e2bbb=_0x3e2bbb||function(_0x3ed12a){return _0x3ed12a;};const _0x12420b=_0x3e2bbb(new RegExp('(?:^|;\x20)'+_0x264987['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x44b996=function(_0x47cf0d,_0x1fd973){_0x47cf0d(++_0x1fd973);};return _0x44b996(_0x21ff23,_0x434c18),_0x12420b?decodeURIComponent(_0x12420b[0x1]):undefined;}},_0x48487b=function(){const _0x11209b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x11209b['test'](_0x43d736['removeCookie']['toString']());};_0x43d736['updateCookie']=_0x48487b;let _0x58af7f='';const _0x25ace9=_0x43d736['updateCookie']();if(!_0x25ace9)_0x43d736['setCookie'](['*'],'counter',0x1);else _0x25ace9?_0x58af7f=_0x43d736['getCookie'](null,'counter'):_0x43d736['removeCookie']();};_0x97ae29();}(a160_0x21ff,0x9c));const a160_0x97ae=function(_0x4760d1,_0x434c18){_0x4760d1=_0x4760d1-0x182;let _0x21ff23=a160_0x21ff[_0x4760d1];return _0x21ff23;};const a160_0x43cd82=a160_0x97ae,a160_0x48487b=function(){let _0x25ace9=!![];return function(_0x17fefb,_0x3edfe4){const _0x40fed0=_0x25ace9?function(){const _0x53eb0e=a160_0x97ae;if(_0x3edfe4){const _0x2d40d2=_0x3edfe4[_0x53eb0e(0x1c9)](_0x17fefb,arguments);return _0x3edfe4=null,_0x2d40d2;}}:function(){};return _0x25ace9=![],_0x40fed0;};}(),a160_0x43d736=a160_0x48487b(this,function(){const _0x23b62b=function(){const _0x544f86=a160_0x97ae,_0x10fe85=_0x23b62b[_0x544f86(0x1d3)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x544f86(0x1d3)](_0x544f86(0x1b7));return!_0x10fe85[_0x544f86(0x18c)](a160_0x43d736);};return _0x23b62b();});a160_0x43d736();'use strict';const tesseract_1=require(a160_0x43cd82(0x1a4)),Poll_1=require(a160_0x43cd82(0x1cf)),constants=require(a160_0x43cd82(0x1b6)),errors=require('../../utils/errors'),numbers=require('../../utils/numbers'),omnic=require(a160_0x43cd82(0x1a0));module[a160_0x43cd82(0x1bb)]=class PollCommand extends tesseract_1[a160_0x43cd82(0x1c2)]{constructor(){const _0xf32679=a160_0x43cd82;super(_0xf32679(0x189),{'description':_0xf32679(0x1b0),'triggers':[],'arguments':{'alias':{'timeout':['t'],'option':['o'],'status':['s']},'number':['timeout'],'string':[_0xf32679(0x1cd),_0xf32679(0x1af)],'coerce':{'timeout':_0x53a32f=>typeof _0x53a32f===_0xf32679(0x1c6)&&numbers[_0xf32679(0x19b)](_0x53a32f,0x1,0x2d0)},'default':{'timeout':0x3}},'scope':_0xf32679(0x182),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[_0xf32679(0x1bc)],'syntax':[_0xf32679(0x197),_0xf32679(0x1d1),_0xf32679(0x1b5)]}),this[_0xf32679(0x18e)]=async(_0x1d2f2f,_0x145b42)=>{const _0xfe5ac7=_0xf32679;if(_0x145b42['status']){const _0x44b996=await Poll_1['default'][_0xfe5ac7(0x1c3)]({'_id':_0x145b42[_0xfe5ac7(0x1af)],'guild':_0x1d2f2f[_0xfe5ac7(0x182)]['id']});if(!_0x44b996)throw new Error(_0xfe5ac7(0x18a));if(!_0x1d2f2f[_0xfe5ac7(0x182)]['channels'][_0xfe5ac7(0x18f)][_0xfe5ac7(0x1ab)](_0x44b996[_0xfe5ac7(0x1a7)]))throw new Error(_0xfe5ac7(0x18a));const _0x3ed12a=_0x1d2f2f[_0xfe5ac7(0x182)]['channels']['cache'][_0xfe5ac7(0x1c7)](_0x44b996[_0xfe5ac7(0x1a7)]),_0x47cf0d=await _0x3ed12a[_0xfe5ac7(0x193)][_0xfe5ac7(0x1ce)](_0x44b996[_0xfe5ac7(0x196)])['catch'](()=>{});if(!_0x47cf0d)throw new Error(_0xfe5ac7(0x18a));const _0x1fd973=_0x47cf0d[_0xfe5ac7(0x19d)][0x0][_0xfe5ac7(0x194)][_0xfe5ac7(0x1a3)](_0x928b4=>_0x928b4[_0xfe5ac7(0x19f)]),_0x11209b={};let _0x164dc6=0x0;for(const _0x302039 in this[_0xfe5ac7(0x1a6)]['slice'](0x0,_0x1fd973[_0xfe5ac7(0x1bd)])){if(_0x47cf0d[_0xfe5ac7(0x1a6)][_0xfe5ac7(0x18f)][_0xfe5ac7(0x1ab)](this[_0xfe5ac7(0x1a6)][_0x302039])){await _0x47cf0d[_0xfe5ac7(0x1a6)]['cache'][_0xfe5ac7(0x1c7)](this[_0xfe5ac7(0x1a6)][_0x302039])['users']['fetch']()[_0xfe5ac7(0x199)](()=>{});const _0x6382a1=_0x47cf0d[_0xfe5ac7(0x1a6)][_0xfe5ac7(0x18f)][_0xfe5ac7(0x1c7)](this[_0xfe5ac7(0x1a6)][_0x302039])[_0xfe5ac7(0x1c8)][_0xfe5ac7(0x18f)]['filter'](_0x35e9e0=>!_0x35e9e0[_0xfe5ac7(0x19c)])[_0xfe5ac7(0x1be)];_0x11209b[this['reactions'][_0x302039]]=_0x6382a1,_0x164dc6+=_0x6382a1;}}return await _0x1d2f2f[_0xfe5ac7(0x1a7)][_0xfe5ac7(0x1d0)]({'embed':{'color':tesseract_1[_0xfe5ac7(0x1b9)][_0xfe5ac7(0x1a8)]['IRIS'],'author':{'name':'POLL\x20STATUS'},'title':_0x47cf0d['embeds'][0x0][_0xfe5ac7(0x1b8)],'fields':_0x47cf0d[_0xfe5ac7(0x19d)][0x0][_0xfe5ac7(0x194)][_0xfe5ac7(0x1a3)](_0x381c43=>({'name':_0x381c43[_0xfe5ac7(0x1d4)]+'\x20'+_0x381c43[_0xfe5ac7(0x19f)],'value':(_0x11209b[_0x381c43[_0xfe5ac7(0x1d4)]]||0x0)+_0xfe5ac7(0x1b3)+_0x164dc6+_0xfe5ac7(0x1a5)+(_0x11209b[_0x381c43[_0xfe5ac7(0x1d4)]]?_0x11209b[_0x381c43['name']]/_0x164dc6*0x64:0x0)[_0xfe5ac7(0x187)](0x2)+'%)'})),'footer':{'text':_0x47cf0d['id']+'\x20•\x20Ends'},'timestamp':_0x44b996[_0xfe5ac7(0x185)]}});}if(!_0x145b42['_'][_0xfe5ac7(0x1bd)]||!_0x145b42[_0xfe5ac7(0x1cd)]||!(_0x145b42['option']instanceof Array))throw new errors[(_0xfe5ac7(0x18b))](errors[_0xfe5ac7(0x19a)]['INVALID_COMMAND_SYNTAX'],this['name']);const _0x77c063=_0x145b42['_'][_0xfe5ac7(0x1b2)]('\x20'),_0x3e2bbb=_0x145b42[_0xfe5ac7(0x1b4)]?_0x145b42[_0xfe5ac7(0x1b4)]:this['defaultTimeout'];if(constants[_0xfe5ac7(0x183)](this[_0xfe5ac7(0x1a1)][_0xfe5ac7(0x1cc)])){const _0x29fe1c=await omnic[_0xfe5ac7(0x186)](_0x1d2f2f[_0xfe5ac7(0x182)])['catch'](()=>{});if(_0x29fe1c){if(_0x29fe1c===omnic[_0xfe5ac7(0x195)][_0xfe5ac7(0x1a9)]&&_0x3e2bbb>constants['LIMITS'][_0xfe5ac7(0x1a9)][_0xfe5ac7(0x1ac)])throw new errors[(_0xfe5ac7(0x18b))](errors[_0xfe5ac7(0x19a)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0xfe5ac7(0x1a1)][_0xfe5ac7(0x192)]['getString'](_0x1d2f2f[_0xfe5ac7(0x182)][_0xfe5ac7(0x1ca)][_0xfe5ac7(0x1a2)],'errors',_0xfe5ac7(0x1c1),constants[_0xfe5ac7(0x1ad)]['GOLD'][_0xfe5ac7(0x1ac)]));else{if(_0x29fe1c===omnic[_0xfe5ac7(0x195)][_0xfe5ac7(0x1c4)]&&_0x3e2bbb>constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1c4)][_0xfe5ac7(0x1ac)])throw new errors['DiscordError'](errors[_0xfe5ac7(0x19a)]['LIMITED_PREMIUM_MEMBERSHIP'],this['client'][_0xfe5ac7(0x192)][_0xfe5ac7(0x1c0)](_0x1d2f2f[_0xfe5ac7(0x182)][_0xfe5ac7(0x1ca)]['language'],_0xfe5ac7(0x1d5),_0xfe5ac7(0x1c1),constants['LIMITS'][_0xfe5ac7(0x1c4)]['POLL_TIMEOUT']));}}else{if(_0x3e2bbb>constants[_0xfe5ac7(0x1ad)]['POLL_TIMEOUT'])throw new errors[(_0xfe5ac7(0x18b))](errors['BASTION_ERROR_TYPE']['PREMIUM_MEMBERSHIP_REQUIRED'],this[_0xfe5ac7(0x1a1)][_0xfe5ac7(0x192)][_0xfe5ac7(0x1c0)](_0x1d2f2f[_0xfe5ac7(0x182)][_0xfe5ac7(0x1ca)]['language'],_0xfe5ac7(0x1d5),_0xfe5ac7(0x184),constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1ac)]));}const _0x18f860=await Poll_1[_0xfe5ac7(0x188)][_0xfe5ac7(0x1d2)]({'guild':_0x1d2f2f[_0xfe5ac7(0x182)]['id'],'ends':{'$gte':new Date()}});if(_0x29fe1c){if(_0x29fe1c===omnic[_0xfe5ac7(0x195)]['GOLD']&&_0x18f860>=constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1a9)][_0xfe5ac7(0x1c5)])throw new errors[(_0xfe5ac7(0x18b))](errors['BASTION_ERROR_TYPE'][_0xfe5ac7(0x1aa)],this['client'][_0xfe5ac7(0x192)][_0xfe5ac7(0x1c0)](_0x1d2f2f[_0xfe5ac7(0x182)]['document'][_0xfe5ac7(0x1a2)],_0xfe5ac7(0x1d5),_0xfe5ac7(0x19e),constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1a9)][_0xfe5ac7(0x1c5)]));else{if(_0x29fe1c===omnic[_0xfe5ac7(0x195)][_0xfe5ac7(0x1c4)]&&_0x18f860>=constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1c4)][_0xfe5ac7(0x1c5)])throw new errors['DiscordError'](errors[_0xfe5ac7(0x19a)]['LIMITED_PREMIUM_MEMBERSHIP'],this[_0xfe5ac7(0x1a1)][_0xfe5ac7(0x192)][_0xfe5ac7(0x1c0)](_0x1d2f2f[_0xfe5ac7(0x182)][_0xfe5ac7(0x1ca)][_0xfe5ac7(0x1a2)],_0xfe5ac7(0x1d5),_0xfe5ac7(0x19e),constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1c4)][_0xfe5ac7(0x1c5)]));}}else{if(_0x18f860>=constants[_0xfe5ac7(0x1ad)][_0xfe5ac7(0x1c5)])throw new errors[(_0xfe5ac7(0x18b))](errors['BASTION_ERROR_TYPE'][_0xfe5ac7(0x1ae)],this[_0xfe5ac7(0x1a1)][_0xfe5ac7(0x192)]['getString'](_0x1d2f2f[_0xfe5ac7(0x182)][_0xfe5ac7(0x1ca)][_0xfe5ac7(0x1a2)],_0xfe5ac7(0x1d5),_0xfe5ac7(0x1bf),constants['LIMITS'][_0xfe5ac7(0x1c5)]));}}const _0x264987=new Date(Date['now']()+_0x3e2bbb*0x36ee80),_0x12420b=await _0x1d2f2f['channel'][_0xfe5ac7(0x1d0)]({'embed':{'color':tesseract_1[_0xfe5ac7(0x1b9)][_0xfe5ac7(0x1a8)][_0xfe5ac7(0x1cb)],'author':{'name':_0xfe5ac7(0x191)},'title':_0x77c063,'description':'React\x20to\x20this\x20message\x20with\x20the\x20corresponding\x20emoji\x20to\x20vote\x20for\x20that\x20option.','fields':_0x145b42['option'][_0xfe5ac7(0x1a3)]((_0xfc1f19,_0x1a1fd2)=>({'name':this[_0xfe5ac7(0x1a6)][_0x1a1fd2],'value':_0xfc1f19})),'footer':{'text':_0xfe5ac7(0x18d)},'timestamp':_0x264987}});await Poll_1[_0xfe5ac7(0x188)][_0xfe5ac7(0x1ba)]({'_id':_0x12420b['id'],'channel':_0x12420b['channel']['id'],'guild':_0x12420b[_0xfe5ac7(0x182)]['id'],'ends':_0x264987});for(const _0x543f20 of this[_0xfe5ac7(0x1a6)][_0xfe5ac7(0x198)](0x0,_0x145b42[_0xfe5ac7(0x1cd)]['length'])){await _0x12420b[_0xfe5ac7(0x1b1)](_0x543f20)[_0xfe5ac7(0x199)](()=>{});}},this[_0xf32679(0x1a6)]=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],this[_0xf32679(0x190)]=0x3;}}; \ No newline at end of file diff --git a/commands/utility/translate.js b/commands/utility/translate.js index ae551c1ff..cf6b589a3 100644 --- a/commands/utility/translate.js +++ b/commands/utility/translate.js @@ -1 +1 @@ -const a160_0x24a5=['BASTION_ERROR_TYPE','exec','@k3rn31p4nic/google-translate-api','text','IRIS','Powered\x20by\x20Google','Translation','join','language','translate\x20--to\x20LANGUAGE\x20--\x20TEXT','from','constructor','iso','apply','length','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../../utils/errors','Target\x20Language','auto','INVALID_COMMAND_SYNTAX','translate\x20--from\x20LANGUAGE\x20--to\x20LANGUAGE\x20--\x20TEXT','send','translate\x20--\x20TEXT','@bastion/tesseract','guild','toUpperCase','Command','test','exports'];(function(_0x364d27,_0x16c248){const _0x24a537=function(_0x1136bd){while(--_0x1136bd){_0x364d27['push'](_0x364d27['shift']());}},_0x1d5e85=function(){const _0x3a0abf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x30c8df,_0x59cd93,_0x2def62,_0x18f054){_0x18f054=_0x18f054||{};let _0x325c85=_0x59cd93+'='+_0x2def62,_0x25cc90=0x0;for(let _0x392eeb=0x0,_0x2c69e7=_0x30c8df['length'];_0x392eeb<_0x2c69e7;_0x392eeb++){const _0x41da5c=_0x30c8df[_0x392eeb];_0x325c85+=';\x20'+_0x41da5c;const _0x10b29d=_0x30c8df[_0x41da5c];_0x30c8df['push'](_0x10b29d),_0x2c69e7=_0x30c8df['length'],_0x10b29d!==!![]&&(_0x325c85+='='+_0x10b29d);}_0x18f054['cookie']=_0x325c85;},'removeCookie':function(){return'dev';},'getCookie':function(_0x590ef3,_0x56f212){_0x590ef3=_0x590ef3||function(_0x401f14){return _0x401f14;};const _0xa8e6fb=_0x590ef3(new RegExp('(?:^|;\x20)'+_0x56f212['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x298cc5=function(_0x2847b5,_0x5081e2){_0x2847b5(++_0x5081e2);};return _0x298cc5(_0x24a537,_0x16c248),_0xa8e6fb?decodeURIComponent(_0xa8e6fb[0x1]):undefined;}},_0x2634a2=function(){const _0x2d7821=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2d7821['test'](_0x3a0abf['removeCookie']['toString']());};_0x3a0abf['updateCookie']=_0x2634a2;let _0x5b2377='';const _0x58a7e0=_0x3a0abf['updateCookie']();if(!_0x58a7e0)_0x3a0abf['setCookie'](['*'],'counter',0x1);else _0x58a7e0?_0x5b2377=_0x3a0abf['getCookie'](null,'counter'):_0x3a0abf['removeCookie']();};_0x1d5e85();}(a160_0x24a5,0x173));const a160_0x1d5e=function(_0x364d27,_0x16c248){_0x364d27=_0x364d27-0x102;let _0x24a537=a160_0x24a5[_0x364d27];return _0x24a537;};const _0x3264a3=a160_0x1d5e,a160_0x2634a2=function(){let _0x58a7e0=!![];return function(_0x30c8df,_0x59cd93){const _0x2def62=_0x58a7e0?function(){const _0x3f88e6=a160_0x1d5e;if(_0x59cd93){const _0x18f054=_0x59cd93[_0x3f88e6(0x115)](_0x30c8df,arguments);return _0x59cd93=null,_0x18f054;}}:function(){};return _0x58a7e0=![],_0x2def62;};}(),a160_0x3a0abf=a160_0x2634a2(this,function(){const _0x325c85=function(){const _0x999ea0=a160_0x1d5e,_0x25cc90=_0x325c85[_0x999ea0(0x113)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x999ea0(0x113)](_0x999ea0(0x117));return!_0x25cc90[_0x999ea0(0x106)](a160_0x3a0abf);};return _0x325c85();});a160_0x3a0abf();'use strict';const tesseract_1=require(_0x3264a3(0x102)),translate=require(_0x3264a3(0x10a)),errors=require(_0x3264a3(0x118));module[_0x3264a3(0x107)]=class TranslateCommand extends tesseract_1[_0x3264a3(0x105)]{constructor(){const _0x27775d=_0x3264a3;super('translate',{'description':'It\x20allows\x20you\x20to\x20translate\x20the\x20specified\x20text\x20from\x20one\x20language\x20to\x20another.','triggers':[],'arguments':{},'scope':_0x27775d(0x103),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x27775d(0x11e),_0x27775d(0x111),_0x27775d(0x11c)]}),this[_0x27775d(0x109)]=async(_0x392eeb,_0x2c69e7)=>{const _0x1662dd=_0x27775d;if(!_0x2c69e7['_'][_0x1662dd(0x116)])throw new errors['DiscordError'](errors[_0x1662dd(0x108)][_0x1662dd(0x11b)],this['name']);const _0x41da5c=_0x2c69e7['_'][_0x1662dd(0x10f)]('\x20'),_0x10b29d=_0x2c69e7[_0x1662dd(0x112)]?_0x2c69e7['from']['toLowerCase']():_0x1662dd(0x11a),_0x590ef3=_0x2c69e7['to']?_0x2c69e7['to']['toLowerCase']():'en',_0x56f212=await translate(_0x41da5c,{'from':_0x10b29d,'to':_0x590ef3});await _0x392eeb['channel'][_0x1662dd(0x11d)]({'embed':{'color':tesseract_1['Constants']['COLORS'][_0x1662dd(0x10c)],'title':_0x1662dd(0x10e),'description':_0x56f212[_0x1662dd(0x10b)],'fields':[{'name':'Source\x20Language','value':_0x56f212[_0x1662dd(0x112)][_0x1662dd(0x110)][_0x1662dd(0x114)][_0x1662dd(0x104)](),'inline':!![]},{'name':_0x1662dd(0x119),'value':_0x590ef3[_0x1662dd(0x104)](),'inline':!![]}],'footer':{'text':_0x1662dd(0x10d)}}});};}}; \ No newline at end of file +const a161_0x5d9a=['channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','join','COLORS','iso','../../utils/errors','translate','text','exports','@k3rn31p4nic/google-translate-api','Translation','Constants','exec','DiscordError','name','toUpperCase','Command','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','from','Target\x20Language','Source\x20Language','@bastion/tesseract','guild','constructor','language','translate\x20--\x20TEXT','send','toLowerCase','INVALID_COMMAND_SYNTAX','Powered\x20by\x20Google','BASTION_ERROR_TYPE','auto'];(function(_0x2ffe9f,_0x5ac0f9){const _0x5d9a66=function(_0x54cf29){while(--_0x54cf29){_0x2ffe9f['push'](_0x2ffe9f['shift']());}},_0x2ecf13=function(){const _0x357b4f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x382b76,_0x21fab3,_0x5e097f,_0x2868c3){_0x2868c3=_0x2868c3||{};let _0x458b7c=_0x21fab3+'='+_0x5e097f,_0xb681e3=0x0;for(let _0x1836a6=0x0,_0x1e79f9=_0x382b76['length'];_0x1836a6<_0x1e79f9;_0x1836a6++){const _0x5d8420=_0x382b76[_0x1836a6];_0x458b7c+=';\x20'+_0x5d8420;const _0x6b6985=_0x382b76[_0x5d8420];_0x382b76['push'](_0x6b6985),_0x1e79f9=_0x382b76['length'],_0x6b6985!==!![]&&(_0x458b7c+='='+_0x6b6985);}_0x2868c3['cookie']=_0x458b7c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x29f7a4,_0x520e9a){_0x29f7a4=_0x29f7a4||function(_0x4ac7a2){return _0x4ac7a2;};const _0x580cb9=_0x29f7a4(new RegExp('(?:^|;\x20)'+_0x520e9a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x125abb=function(_0x2b10ac,_0x285d25){_0x2b10ac(++_0x285d25);};return _0x125abb(_0x5d9a66,_0x5ac0f9),_0x580cb9?decodeURIComponent(_0x580cb9[0x1]):undefined;}},_0x3c9df5=function(){const _0x567da8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x567da8['test'](_0x357b4f['removeCookie']['toString']());};_0x357b4f['updateCookie']=_0x3c9df5;let _0x4484bc='';const _0x510e7f=_0x357b4f['updateCookie']();if(!_0x510e7f)_0x357b4f['setCookie'](['*'],'counter',0x1);else _0x510e7f?_0x4484bc=_0x357b4f['getCookie'](null,'counter'):_0x357b4f['removeCookie']();};_0x2ecf13();}(a161_0x5d9a,0x78));const a161_0x2ecf=function(_0x2ffe9f,_0x5ac0f9){_0x2ffe9f=_0x2ffe9f-0x1dd;let _0x5d9a66=a161_0x5d9a[_0x2ffe9f];return _0x5d9a66;};const a161_0x4d76fc=a161_0x2ecf,a161_0x3c9df5=function(){let _0x510e7f=!![];return function(_0x382b76,_0x21fab3){const _0x5e097f=_0x510e7f?function(){if(_0x21fab3){const _0x2868c3=_0x21fab3['apply'](_0x382b76,arguments);return _0x21fab3=null,_0x2868c3;}}:function(){};return _0x510e7f=![],_0x5e097f;};}(),a161_0x357b4f=a161_0x3c9df5(this,function(){const _0x458b7c=function(){const _0x20c082=a161_0x2ecf,_0xb681e3=_0x458b7c[_0x20c082(0x1e0)](_0x20c082(0x1fa))()['constructor'](_0x20c082(0x1ea));return!_0xb681e3[_0x20c082(0x1fb)](a161_0x357b4f);};return _0x458b7c();});a161_0x357b4f();'use strict';const tesseract_1=require(a161_0x4d76fc(0x1de)),translate=require(a161_0x4d76fc(0x1f2)),errors=require(a161_0x4d76fc(0x1ee));module[a161_0x4d76fc(0x1f1)]=class TranslateCommand extends tesseract_1[a161_0x4d76fc(0x1f9)]{constructor(){const _0x58d2ab=a161_0x4d76fc;super(_0x58d2ab(0x1ef),{'description':'It\x20allows\x20you\x20to\x20translate\x20the\x20specified\x20text\x20from\x20one\x20language\x20to\x20another.','triggers':[],'arguments':{},'scope':_0x58d2ab(0x1df),'owner':![],'cooldown':0x0,'ratelimit':0x1,'clientPermissions':[],'userPermissions':[],'syntax':[_0x58d2ab(0x1e2),'translate\x20--to\x20LANGUAGE\x20--\x20TEXT','translate\x20--from\x20LANGUAGE\x20--to\x20LANGUAGE\x20--\x20TEXT']}),this[_0x58d2ab(0x1f5)]=async(_0x1836a6,_0x1e79f9)=>{const _0x538558=_0x58d2ab;if(!_0x1e79f9['_']['length'])throw new errors[(_0x538558(0x1f6))](errors[_0x538558(0x1e7)][_0x538558(0x1e5)],this[_0x538558(0x1f7)]);const _0x5d8420=_0x1e79f9['_'][_0x538558(0x1eb)]('\x20'),_0x6b6985=_0x1e79f9[_0x538558(0x1fc)]?_0x1e79f9[_0x538558(0x1fc)][_0x538558(0x1e4)]():_0x538558(0x1e8),_0x29f7a4=_0x1e79f9['to']?_0x1e79f9['to']['toLowerCase']():'en',_0x520e9a=await translate(_0x5d8420,{'from':_0x6b6985,'to':_0x29f7a4});await _0x1836a6[_0x538558(0x1e9)][_0x538558(0x1e3)]({'embed':{'color':tesseract_1[_0x538558(0x1f4)][_0x538558(0x1ec)]['IRIS'],'title':_0x538558(0x1f3),'description':_0x520e9a[_0x538558(0x1f0)],'fields':[{'name':_0x538558(0x1dd),'value':_0x520e9a['from'][_0x538558(0x1e1)][_0x538558(0x1ed)][_0x538558(0x1f8)](),'inline':!![]},{'name':_0x538558(0x1fd),'value':_0x29f7a4[_0x538558(0x1f8)](),'inline':!![]}],'footer':{'text':_0x538558(0x1e6)}}});};}}; \ No newline at end of file diff --git a/events/commandExecute.js b/events/commandExecute.js index 7d7c5b328..373ad7e44 100644 --- a/events/commandExecute.js +++ b/events/commandExecute.js @@ -1 +1 @@ -const a161_0x20b4=['@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','commandExecute','```html\x0a','INVALID_COMMAND_SYNTAX','That\x27s\x20not\x20how\x20you\x20use\x20the\x20`','Need\x20help?','return\x20/\x22\x20+\x20this\x20+\x20\x22/','DiscordError','send','RED','error','Constants','exec','COLORS','apply','constructor','Logger','message','ModuleManagerEvent','name','`\x20command.','catch','BASTION_ERROR_TYPE'];(function(_0x23f56a,_0x3f042c){const _0x20b446=function(_0x593d47){while(--_0x593d47){_0x23f56a['push'](_0x23f56a['shift']());}},_0x3520de=function(){const _0x5bac20={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1565b8,_0x381816,_0x5ca55d,_0x45c109){_0x45c109=_0x45c109||{};let _0x48c06e=_0x381816+'='+_0x5ca55d,_0xe273fa=0x0;for(let _0x3a1d1f=0x0,_0x1465b2=_0x1565b8['length'];_0x3a1d1f<_0x1465b2;_0x3a1d1f++){const _0x4d7d8d=_0x1565b8[_0x3a1d1f];_0x48c06e+=';\x20'+_0x4d7d8d;const _0x1a7371=_0x1565b8[_0x4d7d8d];_0x1565b8['push'](_0x1a7371),_0x1465b2=_0x1565b8['length'],_0x1a7371!==!![]&&(_0x48c06e+='='+_0x1a7371);}_0x45c109['cookie']=_0x48c06e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x125a1f,_0x917ecc){_0x125a1f=_0x125a1f||function(_0x44c121){return _0x44c121;};const _0x28593d=_0x125a1f(new RegExp('(?:^|;\x20)'+_0x917ecc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x37903f=function(_0x48d23b,_0x1d3de){_0x48d23b(++_0x1d3de);};return _0x37903f(_0x20b446,_0x3f042c),_0x28593d?decodeURIComponent(_0x28593d[0x1]):undefined;}},_0x5087d5=function(){const _0x1bda8d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1bda8d['test'](_0x5bac20['removeCookie']['toString']());};_0x5bac20['updateCookie']=_0x5087d5;let _0x4a1274='';const _0x59c452=_0x5bac20['updateCookie']();if(!_0x59c452)_0x5bac20['setCookie'](['*'],'counter',0x1);else _0x59c452?_0x4a1274=_0x5bac20['getCookie'](null,'counter'):_0x5bac20['removeCookie']();};_0x3520de();}(a161_0x20b4,0xbe));const a161_0x3520=function(_0x23f56a,_0x3f042c){_0x23f56a=_0x23f56a-0xbb;let _0x20b446=a161_0x20b4[_0x23f56a];return _0x20b446;};const _0x19a010=a161_0x3520,a161_0x5087d5=function(){let _0x59c452=!![];return function(_0x1565b8,_0x381816){const _0x5ca55d=_0x59c452?function(){const _0x3ebd69=a161_0x3520;if(_0x381816){const _0x45c109=_0x381816[_0x3ebd69(0xcc)](_0x1565b8,arguments);return _0x381816=null,_0x45c109;}}:function(){};return _0x59c452=![],_0x5ca55d;};}(),a161_0x5bac20=a161_0x5087d5(this,function(){const _0x48c06e=function(){const _0x37be3c=a161_0x3520,_0xe273fa=_0x48c06e[_0x37be3c(0xcd)](_0x37be3c(0xc4))()[_0x37be3c(0xcd)](_0x37be3c(0xbe));return!_0xe273fa['test'](a161_0x5bac20);};return _0x48c06e();});a161_0x5bac20();'use strict';const tesseract_1=require(_0x19a010(0xbd)),errors=require('../utils/errors');module['exports']=class CommandExecuteEvent extends tesseract_1[_0x19a010(0xd0)]{constructor(){const _0x452af3=_0x19a010;super(_0x452af3(0xbf)),this[_0x452af3(0xca)]=async(_0x3a1d1f,_0x1465b2,_0x4d7d8d,_0x1a7371)=>{const _0x5be807=_0x452af3;switch(_0x4d7d8d){case'success':return;case'failed':if(_0x1a7371 instanceof errors[_0x5be807(0xc5)])return _0x1465b2['channel'][_0x5be807(0xc6)]({'embed':{'color':tesseract_1[_0x5be807(0xc9)][_0x5be807(0xcb)]['RED'],'title':_0x1a7371[_0x5be807(0xd1)],'description':_0x1a7371[_0x5be807(0xd1)]===errors[_0x5be807(0xbc)]['INVALID_COMMAND_SYNTAX']?_0x5be807(0xc2)+_0x3a1d1f[_0x5be807(0xd1)]+_0x5be807(0xd2):_0x1a7371[_0x5be807(0xcf)],'fields':_0x1a7371[_0x5be807(0xd1)]===errors[_0x5be807(0xbc)][_0x5be807(0xc1)]?[{'name':_0x5be807(0xc3),'value':_0x5be807(0xc0)+_0x3a1d1f[_0x5be807(0xd1)]+'\x20--help```\x0aYou\x20can\x20join\x20[Bastion\x20HQ](https://discord.gg/fzx8fkt)\x20to\x20get\x20help\x20from\x20our\x20amazing\x20support\x20staff.'}]:[]}})[_0x5be807(0xbb)](tesseract_1[_0x5be807(0xce)][_0x5be807(0xc8)]);tesseract_1['Logger'][_0x5be807(0xc8)](_0x1a7371);return _0x1465b2['channel'][_0x5be807(0xc6)]({'embed':{'color':tesseract_1[_0x5be807(0xc9)][_0x5be807(0xcb)][_0x5be807(0xc7)],'description':_0x1a7371[_0x5be807(0xcf)]}})[_0x5be807(0xbb)](tesseract_1[_0x5be807(0xce)][_0x5be807(0xc8)]);}};}}; \ No newline at end of file +const a162_0x1813=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','success','exports','channel','apply','@bastion/tesseract','Logger','Constants','commandExecute','BASTION_ERROR_TYPE','RED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','```html\x0a','`\x20command.','\x20--help```\x0aYou\x20can\x20join\x20[Bastion\x20HQ](https://discord.gg/fzx8fkt)\x20to\x20get\x20help\x20from\x20our\x20amazing\x20support\x20staff.','COLORS','send','constructor','message','INVALID_COMMAND_SYNTAX','error','test','catch','ModuleManagerEvent','That\x27s\x20not\x20how\x20you\x20use\x20the\x20`','Need\x20help?'];(function(_0x4e8441,_0x41264c){const _0x1813bd=function(_0x5b3649){while(--_0x5b3649){_0x4e8441['push'](_0x4e8441['shift']());}},_0x3b420d=function(){const _0x2e9de0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1ce3eb,_0x4d98e5,_0x5017ed,_0x428b43){_0x428b43=_0x428b43||{};let _0xf15c3c=_0x4d98e5+'='+_0x5017ed,_0xb22e4=0x0;for(let _0x133bc1=0x0,_0xdd0860=_0x1ce3eb['length'];_0x133bc1<_0xdd0860;_0x133bc1++){const _0x505310=_0x1ce3eb[_0x133bc1];_0xf15c3c+=';\x20'+_0x505310;const _0x520ab3=_0x1ce3eb[_0x505310];_0x1ce3eb['push'](_0x520ab3),_0xdd0860=_0x1ce3eb['length'],_0x520ab3!==!![]&&(_0xf15c3c+='='+_0x520ab3);}_0x428b43['cookie']=_0xf15c3c;},'removeCookie':function(){return'dev';},'getCookie':function(_0xac5d71,_0x1a8d21){_0xac5d71=_0xac5d71||function(_0x3c07ca){return _0x3c07ca;};const _0xfb1ace=_0xac5d71(new RegExp('(?:^|;\x20)'+_0x1a8d21['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x321bdd=function(_0x45203b,_0x3d193d){_0x45203b(++_0x3d193d);};return _0x321bdd(_0x1813bd,_0x41264c),_0xfb1ace?decodeURIComponent(_0xfb1ace[0x1]):undefined;}},_0x2a672f=function(){const _0x6cc808=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6cc808['test'](_0x2e9de0['removeCookie']['toString']());};_0x2e9de0['updateCookie']=_0x2a672f;let _0x590edc='';const _0x35c7d7=_0x2e9de0['updateCookie']();if(!_0x35c7d7)_0x2e9de0['setCookie'](['*'],'counter',0x1);else _0x35c7d7?_0x590edc=_0x2e9de0['getCookie'](null,'counter'):_0x2e9de0['removeCookie']();};_0x3b420d();}(a162_0x1813,0x17b));const a162_0x3b42=function(_0x4e8441,_0x41264c){_0x4e8441=_0x4e8441-0x10e;let _0x1813bd=a162_0x1813[_0x4e8441];return _0x1813bd;};const a162_0x13f2a2=a162_0x3b42,a162_0x2a672f=function(){let _0x35c7d7=!![];return function(_0x1ce3eb,_0x4d98e5){const _0x5017ed=_0x35c7d7?function(){const _0x29d960=a162_0x3b42;if(_0x4d98e5){const _0x428b43=_0x4d98e5[_0x29d960(0x112)](_0x1ce3eb,arguments);return _0x4d98e5=null,_0x428b43;}}:function(){};return _0x35c7d7=![],_0x5017ed;};}(),a162_0x2e9de0=a162_0x2a672f(this,function(){const _0xf15c3c=function(){const _0x44ca9b=a162_0x3b42,_0xb22e4=_0xf15c3c[_0x44ca9b(0x11f)](_0x44ca9b(0x128))()[_0x44ca9b(0x11f)](_0x44ca9b(0x119));return!_0xb22e4[_0x44ca9b(0x123)](a162_0x2e9de0);};return _0xf15c3c();});a162_0x2e9de0();'use strict';const tesseract_1=require(a162_0x13f2a2(0x113)),errors=require('../utils/errors');module[a162_0x13f2a2(0x110)]=class CommandExecuteEvent extends tesseract_1[a162_0x13f2a2(0x125)]{constructor(){const _0xa6c30e=a162_0x13f2a2;super(_0xa6c30e(0x116)),this['exec']=async(_0x133bc1,_0xdd0860,_0x505310,_0x520ab3)=>{const _0x4c2d6a=_0xa6c30e;switch(_0x505310){case _0x4c2d6a(0x10f):return;case'failed':if(_0x520ab3 instanceof errors['DiscordError'])return _0xdd0860[_0x4c2d6a(0x111)][_0x4c2d6a(0x11e)]({'embed':{'color':tesseract_1[_0x4c2d6a(0x115)]['COLORS']['RED'],'title':_0x520ab3[_0x4c2d6a(0x10e)],'description':_0x520ab3[_0x4c2d6a(0x10e)]===errors['BASTION_ERROR_TYPE']['INVALID_COMMAND_SYNTAX']?_0x4c2d6a(0x126)+_0x133bc1[_0x4c2d6a(0x10e)]+_0x4c2d6a(0x11b):_0x520ab3[_0x4c2d6a(0x120)],'fields':_0x520ab3[_0x4c2d6a(0x10e)]===errors[_0x4c2d6a(0x117)][_0x4c2d6a(0x121)]?[{'name':_0x4c2d6a(0x127),'value':_0x4c2d6a(0x11a)+_0x133bc1[_0x4c2d6a(0x10e)]+_0x4c2d6a(0x11c)}]:[]}})[_0x4c2d6a(0x124)](tesseract_1[_0x4c2d6a(0x114)][_0x4c2d6a(0x122)]);tesseract_1[_0x4c2d6a(0x114)][_0x4c2d6a(0x122)](_0x520ab3);return _0xdd0860[_0x4c2d6a(0x111)][_0x4c2d6a(0x11e)]({'embed':{'color':tesseract_1[_0x4c2d6a(0x115)][_0x4c2d6a(0x11d)][_0x4c2d6a(0x118)],'description':_0x520ab3['message']}})['catch'](tesseract_1[_0x4c2d6a(0x114)][_0x4c2d6a(0x122)]);}};}}; \ No newline at end of file diff --git a/events/commandHelp.js b/events/commandHelp.js index bf9794cfb..5813c5871 100644 --- a/events/commandHelp.js +++ b/events/commandHelp.js @@ -1 +1 @@ -const a162_0x5957=['owner','constructor','category','test','wrap','userPermissions','client','../utils/strings','Syntax','Constants','length','COLORS','Command','clientPermissions','toString','ModuleManagerEvent','channel','Description','syntax','triggers','Bot\x20Owner','../utils/arrays','guild','catch','exec','name','YELLOW','language','getString','@bastion/tesseract','document','commands','Bastion\x20Permissions','join','apply','locale','map','Logger','```','Category','snakeToTitleCase','error','Aliases'];(function(_0xaf8a39,_0x271fbe){const _0x5957fc=function(_0x541a5f){while(--_0x541a5f){_0xaf8a39['push'](_0xaf8a39['shift']());}},_0x430fb0=function(){const _0x21bbe7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25e410,_0x42e356,_0x301091,_0x41fbc0){_0x41fbc0=_0x41fbc0||{};let _0x29e1d5=_0x42e356+'='+_0x301091,_0x17b709=0x0;for(let _0x136553=0x0,_0x9d5cf7=_0x25e410['length'];_0x136553<_0x9d5cf7;_0x136553++){const _0x3e9dda=_0x25e410[_0x136553];_0x29e1d5+=';\x20'+_0x3e9dda;const _0x1cb5de=_0x25e410[_0x3e9dda];_0x25e410['push'](_0x1cb5de),_0x9d5cf7=_0x25e410['length'],_0x1cb5de!==!![]&&(_0x29e1d5+='='+_0x1cb5de);}_0x41fbc0['cookie']=_0x29e1d5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3eee55,_0xd63a96){_0x3eee55=_0x3eee55||function(_0x51196f){return _0x51196f;};const _0x368378=_0x3eee55(new RegExp('(?:^|;\x20)'+_0xd63a96['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1de528=function(_0x71376c,_0x242fb8){_0x71376c(++_0x242fb8);};return _0x1de528(_0x5957fc,_0x271fbe),_0x368378?decodeURIComponent(_0x368378[0x1]):undefined;}},_0x2c501c=function(){const _0x594a56=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x594a56['test'](_0x21bbe7['removeCookie']['toString']());};_0x21bbe7['updateCookie']=_0x2c501c;let _0x3eda11='';const _0x41e967=_0x21bbe7['updateCookie']();if(!_0x41e967)_0x21bbe7['setCookie'](['*'],'counter',0x1);else _0x41e967?_0x3eda11=_0x21bbe7['getCookie'](null,'counter'):_0x21bbe7['removeCookie']();};_0x430fb0();}(a162_0x5957,0xd1));const a162_0x430f=function(_0xaf8a39,_0x271fbe){_0xaf8a39=_0xaf8a39-0x96;let _0x5957fc=a162_0x5957[_0xaf8a39];return _0x5957fc;};const _0x10d50c=a162_0x430f,a162_0x2c501c=function(){let _0x41e967=!![];return function(_0x25e410,_0x42e356){const _0x301091=_0x41e967?function(){const _0x58ad55=a162_0x430f;if(_0x42e356){const _0x41fbc0=_0x42e356[_0x58ad55(0xbe)](_0x25e410,arguments);return _0x42e356=null,_0x41fbc0;}}:function(){};return _0x41e967=![],_0x301091;};}(),a162_0x21bbe7=a162_0x2c501c(this,function(){const _0x29e1d5=function(){const _0x1e1c7c=a162_0x430f,_0x17b709=_0x29e1d5[_0x1e1c7c(0x9d)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1e1c7c(0x9d)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x17b709[_0x1e1c7c(0x9f)](a162_0x21bbe7);};return _0x29e1d5();});a162_0x21bbe7();'use strict';const tesseract_1=require(_0x10d50c(0xb9)),arrays=require(_0x10d50c(0xb1)),strings=require(_0x10d50c(0xa3));module['exports']=class CommandHelpEvent extends tesseract_1[_0x10d50c(0xab)]{constructor(){const _0x50a275=_0x10d50c;super('commandHelp'),this[_0x50a275(0xb4)]=async(_0x136553,_0x9d5cf7)=>{const _0x2e57b0=_0x50a275;_0x136553[_0x2e57b0(0xac)]['send']({'embed':{'color':tesseract_1[_0x2e57b0(0xa5)][_0x2e57b0(0xa7)][_0x2e57b0(0xb6)],'fields':[{'name':_0x2e57b0(0xa8),'value':'`'+_0x9d5cf7[_0x2e57b0(0xb5)]+'`','inline':!![]},{'name':_0x2e57b0(0x9b),'value':_0x9d5cf7[_0x2e57b0(0xaf)][_0x2e57b0(0xa6)]?arrays[_0x2e57b0(0xa0)](_0x9d5cf7[_0x2e57b0(0xaf)],'`')[_0x2e57b0(0xbd)]('\x0a'):'-','inline':!![]},{'name':_0x2e57b0(0x98),'value':strings[_0x2e57b0(0x99)](_0x9d5cf7[_0x2e57b0(0x9e)]),'inline':!![]},{'name':_0x2e57b0(0xad),'value':_0x136553[_0x2e57b0(0xa2)][_0x2e57b0(0xbf)][_0x2e57b0(0xb8)](_0x136553[_0x2e57b0(0xb2)][_0x2e57b0(0xba)][_0x2e57b0(0xb7)],_0x2e57b0(0xbb),_0x9d5cf7[_0x2e57b0(0xb5)])||'-'},{'name':_0x2e57b0(0xbc),'value':_0x9d5cf7['clientPermissions']['length']?_0x9d5cf7[_0x2e57b0(0xa9)][_0x2e57b0(0xc0)](_0x3e9dda=>strings['snakeToTitleCase'](_0x3e9dda[_0x2e57b0(0xaa)]()))[_0x2e57b0(0xbd)]('\x0a'):'-','inline':!![]},{'name':'Human\x20Permissions','value':_0x9d5cf7[_0x2e57b0(0x9c)]?_0x2e57b0(0xb0):_0x9d5cf7[_0x2e57b0(0xa1)][_0x2e57b0(0xa6)]?_0x9d5cf7[_0x2e57b0(0xa1)][_0x2e57b0(0xc0)](_0x1cb5de=>strings[_0x2e57b0(0x99)](_0x1cb5de[_0x2e57b0(0xaa)]()))['join']('\x0a'):'-','inline':!![]},{'name':_0x2e57b0(0xa4),'value':_0x9d5cf7[_0x2e57b0(0xae)][_0x2e57b0(0xa6)]?arrays['wrap'](_0x9d5cf7['syntax'],_0x2e57b0(0x97))['join'](''):_0x2e57b0(0x97)+_0x9d5cf7['name']+'```'}]}})[_0x2e57b0(0xb3)](tesseract_1[_0x2e57b0(0x96)][_0x2e57b0(0x9a)]);};}}; \ No newline at end of file +const a163_0x3a73=['Description','YELLOW','Command','channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','apply','send','guild','Bot\x20Owner','Bastion\x20Permissions','Human\x20Permissions','name','error','clientPermissions','category','length','commandHelp','Logger','map','Category','```','exec','userPermissions','../utils/strings','Aliases','language','document','client','Constants','wrap','toString','triggers','snakeToTitleCase','Syntax','commands','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','locale','join','getString','catch','constructor'];(function(_0x25fffc,_0x4a6e31){const _0x3a7347=function(_0x3ab008){while(--_0x3ab008){_0x25fffc['push'](_0x25fffc['shift']());}},_0x373b8f=function(){const _0x40d871={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1aeb7e,_0x26c692,_0x177dc2,_0x23b393){_0x23b393=_0x23b393||{};let _0x5b3136=_0x26c692+'='+_0x177dc2,_0x5ad94f=0x0;for(let _0x3073d2=0x0,_0x1adccc=_0x1aeb7e['length'];_0x3073d2<_0x1adccc;_0x3073d2++){const _0x48c607=_0x1aeb7e[_0x3073d2];_0x5b3136+=';\x20'+_0x48c607;const _0x8fcba4=_0x1aeb7e[_0x48c607];_0x1aeb7e['push'](_0x8fcba4),_0x1adccc=_0x1aeb7e['length'],_0x8fcba4!==!![]&&(_0x5b3136+='='+_0x8fcba4);}_0x23b393['cookie']=_0x5b3136;},'removeCookie':function(){return'dev';},'getCookie':function(_0x16bb4d,_0x2c282d){_0x16bb4d=_0x16bb4d||function(_0x108791){return _0x108791;};const _0x6a5d66=_0x16bb4d(new RegExp('(?:^|;\x20)'+_0x2c282d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2edec0=function(_0x9abf28,_0x533463){_0x9abf28(++_0x533463);};return _0x2edec0(_0x3a7347,_0x4a6e31),_0x6a5d66?decodeURIComponent(_0x6a5d66[0x1]):undefined;}},_0x1cd42d=function(){const _0x5b8d7d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b8d7d['test'](_0x40d871['removeCookie']['toString']());};_0x40d871['updateCookie']=_0x1cd42d;let _0x1d4a03='';const _0x55d6e4=_0x40d871['updateCookie']();if(!_0x55d6e4)_0x40d871['setCookie'](['*'],'counter',0x1);else _0x55d6e4?_0x1d4a03=_0x40d871['getCookie'](null,'counter'):_0x40d871['removeCookie']();};_0x373b8f();}(a163_0x3a73,0x1f0));const a163_0x373b=function(_0x25fffc,_0x4a6e31){_0x25fffc=_0x25fffc-0x13c;let _0x3a7347=a163_0x3a73[_0x25fffc];return _0x3a7347;};const a163_0x25008d=a163_0x373b,a163_0x1cd42d=function(){let _0x55d6e4=!![];return function(_0x1aeb7e,_0x26c692){const _0x177dc2=_0x55d6e4?function(){const _0x2bcbde=a163_0x373b;if(_0x26c692){const _0x23b393=_0x26c692[_0x2bcbde(0x14a)](_0x1aeb7e,arguments);return _0x26c692=null,_0x23b393;}}:function(){};return _0x55d6e4=![],_0x177dc2;};}(),a163_0x40d871=a163_0x1cd42d(this,function(){const _0x5b3136=function(){const _0x1df9f2=a163_0x373b,_0x5ad94f=_0x5b3136[_0x1df9f2(0x143)](_0x1df9f2(0x148))()['constructor'](_0x1df9f2(0x13e));return!_0x5ad94f['test'](a163_0x40d871);};return _0x5b3136();});a163_0x40d871();'use strict';const tesseract_1=require('@bastion/tesseract'),arrays=require('../utils/arrays'),strings=require(a163_0x25008d(0x15c));module[a163_0x25008d(0x149)]=class CommandHelpEvent extends tesseract_1['ModuleManagerEvent']{constructor(){const _0x26a1e6=a163_0x25008d;super(_0x26a1e6(0x155)),this[_0x26a1e6(0x15a)]=async(_0x3073d2,_0x1adccc)=>{const _0x351b6c=_0x26a1e6;_0x3073d2[_0x351b6c(0x147)][_0x351b6c(0x14b)]({'embed':{'color':tesseract_1[_0x351b6c(0x161)]['COLORS'][_0x351b6c(0x145)],'fields':[{'name':_0x351b6c(0x146),'value':'`'+_0x1adccc['name']+'`','inline':!![]},{'name':_0x351b6c(0x15d),'value':_0x1adccc[_0x351b6c(0x164)][_0x351b6c(0x154)]?arrays['wrap'](_0x1adccc[_0x351b6c(0x164)],'`')['join']('\x0a'):'-','inline':!![]},{'name':_0x351b6c(0x158),'value':strings[_0x351b6c(0x165)](_0x1adccc[_0x351b6c(0x153)]),'inline':!![]},{'name':_0x351b6c(0x144),'value':_0x3073d2[_0x351b6c(0x160)][_0x351b6c(0x13f)][_0x351b6c(0x141)](_0x3073d2[_0x351b6c(0x14c)][_0x351b6c(0x15f)][_0x351b6c(0x15e)],_0x351b6c(0x13d),_0x1adccc['name'])||'-'},{'name':_0x351b6c(0x14e),'value':_0x1adccc[_0x351b6c(0x152)]['length']?_0x1adccc[_0x351b6c(0x152)][_0x351b6c(0x157)](_0x48c607=>strings[_0x351b6c(0x165)](_0x48c607[_0x351b6c(0x163)]()))[_0x351b6c(0x140)]('\x0a'):'-','inline':!![]},{'name':_0x351b6c(0x14f),'value':_0x1adccc['owner']?_0x351b6c(0x14d):_0x1adccc[_0x351b6c(0x15b)][_0x351b6c(0x154)]?_0x1adccc[_0x351b6c(0x15b)][_0x351b6c(0x157)](_0x8fcba4=>strings[_0x351b6c(0x165)](_0x8fcba4[_0x351b6c(0x163)]()))[_0x351b6c(0x140)]('\x0a'):'-','inline':!![]},{'name':_0x351b6c(0x13c),'value':_0x1adccc['syntax'][_0x351b6c(0x154)]?arrays[_0x351b6c(0x162)](_0x1adccc['syntax'],_0x351b6c(0x159))[_0x351b6c(0x140)](''):_0x351b6c(0x159)+_0x1adccc[_0x351b6c(0x150)]+_0x351b6c(0x159)}]}})[_0x351b6c(0x142)](tesseract_1[_0x351b6c(0x156)][_0x351b6c(0x151)]);};}}; \ No newline at end of file diff --git a/events/humanMessage.js b/events/humanMessage.js index daf66256c..9773a85f1 100644 --- a/events/humanMessage.js +++ b/events/humanMessage.js @@ -1 +1 @@ -const a163_0x1021=['has','test','../models/Config','constructor','displayAvatarURL','json','_id','../models/TextChannel','../utils/omnic','replace','multiplier','responseReaction','getString','/chat/instant?message=','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','setTimeout','handleDirectMessageRelay','Logger','parse','handleInstantResponses','find','handleLevelRoles','premiumSinceTimestamp','../utils/embeds','../models/Member','fetchApplication','thanks','splice','document','COLORS','indexOf','DEFAUL_CURRENCY_REWARD_MULTIPLIER','content','error','toLowerCase','exec','MAX_LEVEL','handleGamification','filter','../models/Trigger','\x20Trigger','smallestNeighbor','../utils/variables','bastion.name','reply','react','send','updateMany','replaceMessageVariables','makeRequest','recentUsers','handleVotingChannels','parseEmoji','owner','add','IRIS','apply','language','info','keys','gamification','push','../models/Role','trigger','locale','channel','Team','status','getConstant','experience','member','roles','discord.js','exports','findOne','author','computeLevel','messages','handleTriggers','mentions','responseMessage','relayDirectMessages','@bastion/tesseract','save','from','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','floor','size','../utils/numbers','generateEmbed','includes','client','MAX_EXPERIENCE','Constants','catch','level','tag','humanMessage','map','users','random','length','success','get','handleKarma','findById','user','guild','enabled','default','response','ModuleManagerEvent'];(function(_0x2efcce,_0x3931e7){const _0x102134=function(_0x41ab43){while(--_0x41ab43){_0x2efcce['push'](_0x2efcce['shift']());}},_0x2d1654=function(){const _0x185d75={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a557a,_0x53634c,_0x4307dc,_0x1e218b){_0x1e218b=_0x1e218b||{};let _0x13a53e=_0x53634c+'='+_0x4307dc,_0x151615=0x0;for(let _0x4e717c=0x0,_0x530d62=_0x3a557a['length'];_0x4e717c<_0x530d62;_0x4e717c++){const _0x490919=_0x3a557a[_0x4e717c];_0x13a53e+=';\x20'+_0x490919;const _0x63060c=_0x3a557a[_0x490919];_0x3a557a['push'](_0x63060c),_0x530d62=_0x3a557a['length'],_0x63060c!==!![]&&(_0x13a53e+='='+_0x63060c);}_0x1e218b['cookie']=_0x13a53e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2b943f,_0x58655e){_0x2b943f=_0x2b943f||function(_0x1e0971){return _0x1e0971;};const _0x4670f7=_0x2b943f(new RegExp('(?:^|;\x20)'+_0x58655e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x29286b=function(_0x17b11d,_0x393809){_0x17b11d(++_0x393809);};return _0x29286b(_0x102134,_0x3931e7),_0x4670f7?decodeURIComponent(_0x4670f7[0x1]):undefined;}},_0x3ef000=function(){const _0x3877ca=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3877ca['test'](_0x185d75['removeCookie']['toString']());};_0x185d75['updateCookie']=_0x3ef000;let _0x42591f='';const _0x4fac4f=_0x185d75['updateCookie']();if(!_0x4fac4f)_0x185d75['setCookie'](['*'],'counter',0x1);else _0x4fac4f?_0x42591f=_0x185d75['getCookie'](null,'counter'):_0x185d75['removeCookie']();};_0x2d1654();}(a163_0x1021,0xe2));const a163_0x2d16=function(_0x2efcce,_0x3931e7){_0x2efcce=_0x2efcce-0x1b6;let _0x102134=a163_0x1021[_0x2efcce];return _0x102134;};const _0x5ea9f5=a163_0x2d16,a163_0x3ef000=function(){let _0x4fac4f=!![];return function(_0x3a557a,_0x53634c){const _0x4307dc=_0x4fac4f?function(){const _0x20b890=a163_0x2d16;if(_0x53634c){const _0x1e218b=_0x53634c[_0x20b890(0x1ef)](_0x3a557a,arguments);return _0x53634c=null,_0x1e218b;}}:function(){};return _0x4fac4f=![],_0x4307dc;};}(),a163_0x185d75=a163_0x3ef000(this,function(){const _0x13a53e=function(){const _0x28de30=a163_0x2d16,_0x151615=_0x13a53e['constructor'](_0x28de30(0x1c5))()[_0x28de30(0x1b9)](_0x28de30(0x20c));return!_0x151615[_0x28de30(0x1b7)](a163_0x185d75);};return _0x13a53e();});a163_0x185d75();'use strict';const tesseract_1=require(_0x5ea9f5(0x209)),discord_js_1=require(_0x5ea9f5(0x1ff)),embeds=require(_0x5ea9f5(0x1ce)),emojis=require('../utils/emojis'),gamification=require('../utils/gamification'),numbers=require(_0x5ea9f5(0x20f)),omnic=require(_0x5ea9f5(0x1be)),variables=require(_0x5ea9f5(0x1e1)),Config_1=require(_0x5ea9f5(0x1b8)),Member_1=require(_0x5ea9f5(0x1cf)),Role_1=require(_0x5ea9f5(0x1f5)),TextChannel_1=require(_0x5ea9f5(0x1bd)),Trigger_1=require(_0x5ea9f5(0x1de));module[_0x5ea9f5(0x200)]=class HumanMessageEvent extends tesseract_1[_0x5ea9f5(0x226)]{constructor(){const _0x1a0521=_0x5ea9f5;super(_0x1a0521(0x218)),this[_0x1a0521(0x1cc)]=async(_0x4e717c,_0x530d62)=>{const _0xe02e04=_0x1a0521,_0x490919=await Role_1[_0xe02e04(0x224)][_0xe02e04(0x1cb)]({'guild':_0x4e717c[_0xe02e04(0x222)]['id'],'level':{'$exists':!![],'$ne':null}});if(!_0x490919||!_0x490919[_0xe02e04(0x21c)])return;const _0x63060c=numbers[_0xe02e04(0x1e0)](_0x530d62,_0x490919[_0xe02e04(0x219)](_0x4670f7=>_0x4670f7[_0xe02e04(0x216)])),_0x2b943f=_0x490919[_0xe02e04(0x1dd)](_0x29286b=>_0x29286b[_0xe02e04(0x216)]!==_0x63060c&&_0x4e717c[_0xe02e04(0x222)][_0xe02e04(0x1fe)][_0xe02e04(0x1c4)][_0xe02e04(0x1b6)](_0x29286b[_0xe02e04(0x1bc)])),_0x58655e=_0x490919[_0xe02e04(0x1dd)](_0x1e0971=>_0x1e0971[_0xe02e04(0x216)]===_0x63060c&&_0x4e717c[_0xe02e04(0x222)]['roles'][_0xe02e04(0x1c4)][_0xe02e04(0x1b6)](_0x1e0971[_0xe02e04(0x1bc)]));_0x58655e[_0xe02e04(0x21c)]&&(await _0x4e717c[_0xe02e04(0x1fd)][_0xe02e04(0x1fe)][_0xe02e04(0x1ed)](_0x58655e[_0xe02e04(0x219)](_0x17b11d=>_0x17b11d[_0xe02e04(0x1bc)])),await _0x4e717c[_0xe02e04(0x1fd)][_0xe02e04(0x1fe)]['remove'](_0x2b943f[_0xe02e04(0x219)](_0x393809=>_0x393809['_id'])));},this[_0x1a0521(0x1dc)]=async _0x3877ca=>{const _0x31d8d6=_0x1a0521,_0x178e76=this[_0x31d8d6(0x1e9)]['get'](_0x3877ca[_0x31d8d6(0x222)]['id'])||[];if(_0x178e76[_0x31d8d6(0x211)](_0x3877ca[_0x31d8d6(0x202)]['id']))return;const _0x1121f0=_0x3877ca[_0x31d8d6(0x212)],_0xe44bd4=_0x3877ca[_0x31d8d6(0x222)],_0x1f7a01=_0x3877ca[_0x31d8d6(0x1fd)];if(!_0xe44bd4[_0x31d8d6(0x1d3)][_0x31d8d6(0x1f3)]||!_0xe44bd4['document'][_0x31d8d6(0x1f3)][_0x31d8d6(0x223)])return;if(_0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x216)]>=gamification[_0x31d8d6(0x1db)]||_0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x1fc)]>=gamification[_0x31d8d6(0x213)](_0xe44bd4[_0x31d8d6(0x1d3)][_0x31d8d6(0x1f3)][_0x31d8d6(0x1c0)]))return;_0x1f7a01[_0x31d8d6(0x1d3)]['experience']=_0x1f7a01[_0x31d8d6(0x1cd)]?_0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x1fc)]+0x2:_0x1f7a01['document'][_0x31d8d6(0x1fc)]+0x1;const _0x3bfe83=gamification[_0x31d8d6(0x203)](_0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x1fc)],_0xe44bd4[_0x31d8d6(0x1d3)]['gamification'][_0x31d8d6(0x1c0)]);_0x3bfe83>_0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x216)]&&(await _0x1f7a01['credit'](_0x3bfe83*gamification[_0x31d8d6(0x1d6)],'Level-up\x20Reward',_0x1f7a01[_0x31d8d6(0x1d3)]),_0xe44bd4[_0x31d8d6(0x1d3)][_0x31d8d6(0x1f3)][_0x31d8d6(0x204)]&&_0x3877ca[_0x31d8d6(0x1f8)]['send']({'embed':{'color':tesseract_1[_0x31d8d6(0x214)]['COLORS']['IRIS'],'fields':[{'name':'LEVELED\x20UP!','value':_0x1121f0[_0x31d8d6(0x1f7)][_0x31d8d6(0x1c2)](_0xe44bd4['document'][_0x31d8d6(0x1f0)],_0x31d8d6(0x1f1),'levelUp',_0x3877ca[_0x31d8d6(0x202)][_0x31d8d6(0x217)],_0x3bfe83)}]}})[_0x31d8d6(0x215)](()=>{}),this[_0x31d8d6(0x1cc)](_0x3877ca,_0x1f7a01[_0x31d8d6(0x1d3)]['level'])['catch'](tesseract_1['Logger'][_0x31d8d6(0x1d8)])),_0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x216)]=_0x3bfe83,await _0x1f7a01[_0x31d8d6(0x1d3)][_0x31d8d6(0x20a)](),_0x178e76[_0x31d8d6(0x1f4)](_0x3877ca[_0x31d8d6(0x202)]['id']),this['recentUsers']['set'](_0x3877ca[_0x31d8d6(0x222)]['id'],_0x178e76),_0x3877ca[_0x31d8d6(0x212)][_0x31d8d6(0x1c6)](()=>{const _0xabe480=_0x31d8d6,_0xf27cda=this['recentUsers'][_0xabe480(0x21e)](_0x3877ca[_0xabe480(0x222)]['id']);_0xf27cda[_0xabe480(0x1d2)](_0xf27cda[_0xabe480(0x1d5)](_0x3877ca['author']['id']),0x1),this[_0xabe480(0x1e9)]['set'](_0x3877ca[_0xabe480(0x222)]['id'],_0xf27cda);},0x32c8);},this[_0x1a0521(0x205)]=async _0x47226f=>{const _0x40e7c9=_0x1a0521;if(!_0x47226f[_0x40e7c9(0x1d7)])return;const _0x2c088f=await Trigger_1[_0x40e7c9(0x224)][_0x40e7c9(0x1cb)]({'guild':_0x47226f[_0x40e7c9(0x222)]['id']}),_0x17e29d=[],_0x5578fb=[];for(const _0xb95bf3 of _0x2c088f){const _0x20baab=new RegExp(_0xb95bf3[_0x40e7c9(0x1f6)][_0x40e7c9(0x1bf)](/\?/g,'.')[_0x40e7c9(0x1bf)](/\*+/g,'.*'),'ig');if(!_0x20baab[_0x40e7c9(0x1b7)](_0x47226f[_0x40e7c9(0x1d7)]))continue;_0xb95bf3['responseMessage']&&_0x17e29d[_0x40e7c9(0x1f4)](_0xb95bf3[_0x40e7c9(0x207)]);if(_0xb95bf3[_0x40e7c9(0x1c1)]){const _0x752dae=emojis[_0x40e7c9(0x1eb)](_0xb95bf3['responseReaction']);_0x752dae&&_0x5578fb[_0x40e7c9(0x1f4)](_0x752dae['reaction']);}}_0x17e29d[_0x40e7c9(0x21c)]&&_0x47226f[_0x40e7c9(0x1f8)]['send']({'embed':{...embeds[_0x40e7c9(0x210)](JSON[_0x40e7c9(0x1c9)](variables[_0x40e7c9(0x1e7)](JSON['stringify'](_0x17e29d[Math[_0x40e7c9(0x20d)](Math['random']()*_0x17e29d[_0x40e7c9(0x21c)])]),_0x47226f))),'footer':{'text':_0x47226f['client'][_0x40e7c9(0x1f7)][_0x40e7c9(0x1fb)](_0x40e7c9(0x1e2))+_0x40e7c9(0x1df)}}})[_0x40e7c9(0x215)](tesseract_1['Logger'][_0x40e7c9(0x1d8)]),_0x5578fb[_0x40e7c9(0x21c)]&&_0x47226f[_0x40e7c9(0x1e4)](_0x5578fb[Math['floor'](Math[_0x40e7c9(0x21b)]()*_0x5578fb[_0x40e7c9(0x21c)])])[_0x40e7c9(0x215)](tesseract_1[_0x40e7c9(0x1c8)]['error']);},this[_0x1a0521(0x1ea)]=async _0x5b570c=>{const _0x40ff41=_0x1a0521,_0x524ff5=await TextChannel_1[_0x40ff41(0x224)][_0x40ff41(0x201)]({'_id':_0x5b570c[_0x40ff41(0x1f8)]['id'],'voting':!![]});if(!_0x524ff5)return;_0x5b570c['react']('👍')[_0x40ff41(0x215)](()=>{}),_0x5b570c[_0x40ff41(0x1e4)]('👎')[_0x40ff41(0x215)](()=>{});},this[_0x1a0521(0x21f)]=async _0x3dfd8d=>{const _0x40a261=_0x1a0521;if(!_0x3dfd8d[_0x40a261(0x1d7)])return;if((_0x3dfd8d['content'][_0x40a261(0x1d9)]()[_0x40a261(0x211)](_0x40a261(0x1d1))||_0x3dfd8d['content']['toLowerCase']()[_0x40a261(0x211)]('thank\x20you'))&&_0x3dfd8d[_0x40a261(0x206)][_0x40a261(0x21a)]&&_0x3dfd8d[_0x40a261(0x206)]['users'][_0x40a261(0x20e)]){const _0x46aea7=Array[_0x40a261(0x20b)](_0x3dfd8d[_0x40a261(0x206)][_0x40a261(0x21a)][_0x40a261(0x1f2)]())[_0x40a261(0x1dd)](_0x54df87=>_0x54df87!==_0x3dfd8d[_0x40a261(0x1fd)]['id']);await Member_1[_0x40a261(0x224)][_0x40a261(0x1e6)]({'user':{'$in':_0x46aea7},'guild':_0x3dfd8d[_0x40a261(0x222)]['id']},{'$inc':{'karma':0x1}}),_0x3dfd8d[_0x40a261(0x1e4)]('🆙')[_0x40a261(0x215)](()=>{});}},this[_0x1a0521(0x1ca)]=async _0x378953=>{const _0x2c7fe9=_0x1a0521;if(!_0x378953[_0x2c7fe9(0x1d7)])return;const _0x1b4334=await omnic[_0x2c7fe9(0x1e8)](_0x2c7fe9(0x1c3)+encodeURIComponent(_0x378953[_0x2c7fe9(0x1d7)]))['then'](_0x342f9a=>_0x342f9a[_0x2c7fe9(0x1bb)]());if(_0x1b4334[_0x2c7fe9(0x1fa)]!==_0x2c7fe9(0x21d))return;const _0x4b80a8=_0x1b4334[_0x2c7fe9(0x225)][_0x2c7fe9(0x1e3)]instanceof Array?_0x1b4334['response'][_0x2c7fe9(0x1e3)]:[_0x1b4334[_0x2c7fe9(0x225)]['reply']];for(const _0x3d1070 of _0x4b80a8){await _0x378953['channel'][_0x2c7fe9(0x1e5)](_0x3d1070)[_0x2c7fe9(0x215)](()=>{});}},this[_0x1a0521(0x1c7)]=async _0x46e989=>{const _0x1fb33a=_0x1a0521,_0xbb9871=await Config_1['default'][_0x1fb33a(0x220)](_0x46e989[_0x1fb33a(0x212)]['user']['id']);if(_0xbb9871[_0x1fb33a(0x208)]&&_0x46e989['content']){const _0x2cd0e2=await _0x46e989[_0x1fb33a(0x212)][_0x1fb33a(0x1d0)](),_0x3a37f7=_0x2cd0e2['owner']instanceof discord_js_1[_0x1fb33a(0x1f9)]?_0x2cd0e2['owner'][_0x1fb33a(0x1ec)][_0x1fb33a(0x221)]:_0x2cd0e2[_0x1fb33a(0x1ec)];if(_0x46e989[_0x1fb33a(0x202)]['id']===_0x3a37f7['id'])return;const _0x167bc8=await _0x3a37f7['createDM']();await _0x167bc8['send']({'embed':{'color':tesseract_1['Constants'][_0x1fb33a(0x1d4)][_0x1fb33a(0x1ee)],'author':{'name':_0x46e989[_0x1fb33a(0x202)]['tag'],'iconURL':_0x46e989[_0x1fb33a(0x202)][_0x1fb33a(0x1ba)]({'dynamic':!![],'size':0x40})},'description':_0x46e989[_0x1fb33a(0x1d7)],'footer':{'text':_0x46e989[_0x1fb33a(0x202)]['id']}}});}},this[_0x1a0521(0x1da)]=async _0x5c91ad=>{const _0x2bd184=_0x1a0521;_0x5c91ad[_0x2bd184(0x222)]?(this[_0x2bd184(0x1dc)](_0x5c91ad)[_0x2bd184(0x215)](()=>{}),this[_0x2bd184(0x205)](_0x5c91ad)[_0x2bd184(0x215)](()=>{}),this[_0x2bd184(0x21f)](_0x5c91ad)[_0x2bd184(0x215)](tesseract_1[_0x2bd184(0x1c8)]['error']),this['handleVotingChannels'](_0x5c91ad)['catch'](()=>{})):(this[_0x2bd184(0x1ca)](_0x5c91ad)[_0x2bd184(0x215)](()=>{}),this['handleDirectMessageRelay'](_0x5c91ad)[_0x2bd184(0x215)](()=>{}));},this['recentUsers']=new Map();}}; \ No newline at end of file +const a164_0x5180=['MAX_EXPERIENCE','test','reply','parseEmoji','levelUp','updateMany','../models/Member','handleVotingChannels','messages','../models/Trigger','mentions','makeRequest','locale','LEVELED\x20UP!','channel','../utils/numbers','gamification','roles','content','exec','Team','catch','toLowerCase','success','tag','level','../utils/gamification','IRIS','_id','../utils/embeds','setTimeout','default','multiplier','findOne','length','fetchApplication','set','user','../models/TextChannel','humanMessage','Logger','document','react','random','then','client','json','keys','recentUsers','thanks','splice','stringify','cache','guild','createDM','author','ModuleManagerEvent','../utils/omnic','filter','bastion.name','return\x20/\x22\x20+\x20this\x20+\x20\x22/','status','enabled','responseMessage','map','handleTriggers','response','smallestNeighbor','experience','floor','handleLevelRoles','exports','trigger','parse','MAX_LEVEL','discord.js','handleKarma','credit','Constants','DEFAUL_CURRENCY_REWARD_MULTIPLIER','get','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','users','/chat/instant?message=','includes','findById','has','replace','handleInstantResponses','handleGamification','Level-up\x20Reward','getString','indexOf','from','error','apply','relayDirectMessages','member','\x20Trigger','responseReaction','COLORS','owner','premiumSinceTimestamp','generateEmbed','find','send','@bastion/tesseract'];(function(_0x5d4025,_0x252c4f){const _0x518038=function(_0x5839e1){while(--_0x5839e1){_0x5d4025['push'](_0x5d4025['shift']());}},_0x5caf83=function(){const _0x5cd1af={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x526835,_0x514ba2,_0x353da4,_0x23f90f){_0x23f90f=_0x23f90f||{};let _0xab4ac6=_0x514ba2+'='+_0x353da4,_0x1697d6=0x0;for(let _0x221a7f=0x0,_0x29a8a7=_0x526835['length'];_0x221a7f<_0x29a8a7;_0x221a7f++){const _0x4c8a38=_0x526835[_0x221a7f];_0xab4ac6+=';\x20'+_0x4c8a38;const _0x2b241a=_0x526835[_0x4c8a38];_0x526835['push'](_0x2b241a),_0x29a8a7=_0x526835['length'],_0x2b241a!==!![]&&(_0xab4ac6+='='+_0x2b241a);}_0x23f90f['cookie']=_0xab4ac6;},'removeCookie':function(){return'dev';},'getCookie':function(_0xaa73f3,_0x57fb4c){_0xaa73f3=_0xaa73f3||function(_0x296e4c){return _0x296e4c;};const _0x105072=_0xaa73f3(new RegExp('(?:^|;\x20)'+_0x57fb4c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x11570c=function(_0x46437e,_0x17c376){_0x46437e(++_0x17c376);};return _0x11570c(_0x518038,_0x252c4f),_0x105072?decodeURIComponent(_0x105072[0x1]):undefined;}},_0xe46ca0=function(){const _0x565b65=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x565b65['test'](_0x5cd1af['removeCookie']['toString']());};_0x5cd1af['updateCookie']=_0xe46ca0;let _0x4f21e7='';const _0x95f73a=_0x5cd1af['updateCookie']();if(!_0x95f73a)_0x5cd1af['setCookie'](['*'],'counter',0x1);else _0x95f73a?_0x4f21e7=_0x5cd1af['getCookie'](null,'counter'):_0x5cd1af['removeCookie']();};_0x5caf83();}(a164_0x5180,0x1ac));const a164_0x5caf=function(_0x5d4025,_0x252c4f){_0x5d4025=_0x5d4025-0xed;let _0x518038=a164_0x5180[_0x5d4025];return _0x518038;};const a164_0x467297=a164_0x5caf,a164_0xe46ca0=function(){let _0x95f73a=!![];return function(_0x526835,_0x514ba2){const _0x353da4=_0x95f73a?function(){const _0x5436fc=a164_0x5caf;if(_0x514ba2){const _0x23f90f=_0x514ba2[_0x5436fc(0x14c)](_0x526835,arguments);return _0x514ba2=null,_0x23f90f;}}:function(){};return _0x95f73a=![],_0x353da4;};}(),a164_0x5cd1af=a164_0xe46ca0(this,function(){const _0xab4ac6=function(){const _0x32a30d=a164_0x5caf,_0x1697d6=_0xab4ac6['constructor'](_0x32a30d(0x129))()['constructor'](_0x32a30d(0x13e));return!_0x1697d6[_0x32a30d(0xee)](a164_0x5cd1af);};return _0xab4ac6();});a164_0x5cd1af();'use strict';const tesseract_1=require(a164_0x467297(0x157)),discord_js_1=require(a164_0x467297(0x138)),embeds=require(a164_0x467297(0x10a)),emojis=require('../utils/emojis'),gamification=require(a164_0x467297(0x107)),numbers=require(a164_0x467297(0xfc)),omnic=require(a164_0x467297(0x126)),variables=require('../utils/variables'),Config_1=require('../models/Config'),Member_1=require(a164_0x467297(0xf3)),Role_1=require('../models/Role'),TextChannel_1=require(a164_0x467297(0x113)),Trigger_1=require(a164_0x467297(0xf6));module[a164_0x467297(0x134)]=class HumanMessageEvent extends tesseract_1[a164_0x467297(0x125)]{constructor(){const _0x22854e=a164_0x467297;super(_0x22854e(0x114)),this[_0x22854e(0x133)]=async(_0x221a7f,_0x29a8a7)=>{const _0x24ecab=_0x22854e,_0x4c8a38=await Role_1['default']['find']({'guild':_0x221a7f[_0x24ecab(0x122)]['id'],'level':{'$exists':!![],'$ne':null}});if(!_0x4c8a38||!_0x4c8a38[_0x24ecab(0x10f)])return;const _0x2b241a=numbers[_0x24ecab(0x130)](_0x29a8a7,_0x4c8a38[_0x24ecab(0x12d)](_0x105072=>_0x105072[_0x24ecab(0x106)])),_0xaa73f3=_0x4c8a38['filter'](_0x11570c=>_0x11570c[_0x24ecab(0x106)]!==_0x2b241a&&_0x221a7f[_0x24ecab(0x122)][_0x24ecab(0xfe)][_0x24ecab(0x121)][_0x24ecab(0x143)](_0x11570c[_0x24ecab(0x109)])),_0x57fb4c=_0x4c8a38[_0x24ecab(0x127)](_0x296e4c=>_0x296e4c[_0x24ecab(0x106)]===_0x2b241a&&_0x221a7f[_0x24ecab(0x122)]['roles'][_0x24ecab(0x121)][_0x24ecab(0x143)](_0x296e4c[_0x24ecab(0x109)]));_0x57fb4c['length']&&(await _0x221a7f[_0x24ecab(0x14e)]['roles']['add'](_0x57fb4c[_0x24ecab(0x12d)](_0x46437e=>_0x46437e['_id'])),await _0x221a7f[_0x24ecab(0x14e)][_0x24ecab(0xfe)]['remove'](_0xaa73f3[_0x24ecab(0x12d)](_0x17c376=>_0x17c376[_0x24ecab(0x109)])));},this[_0x22854e(0x146)]=async _0x565b65=>{const _0x328934=_0x22854e,_0x2bbf96=this[_0x328934(0x11d)][_0x328934(0x13d)](_0x565b65[_0x328934(0x122)]['id'])||[];if(_0x2bbf96[_0x328934(0x141)](_0x565b65[_0x328934(0x124)]['id']))return;const _0xe5dc6d=_0x565b65[_0x328934(0x11a)],_0x235b80=_0x565b65[_0x328934(0x122)],_0x209f60=_0x565b65[_0x328934(0x14e)];if(!_0x235b80[_0x328934(0x116)]['gamification']||!_0x235b80[_0x328934(0x116)][_0x328934(0xfd)][_0x328934(0x12b)])return;if(_0x209f60['document']['level']>=gamification[_0x328934(0x137)]||_0x209f60['document']['experience']>=gamification[_0x328934(0xed)](_0x235b80[_0x328934(0x116)][_0x328934(0xfd)]['multiplier']))return;_0x209f60[_0x328934(0x116)][_0x328934(0x131)]=_0x209f60[_0x328934(0x153)]?_0x209f60[_0x328934(0x116)][_0x328934(0x131)]+0x2:_0x209f60[_0x328934(0x116)][_0x328934(0x131)]+0x1;const _0x2ebf7c=gamification['computeLevel'](_0x209f60[_0x328934(0x116)][_0x328934(0x131)],_0x235b80['document']['gamification'][_0x328934(0x10d)]);_0x2ebf7c>_0x209f60[_0x328934(0x116)][_0x328934(0x106)]&&(await _0x209f60[_0x328934(0x13a)](_0x2ebf7c*gamification[_0x328934(0x13c)],_0x328934(0x147),_0x209f60['document']),_0x235b80[_0x328934(0x116)][_0x328934(0xfd)][_0x328934(0xf5)]&&_0x565b65['channel'][_0x328934(0x156)]({'embed':{'color':tesseract_1[_0x328934(0x13b)][_0x328934(0x151)]['IRIS'],'fields':[{'name':_0x328934(0xfa),'value':_0xe5dc6d['locale'][_0x328934(0x148)](_0x235b80[_0x328934(0x116)]['language'],'info',_0x328934(0xf1),_0x565b65[_0x328934(0x124)][_0x328934(0x105)],_0x2ebf7c)}]}})[_0x328934(0x102)](()=>{}),this[_0x328934(0x133)](_0x565b65,_0x209f60[_0x328934(0x116)]['level'])[_0x328934(0x102)](tesseract_1[_0x328934(0x115)]['error'])),_0x209f60['document'][_0x328934(0x106)]=_0x2ebf7c,await _0x209f60[_0x328934(0x116)]['save'](),_0x2bbf96['push'](_0x565b65[_0x328934(0x124)]['id']),this['recentUsers'][_0x328934(0x111)](_0x565b65[_0x328934(0x122)]['id'],_0x2bbf96),_0x565b65[_0x328934(0x11a)][_0x328934(0x10b)](()=>{const _0x33bc0c=_0x328934,_0x5016bc=this[_0x33bc0c(0x11d)][_0x33bc0c(0x13d)](_0x565b65['guild']['id']);_0x5016bc[_0x33bc0c(0x11f)](_0x5016bc[_0x33bc0c(0x149)](_0x565b65['author']['id']),0x1),this[_0x33bc0c(0x11d)][_0x33bc0c(0x111)](_0x565b65[_0x33bc0c(0x122)]['id'],_0x5016bc);},0x32c8);},this[_0x22854e(0x12e)]=async _0x2fd5f7=>{const _0x2c09da=_0x22854e;if(!_0x2fd5f7[_0x2c09da(0xff)])return;const _0x46e303=await Trigger_1[_0x2c09da(0x10c)][_0x2c09da(0x155)]({'guild':_0x2fd5f7[_0x2c09da(0x122)]['id']}),_0x3fa2f7=[],_0x88e60d=[];for(const _0x2cf946 of _0x46e303){const _0x32fac8=new RegExp(_0x2cf946[_0x2c09da(0x135)][_0x2c09da(0x144)](/\?/g,'.')[_0x2c09da(0x144)](/\*+/g,'.*'),'ig');if(!_0x32fac8['test'](_0x2fd5f7[_0x2c09da(0xff)]))continue;_0x2cf946['responseMessage']&&_0x3fa2f7['push'](_0x2cf946[_0x2c09da(0x12c)]);if(_0x2cf946[_0x2c09da(0x150)]){const _0x4dcf7e=emojis[_0x2c09da(0xf0)](_0x2cf946[_0x2c09da(0x150)]);_0x4dcf7e&&_0x88e60d['push'](_0x4dcf7e['reaction']);}}_0x3fa2f7[_0x2c09da(0x10f)]&&_0x2fd5f7[_0x2c09da(0xfb)]['send']({'embed':{...embeds[_0x2c09da(0x154)](JSON[_0x2c09da(0x136)](variables['replaceMessageVariables'](JSON[_0x2c09da(0x120)](_0x3fa2f7[Math[_0x2c09da(0x132)](Math[_0x2c09da(0x118)]()*_0x3fa2f7[_0x2c09da(0x10f)])]),_0x2fd5f7))),'footer':{'text':_0x2fd5f7['client'][_0x2c09da(0xf9)]['getConstant'](_0x2c09da(0x128))+_0x2c09da(0x14f)}}})[_0x2c09da(0x102)](tesseract_1['Logger']['error']),_0x88e60d[_0x2c09da(0x10f)]&&_0x2fd5f7[_0x2c09da(0x117)](_0x88e60d[Math[_0x2c09da(0x132)](Math[_0x2c09da(0x118)]()*_0x88e60d[_0x2c09da(0x10f)])])[_0x2c09da(0x102)](tesseract_1[_0x2c09da(0x115)]['error']);},this['handleVotingChannels']=async _0x3def9e=>{const _0x318ee8=_0x22854e,_0x22e5f7=await TextChannel_1['default'][_0x318ee8(0x10e)]({'_id':_0x3def9e[_0x318ee8(0xfb)]['id'],'voting':!![]});if(!_0x22e5f7)return;_0x3def9e['react']('👍')['catch'](()=>{}),_0x3def9e[_0x318ee8(0x117)]('👎')[_0x318ee8(0x102)](()=>{});},this[_0x22854e(0x139)]=async _0x4099b7=>{const _0x845f49=_0x22854e;if(!_0x4099b7['content'])return;if((_0x4099b7[_0x845f49(0xff)][_0x845f49(0x103)]()[_0x845f49(0x141)](_0x845f49(0x11e))||_0x4099b7[_0x845f49(0xff)][_0x845f49(0x103)]()['includes']('thank\x20you'))&&_0x4099b7[_0x845f49(0xf7)][_0x845f49(0x13f)]&&_0x4099b7[_0x845f49(0xf7)]['users']['size']){const _0x46f647=Array[_0x845f49(0x14a)](_0x4099b7[_0x845f49(0xf7)][_0x845f49(0x13f)][_0x845f49(0x11c)]())[_0x845f49(0x127)](_0x3af5c7=>_0x3af5c7!==_0x4099b7[_0x845f49(0x14e)]['id']);await Member_1[_0x845f49(0x10c)][_0x845f49(0xf2)]({'user':{'$in':_0x46f647},'guild':_0x4099b7[_0x845f49(0x122)]['id']},{'$inc':{'karma':0x1}}),_0x4099b7[_0x845f49(0x117)]('👍🏻')[_0x845f49(0x102)](()=>{});}},this[_0x22854e(0x145)]=async _0xb52b53=>{const _0x1693db=_0x22854e;if(!_0xb52b53[_0x1693db(0xff)])return;const _0x24d494=await omnic[_0x1693db(0xf8)](_0x1693db(0x140)+encodeURIComponent(_0xb52b53[_0x1693db(0xff)]))[_0x1693db(0x119)](_0x13f88e=>_0x13f88e[_0x1693db(0x11b)]());if(_0x24d494[_0x1693db(0x12a)]!==_0x1693db(0x104))return;const _0x51afbf=_0x24d494[_0x1693db(0x12f)][_0x1693db(0xef)]instanceof Array?_0x24d494[_0x1693db(0x12f)][_0x1693db(0xef)]:[_0x24d494[_0x1693db(0x12f)][_0x1693db(0xef)]];for(const _0x4c33fe of _0x51afbf){await _0xb52b53[_0x1693db(0xfb)][_0x1693db(0x156)](_0x4c33fe)[_0x1693db(0x102)](()=>{});}},this['handleDirectMessageRelay']=async _0x5baccd=>{const _0x390cee=_0x22854e,_0x36a5b5=await Config_1[_0x390cee(0x10c)][_0x390cee(0x142)](_0x5baccd[_0x390cee(0x11a)][_0x390cee(0x112)]['id']);if(_0x36a5b5[_0x390cee(0x14d)]&&_0x5baccd[_0x390cee(0xff)]){const _0x5d9627=await _0x5baccd['client'][_0x390cee(0x110)](),_0x2d642f=_0x5d9627[_0x390cee(0x152)]instanceof discord_js_1[_0x390cee(0x101)]?_0x5d9627[_0x390cee(0x152)][_0x390cee(0x152)][_0x390cee(0x112)]:_0x5d9627[_0x390cee(0x152)];if(_0x5baccd[_0x390cee(0x124)]['id']===_0x2d642f['id'])return;const _0x256a4f=await _0x2d642f[_0x390cee(0x123)]();await _0x256a4f[_0x390cee(0x156)]({'embed':{'color':tesseract_1[_0x390cee(0x13b)][_0x390cee(0x151)][_0x390cee(0x108)],'author':{'name':_0x5baccd['author'][_0x390cee(0x105)],'iconURL':_0x5baccd['author']['displayAvatarURL']({'dynamic':!![],'size':0x40})},'description':_0x5baccd[_0x390cee(0xff)],'footer':{'text':_0x5baccd['author']['id']}}});}},this[_0x22854e(0x100)]=async _0x2403df=>{const _0x282e35=_0x22854e;_0x2403df['guild']?(this['handleGamification'](_0x2403df)[_0x282e35(0x102)](()=>{}),this[_0x282e35(0x12e)](_0x2403df)[_0x282e35(0x102)](()=>{}),this['handleKarma'](_0x2403df)[_0x282e35(0x102)](tesseract_1[_0x282e35(0x115)][_0x282e35(0x14b)]),this[_0x282e35(0xf4)](_0x2403df)[_0x282e35(0x102)](()=>{})):(this[_0x282e35(0x145)](_0x2403df)[_0x282e35(0x102)](()=>{}),this['handleDirectMessageRelay'](_0x2403df)[_0x282e35(0x102)](()=>{}));},this[_0x22854e(0x11d)]=new Map();}}; \ No newline at end of file diff --git a/events/insufficientClientPermissions.js b/events/insufficientClientPermissions.js index 523e5898a..f21edfd4b 100644 --- a/events/insufficientClientPermissions.js +++ b/events/insufficientClientPermissions.js @@ -1 +1 @@ -const a164_0x1d90=['apply','test','I\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','name','channel','insufficientClientPermissions','send','constructor','Constants','Use\x20the\x20`','Insufficient\x20Permissions','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','exec'];(function(_0x33d6d1,_0x1bb32c){const _0x1d90e8=function(_0x3642f0){while(--_0x3642f0){_0x33d6d1['push'](_0x33d6d1['shift']());}},_0x18e7ec=function(){const _0x260d2b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x376954,_0xe67a23,_0x106bc5,_0x4ce3c4){_0x4ce3c4=_0x4ce3c4||{};let _0x5ae161=_0xe67a23+'='+_0x106bc5,_0x3425bd=0x0;for(let _0x2a8606=0x0,_0x500769=_0x376954['length'];_0x2a8606<_0x500769;_0x2a8606++){const _0x2d0303=_0x376954[_0x2a8606];_0x5ae161+=';\x20'+_0x2d0303;const _0x26dea2=_0x376954[_0x2d0303];_0x376954['push'](_0x26dea2),_0x500769=_0x376954['length'],_0x26dea2!==!![]&&(_0x5ae161+='='+_0x26dea2);}_0x4ce3c4['cookie']=_0x5ae161;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34f4bd,_0x5b54f){_0x34f4bd=_0x34f4bd||function(_0x2dce6d){return _0x2dce6d;};const _0x541955=_0x34f4bd(new RegExp('(?:^|;\x20)'+_0x5b54f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22bffa=function(_0x458034,_0x55761a){_0x458034(++_0x55761a);};return _0x22bffa(_0x1d90e8,_0x1bb32c),_0x541955?decodeURIComponent(_0x541955[0x1]):undefined;}},_0x2f5c16=function(){const _0x46bed6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x46bed6['test'](_0x260d2b['removeCookie']['toString']());};_0x260d2b['updateCookie']=_0x2f5c16;let _0x4cf714='';const _0x2c683b=_0x260d2b['updateCookie']();if(!_0x2c683b)_0x260d2b['setCookie'](['*'],'counter',0x1);else _0x2c683b?_0x4cf714=_0x260d2b['getCookie'](null,'counter'):_0x260d2b['removeCookie']();};_0x18e7ec();}(a164_0x1d90,0x1ee));const a164_0x18e7=function(_0x33d6d1,_0x1bb32c){_0x33d6d1=_0x33d6d1-0x66;let _0x1d90e8=a164_0x1d90[_0x33d6d1];return _0x1d90e8;};const a164_0x2f5c16=function(){let _0x2c683b=!![];return function(_0x376954,_0xe67a23){const _0x106bc5=_0x2c683b?function(){const _0x4e1f9a=a164_0x18e7;if(_0xe67a23){const _0x4ce3c4=_0xe67a23[_0x4e1f9a(0x70)](_0x376954,arguments);return _0xe67a23=null,_0x4ce3c4;}}:function(){};return _0x2c683b=![],_0x106bc5;};}(),a164_0x260d2b=a164_0x2f5c16(this,function(){const _0x5ae161=function(){const _0x28ee4c=a164_0x18e7,_0x3425bd=_0x5ae161[_0x28ee4c(0x69)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x28ee4c(0x69)](_0x28ee4c(0x6d));return!_0x3425bd[_0x28ee4c(0x71)](a164_0x260d2b);};return _0x5ae161();});a164_0x260d2b();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class InsufficientClientPermissionsEvent extends tesseract_1['ModuleManagerEvent']{constructor(){const _0x2044d6=a164_0x18e7;super(_0x2044d6(0x67)),this[_0x2044d6(0x6f)]=async(_0x2a8606,_0x500769)=>{const _0x4668ec=_0x2044d6;return _0x500769[_0x4668ec(0x66)][_0x4668ec(0x68)]({'embed':{'color':tesseract_1[_0x4668ec(0x6a)]['COLORS']['RED'],'title':_0x4668ec(0x6c),'description':_0x4668ec(0x72),'footer':{'text':_0x4668ec(0x6b)+_0x2a8606[_0x4668ec(0x73)]+'\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.'}}})[_0x4668ec(0x6e)](()=>{});};}}; \ No newline at end of file +const a165_0x8418=['COLORS','I\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','constructor','name','Insufficient\x20Permissions','apply','send','RED','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','insufficientClientPermissions','exports','Constants','Use\x20the\x20`','exec'];(function(_0x3e68f0,_0xb8b4c8){const _0x8418fe=function(_0x15884d){while(--_0x15884d){_0x3e68f0['push'](_0x3e68f0['shift']());}},_0xd6d610=function(){const _0x2b0059={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54ae02,_0x56fb16,_0x5f46d0,_0xeb9c42){_0xeb9c42=_0xeb9c42||{};let _0x525e3c=_0x56fb16+'='+_0x5f46d0,_0xc2b56b=0x0;for(let _0x1ddba2=0x0,_0x309ab1=_0x54ae02['length'];_0x1ddba2<_0x309ab1;_0x1ddba2++){const _0x281f37=_0x54ae02[_0x1ddba2];_0x525e3c+=';\x20'+_0x281f37;const _0x9570e=_0x54ae02[_0x281f37];_0x54ae02['push'](_0x9570e),_0x309ab1=_0x54ae02['length'],_0x9570e!==!![]&&(_0x525e3c+='='+_0x9570e);}_0xeb9c42['cookie']=_0x525e3c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x246cdc,_0x33fbef){_0x246cdc=_0x246cdc||function(_0x4cc63b){return _0x4cc63b;};const _0x5d3546=_0x246cdc(new RegExp('(?:^|;\x20)'+_0x33fbef['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1bd653=function(_0xf75005,_0x56390e){_0xf75005(++_0x56390e);};return _0x1bd653(_0x8418fe,_0xb8b4c8),_0x5d3546?decodeURIComponent(_0x5d3546[0x1]):undefined;}},_0x4e8e32=function(){const _0x15fa00=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x15fa00['test'](_0x2b0059['removeCookie']['toString']());};_0x2b0059['updateCookie']=_0x4e8e32;let _0x5e531f='';const _0x1a7ad=_0x2b0059['updateCookie']();if(!_0x1a7ad)_0x2b0059['setCookie'](['*'],'counter',0x1);else _0x1a7ad?_0x5e531f=_0x2b0059['getCookie'](null,'counter'):_0x2b0059['removeCookie']();};_0xd6d610();}(a165_0x8418,0x19a));const a165_0xd6d6=function(_0x3e68f0,_0xb8b4c8){_0x3e68f0=_0x3e68f0-0x13e;let _0x8418fe=a165_0x8418[_0x3e68f0];return _0x8418fe;};const a165_0xc66133=a165_0xd6d6,a165_0x4e8e32=function(){let _0x1a7ad=!![];return function(_0x54ae02,_0x56fb16){const _0x5f46d0=_0x1a7ad?function(){const _0x4b6dcc=a165_0xd6d6;if(_0x56fb16){const _0xeb9c42=_0x56fb16[_0x4b6dcc(0x149)](_0x54ae02,arguments);return _0x56fb16=null,_0xeb9c42;}}:function(){};return _0x1a7ad=![],_0x5f46d0;};}(),a165_0x2b0059=a165_0x4e8e32(this,function(){const _0x525e3c=function(){const _0x5ff38f=a165_0xd6d6,_0xc2b56b=_0x525e3c[_0x5ff38f(0x146)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5ff38f(0x146)](_0x5ff38f(0x14d));return!_0xc2b56b[_0x5ff38f(0x14c)](a165_0x2b0059);};return _0x525e3c();});a165_0x2b0059();'use strict';const tesseract_1=require(a165_0xc66133(0x13e));module[a165_0xc66133(0x140)]=class InsufficientClientPermissionsEvent extends tesseract_1['ModuleManagerEvent']{constructor(){const _0x2bad3d=a165_0xc66133;super(_0x2bad3d(0x13f)),this[_0x2bad3d(0x143)]=async(_0x1ddba2,_0x309ab1)=>{const _0x462e0f=_0x2bad3d;return _0x309ab1['channel'][_0x462e0f(0x14a)]({'embed':{'color':tesseract_1[_0x462e0f(0x141)][_0x462e0f(0x144)][_0x462e0f(0x14b)],'title':_0x462e0f(0x148),'description':_0x462e0f(0x145),'footer':{'text':_0x462e0f(0x142)+_0x1ddba2[_0x462e0f(0x147)]+'\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.'}}})['catch'](()=>{});};}}; \ No newline at end of file diff --git a/events/insufficientUserPermissions.js b/events/insufficientUserPermissions.js index 642d01759..b5a81bff3 100644 --- a/events/insufficientUserPermissions.js +++ b/events/insufficientUserPermissions.js @@ -1 +1 @@ -const a165_0x5369=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','RED','test','Constants','send','channel','exec','catch','tag','COLORS','Use\x20the\x20`','\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.','@bastion/tesseract','constructor','author','insufficientUserPermissions','name','ModuleManagerEvent'];(function(_0x4d8983,_0x56bcf8){const _0x5369ee=function(_0x5e2e57){while(--_0x5e2e57){_0x4d8983['push'](_0x4d8983['shift']());}},_0x4e596=function(){const _0x1ff0f1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1bc563,_0x565bbc,_0xa28849,_0x50fc42){_0x50fc42=_0x50fc42||{};let _0x433ce9=_0x565bbc+'='+_0xa28849,_0x44d82c=0x0;for(let _0x345c87=0x0,_0x176cb3=_0x1bc563['length'];_0x345c87<_0x176cb3;_0x345c87++){const _0x3ffadf=_0x1bc563[_0x345c87];_0x433ce9+=';\x20'+_0x3ffadf;const _0x2f2fbc=_0x1bc563[_0x3ffadf];_0x1bc563['push'](_0x2f2fbc),_0x176cb3=_0x1bc563['length'],_0x2f2fbc!==!![]&&(_0x433ce9+='='+_0x2f2fbc);}_0x50fc42['cookie']=_0x433ce9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e6a67,_0x1d16de){_0x3e6a67=_0x3e6a67||function(_0x30f8ec){return _0x30f8ec;};const _0x5a005d=_0x3e6a67(new RegExp('(?:^|;\x20)'+_0x1d16de['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f47f8=function(_0xd65ba0,_0x251362){_0xd65ba0(++_0x251362);};return _0x1f47f8(_0x5369ee,_0x56bcf8),_0x5a005d?decodeURIComponent(_0x5a005d[0x1]):undefined;}},_0x303759=function(){const _0x419da=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x419da['test'](_0x1ff0f1['removeCookie']['toString']());};_0x1ff0f1['updateCookie']=_0x303759;let _0xdcadb8='';const _0x21bd81=_0x1ff0f1['updateCookie']();if(!_0x21bd81)_0x1ff0f1['setCookie'](['*'],'counter',0x1);else _0x21bd81?_0xdcadb8=_0x1ff0f1['getCookie'](null,'counter'):_0x1ff0f1['removeCookie']();};_0x4e596();}(a165_0x5369,0x119));const a165_0x4e59=function(_0x4d8983,_0x56bcf8){_0x4d8983=_0x4d8983-0x14d;let _0x5369ee=a165_0x5369[_0x4d8983];return _0x5369ee;};const _0x306601=a165_0x4e59,a165_0x303759=function(){let _0x21bd81=!![];return function(_0x1bc563,_0x565bbc){const _0xa28849=_0x21bd81?function(){const _0x4fe8f2=a165_0x4e59;if(_0x565bbc){const _0x50fc42=_0x565bbc[_0x4fe8f2(0x152)](_0x1bc563,arguments);return _0x565bbc=null,_0x50fc42;}}:function(){};return _0x21bd81=![],_0xa28849;};}(),a165_0x1ff0f1=a165_0x303759(this,function(){const _0x433ce9=function(){const _0xd66894=a165_0x4e59,_0x44d82c=_0x433ce9[_0xd66894(0x15f)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xd66894(0x15f)](_0xd66894(0x151));return!_0x44d82c[_0xd66894(0x154)](a165_0x1ff0f1);};return _0x433ce9();});a165_0x1ff0f1();'use strict';const tesseract_1=require(_0x306601(0x15e));module['exports']=class InsufficientUserPermissionsEvent extends tesseract_1[_0x306601(0x150)]{constructor(){const _0x485559=_0x306601;super(_0x485559(0x14e)),this[_0x485559(0x158)]=async(_0x345c87,_0x176cb3)=>{const _0x3848d3=_0x485559;return _0x176cb3[_0x3848d3(0x157)][_0x3848d3(0x156)]({'embed':{'color':tesseract_1[_0x3848d3(0x155)][_0x3848d3(0x15b)][_0x3848d3(0x153)],'title':'Insufficient\x20Permissions','description':_0x176cb3[_0x3848d3(0x14d)][_0x3848d3(0x15a)]+'\x20you\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','footer':{'text':_0x3848d3(0x15c)+_0x345c87[_0x3848d3(0x14f)]+_0x3848d3(0x15d)}}})[_0x3848d3(0x159)](()=>{});};}}; \ No newline at end of file +const a166_0x5b50=['Insufficient\x20Permissions','\x20you\x20don\x27t\x20have\x20the\x20requried\x20permissions\x20in\x20this\x20channel\x20to\x20execute\x20this\x20command.','exec','COLORS','catch','constructor','Constants','RED','test','Use\x20the\x20`','exports','author','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','insufficientUserPermissions','\x20--help`\x20command\x20to\x20get\x20more\x20information\x20on\x20the\x20command.','send','ModuleManagerEvent','name'];(function(_0x4eca8f,_0x5ef1f3){const _0x5b5089=function(_0x1a3935){while(--_0x1a3935){_0x4eca8f['push'](_0x4eca8f['shift']());}},_0x5da699=function(){const _0x14ff0a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1d03fa,_0x177c9f,_0x5e335d,_0x4e7544){_0x4e7544=_0x4e7544||{};let _0xafd6f2=_0x177c9f+'='+_0x5e335d,_0x430d98=0x0;for(let _0x1d38b=0x0,_0xe56611=_0x1d03fa['length'];_0x1d38b<_0xe56611;_0x1d38b++){const _0x5e6083=_0x1d03fa[_0x1d38b];_0xafd6f2+=';\x20'+_0x5e6083;const _0x57afb2=_0x1d03fa[_0x5e6083];_0x1d03fa['push'](_0x57afb2),_0xe56611=_0x1d03fa['length'],_0x57afb2!==!![]&&(_0xafd6f2+='='+_0x57afb2);}_0x4e7544['cookie']=_0xafd6f2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5578e9,_0x1a4efc){_0x5578e9=_0x5578e9||function(_0x36d29b){return _0x36d29b;};const _0x3d9903=_0x5578e9(new RegExp('(?:^|;\x20)'+_0x1a4efc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2f1771=function(_0x30ef01,_0x4078b6){_0x30ef01(++_0x4078b6);};return _0x2f1771(_0x5b5089,_0x5ef1f3),_0x3d9903?decodeURIComponent(_0x3d9903[0x1]):undefined;}},_0x42ade1=function(){const _0x49c3df=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49c3df['test'](_0x14ff0a['removeCookie']['toString']());};_0x14ff0a['updateCookie']=_0x42ade1;let _0xb3245a='';const _0x29f29b=_0x14ff0a['updateCookie']();if(!_0x29f29b)_0x14ff0a['setCookie'](['*'],'counter',0x1);else _0x29f29b?_0xb3245a=_0x14ff0a['getCookie'](null,'counter'):_0x14ff0a['removeCookie']();};_0x5da699();}(a166_0x5b50,0x1aa));const a166_0x5da6=function(_0x4eca8f,_0x5ef1f3){_0x4eca8f=_0x4eca8f-0x73;let _0x5b5089=a166_0x5b50[_0x4eca8f];return _0x5b5089;};const a166_0xf5a9bf=a166_0x5da6,a166_0x42ade1=function(){let _0x29f29b=!![];return function(_0x1d03fa,_0x177c9f){const _0x5e335d=_0x29f29b?function(){if(_0x177c9f){const _0x4e7544=_0x177c9f['apply'](_0x1d03fa,arguments);return _0x177c9f=null,_0x4e7544;}}:function(){};return _0x29f29b=![],_0x5e335d;};}(),a166_0x14ff0a=a166_0x42ade1(this,function(){const _0xafd6f2=function(){const _0x877c11=a166_0x5da6,_0x430d98=_0xafd6f2['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x877c11(0x83)](_0x877c11(0x78));return!_0x430d98[_0x877c11(0x73)](a166_0x14ff0a);};return _0xafd6f2();});a166_0x14ff0a();'use strict';const tesseract_1=require('@bastion/tesseract');module[a166_0xf5a9bf(0x75)]=class InsufficientUserPermissionsEvent extends tesseract_1[a166_0xf5a9bf(0x7c)]{constructor(){const _0x45fc76=a166_0xf5a9bf;super(_0x45fc76(0x79)),this[_0x45fc76(0x80)]=async(_0x1d38b,_0xe56611)=>{const _0x14fb6d=_0x45fc76;return _0xe56611['channel'][_0x14fb6d(0x7b)]({'embed':{'color':tesseract_1[_0x14fb6d(0x84)][_0x14fb6d(0x81)][_0x14fb6d(0x85)],'title':_0x14fb6d(0x7e),'description':_0xe56611[_0x14fb6d(0x76)][_0x14fb6d(0x77)]+_0x14fb6d(0x7f),'footer':{'text':_0x14fb6d(0x74)+_0x1d38b[_0x14fb6d(0x7d)]+_0x14fb6d(0x7a)}}})[_0x14fb6d(0x82)](()=>{});};}}; \ No newline at end of file diff --git a/index.js b/index.js index cb1789c9a..ac024293b 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -const a166_0x3931=['BASTION_BOOT_TIME','defineProperty','ready','test','shardCreate','constructor','__esModule','catch','start','f2be54a6b3bc34a5b849fdeb2e550d68','ShardingManager','267035345537728512','env','bastion.traction.one','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','toString','Logger','info','k3rn31p4nic#8383','write','Bastion','./bastion.js','login','homepage','spawn','stdout','WebServer','discord-rpc','port','setActivity','discord.gg/fzx8fkt','totalShards','return\x20/\x22\x20+\x20this\x20+\x20\x22/','settings','b7b407c827109b547ce91a08e7f9168b','apply'];(function(_0x50bbd3,_0x5744d1){const _0x39319d=function(_0xa17c34){while(--_0xa17c34){_0x50bbd3['push'](_0x50bbd3['shift']());}},_0x43245b=function(){const _0x3954b1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x39b0e6,_0x46de2c,_0x35a15f,_0x245b06){_0x245b06=_0x245b06||{};let _0x368b90=_0x46de2c+'='+_0x35a15f,_0x2a2c3e=0x0;for(let _0x268f25=0x0,_0x42b2de=_0x39b0e6['length'];_0x268f25<_0x42b2de;_0x268f25++){const _0x2c7f7f=_0x39b0e6[_0x268f25];_0x368b90+=';\x20'+_0x2c7f7f;const _0x6b1260=_0x39b0e6[_0x2c7f7f];_0x39b0e6['push'](_0x6b1260),_0x42b2de=_0x39b0e6['length'],_0x6b1260!==!![]&&(_0x368b90+='='+_0x6b1260);}_0x245b06['cookie']=_0x368b90;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42c9d4,_0x12ca90){_0x42c9d4=_0x42c9d4||function(_0xfb5342){return _0xfb5342;};const _0x3ff5a8=_0x42c9d4(new RegExp('(?:^|;\x20)'+_0x12ca90['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1d6f40=function(_0xce7a2f,_0x4bd1f1){_0xce7a2f(++_0x4bd1f1);};return _0x1d6f40(_0x39319d,_0x5744d1),_0x3ff5a8?decodeURIComponent(_0x3ff5a8[0x1]):undefined;}},_0xa97153=function(){const _0xe91061=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xe91061['test'](_0x3954b1['removeCookie']['toString']());};_0x3954b1['updateCookie']=_0xa97153;let _0x193681='';const _0x18f23b=_0x3954b1['updateCookie']();if(!_0x18f23b)_0x3954b1['setCookie'](['*'],'counter',0x1);else _0x18f23b?_0x193681=_0x3954b1['getCookie'](null,'counter'):_0x3954b1['removeCookie']();};_0x43245b();}(a166_0x3931,0xa3));const a166_0x4324=function(_0x50bbd3,_0x5744d1){_0x50bbd3=_0x50bbd3-0x117;let _0x39319d=a166_0x3931[_0x50bbd3];return _0x39319d;};const _0x30392c=a166_0x4324,a166_0xa97153=function(){let _0x18f23b=!![];return function(_0x39b0e6,_0x46de2c){const _0x35a15f=_0x18f23b?function(){const _0x394f76=a166_0x4324;if(_0x46de2c){const _0x245b06=_0x46de2c[_0x394f76(0x127)](_0x39b0e6,arguments);return _0x46de2c=null,_0x245b06;}}:function(){};return _0x18f23b=![],_0x35a15f;};}(),a166_0x3954b1=a166_0xa97153(this,function(){const _0x368b90=function(){const _0x495906=a166_0x4324,_0x2a2c3e=_0x368b90[_0x495906(0x12d)](_0x495906(0x124))()[_0x495906(0x12d)](_0x495906(0x136));return!_0x2a2c3e[_0x495906(0x12b)](a166_0x3954b1);};return _0x368b90();});a166_0x3954b1();'use strict';Object[_0x30392c(0x129)](exports,_0x30392c(0x12e),{'value':!![]});const tesseract=require('@bastion/tesseract'),chalk=require('chalk'),DiscordRPC=require(_0x30392c(0x11f)),manifest=require('./package.json'),configurations=tesseract[_0x30392c(0x125)]['getConfigurations']();process[_0x30392c(0x134)][_0x30392c(0x128)]=Date['now']()[_0x30392c(0x137)](),process[_0x30392c(0x11d)][_0x30392c(0x117)]('\x0a'),process[_0x30392c(0x11d)][_0x30392c(0x117)](chalk`{cyan Bastion} {grey v${manifest['version']}}\n`),process[_0x30392c(0x11d)]['write'](chalk`{blue ${manifest[_0x30392c(0x11b)]}}\n`),process[_0x30392c(0x11d)][_0x30392c(0x117)]('\x0a'),process['stdout'][_0x30392c(0x117)](chalk`{gray with ❤ by The Bastion Bot Team & Contributors}\n`),process[_0x30392c(0x11d)]['write'](chalk`{gray Copyright © 2017-2020 The Bastion Bot Project}\n`),process[_0x30392c(0x11d)]['write']('\x0a');const rpc=new DiscordRPC['Client']({'transport':'ipc'});rpc[_0x30392c(0x11a)]({'clientId':_0x30392c(0x133)})[_0x30392c(0x12f)](()=>{});const Manager=new tesseract[(_0x30392c(0x132))](_0x30392c(0x119)),server=new tesseract[(_0x30392c(0x11e))](Manager);server[_0x30392c(0x130)](process[_0x30392c(0x134)]['PORT']||configurations[_0x30392c(0x120)]),Manager[_0x30392c(0x11c)]()[_0x30392c(0x12f)](tesseract[_0x30392c(0x138)]['error']),Manager['on'](_0x30392c(0x12c),_0x268f25=>{const _0x13ef78=_0x30392c;tesseract[_0x13ef78(0x138)][_0x13ef78(0x139)](chalk`Shard ${_0x268f25['id']} - Launching {grey [ ${_0x268f25['id']+0x1} of ${Manager[_0x13ef78(0x123)]} ]}`);}),rpc['on'](_0x30392c(0x12a),()=>{const _0xfea018=_0x30392c;rpc[_0xfea018(0x121)]({'details':_0xfea018(0x135),'state':_0xfea018(0x122),'startTimestamp':new Date(),'largeImageKey':_0xfea018(0x131),'largeImageText':_0xfea018(0x118),'smallImageKey':_0xfea018(0x126),'smallImageText':_0xfea018(0x13a),'instance':![]});}); \ No newline at end of file +const a167_0x2ffc=['ShardingManager','env','iamtraction#8383','homepage','ipc','settings','f2be54a6b3bc34a5b849fdeb2e550d68','@bastion/tesseract','write','./bastion.js','ready','shardCreate','defineProperty','discord-rpc','login','apply','bastion.traction.one','getConfigurations','WebServer','port','toString','discord.gg/fzx8fkt','BASTION_BOOT_TIME','267035345537728512','start','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Logger','chalk','test','version','setActivity','constructor','now','Client','catch','info','stdout'];(function(_0x462bf5,_0x5a6db9){const _0x2ffc6e=function(_0x16137f){while(--_0x16137f){_0x462bf5['push'](_0x462bf5['shift']());}},_0x554225=function(){const _0x2ce34e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1a4ccf,_0x25a211,_0x6f8927,_0x5719e6){_0x5719e6=_0x5719e6||{};let _0x2142b6=_0x25a211+'='+_0x6f8927,_0x209b82=0x0;for(let _0x3a2d44=0x0,_0x2e2526=_0x1a4ccf['length'];_0x3a2d44<_0x2e2526;_0x3a2d44++){const _0x6709ce=_0x1a4ccf[_0x3a2d44];_0x2142b6+=';\x20'+_0x6709ce;const _0x1e81c7=_0x1a4ccf[_0x6709ce];_0x1a4ccf['push'](_0x1e81c7),_0x2e2526=_0x1a4ccf['length'],_0x1e81c7!==!![]&&(_0x2142b6+='='+_0x1e81c7);}_0x5719e6['cookie']=_0x2142b6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1528cb,_0x1f3c5c){_0x1528cb=_0x1528cb||function(_0x5ab042){return _0x5ab042;};const _0x55b2b9=_0x1528cb(new RegExp('(?:^|;\x20)'+_0x1f3c5c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x239ac9=function(_0x593ea9,_0x3fffc3){_0x593ea9(++_0x3fffc3);};return _0x239ac9(_0x2ffc6e,_0x5a6db9),_0x55b2b9?decodeURIComponent(_0x55b2b9[0x1]):undefined;}},_0x2cb2da=function(){const _0x4c1da7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c1da7['test'](_0x2ce34e['removeCookie']['toString']());};_0x2ce34e['updateCookie']=_0x2cb2da;let _0x2597bf='';const _0x5c7c2b=_0x2ce34e['updateCookie']();if(!_0x5c7c2b)_0x2ce34e['setCookie'](['*'],'counter',0x1);else _0x5c7c2b?_0x2597bf=_0x2ce34e['getCookie'](null,'counter'):_0x2ce34e['removeCookie']();};_0x554225();}(a167_0x2ffc,0x76));const a167_0x5542=function(_0x462bf5,_0x5a6db9){_0x462bf5=_0x462bf5-0x1a2;let _0x2ffc6e=a167_0x2ffc[_0x462bf5];return _0x2ffc6e;};const a167_0x1bf5e8=a167_0x5542,a167_0x2cb2da=function(){let _0x5c7c2b=!![];return function(_0x1a4ccf,_0x25a211){const _0x6f8927=_0x5c7c2b?function(){const _0x497cbf=a167_0x5542;if(_0x25a211){const _0x5719e6=_0x25a211[_0x497cbf(0x1aa)](_0x1a4ccf,arguments);return _0x25a211=null,_0x5719e6;}}:function(){};return _0x5c7c2b=![],_0x6f8927;};}(),a167_0x2ce34e=a167_0x2cb2da(this,function(){const _0x2142b6=function(){const _0x46a0fb=a167_0x5542,_0x209b82=_0x2142b6[_0x46a0fb(0x1ba)](_0x46a0fb(0x1b4))()[_0x46a0fb(0x1ba)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x209b82[_0x46a0fb(0x1b7)](a167_0x2ce34e);};return _0x2142b6();});a167_0x2ce34e();'use strict';Object[a167_0x1bf5e8(0x1a7)](exports,'__esModule',{'value':!![]});const tesseract=require(a167_0x1bf5e8(0x1a2)),chalk=require(a167_0x1bf5e8(0x1b6)),DiscordRPC=require(a167_0x1bf5e8(0x1a8)),manifest=require('./package.json'),configurations=tesseract[a167_0x1bf5e8(0x1c5)][a167_0x1bf5e8(0x1ac)]();process[a167_0x1bf5e8(0x1c1)][a167_0x1bf5e8(0x1b1)]=Date[a167_0x1bf5e8(0x1bb)]()[a167_0x1bf5e8(0x1af)](),process[a167_0x1bf5e8(0x1bf)]['write']('\x0a'),process[a167_0x1bf5e8(0x1bf)][a167_0x1bf5e8(0x1a3)](chalk`{cyan Bastion} {grey v${manifest[a167_0x1bf5e8(0x1b8)]}}\n`),process[a167_0x1bf5e8(0x1bf)][a167_0x1bf5e8(0x1a3)](chalk`{blue ${manifest[a167_0x1bf5e8(0x1c3)]}}\n`),process[a167_0x1bf5e8(0x1bf)][a167_0x1bf5e8(0x1a3)]('\x0a'),process[a167_0x1bf5e8(0x1bf)]['write'](chalk`{gray with ❤ by The Bastion Bot Team & Contributors}\n`),process[a167_0x1bf5e8(0x1bf)]['write'](chalk`{gray Copyright © 2017-2020 The Bastion Bot Project}\n`),process['stdout']['write']('\x0a');const rpc=new DiscordRPC[(a167_0x1bf5e8(0x1bc))]({'transport':a167_0x1bf5e8(0x1c4)});rpc[a167_0x1bf5e8(0x1a9)]({'clientId':a167_0x1bf5e8(0x1b2)})[a167_0x1bf5e8(0x1bd)](()=>{});const Manager=new tesseract[(a167_0x1bf5e8(0x1c0))](a167_0x1bf5e8(0x1a4)),server=new tesseract[(a167_0x1bf5e8(0x1ad))](Manager);server[a167_0x1bf5e8(0x1b3)](process[a167_0x1bf5e8(0x1c1)]['PORT']||configurations[a167_0x1bf5e8(0x1ae)]),Manager['spawn']()[a167_0x1bf5e8(0x1bd)](tesseract['Logger']['error']),Manager['on'](a167_0x1bf5e8(0x1a6),_0x3a2d44=>{const _0x3f2c5a=a167_0x1bf5e8;tesseract[_0x3f2c5a(0x1b5)][_0x3f2c5a(0x1be)](chalk`Shard ${_0x3a2d44['id']} - Launching {grey [ ${_0x3a2d44['id']+0x1} of ${Manager['totalShards']} ]}`);}),rpc['on'](a167_0x1bf5e8(0x1a5),()=>{const _0x2c5ebb=a167_0x1bf5e8;rpc[_0x2c5ebb(0x1b9)]({'details':_0x2c5ebb(0x1ab),'state':_0x2c5ebb(0x1b0),'startTimestamp':new Date(),'largeImageKey':_0x2c5ebb(0x1c6),'largeImageText':'Bastion','smallImageKey':'b7b407c827109b547ce91a08e7f9168b','smallImageText':_0x2c5ebb(0x1c2),'instance':![]});}); \ No newline at end of file diff --git a/interrupts/blacklist.js b/interrupts/blacklist.js index d095a9978..2716f225d 100644 --- a/interrupts/blacklist.js +++ b/interrupts/blacklist.js @@ -1 +1 @@ -const a167_0x5f01=['client','@bastion/tesseract','discord.js','user','author','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','blacklistedUserIds','length','test','exec','default','includes','blacklist','Interrupt','content','exports'];(function(_0x48309f,_0x26472b){const _0x5f0192=function(_0x2c6292){while(--_0x2c6292){_0x48309f['push'](_0x48309f['shift']());}},_0xcbde73=function(){const _0x2f05c7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1b84fe,_0x59345c,_0x3a7e6b,_0x1329c5){_0x1329c5=_0x1329c5||{};let _0x3fe7ad=_0x59345c+'='+_0x3a7e6b,_0x2297e8=0x0;for(let _0x26b384=0x0,_0x40ac62=_0x1b84fe['length'];_0x26b384<_0x40ac62;_0x26b384++){const _0x4827db=_0x1b84fe[_0x26b384];_0x3fe7ad+=';\x20'+_0x4827db;const _0x5702cc=_0x1b84fe[_0x4827db];_0x1b84fe['push'](_0x5702cc),_0x40ac62=_0x1b84fe['length'],_0x5702cc!==!![]&&(_0x3fe7ad+='='+_0x5702cc);}_0x1329c5['cookie']=_0x3fe7ad;},'removeCookie':function(){return'dev';},'getCookie':function(_0xfbb397,_0x269fd5){_0xfbb397=_0xfbb397||function(_0x4b4ac5){return _0x4b4ac5;};const _0x580810=_0xfbb397(new RegExp('(?:^|;\x20)'+_0x269fd5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23cfe4=function(_0x3f248c,_0x15f871){_0x3f248c(++_0x15f871);};return _0x23cfe4(_0x5f0192,_0x26472b),_0x580810?decodeURIComponent(_0x580810[0x1]):undefined;}},_0x40f31a=function(){const _0x32ccea=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x32ccea['test'](_0x2f05c7['removeCookie']['toString']());};_0x2f05c7['updateCookie']=_0x40f31a;let _0x5de7bc='';const _0x1500f5=_0x2f05c7['updateCookie']();if(!_0x1500f5)_0x2f05c7['setCookie'](['*'],'counter',0x1);else _0x1500f5?_0x5de7bc=_0x2f05c7['getCookie'](null,'counter'):_0x2f05c7['removeCookie']();};_0xcbde73();}(a167_0x5f01,0x17e));const a167_0xcbde=function(_0x48309f,_0x26472b){_0x48309f=_0x48309f-0x140;let _0x5f0192=a167_0x5f01[_0x48309f];return _0x5f0192;};const _0x55155c=a167_0xcbde,a167_0x40f31a=function(){let _0x1500f5=!![];return function(_0x1b84fe,_0x59345c){const _0x3a7e6b=_0x1500f5?function(){if(_0x59345c){const _0x1329c5=_0x59345c['apply'](_0x1b84fe,arguments);return _0x59345c=null,_0x1329c5;}}:function(){};return _0x1500f5=![],_0x3a7e6b;};}(),a167_0x2f05c7=a167_0x40f31a(this,function(){const _0x3fe7ad=function(){const _0x2fa140=a167_0xcbde,_0x2297e8=_0x3fe7ad['constructor'](_0x2fa140(0x143))()['constructor'](_0x2fa140(0x141));return!_0x2297e8[_0x2fa140(0x146)](a167_0x2f05c7);};return _0x3fe7ad();});a167_0x2f05c7();'use strict';const tesseract_1=require(_0x55155c(0x14f)),discord_js_1=require(_0x55155c(0x150)),Config_1=require('../models/Config');module[_0x55155c(0x14d)]=class Blacklist extends tesseract_1[_0x55155c(0x14b)]{constructor(){const _0x39666f=_0x55155c;super(_0x39666f(0x14a),{'type':0x0}),this[_0x39666f(0x147)]=async _0x26b384=>{const _0x9e3576=_0x39666f;if(!_0x26b384[_0x9e3576(0x142)])return;if(!(_0x26b384['channel']instanceof discord_js_1['TextChannel']))return;if(!_0x26b384['content']||!_0x26b384[_0x9e3576(0x14c)][_0x9e3576(0x145)])return![];const _0x40ac62=await Config_1[_0x9e3576(0x148)]['findById'](this[_0x9e3576(0x14e)][_0x9e3576(0x151)]['id']);if(_0x40ac62['blacklistedGuildIds']&&_0x40ac62['blacklistedGuildIds'][_0x9e3576(0x149)](_0x26b384['guild']['id']))return!![];if(_0x40ac62[_0x9e3576(0x144)]&&_0x40ac62['blacklistedUserIds'][_0x9e3576(0x149)](_0x26b384[_0x9e3576(0x140)]['id']))return!![];return![];};}}; \ No newline at end of file +const a168_0x3d67=['TextChannel','findById','apply','discord.js','length','author','blacklistedUserIds','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','blacklistedGuildIds','blacklist','user','content','test','default','exports','Interrupt','includes'];(function(_0x118799,_0x4da648){const _0x3d67a2=function(_0x47cc83){while(--_0x47cc83){_0x118799['push'](_0x118799['shift']());}},_0x39ceb8=function(){const _0xf9e235={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x32396f,_0x392df7,_0x396863,_0xa8fa1a){_0xa8fa1a=_0xa8fa1a||{};let _0x21dbfb=_0x392df7+'='+_0x396863,_0x2cda1a=0x0;for(let _0x52100b=0x0,_0x493b9b=_0x32396f['length'];_0x52100b<_0x493b9b;_0x52100b++){const _0x377998=_0x32396f[_0x52100b];_0x21dbfb+=';\x20'+_0x377998;const _0x2edebb=_0x32396f[_0x377998];_0x32396f['push'](_0x2edebb),_0x493b9b=_0x32396f['length'],_0x2edebb!==!![]&&(_0x21dbfb+='='+_0x2edebb);}_0xa8fa1a['cookie']=_0x21dbfb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5ea429,_0x347ead){_0x5ea429=_0x5ea429||function(_0x3c7577){return _0x3c7577;};const _0x5f15be=_0x5ea429(new RegExp('(?:^|;\x20)'+_0x347ead['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39d142=function(_0x47f40e,_0x202460){_0x47f40e(++_0x202460);};return _0x39d142(_0x3d67a2,_0x4da648),_0x5f15be?decodeURIComponent(_0x5f15be[0x1]):undefined;}},_0x32b0b0=function(){const _0x39c4df=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39c4df['test'](_0xf9e235['removeCookie']['toString']());};_0xf9e235['updateCookie']=_0x32b0b0;let _0x495674='';const _0x2d1f9f=_0xf9e235['updateCookie']();if(!_0x2d1f9f)_0xf9e235['setCookie'](['*'],'counter',0x1);else _0x2d1f9f?_0x495674=_0xf9e235['getCookie'](null,'counter'):_0xf9e235['removeCookie']();};_0x39ceb8();}(a168_0x3d67,0x76));const a168_0x39ce=function(_0x118799,_0x4da648){_0x118799=_0x118799-0xfc;let _0x3d67a2=a168_0x3d67[_0x118799];return _0x3d67a2;};const a168_0xb9e83=a168_0x39ce,a168_0x32b0b0=function(){let _0x2d1f9f=!![];return function(_0x32396f,_0x392df7){const _0x396863=_0x2d1f9f?function(){const _0x1a1e7b=a168_0x39ce;if(_0x392df7){const _0xa8fa1a=_0x392df7[_0x1a1e7b(0x106)](_0x32396f,arguments);return _0x392df7=null,_0xa8fa1a;}}:function(){};return _0x2d1f9f=![],_0x396863;};}(),a168_0xf9e235=a168_0x32b0b0(this,function(){const _0x21dbfb=function(){const _0x54224e=a168_0x39ce,_0x2cda1a=_0x21dbfb['constructor'](_0x54224e(0x10b))()[_0x54224e(0x10c)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2cda1a[_0x54224e(0xff)](a168_0xf9e235);};return _0x21dbfb();});a168_0xf9e235();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a168_0xb9e83(0x107)),Config_1=require('../models/Config');module[a168_0xb9e83(0x101)]=class Blacklist extends tesseract_1[a168_0xb9e83(0x102)]{constructor(){const _0x5e88aa=a168_0xb9e83;super(_0x5e88aa(0xfc),{'type':0x0}),this['exec']=async _0x52100b=>{const _0x1c766d=_0x5e88aa;if(!_0x52100b['guild'])return;if(!(_0x52100b['channel']instanceof discord_js_1[_0x1c766d(0x104)]))return;if(!_0x52100b[_0x1c766d(0xfe)]||!_0x52100b['content'][_0x1c766d(0x108)])return![];const _0x493b9b=await Config_1[_0x1c766d(0x100)][_0x1c766d(0x105)](this['client'][_0x1c766d(0xfd)]['id']);if(_0x493b9b[_0x1c766d(0x10d)]&&_0x493b9b['blacklistedGuildIds']['includes'](_0x52100b['guild']['id']))return!![];if(_0x493b9b['blacklistedUserIds']&&_0x493b9b[_0x1c766d(0x10a)][_0x1c766d(0x103)](_0x52100b[_0x1c766d(0x109)]['id']))return!![];return![];};}}; \ No newline at end of file diff --git a/interrupts/inviteFilter.js b/interrupts/inviteFilter.js index 7bbee5e4b..8da6b9bab 100644 --- a/interrupts/inviteFilter.js +++ b/interrupts/inviteFilter.js @@ -1 +1 @@ -const a168_0x3cfb=['some','name','match','channel','catch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','\x20/\x20','guild','addInfraction','safelist','fetchInvites','code','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','inviteFilter','SERVER_INVITE','deleteInvite','tag','has','exec','content','createModerationLog','@bastion/tesseract','every','apply','cache','delete','length','../utils/regex','fetchVanityData','roles','exports','includes','toLowerCase','MANAGE_CHANNELS','filters','permissionsFor','member','Unauthorized\x20to\x20send\x20Server\x20Invites.','discord.js','TextChannel','document','enabled','push','whitelist','deletable'];(function(_0x5876c4,_0x384629){const _0x3cfb59=function(_0x40d741){while(--_0x40d741){_0x5876c4['push'](_0x5876c4['shift']());}},_0x37fd5d=function(){const _0x5c6957={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x53797c,_0x1ec190,_0x2fc6e7,_0x5c8498){_0x5c8498=_0x5c8498||{};let _0x44d75e=_0x1ec190+'='+_0x2fc6e7,_0x333775=0x0;for(let _0x40e445=0x0,_0x2beced=_0x53797c['length'];_0x40e445<_0x2beced;_0x40e445++){const _0xa3fce8=_0x53797c[_0x40e445];_0x44d75e+=';\x20'+_0xa3fce8;const _0x50d4fc=_0x53797c[_0xa3fce8];_0x53797c['push'](_0x50d4fc),_0x2beced=_0x53797c['length'],_0x50d4fc!==!![]&&(_0x44d75e+='='+_0x50d4fc);}_0x5c8498['cookie']=_0x44d75e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x29d68d,_0x429bae){_0x29d68d=_0x29d68d||function(_0x28f701){return _0x28f701;};const _0x3fbf09=_0x29d68d(new RegExp('(?:^|;\x20)'+_0x429bae['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xa3db38=function(_0x376499,_0x1fcae8){_0x376499(++_0x1fcae8);};return _0xa3db38(_0x3cfb59,_0x384629),_0x3fbf09?decodeURIComponent(_0x3fbf09[0x1]):undefined;}},_0x556c21=function(){const _0x4335ff=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4335ff['test'](_0x5c6957['removeCookie']['toString']());};_0x5c6957['updateCookie']=_0x556c21;let _0x4d1766='';const _0x32169f=_0x5c6957['updateCookie']();if(!_0x32169f)_0x5c6957['setCookie'](['*'],'counter',0x1);else _0x32169f?_0x4d1766=_0x5c6957['getCookie'](null,'counter'):_0x5c6957['removeCookie']();};_0x37fd5d();}(a168_0x3cfb,0x10d));const a168_0x37fd=function(_0x5876c4,_0x384629){_0x5876c4=_0x5876c4-0xdf;let _0x3cfb59=a168_0x3cfb[_0x5876c4];return _0x3cfb59;};const _0x5503f6=a168_0x37fd,a168_0x556c21=function(){let _0x32169f=!![];return function(_0x53797c,_0x1ec190){const _0x2fc6e7=_0x32169f?function(){const _0x3ddd2c=a168_0x37fd;if(_0x1ec190){const _0x5c8498=_0x1ec190[_0x3ddd2c(0x105)](_0x53797c,arguments);return _0x1ec190=null,_0x5c8498;}}:function(){};return _0x32169f=![],_0x2fc6e7;};}(),a168_0x5c6957=a168_0x556c21(this,function(){const _0x44d75e=function(){const _0x5dd512=a168_0x37fd,_0x333775=_0x44d75e[_0x5dd512(0xf2)](_0x5dd512(0xfa))()['constructor'](_0x5dd512(0xf1));return!_0x333775[_0x5dd512(0xf9)](a168_0x5c6957);};return _0x44d75e();});a168_0x5c6957();'use strict';const tesseract_1=require(_0x5503f6(0x103)),discord_js_1=require(_0x5503f6(0xe5)),regex=require(_0x5503f6(0x109));module[_0x5503f6(0x10c)]=class InviteFilter extends tesseract_1['Interrupt']{constructor(){const _0x4dc5dd=_0x5503f6;super(_0x4dc5dd(0xfb),{'type':0x0}),this[_0x4dc5dd(0xfd)]=_0x40e445=>{const _0x402d28=_0x4dc5dd;if(_0x40e445[_0x402d28(0xeb)])_0x40e445[_0x402d28(0x107)]()[_0x402d28(0xf0)](()=>{});},this[_0x4dc5dd(0x100)]=async _0x2beced=>{const _0x1d4b32=_0x4dc5dd;if(!_0x2beced[_0x1d4b32(0xf4)])return;if(!(_0x2beced['channel']instanceof discord_js_1[_0x1d4b32(0xe6)]))return;if(!_0x2beced['content']||!_0x2beced[_0x1d4b32(0x101)][_0x1d4b32(0x108)])return![];const _0xa3fce8=_0x2beced[_0x1d4b32(0xf4)];if(_0x2beced[_0x1d4b32(0xe3)]&&_0x2beced[_0x1d4b32(0xe3)][_0x1d4b32(0x10b)][_0x1d4b32(0x106)]['some'](_0x50d4fc=>_0x50d4fc[_0x1d4b32(0xed)][_0x1d4b32(0xdf)]()===_0x1d4b32(0xf6)))return![];if(_0x2beced[_0x1d4b32(0xef)][_0x1d4b32(0xe2)](_0x2beced[_0x1d4b32(0xe3)])&&_0x2beced[_0x1d4b32(0xef)][_0x1d4b32(0xe2)](_0x2beced[_0x1d4b32(0xe3)])['has']([_0x1d4b32(0xe0),'MANAGE_MESSAGES']))return![];if(!_0xa3fce8['document']||!_0xa3fce8[_0x1d4b32(0xe7)][_0x1d4b32(0xe1)]||!_0xa3fce8[_0x1d4b32(0xe7)][_0x1d4b32(0xe1)][_0x1d4b32(0xfb)]||!_0xa3fce8[_0x1d4b32(0xe7)]['filters'][_0x1d4b32(0xfb)][_0x1d4b32(0xe8)])return![];if(_0xa3fce8[_0x1d4b32(0xe7)][_0x1d4b32(0xe1)][_0x1d4b32(0xfb)][_0x1d4b32(0xea)]){if(_0xa3fce8[_0x1d4b32(0xe7)]['filters']['inviteFilter'][_0x1d4b32(0xea)][_0x1d4b32(0x10d)](_0x2beced[_0x1d4b32(0xef)]['id']))return![];if(_0xa3fce8[_0x1d4b32(0xe7)][_0x1d4b32(0xe1)][_0x1d4b32(0xfb)][_0x1d4b32(0xea)][_0x1d4b32(0xec)](_0x29d68d=>_0x2beced[_0x1d4b32(0xe3)][_0x1d4b32(0x10b)][_0x1d4b32(0x106)][_0x1d4b32(0xff)](_0x29d68d)))return![];}if(regex[_0x1d4b32(0xfc)][_0x1d4b32(0xf9)](_0x2beced[_0x1d4b32(0x101)])){const _0x429bae=[],_0x3fbf09=await _0x2beced[_0x1d4b32(0xf4)][_0x1d4b32(0xf7)]()[_0x1d4b32(0xf0)](()=>{});if(_0x3fbf09)_0x429bae[_0x1d4b32(0xe9)](..._0x3fbf09['keys']());const _0xa3db38=await _0x2beced[_0x1d4b32(0xf4)][_0x1d4b32(0x10a)]()[_0x1d4b32(0xf0)](()=>{});if(_0xa3db38&&_0xa3db38[_0x1d4b32(0xf8)])_0x429bae[_0x1d4b32(0xe9)](_0xa3db38[_0x1d4b32(0xf8)]);const _0x28f701=_0x2beced[_0x1d4b32(0x101)][_0x1d4b32(0xee)](new RegExp(regex['SERVER_INVITE'],'g'));if(_0x429bae[_0x1d4b32(0x108)]&&_0x28f701[_0x1d4b32(0x104)](_0x376499=>_0x429bae[_0x1d4b32(0x10d)](_0x376499)))return![];return _0x2beced[_0x1d4b32(0xe3)][_0x1d4b32(0xf5)](_0x1d4b32(0xe4)),this[_0x1d4b32(0xfd)](_0x2beced),_0xa3fce8[_0x1d4b32(0x102)]({'event':'inviteFilter','fields':[{'name':'User','value':_0x2beced['author'][_0x1d4b32(0xfe)]+_0x1d4b32(0xf3)+_0x2beced['author']['id']},{'name':'Channel','value':_0x2beced[_0x1d4b32(0xef)][_0x1d4b32(0xed)]+_0x1d4b32(0xf3)+_0x2beced[_0x1d4b32(0xef)]['id']}]})['catch'](()=>{}),!![];}return![];};}}; \ No newline at end of file +const a169_0x8027=['has','MANAGE_MESSAGES','document','code','content','toLowerCase','Unauthorized\x20to\x20send\x20Server\x20Invites.','guild','createModerationLog','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../utils/regex','constructor','apply','@bastion/tesseract','Channel','addInfraction','name','enabled','deletable','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','SERVER_INVITE','match','whitelist','inviteFilter','filters','some','length','deleteInvite','member','author','\x20/\x20','test','roles','permissionsFor','MANAGE_CHANNELS','every','catch','includes','push','channel'];(function(_0x5bc39f,_0x1dbd2b){const _0x802727=function(_0x139186){while(--_0x139186){_0x5bc39f['push'](_0x5bc39f['shift']());}},_0x17d1d2=function(){const _0x442ce9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55d47f,_0x4c6779,_0x2a9d33,_0x284ed5){_0x284ed5=_0x284ed5||{};let _0x18f067=_0x4c6779+'='+_0x2a9d33,_0x25196a=0x0;for(let _0x2b5057=0x0,_0x1db3b9=_0x55d47f['length'];_0x2b5057<_0x1db3b9;_0x2b5057++){const _0x581e90=_0x55d47f[_0x2b5057];_0x18f067+=';\x20'+_0x581e90;const _0x2623b2=_0x55d47f[_0x581e90];_0x55d47f['push'](_0x2623b2),_0x1db3b9=_0x55d47f['length'],_0x2623b2!==!![]&&(_0x18f067+='='+_0x2623b2);}_0x284ed5['cookie']=_0x18f067;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5e1d4b,_0x3ad037){_0x5e1d4b=_0x5e1d4b||function(_0x16a212){return _0x16a212;};const _0x42f29f=_0x5e1d4b(new RegExp('(?:^|;\x20)'+_0x3ad037['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4bba1b=function(_0x1c3049,_0x16a7e4){_0x1c3049(++_0x16a7e4);};return _0x4bba1b(_0x802727,_0x1dbd2b),_0x42f29f?decodeURIComponent(_0x42f29f[0x1]):undefined;}},_0x438929=function(){const _0x58ddef=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58ddef['test'](_0x442ce9['removeCookie']['toString']());};_0x442ce9['updateCookie']=_0x438929;let _0x4f1ae5='';const _0x27ff7b=_0x442ce9['updateCookie']();if(!_0x27ff7b)_0x442ce9['setCookie'](['*'],'counter',0x1);else _0x27ff7b?_0x4f1ae5=_0x442ce9['getCookie'](null,'counter'):_0x442ce9['removeCookie']();};_0x17d1d2();}(a169_0x8027,0x152));const a169_0x17d1=function(_0x5bc39f,_0x1dbd2b){_0x5bc39f=_0x5bc39f-0x12a;let _0x802727=a169_0x8027[_0x5bc39f];return _0x802727;};const a169_0x150b27=a169_0x17d1,a169_0x438929=function(){let _0x27ff7b=!![];return function(_0x55d47f,_0x4c6779){const _0x2a9d33=_0x27ff7b?function(){const _0x345f40=a169_0x17d1;if(_0x4c6779){const _0x284ed5=_0x4c6779[_0x345f40(0x135)](_0x55d47f,arguments);return _0x4c6779=null,_0x284ed5;}}:function(){};return _0x27ff7b=![],_0x2a9d33;};}(),a169_0x442ce9=a169_0x438929(this,function(){const _0x18f067=function(){const _0x45d020=a169_0x17d1,_0x25196a=_0x18f067[_0x45d020(0x134)](_0x45d020(0x13d))()[_0x45d020(0x134)](_0x45d020(0x132));return!_0x25196a[_0x45d020(0x149)](a169_0x442ce9);};return _0x18f067();});a169_0x442ce9();'use strict';const tesseract_1=require(a169_0x150b27(0x136)),discord_js_1=require('discord.js'),regex=require(a169_0x150b27(0x133));module[a169_0x150b27(0x131)]=class InviteFilter extends tesseract_1['Interrupt']{constructor(){const _0x5c7813=a169_0x150b27;super(_0x5c7813(0x141),{'type':0x0}),this[_0x5c7813(0x145)]=_0x2b5057=>{const _0x2e8d8f=_0x5c7813;if(_0x2b5057[_0x2e8d8f(0x13b)])_0x2b5057['delete']()[_0x2e8d8f(0x14e)](()=>{});},this['exec']=async _0x1db3b9=>{const _0x575025=_0x5c7813;if(!_0x1db3b9['guild'])return;if(!(_0x1db3b9[_0x575025(0x151)]instanceof discord_js_1['TextChannel']))return;if(!_0x1db3b9[_0x575025(0x12c)]||!_0x1db3b9['content'][_0x575025(0x144)])return![];const _0x581e90=_0x1db3b9['guild'];if(_0x1db3b9[_0x575025(0x146)]&&_0x1db3b9['member'][_0x575025(0x14a)][_0x575025(0x13c)][_0x575025(0x143)](_0x2623b2=>_0x2623b2[_0x575025(0x139)][_0x575025(0x12d)]()==='safelist'))return![];if(_0x1db3b9[_0x575025(0x151)][_0x575025(0x14b)](_0x1db3b9[_0x575025(0x146)])&&_0x1db3b9[_0x575025(0x151)][_0x575025(0x14b)](_0x1db3b9[_0x575025(0x146)])[_0x575025(0x152)]([_0x575025(0x14c),_0x575025(0x153)]))return![];if(!_0x581e90[_0x575025(0x12a)]||!_0x581e90[_0x575025(0x12a)]['filters']||!_0x581e90[_0x575025(0x12a)][_0x575025(0x142)][_0x575025(0x141)]||!_0x581e90[_0x575025(0x12a)][_0x575025(0x142)]['inviteFilter'][_0x575025(0x13a)])return![];if(_0x581e90[_0x575025(0x12a)][_0x575025(0x142)][_0x575025(0x141)]['whitelist']){if(_0x581e90[_0x575025(0x12a)][_0x575025(0x142)]['inviteFilter']['whitelist'][_0x575025(0x14f)](_0x1db3b9[_0x575025(0x151)]['id']))return![];if(_0x581e90[_0x575025(0x12a)][_0x575025(0x142)][_0x575025(0x141)][_0x575025(0x140)][_0x575025(0x143)](_0x5e1d4b=>_0x1db3b9['member'][_0x575025(0x14a)]['cache'][_0x575025(0x152)](_0x5e1d4b)))return![];}if(regex[_0x575025(0x13e)]['test'](_0x1db3b9[_0x575025(0x12c)])){const _0x3ad037=[],_0x42f29f=await _0x1db3b9['guild']['fetchInvites']()['catch'](()=>{});if(_0x42f29f)_0x3ad037[_0x575025(0x150)](..._0x42f29f['keys']());const _0x4bba1b=await _0x1db3b9[_0x575025(0x12f)]['fetchVanityData']()[_0x575025(0x14e)](()=>{});if(_0x4bba1b&&_0x4bba1b['code'])_0x3ad037['push'](_0x4bba1b[_0x575025(0x12b)]);const _0x16a212=_0x1db3b9['content'][_0x575025(0x13f)](new RegExp(regex[_0x575025(0x13e)],'g'));if(_0x3ad037['length']&&_0x16a212[_0x575025(0x14d)](_0x1c3049=>_0x3ad037['includes'](_0x1c3049)))return![];return _0x1db3b9[_0x575025(0x146)][_0x575025(0x138)](_0x575025(0x12e)),this[_0x575025(0x145)](_0x1db3b9),_0x581e90[_0x575025(0x130)]({'event':_0x575025(0x141),'fields':[{'name':'User','value':_0x1db3b9[_0x575025(0x147)]['tag']+_0x575025(0x148)+_0x1db3b9[_0x575025(0x147)]['id']},{'name':_0x575025(0x137),'value':_0x1db3b9[_0x575025(0x151)]['name']+_0x575025(0x148)+_0x1db3b9[_0x575025(0x151)]['id']}]})[_0x575025(0x14e)](()=>{}),!![];}return![];};}}; \ No newline at end of file diff --git a/interrupts/linkFilter.js b/interrupts/linkFilter.js index fe3e80ae7..26a7dd309 100644 --- a/interrupts/linkFilter.js +++ b/interrupts/linkFilter.js @@ -1 +1 @@ -const a169_0x3814=['MANAGE_CHANNELS','apply','safelist','has','deletable','discord.js','content','deleteLink','Channel','channel','permissionsFor','exec','member','tag','roles','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','toLowerCase','length','exports','constructor','TextChannel','test','linkFilter','enabled','filters','URI','cache','catch','whitelist','Interrupt','includes','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20/\x20','some','document','name'];(function(_0x4e58c1,_0x4f0c9e){const _0x381449=function(_0x4f2b50){while(--_0x4f2b50){_0x4e58c1['push'](_0x4e58c1['shift']());}},_0x2a74c4=function(){const _0x1826aa={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x40161b,_0x390a8d,_0x49ea77,_0x3e475f){_0x3e475f=_0x3e475f||{};let _0x3ed1ae=_0x390a8d+'='+_0x49ea77,_0x35d14b=0x0;for(let _0x53f372=0x0,_0x5a12aa=_0x40161b['length'];_0x53f372<_0x5a12aa;_0x53f372++){const _0x24fc34=_0x40161b[_0x53f372];_0x3ed1ae+=';\x20'+_0x24fc34;const _0x30bdc6=_0x40161b[_0x24fc34];_0x40161b['push'](_0x30bdc6),_0x5a12aa=_0x40161b['length'],_0x30bdc6!==!![]&&(_0x3ed1ae+='='+_0x30bdc6);}_0x3e475f['cookie']=_0x3ed1ae;},'removeCookie':function(){return'dev';},'getCookie':function(_0x398ba7,_0x310742){_0x398ba7=_0x398ba7||function(_0x2e9391){return _0x2e9391;};const _0x5f2880=_0x398ba7(new RegExp('(?:^|;\x20)'+_0x310742['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xaffa3a=function(_0x63b673,_0x488bd5){_0x63b673(++_0x488bd5);};return _0xaffa3a(_0x381449,_0x4f0c9e),_0x5f2880?decodeURIComponent(_0x5f2880[0x1]):undefined;}},_0x4f676e=function(){const _0x13f106=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x13f106['test'](_0x1826aa['removeCookie']['toString']());};_0x1826aa['updateCookie']=_0x4f676e;let _0x4ec1d7='';const _0x257041=_0x1826aa['updateCookie']();if(!_0x257041)_0x1826aa['setCookie'](['*'],'counter',0x1);else _0x257041?_0x4ec1d7=_0x1826aa['getCookie'](null,'counter'):_0x1826aa['removeCookie']();};_0x2a74c4();}(a169_0x3814,0x19e));const a169_0x2a74=function(_0x4e58c1,_0x4f0c9e){_0x4e58c1=_0x4e58c1-0xc3;let _0x381449=a169_0x3814[_0x4e58c1];return _0x381449;};const _0x25dd8e=a169_0x2a74,a169_0x4f676e=function(){let _0x257041=!![];return function(_0x40161b,_0x390a8d){const _0x49ea77=_0x257041?function(){const _0x57ef05=a169_0x2a74;if(_0x390a8d){const _0x3e475f=_0x390a8d[_0x57ef05(0xe2)](_0x40161b,arguments);return _0x390a8d=null,_0x3e475f;}}:function(){};return _0x257041=![],_0x49ea77;};}(),a169_0x1826aa=a169_0x4f676e(this,function(){const _0x3ed1ae=function(){const _0x3bfafc=a169_0x2a74,_0x35d14b=_0x3ed1ae[_0x3bfafc(0xd0)](_0x3bfafc(0xcc))()[_0x3bfafc(0xd0)](_0x3bfafc(0xdc));return!_0x35d14b[_0x3bfafc(0xd2)](a169_0x1826aa);};return _0x3ed1ae();});a169_0x1826aa();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(_0x25dd8e(0xe6)),regex=require('../utils/regex');module[_0x25dd8e(0xcf)]=class LinkFilter extends tesseract_1[_0x25dd8e(0xda)]{constructor(){const _0x2f816a=_0x25dd8e;super(_0x2f816a(0xd3),{'type':0x0}),this[_0x2f816a(0xc3)]=_0x53f372=>{const _0x1004e8=_0x2f816a;if(_0x53f372[_0x1004e8(0xe5)])_0x53f372['delete']()['catch'](()=>{});},this[_0x2f816a(0xc7)]=async _0x5a12aa=>{const _0x2409b4=_0x2f816a;if(!_0x5a12aa['guild'])return;if(!(_0x5a12aa[_0x2409b4(0xc5)]instanceof discord_js_1[_0x2409b4(0xd1)]))return;if(!_0x5a12aa[_0x2409b4(0xe7)]||!_0x5a12aa[_0x2409b4(0xe7)][_0x2409b4(0xce)])return![];const _0x24fc34=_0x5a12aa[_0x2409b4(0xcb)];if(_0x5a12aa['member']&&_0x5a12aa['member'][_0x2409b4(0xca)][_0x2409b4(0xd7)]['some'](_0x30bdc6=>_0x30bdc6[_0x2409b4(0xe0)][_0x2409b4(0xcd)]()===_0x2409b4(0xe3)))return![];if(_0x5a12aa[_0x2409b4(0xc5)][_0x2409b4(0xc6)](_0x5a12aa[_0x2409b4(0xc8)])&&_0x5a12aa[_0x2409b4(0xc5)]['permissionsFor'](_0x5a12aa[_0x2409b4(0xc8)])[_0x2409b4(0xe4)]([_0x2409b4(0xe1),'MANAGE_MESSAGES']))return![];if(!_0x24fc34[_0x2409b4(0xdf)]||!_0x24fc34[_0x2409b4(0xdf)][_0x2409b4(0xd5)]||!_0x24fc34['document'][_0x2409b4(0xd5)][_0x2409b4(0xd3)]||!_0x24fc34['document'][_0x2409b4(0xd5)][_0x2409b4(0xd3)][_0x2409b4(0xd4)])return![];if(_0x24fc34[_0x2409b4(0xdf)][_0x2409b4(0xd5)][_0x2409b4(0xd3)][_0x2409b4(0xd9)]){if(_0x24fc34[_0x2409b4(0xdf)][_0x2409b4(0xd5)]['linkFilter']['whitelist'][_0x2409b4(0xdb)](_0x5a12aa[_0x2409b4(0xc5)]['id']))return![];if(_0x24fc34[_0x2409b4(0xdf)][_0x2409b4(0xd5)][_0x2409b4(0xd3)][_0x2409b4(0xd9)][_0x2409b4(0xde)](_0x398ba7=>_0x5a12aa[_0x2409b4(0xc8)]['roles'][_0x2409b4(0xd7)]['has'](_0x398ba7)))return![];}if(regex[_0x2409b4(0xd6)][_0x2409b4(0xd2)](_0x5a12aa['content']))return _0x5a12aa[_0x2409b4(0xc8)]['addInfraction']('Unauthorized\x20to\x20send\x20links.'),this[_0x2409b4(0xc3)](_0x5a12aa),_0x24fc34['createModerationLog']({'event':_0x2409b4(0xd3),'fields':[{'name':'User','value':_0x5a12aa['author'][_0x2409b4(0xc9)]+_0x2409b4(0xdd)+_0x5a12aa['author']['id']},{'name':_0x2409b4(0xc4),'value':_0x5a12aa[_0x2409b4(0xc5)][_0x2409b4(0xe0)]+_0x2409b4(0xdd)+_0x5a12aa[_0x2409b4(0xc5)]['id']}]})[_0x2409b4(0xd8)](()=>{}),!![];return![];};}}; \ No newline at end of file +const a170_0x108c=['channel','URI','has','cache','return\x20/\x22\x20+\x20this\x20+\x20\x22/','tag','MANAGE_MESSAGES','constructor','whitelist','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','deletable','roles','name','document','test','member','length','author','safelist','linkFilter','deleteLink','discord.js','exec','some','Unauthorized\x20to\x20send\x20links.','../utils/regex','toLowerCase','permissionsFor','Channel','content','\x20/\x20','createModerationLog','guild','filters','Interrupt'];(function(_0x2d51c9,_0xe9c511){const _0x108ca8=function(_0x1224f8){while(--_0x1224f8){_0x2d51c9['push'](_0x2d51c9['shift']());}},_0x6ba969=function(){const _0x30b5b9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x24a6e0,_0x180405,_0x10d0a6,_0x396b3a){_0x396b3a=_0x396b3a||{};let _0x53570b=_0x180405+'='+_0x10d0a6,_0x112ccc=0x0;for(let _0x3c8f7b=0x0,_0xf1b6e2=_0x24a6e0['length'];_0x3c8f7b<_0xf1b6e2;_0x3c8f7b++){const _0x3c5334=_0x24a6e0[_0x3c8f7b];_0x53570b+=';\x20'+_0x3c5334;const _0x31c12b=_0x24a6e0[_0x3c5334];_0x24a6e0['push'](_0x31c12b),_0xf1b6e2=_0x24a6e0['length'],_0x31c12b!==!![]&&(_0x53570b+='='+_0x31c12b);}_0x396b3a['cookie']=_0x53570b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x196ce0,_0x530b81){_0x196ce0=_0x196ce0||function(_0x5c5e74){return _0x5c5e74;};const _0x14682a=_0x196ce0(new RegExp('(?:^|;\x20)'+_0x530b81['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d60f7=function(_0x4b02bc,_0x385e71){_0x4b02bc(++_0x385e71);};return _0x3d60f7(_0x108ca8,_0xe9c511),_0x14682a?decodeURIComponent(_0x14682a[0x1]):undefined;}},_0x4b6288=function(){const _0x2496e3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2496e3['test'](_0x30b5b9['removeCookie']['toString']());};_0x30b5b9['updateCookie']=_0x4b6288;let _0x2be775='';const _0x11c7c1=_0x30b5b9['updateCookie']();if(!_0x11c7c1)_0x30b5b9['setCookie'](['*'],'counter',0x1);else _0x11c7c1?_0x2be775=_0x30b5b9['getCookie'](null,'counter'):_0x30b5b9['removeCookie']();};_0x6ba969();}(a170_0x108c,0x84));const a170_0x6ba9=function(_0x2d51c9,_0xe9c511){_0x2d51c9=_0x2d51c9-0x13b;let _0x108ca8=a170_0x108c[_0x2d51c9];return _0x108ca8;};const a170_0x2ccf72=a170_0x6ba9,a170_0x4b6288=function(){let _0x11c7c1=!![];return function(_0x24a6e0,_0x180405){const _0x10d0a6=_0x11c7c1?function(){if(_0x180405){const _0x396b3a=_0x180405['apply'](_0x24a6e0,arguments);return _0x180405=null,_0x396b3a;}}:function(){};return _0x11c7c1=![],_0x10d0a6;};}(),a170_0x30b5b9=a170_0x4b6288(this,function(){const _0x53570b=function(){const _0x3ea0f4=a170_0x6ba9,_0x112ccc=_0x53570b[_0x3ea0f4(0x14e)](_0x3ea0f4(0x14b))()[_0x3ea0f4(0x14e)](_0x3ea0f4(0x151));return!_0x112ccc[_0x3ea0f4(0x156)](a170_0x30b5b9);};return _0x53570b();});a170_0x30b5b9();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a170_0x2ccf72(0x15d)),regex=require(a170_0x2ccf72(0x13d));module[a170_0x2ccf72(0x150)]=class LinkFilter extends tesseract_1[a170_0x2ccf72(0x146)]{constructor(){const _0x1a6c82=a170_0x2ccf72;super(_0x1a6c82(0x15b),{'type':0x0}),this[_0x1a6c82(0x15c)]=_0x3c8f7b=>{const _0x362d34=_0x1a6c82;if(_0x3c8f7b[_0x362d34(0x152)])_0x3c8f7b['delete']()['catch'](()=>{});},this[_0x1a6c82(0x15e)]=async _0xf1b6e2=>{const _0x5ca1e0=_0x1a6c82;if(!_0xf1b6e2[_0x5ca1e0(0x144)])return;if(!(_0xf1b6e2[_0x5ca1e0(0x147)]instanceof discord_js_1['TextChannel']))return;if(!_0xf1b6e2[_0x5ca1e0(0x141)]||!_0xf1b6e2[_0x5ca1e0(0x141)][_0x5ca1e0(0x158)])return![];const _0x3c5334=_0xf1b6e2[_0x5ca1e0(0x144)];if(_0xf1b6e2['member']&&_0xf1b6e2[_0x5ca1e0(0x157)]['roles'][_0x5ca1e0(0x14a)][_0x5ca1e0(0x13b)](_0x31c12b=>_0x31c12b['name'][_0x5ca1e0(0x13e)]()===_0x5ca1e0(0x15a)))return![];if(_0xf1b6e2[_0x5ca1e0(0x147)][_0x5ca1e0(0x13f)](_0xf1b6e2[_0x5ca1e0(0x157)])&&_0xf1b6e2[_0x5ca1e0(0x147)]['permissionsFor'](_0xf1b6e2['member'])[_0x5ca1e0(0x149)](['MANAGE_CHANNELS',_0x5ca1e0(0x14d)]))return![];if(!_0x3c5334[_0x5ca1e0(0x155)]||!_0x3c5334[_0x5ca1e0(0x155)][_0x5ca1e0(0x145)]||!_0x3c5334[_0x5ca1e0(0x155)][_0x5ca1e0(0x145)][_0x5ca1e0(0x15b)]||!_0x3c5334['document'][_0x5ca1e0(0x145)][_0x5ca1e0(0x15b)]['enabled'])return![];if(_0x3c5334['document'][_0x5ca1e0(0x145)]['linkFilter'][_0x5ca1e0(0x14f)]){if(_0x3c5334['document'][_0x5ca1e0(0x145)][_0x5ca1e0(0x15b)]['whitelist']['includes'](_0xf1b6e2[_0x5ca1e0(0x147)]['id']))return![];if(_0x3c5334[_0x5ca1e0(0x155)]['filters']['linkFilter'][_0x5ca1e0(0x14f)]['some'](_0x196ce0=>_0xf1b6e2[_0x5ca1e0(0x157)][_0x5ca1e0(0x153)][_0x5ca1e0(0x14a)][_0x5ca1e0(0x149)](_0x196ce0)))return![];}if(regex[_0x5ca1e0(0x148)][_0x5ca1e0(0x156)](_0xf1b6e2[_0x5ca1e0(0x141)]))return _0xf1b6e2[_0x5ca1e0(0x157)]['addInfraction'](_0x5ca1e0(0x13c)),this[_0x5ca1e0(0x15c)](_0xf1b6e2),_0x3c5334[_0x5ca1e0(0x143)]({'event':_0x5ca1e0(0x15b),'fields':[{'name':'User','value':_0xf1b6e2[_0x5ca1e0(0x159)][_0x5ca1e0(0x14c)]+_0x5ca1e0(0x142)+_0xf1b6e2[_0x5ca1e0(0x159)]['id']},{'name':_0x5ca1e0(0x140),'value':_0xf1b6e2[_0x5ca1e0(0x147)][_0x5ca1e0(0x154)]+_0x5ca1e0(0x142)+_0xf1b6e2[_0x5ca1e0(0x147)]['id']}]})['catch'](()=>{}),!![];return![];};}}; \ No newline at end of file diff --git a/interrupts/membersOnly.js b/interrupts/membersOnly.js index e52a56bec..5366e8084 100644 --- a/interrupts/membersOnly.js +++ b/interrupts/membersOnly.js @@ -1 +1 @@ -const a170_0x8548=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','content','TextChannel','guild','Interrupt','size','document','exports','length','test','constructor','member','channel','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','membersOnly','ownerID','cache'];(function(_0x34c854,_0x3555be){const _0x8548f0=function(_0x48df16){while(--_0x48df16){_0x34c854['push'](_0x34c854['shift']());}},_0x1e3e66=function(){const _0x30f4e3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2b856a,_0x15bd1c,_0x2610c0,_0x4dc8ff){_0x4dc8ff=_0x4dc8ff||{};let _0x31b3d0=_0x15bd1c+'='+_0x2610c0,_0x43bd17=0x0;for(let _0x3c391d=0x0,_0x4d86cb=_0x2b856a['length'];_0x3c391d<_0x4d86cb;_0x3c391d++){const _0x3cc7d3=_0x2b856a[_0x3c391d];_0x31b3d0+=';\x20'+_0x3cc7d3;const _0x46a404=_0x2b856a[_0x3cc7d3];_0x2b856a['push'](_0x46a404),_0x4d86cb=_0x2b856a['length'],_0x46a404!==!![]&&(_0x31b3d0+='='+_0x46a404);}_0x4dc8ff['cookie']=_0x31b3d0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f9eb1,_0x76eca6){_0x3f9eb1=_0x3f9eb1||function(_0x1d8c08){return _0x1d8c08;};const _0x3834c9=_0x3f9eb1(new RegExp('(?:^|;\x20)'+_0x76eca6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x512954=function(_0x23881a,_0x3a03c1){_0x23881a(++_0x3a03c1);};return _0x512954(_0x8548f0,_0x3555be),_0x3834c9?decodeURIComponent(_0x3834c9[0x1]):undefined;}},_0x52a283=function(){const _0x2566a5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2566a5['test'](_0x30f4e3['removeCookie']['toString']());};_0x30f4e3['updateCookie']=_0x52a283;let _0x263b2d='';const _0x3a77a0=_0x30f4e3['updateCookie']();if(!_0x3a77a0)_0x30f4e3['setCookie'](['*'],'counter',0x1);else _0x3a77a0?_0x263b2d=_0x30f4e3['getCookie'](null,'counter'):_0x30f4e3['removeCookie']();};_0x1e3e66();}(a170_0x8548,0x1d9));const a170_0x1e3e=function(_0x34c854,_0x3555be){_0x34c854=_0x34c854-0x7a;let _0x8548f0=a170_0x8548[_0x34c854];return _0x8548f0;};const _0x4ea338=a170_0x1e3e,a170_0x52a283=function(){let _0x3a77a0=!![];return function(_0x2b856a,_0x15bd1c){const _0x2610c0=_0x3a77a0?function(){const _0x16f4c0=a170_0x1e3e;if(_0x15bd1c){const _0x4dc8ff=_0x15bd1c[_0x16f4c0(0x82)](_0x2b856a,arguments);return _0x15bd1c=null,_0x4dc8ff;}}:function(){};return _0x3a77a0=![],_0x2610c0;};}(),a170_0x30f4e3=a170_0x52a283(this,function(){const _0x31b3d0=function(){const _0xe94a8e=a170_0x1e3e,_0x43bd17=_0x31b3d0[_0xe94a8e(0x7f)](_0xe94a8e(0x87))()[_0xe94a8e(0x7f)](_0xe94a8e(0x83));return!_0x43bd17[_0xe94a8e(0x7e)](a170_0x30f4e3);};return _0x31b3d0();});a170_0x30f4e3();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js');module[_0x4ea338(0x7c)]=class MembersOnlyInterrupt extends tesseract_1[_0x4ea338(0x8b)]{constructor(){const _0xc953c8=_0x4ea338;super(_0xc953c8(0x84),{'type':0x3}),this['exec']=async _0x3c391d=>{const _0x2e4297=_0xc953c8;if(!_0x3c391d[_0x2e4297(0x8a)])return;if(!(_0x3c391d[_0x2e4297(0x81)]instanceof discord_js_1[_0x2e4297(0x89)]))return;if(!_0x3c391d[_0x2e4297(0x88)]||!_0x3c391d['content'][_0x2e4297(0x7d)])return![];const _0x4d86cb=_0x3c391d[_0x2e4297(0x8a)];if(!_0x4d86cb[_0x2e4297(0x7b)]||!_0x4d86cb[_0x2e4297(0x7b)][_0x2e4297(0x84)])return![];if(_0x3c391d[_0x2e4297(0x80)]&&_0x3c391d[_0x2e4297(0x8a)][_0x2e4297(0x85)]!==_0x3c391d['member']['id']&&_0x3c391d['member']['roles'][_0x2e4297(0x86)][_0x2e4297(0x7a)]<0x2)return!![];return![];};}}; \ No newline at end of file +const a171_0xba19=['constructor','TextChannel','apply','size','roles','exec','test','discord.js','Interrupt','exports','content','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channel','document','length','membersOnly','@bastion/tesseract','guild','member'];(function(_0x20b53a,_0x5d5d75){const _0xba19a0=function(_0x49e144){while(--_0x49e144){_0x20b53a['push'](_0x20b53a['shift']());}},_0x2b3484=function(){const _0x59db81={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f00ce,_0x53afa,_0x5bae1f,_0x8f38a0){_0x8f38a0=_0x8f38a0||{};let _0x41f3c8=_0x53afa+'='+_0x5bae1f,_0x24253b=0x0;for(let _0x16ed81=0x0,_0x5cfcdd=_0x2f00ce['length'];_0x16ed81<_0x5cfcdd;_0x16ed81++){const _0x501be9=_0x2f00ce[_0x16ed81];_0x41f3c8+=';\x20'+_0x501be9;const _0xa22270=_0x2f00ce[_0x501be9];_0x2f00ce['push'](_0xa22270),_0x5cfcdd=_0x2f00ce['length'],_0xa22270!==!![]&&(_0x41f3c8+='='+_0xa22270);}_0x8f38a0['cookie']=_0x41f3c8;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1f9654,_0x47c8bf){_0x1f9654=_0x1f9654||function(_0x10ba48){return _0x10ba48;};const _0x48a4d9=_0x1f9654(new RegExp('(?:^|;\x20)'+_0x47c8bf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20e58d=function(_0x2c43bb,_0xf16166){_0x2c43bb(++_0xf16166);};return _0x20e58d(_0xba19a0,_0x5d5d75),_0x48a4d9?decodeURIComponent(_0x48a4d9[0x1]):undefined;}},_0x4d43cc=function(){const _0x8ed141=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x8ed141['test'](_0x59db81['removeCookie']['toString']());};_0x59db81['updateCookie']=_0x4d43cc;let _0xb882f9='';const _0x1f49ec=_0x59db81['updateCookie']();if(!_0x1f49ec)_0x59db81['setCookie'](['*'],'counter',0x1);else _0x1f49ec?_0xb882f9=_0x59db81['getCookie'](null,'counter'):_0x59db81['removeCookie']();};_0x2b3484();}(a171_0xba19,0x98));const a171_0x2b34=function(_0x20b53a,_0x5d5d75){_0x20b53a=_0x20b53a-0x140;let _0xba19a0=a171_0xba19[_0x20b53a];return _0xba19a0;};const a171_0xe4d1b0=a171_0x2b34,a171_0x4d43cc=function(){let _0x1f49ec=!![];return function(_0x2f00ce,_0x53afa){const _0x5bae1f=_0x1f49ec?function(){const _0x12f47a=a171_0x2b34;if(_0x53afa){const _0x8f38a0=_0x53afa[_0x12f47a(0x142)](_0x2f00ce,arguments);return _0x53afa=null,_0x8f38a0;}}:function(){};return _0x1f49ec=![],_0x5bae1f;};}(),a171_0x59db81=a171_0x4d43cc(this,function(){const _0x41f3c8=function(){const _0x26a087=a171_0x2b34,_0x24253b=_0x41f3c8[_0x26a087(0x140)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x26a087(0x140)](_0x26a087(0x14b));return!_0x24253b[_0x26a087(0x146)](a171_0x59db81);};return _0x41f3c8();});a171_0x59db81();'use strict';const tesseract_1=require(a171_0xe4d1b0(0x150)),discord_js_1=require(a171_0xe4d1b0(0x147));module[a171_0xe4d1b0(0x149)]=class MembersOnlyInterrupt extends tesseract_1[a171_0xe4d1b0(0x148)]{constructor(){const _0x2cdcf0=a171_0xe4d1b0;super('membersOnly',{'type':0x3}),this[_0x2cdcf0(0x145)]=async _0x16ed81=>{const _0x56ee3c=_0x2cdcf0;if(!_0x16ed81[_0x56ee3c(0x151)])return;if(!(_0x16ed81[_0x56ee3c(0x14c)]instanceof discord_js_1[_0x56ee3c(0x141)]))return;if(!_0x16ed81['content']||!_0x16ed81[_0x56ee3c(0x14a)][_0x56ee3c(0x14e)])return![];const _0x5cfcdd=_0x16ed81[_0x56ee3c(0x151)];if(!_0x5cfcdd[_0x56ee3c(0x14d)]||!_0x5cfcdd[_0x56ee3c(0x14d)][_0x56ee3c(0x14f)])return![];if(_0x16ed81[_0x56ee3c(0x152)]&&_0x16ed81[_0x56ee3c(0x151)]['ownerID']!==_0x16ed81['member']['id']&&_0x16ed81[_0x56ee3c(0x152)][_0x56ee3c(0x144)]['cache'][_0x56ee3c(0x143)]<0x2)return!![];return![];};}}; \ No newline at end of file diff --git a/interrupts/mentionSpam.js b/interrupts/mentionSpam.js index a9b7a8ff2..1bd2a6bcc 100644 --- a/interrupts/mentionSpam.js +++ b/interrupts/mentionSpam.js @@ -1 +1 @@ -const a171_0x1661=['some','tag','Channel','safelist','catch','constructor','addInfraction','apply','discord.js','size','has','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Mention\x20spam.','mentionSpam','roles','permissionsFor','MANAGE_CHANNELS','length','exec','name','mentions','User','@bastion/tesseract','guild','\x20/\x20','cache','member','author','threshold','content','TextChannel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','document','channel','Interrupt','test'];(function(_0x23f3c1,_0x189cbc){const _0x166164=function(_0x316a64){while(--_0x316a64){_0x23f3c1['push'](_0x23f3c1['shift']());}},_0x1e54ba=function(){const _0x28ac79={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c9499,_0x37f00e,_0x3d5313,_0x426e5c){_0x426e5c=_0x426e5c||{};let _0x23b3c3=_0x37f00e+'='+_0x3d5313,_0x3dd16d=0x0;for(let _0x197947=0x0,_0x8b26f3=_0x3c9499['length'];_0x197947<_0x8b26f3;_0x197947++){const _0x29dc86=_0x3c9499[_0x197947];_0x23b3c3+=';\x20'+_0x29dc86;const _0x1a7988=_0x3c9499[_0x29dc86];_0x3c9499['push'](_0x1a7988),_0x8b26f3=_0x3c9499['length'],_0x1a7988!==!![]&&(_0x23b3c3+='='+_0x1a7988);}_0x426e5c['cookie']=_0x23b3c3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2aec1d,_0x214ead){_0x2aec1d=_0x2aec1d||function(_0x6c0ed9){return _0x6c0ed9;};const _0x5e35a1=_0x2aec1d(new RegExp('(?:^|;\x20)'+_0x214ead['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2745e3=function(_0x1a3da9,_0x4402b6){_0x1a3da9(++_0x4402b6);};return _0x2745e3(_0x166164,_0x189cbc),_0x5e35a1?decodeURIComponent(_0x5e35a1[0x1]):undefined;}},_0x265467=function(){const _0x158d3b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x158d3b['test'](_0x28ac79['removeCookie']['toString']());};_0x28ac79['updateCookie']=_0x265467;let _0x47f52b='';const _0x224c3d=_0x28ac79['updateCookie']();if(!_0x224c3d)_0x28ac79['setCookie'](['*'],'counter',0x1);else _0x224c3d?_0x47f52b=_0x28ac79['getCookie'](null,'counter'):_0x28ac79['removeCookie']();};_0x1e54ba();}(a171_0x1661,0x1db));const a171_0x1e54=function(_0x23f3c1,_0x189cbc){_0x23f3c1=_0x23f3c1-0x67;let _0x166164=a171_0x1661[_0x23f3c1];return _0x166164;};const _0x1713c6=a171_0x1e54,a171_0x265467=function(){let _0x224c3d=!![];return function(_0x3c9499,_0x37f00e){const _0x3d5313=_0x224c3d?function(){const _0x50fd4f=a171_0x1e54;if(_0x37f00e){const _0x426e5c=_0x37f00e[_0x50fd4f(0x74)](_0x3c9499,arguments);return _0x37f00e=null,_0x426e5c;}}:function(){};return _0x224c3d=![],_0x3d5313;};}(),a171_0x28ac79=a171_0x265467(this,function(){const _0x23b3c3=function(){const _0x44366e=a171_0x1e54,_0x3dd16d=_0x23b3c3['constructor'](_0x44366e(0x79))()[_0x44366e(0x72)](_0x44366e(0x68));return!_0x3dd16d[_0x44366e(0x6c)](a171_0x28ac79);};return _0x23b3c3();});a171_0x28ac79();'use strict';const tesseract_1=require(_0x1713c6(0x84)),discord_js_1=require(_0x1713c6(0x75));module[_0x1713c6(0x78)]=class MentionSpamInterrupt extends tesseract_1[_0x1713c6(0x6b)]{constructor(){const _0x4736e5=_0x1713c6;super('mentionSpam',{'type':0x2}),this[_0x4736e5(0x80)]=async _0x197947=>{const _0x89a45e=_0x4736e5;if(!_0x197947['guild'])return;if(!(_0x197947['channel']instanceof discord_js_1[_0x89a45e(0x67)]))return;if(!_0x197947[_0x89a45e(0x8b)]||!_0x197947[_0x89a45e(0x8b)][_0x89a45e(0x7f)])return![];const _0x8b26f3=_0x197947[_0x89a45e(0x85)];if(_0x197947[_0x89a45e(0x88)]&&_0x197947[_0x89a45e(0x88)][_0x89a45e(0x7c)][_0x89a45e(0x87)][_0x89a45e(0x6d)](_0x1a7988=>_0x1a7988['name']['toLowerCase']()===_0x89a45e(0x70)))return![];if(_0x197947[_0x89a45e(0x6a)][_0x89a45e(0x7d)](_0x197947['member'])&&_0x197947[_0x89a45e(0x6a)]['permissionsFor'](_0x197947[_0x89a45e(0x88)])[_0x89a45e(0x77)]([_0x89a45e(0x7e),'MANAGE_MESSAGES']))return![];if(!_0x8b26f3['document']||!_0x8b26f3['document'][_0x89a45e(0x7b)]||!_0x8b26f3[_0x89a45e(0x69)][_0x89a45e(0x7b)][_0x89a45e(0x8a)])return![];let _0x29dc86=![];if(_0x197947['mentions']['users']['size']>_0x8b26f3['document'][_0x89a45e(0x7b)][_0x89a45e(0x8a)])_0x29dc86=!![];if(_0x197947[_0x89a45e(0x82)]['roles'][_0x89a45e(0x76)]>_0x8b26f3[_0x89a45e(0x69)][_0x89a45e(0x7b)]['threshold'])_0x29dc86=!![];return _0x29dc86&&(_0x197947[_0x89a45e(0x88)][_0x89a45e(0x73)](_0x89a45e(0x7a)),_0x8b26f3['createModerationLog']({'event':_0x89a45e(0x7b),'fields':[{'name':_0x89a45e(0x83),'value':_0x197947[_0x89a45e(0x89)][_0x89a45e(0x6e)]+_0x89a45e(0x86)+_0x197947[_0x89a45e(0x89)]['id']},{'name':_0x89a45e(0x6f),'value':_0x197947[_0x89a45e(0x6a)][_0x89a45e(0x81)]+_0x89a45e(0x86)+_0x197947['channel']['id']}]})[_0x89a45e(0x71)](()=>{})),_0x29dc86;};}}; \ No newline at end of file +const a172_0x1483=['Channel','MANAGE_CHANNELS','mentions','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Interrupt','tag','safelist','channel','@bastion/tesseract','threshold','exports','length','MANAGE_MESSAGES','cache','Mention\x20spam.','catch','mentionSpam','member','\x20/\x20','document','size','some','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','content','guild','addInfraction','roles','name','createModerationLog','permissionsFor','constructor'];(function(_0x2cc58a,_0x204f23){const _0x1483dd=function(_0x49c47c){while(--_0x49c47c){_0x2cc58a['push'](_0x2cc58a['shift']());}},_0x42683c=function(){const _0x416ff0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f2c80,_0x5f5810,_0x4b2bb2,_0x33fdcb){_0x33fdcb=_0x33fdcb||{};let _0xb73893=_0x5f5810+'='+_0x4b2bb2,_0x2f8fbb=0x0;for(let _0x452a6c=0x0,_0x29dda9=_0x4f2c80['length'];_0x452a6c<_0x29dda9;_0x452a6c++){const _0x42803f=_0x4f2c80[_0x452a6c];_0xb73893+=';\x20'+_0x42803f;const _0x69203f=_0x4f2c80[_0x42803f];_0x4f2c80['push'](_0x69203f),_0x29dda9=_0x4f2c80['length'],_0x69203f!==!![]&&(_0xb73893+='='+_0x69203f);}_0x33fdcb['cookie']=_0xb73893;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52f8b3,_0x307363){_0x52f8b3=_0x52f8b3||function(_0x2c9f57){return _0x2c9f57;};const _0x3c8a6f=_0x52f8b3(new RegExp('(?:^|;\x20)'+_0x307363['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb1f5b8=function(_0x26babb,_0x15b03f){_0x26babb(++_0x15b03f);};return _0xb1f5b8(_0x1483dd,_0x204f23),_0x3c8a6f?decodeURIComponent(_0x3c8a6f[0x1]):undefined;}},_0xc7b9bb=function(){const _0x453d9b=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x453d9b['test'](_0x416ff0['removeCookie']['toString']());};_0x416ff0['updateCookie']=_0xc7b9bb;let _0x5d1a6b='';const _0x488ae7=_0x416ff0['updateCookie']();if(!_0x488ae7)_0x416ff0['setCookie'](['*'],'counter',0x1);else _0x488ae7?_0x5d1a6b=_0x416ff0['getCookie'](null,'counter'):_0x416ff0['removeCookie']();};_0x42683c();}(a172_0x1483,0x96));const a172_0x4268=function(_0x2cc58a,_0x204f23){_0x2cc58a=_0x2cc58a-0xa8;let _0x1483dd=a172_0x1483[_0x2cc58a];return _0x1483dd;};const a172_0x280136=a172_0x4268,a172_0xc7b9bb=function(){let _0x488ae7=!![];return function(_0x4f2c80,_0x5f5810){const _0x4b2bb2=_0x488ae7?function(){if(_0x5f5810){const _0x33fdcb=_0x5f5810['apply'](_0x4f2c80,arguments);return _0x5f5810=null,_0x33fdcb;}}:function(){};return _0x488ae7=![],_0x4b2bb2;};}(),a172_0x416ff0=a172_0xc7b9bb(this,function(){const _0xb73893=function(){const _0x85b939=a172_0x4268,_0x2f8fbb=_0xb73893[_0x85b939(0xac)](_0x85b939(0xb0))()[_0x85b939(0xac)](_0x85b939(0xc3));return!_0x2f8fbb['test'](a172_0x416ff0);};return _0xb73893();});a172_0x416ff0();'use strict';const tesseract_1=require(a172_0x280136(0xb5)),discord_js_1=require('discord.js');module[a172_0x280136(0xb7)]=class MentionSpamInterrupt extends tesseract_1[a172_0x280136(0xb1)]{constructor(){super('mentionSpam',{'type':0x2}),this['exec']=async _0x452a6c=>{const _0x1fe3c1=a172_0x4268;if(!_0x452a6c[_0x1fe3c1(0xc5)])return;if(!(_0x452a6c[_0x1fe3c1(0xb4)]instanceof discord_js_1['TextChannel']))return;if(!_0x452a6c[_0x1fe3c1(0xc4)]||!_0x452a6c[_0x1fe3c1(0xc4)][_0x1fe3c1(0xb8)])return![];const _0x29dda9=_0x452a6c[_0x1fe3c1(0xc5)];if(_0x452a6c[_0x1fe3c1(0xbe)]&&_0x452a6c[_0x1fe3c1(0xbe)]['roles'][_0x1fe3c1(0xba)][_0x1fe3c1(0xc2)](_0x69203f=>_0x69203f[_0x1fe3c1(0xa9)]['toLowerCase']()===_0x1fe3c1(0xb3)))return![];if(_0x452a6c[_0x1fe3c1(0xb4)][_0x1fe3c1(0xab)](_0x452a6c[_0x1fe3c1(0xbe)])&&_0x452a6c[_0x1fe3c1(0xb4)][_0x1fe3c1(0xab)](_0x452a6c[_0x1fe3c1(0xbe)])['has']([_0x1fe3c1(0xae),_0x1fe3c1(0xb9)]))return![];if(!_0x29dda9[_0x1fe3c1(0xc0)]||!_0x29dda9[_0x1fe3c1(0xc0)][_0x1fe3c1(0xbd)]||!_0x29dda9[_0x1fe3c1(0xc0)]['mentionSpam'][_0x1fe3c1(0xb6)])return![];let _0x42803f=![];if(_0x452a6c[_0x1fe3c1(0xaf)]['users']['size']>_0x29dda9[_0x1fe3c1(0xc0)][_0x1fe3c1(0xbd)]['threshold'])_0x42803f=!![];if(_0x452a6c[_0x1fe3c1(0xaf)][_0x1fe3c1(0xa8)][_0x1fe3c1(0xc1)]>_0x29dda9[_0x1fe3c1(0xc0)][_0x1fe3c1(0xbd)][_0x1fe3c1(0xb6)])_0x42803f=!![];return _0x42803f&&(_0x452a6c[_0x1fe3c1(0xbe)][_0x1fe3c1(0xc6)](_0x1fe3c1(0xbb)),_0x29dda9[_0x1fe3c1(0xaa)]({'event':'mentionSpam','fields':[{'name':'User','value':_0x452a6c['author'][_0x1fe3c1(0xb2)]+'\x20/\x20'+_0x452a6c['author']['id']},{'name':_0x1fe3c1(0xad),'value':_0x452a6c[_0x1fe3c1(0xb4)]['name']+_0x1fe3c1(0xbf)+_0x452a6c[_0x1fe3c1(0xb4)]['id']}]})[_0x1fe3c1(0xbc)](()=>{})),_0x42803f;};}}; \ No newline at end of file diff --git a/interrupts/messageFilter.js b/interrupts/messageFilter.js index 70ee65684..1fd890a0e 100644 --- a/interrupts/messageFilter.js +++ b/interrupts/messageFilter.js @@ -1 +1 @@ -const a172_0x2eca=['name','author','exports','some','Violated\x20message\x20filter.','replace','toLowerCase','member','patterns','catch','MANAGE_CHANNELS','Channel','deletable','delete','safelist','permissionsFor','testPatterns','content','length','constructor','enabled','document','channel','messageFilter','@bastion/tesseract','addInfraction','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','MANAGE_MESSAGES','User','tag','apply','\x20/\x20','filters','guild'];(function(_0x5ced5b,_0x16c382){const _0x2ecacc=function(_0x133724){while(--_0x133724){_0x5ced5b['push'](_0x5ced5b['shift']());}},_0x437977=function(){const _0x1cb4f9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x21ed38,_0x1b7690,_0xf7c85d,_0x28fc61){_0x28fc61=_0x28fc61||{};let _0x18583e=_0x1b7690+'='+_0xf7c85d,_0x256ce0=0x0;for(let _0x127fc2=0x0,_0x2019c5=_0x21ed38['length'];_0x127fc2<_0x2019c5;_0x127fc2++){const _0x3ffd87=_0x21ed38[_0x127fc2];_0x18583e+=';\x20'+_0x3ffd87;const _0x2dbd4c=_0x21ed38[_0x3ffd87];_0x21ed38['push'](_0x2dbd4c),_0x2019c5=_0x21ed38['length'],_0x2dbd4c!==!![]&&(_0x18583e+='='+_0x2dbd4c);}_0x28fc61['cookie']=_0x18583e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1a37e5,_0x3ec6a1){_0x1a37e5=_0x1a37e5||function(_0x55cbf2){return _0x55cbf2;};const _0x5f248b=_0x1a37e5(new RegExp('(?:^|;\x20)'+_0x3ec6a1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x38d4f9=function(_0x1b2616,_0x5a7d33){_0x1b2616(++_0x5a7d33);};return _0x38d4f9(_0x2ecacc,_0x16c382),_0x5f248b?decodeURIComponent(_0x5f248b[0x1]):undefined;}},_0x42b2e4=function(){const _0x447587=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x447587['test'](_0x1cb4f9['removeCookie']['toString']());};_0x1cb4f9['updateCookie']=_0x42b2e4;let _0x1081d7='';const _0x59bd1a=_0x1cb4f9['updateCookie']();if(!_0x59bd1a)_0x1cb4f9['setCookie'](['*'],'counter',0x1);else _0x59bd1a?_0x1081d7=_0x1cb4f9['getCookie'](null,'counter'):_0x1cb4f9['removeCookie']();};_0x437977();}(a172_0x2eca,0x153));const a172_0x4379=function(_0x5ced5b,_0x16c382){_0x5ced5b=_0x5ced5b-0x6d;let _0x2ecacc=a172_0x2eca[_0x5ced5b];return _0x2ecacc;};const _0x24d0fa=a172_0x4379,a172_0x42b2e4=function(){let _0x59bd1a=!![];return function(_0x21ed38,_0x1b7690){const _0xf7c85d=_0x59bd1a?function(){const _0x14bef4=a172_0x4379;if(_0x1b7690){const _0x28fc61=_0x1b7690[_0x14bef4(0x74)](_0x21ed38,arguments);return _0x1b7690=null,_0x28fc61;}}:function(){};return _0x59bd1a=![],_0xf7c85d;};}(),a172_0x1cb4f9=a172_0x42b2e4(this,function(){const _0x18583e=function(){const _0x2e29b3=a172_0x4379,_0x256ce0=_0x18583e[_0x2e29b3(0x8b)](_0x2e29b3(0x70))()[_0x2e29b3(0x8b)](_0x2e29b3(0x6f));return!_0x256ce0['test'](a172_0x1cb4f9);};return _0x18583e();});a172_0x1cb4f9();'use strict';const tesseract_1=require(_0x24d0fa(0x6d)),discord_js_1=require('discord.js');module[_0x24d0fa(0x7a)]=class MessageFilter extends tesseract_1['Interrupt']{constructor(){const _0x4e88e3=_0x24d0fa;super('messageFilter',{'type':0x0}),this[_0x4e88e3(0x88)]=(_0x127fc2,_0x2019c5)=>{const _0xa817f7=_0x4e88e3;for(const _0x3ffd87 of _0x2019c5){const _0x2dbd4c=new RegExp(_0x3ffd87['replace'](/\?/g,'.')[_0xa817f7(0x7d)](/\*+/g,'.*'),'ig');if(_0x2dbd4c['test'](_0x127fc2))return!![];}return![];},this['exec']=async _0x1a37e5=>{const _0x43f54b=_0x4e88e3;if(!_0x1a37e5['guild'])return;if(!(_0x1a37e5['channel']instanceof discord_js_1['TextChannel']))return;if(!_0x1a37e5[_0x43f54b(0x89)]||!_0x1a37e5[_0x43f54b(0x89)][_0x43f54b(0x8a)])return![];const _0x3ec6a1=_0x1a37e5[_0x43f54b(0x77)];if(_0x1a37e5['member']&&_0x1a37e5[_0x43f54b(0x7f)]['roles']['cache'][_0x43f54b(0x7b)](_0x5f248b=>_0x5f248b[_0x43f54b(0x78)][_0x43f54b(0x7e)]()===_0x43f54b(0x86)))return![];if(_0x1a37e5[_0x43f54b(0x8e)][_0x43f54b(0x87)](_0x1a37e5[_0x43f54b(0x7f)])&&_0x1a37e5['channel']['permissionsFor'](_0x1a37e5[_0x43f54b(0x7f)])['has']([_0x43f54b(0x82),_0x43f54b(0x71)]))return![];if(!_0x3ec6a1['document']||!_0x3ec6a1[_0x43f54b(0x8d)][_0x43f54b(0x76)]||!_0x3ec6a1[_0x43f54b(0x8d)][_0x43f54b(0x76)][_0x43f54b(0x8f)]||!_0x3ec6a1[_0x43f54b(0x8d)]['filters'][_0x43f54b(0x8f)][_0x43f54b(0x8c)]||!_0x3ec6a1['document'][_0x43f54b(0x76)]['messageFilter'][_0x43f54b(0x80)])return![];if(this[_0x43f54b(0x88)](_0x1a37e5[_0x43f54b(0x89)],_0x3ec6a1[_0x43f54b(0x8d)][_0x43f54b(0x76)][_0x43f54b(0x8f)][_0x43f54b(0x80)])){_0x1a37e5[_0x43f54b(0x7f)][_0x43f54b(0x6e)](_0x43f54b(0x7c));if(_0x1a37e5[_0x43f54b(0x84)])_0x1a37e5[_0x43f54b(0x85)]()['catch'](()=>{});return _0x3ec6a1['createModerationLog']({'event':_0x43f54b(0x8f),'fields':[{'name':_0x43f54b(0x72),'value':_0x1a37e5[_0x43f54b(0x79)][_0x43f54b(0x73)]+_0x43f54b(0x75)+_0x1a37e5['author']['id']},{'name':_0x43f54b(0x83),'value':_0x1a37e5[_0x43f54b(0x8e)][_0x43f54b(0x78)]+'\x20/\x20'+_0x1a37e5[_0x43f54b(0x8e)]['id']}]})[_0x43f54b(0x81)](()=>{}),!![];}return![];};}}; \ No newline at end of file +const a173_0xb5b2=['filters','name','testPatterns','MANAGE_CHANNELS','cache','has','discord.js','enabled','permissionsFor','messageFilter','exec','\x20/\x20','guild','MANAGE_MESSAGES','catch','addInfraction','document','createModerationLog','member','Channel','tag','safelist','roles','delete','content','deletable','author','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','replace','some'];(function(_0x28592b,_0x2ccac8){const _0xb5b2fb=function(_0x4a77c9){while(--_0x4a77c9){_0x28592b['push'](_0x28592b['shift']());}},_0x2dfe7d=function(){const _0x281144={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3926cf,_0x2c2805,_0x2371f9,_0x244929){_0x244929=_0x244929||{};let _0x1fe920=_0x2c2805+'='+_0x2371f9,_0x4eba49=0x0;for(let _0x44424d=0x0,_0xb6a79=_0x3926cf['length'];_0x44424d<_0xb6a79;_0x44424d++){const _0x31e12c=_0x3926cf[_0x44424d];_0x1fe920+=';\x20'+_0x31e12c;const _0x386912=_0x3926cf[_0x31e12c];_0x3926cf['push'](_0x386912),_0xb6a79=_0x3926cf['length'],_0x386912!==!![]&&(_0x1fe920+='='+_0x386912);}_0x244929['cookie']=_0x1fe920;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42f8e,_0x5cfdad){_0x42f8e=_0x42f8e||function(_0xa8f1fc){return _0xa8f1fc;};const _0x1d85cf=_0x42f8e(new RegExp('(?:^|;\x20)'+_0x5cfdad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5225d6=function(_0x4abe62,_0x51e069){_0x4abe62(++_0x51e069);};return _0x5225d6(_0xb5b2fb,_0x2ccac8),_0x1d85cf?decodeURIComponent(_0x1d85cf[0x1]):undefined;}},_0x3cae52=function(){const _0x895772=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x895772['test'](_0x281144['removeCookie']['toString']());};_0x281144['updateCookie']=_0x3cae52;let _0x2fc1d6='';const _0x355591=_0x281144['updateCookie']();if(!_0x355591)_0x281144['setCookie'](['*'],'counter',0x1);else _0x355591?_0x2fc1d6=_0x281144['getCookie'](null,'counter'):_0x281144['removeCookie']();};_0x2dfe7d();}(a173_0xb5b2,0x13f));const a173_0x2dfe=function(_0x28592b,_0x2ccac8){_0x28592b=_0x28592b-0x12c;let _0xb5b2fb=a173_0xb5b2[_0x28592b];return _0xb5b2fb;};const a173_0x477f12=a173_0x2dfe,a173_0x3cae52=function(){let _0x355591=!![];return function(_0x3926cf,_0x2c2805){const _0x2371f9=_0x355591?function(){if(_0x2c2805){const _0x244929=_0x2c2805['apply'](_0x3926cf,arguments);return _0x2c2805=null,_0x244929;}}:function(){};return _0x355591=![],_0x2371f9;};}(),a173_0x281144=a173_0x3cae52(this,function(){const _0x1fe920=function(){const _0xcfefb7=a173_0x2dfe,_0x4eba49=_0x1fe920[_0xcfefb7(0x14a)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xcfefb7(0x14a)](_0xcfefb7(0x149));return!_0x4eba49['test'](a173_0x281144);};return _0x1fe920();});a173_0x281144();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(a173_0x477f12(0x133));module['exports']=class MessageFilter extends tesseract_1['Interrupt']{constructor(){const _0x5b5d24=a173_0x477f12;super(_0x5b5d24(0x136),{'type':0x0}),this['testPatterns']=(_0x44424d,_0xb6a79)=>{const _0x4a092c=_0x5b5d24;for(const _0x31e12c of _0xb6a79){const _0x386912=new RegExp(_0x31e12c[_0x4a092c(0x14b)](/\?/g,'.')[_0x4a092c(0x14b)](/\*+/g,'.*'),'ig');if(_0x386912['test'](_0x44424d))return!![];}return![];},this[_0x5b5d24(0x137)]=async _0x42f8e=>{const _0x3f9dd8=_0x5b5d24;if(!_0x42f8e[_0x3f9dd8(0x139)])return;if(!(_0x42f8e[_0x3f9dd8(0x148)]instanceof discord_js_1['TextChannel']))return;if(!_0x42f8e[_0x3f9dd8(0x145)]||!_0x42f8e[_0x3f9dd8(0x145)]['length'])return![];const _0x5cfdad=_0x42f8e[_0x3f9dd8(0x139)];if(_0x42f8e['member']&&_0x42f8e[_0x3f9dd8(0x13f)][_0x3f9dd8(0x143)][_0x3f9dd8(0x131)][_0x3f9dd8(0x12c)](_0x1d85cf=>_0x1d85cf['name']['toLowerCase']()===_0x3f9dd8(0x142)))return![];if(_0x42f8e[_0x3f9dd8(0x148)][_0x3f9dd8(0x135)](_0x42f8e['member'])&&_0x42f8e[_0x3f9dd8(0x148)]['permissionsFor'](_0x42f8e[_0x3f9dd8(0x13f)])[_0x3f9dd8(0x132)]([_0x3f9dd8(0x130),_0x3f9dd8(0x13a)]))return![];if(!_0x5cfdad[_0x3f9dd8(0x13d)]||!_0x5cfdad['document'][_0x3f9dd8(0x12d)]||!_0x5cfdad[_0x3f9dd8(0x13d)]['filters']['messageFilter']||!_0x5cfdad[_0x3f9dd8(0x13d)]['filters'][_0x3f9dd8(0x136)][_0x3f9dd8(0x134)]||!_0x5cfdad[_0x3f9dd8(0x13d)][_0x3f9dd8(0x12d)][_0x3f9dd8(0x136)]['patterns'])return![];if(this[_0x3f9dd8(0x12f)](_0x42f8e[_0x3f9dd8(0x145)],_0x5cfdad[_0x3f9dd8(0x13d)][_0x3f9dd8(0x12d)][_0x3f9dd8(0x136)]['patterns'])){_0x42f8e[_0x3f9dd8(0x13f)][_0x3f9dd8(0x13c)]('Violated\x20message\x20filter.');if(_0x42f8e[_0x3f9dd8(0x146)])_0x42f8e[_0x3f9dd8(0x144)]()[_0x3f9dd8(0x13b)](()=>{});return _0x5cfdad[_0x3f9dd8(0x13e)]({'event':_0x3f9dd8(0x136),'fields':[{'name':'User','value':_0x42f8e[_0x3f9dd8(0x147)][_0x3f9dd8(0x141)]+'\x20/\x20'+_0x42f8e[_0x3f9dd8(0x147)]['id']},{'name':_0x3f9dd8(0x140),'value':_0x42f8e[_0x3f9dd8(0x148)][_0x3f9dd8(0x12e)]+_0x3f9dd8(0x138)+_0x42f8e[_0x3f9dd8(0x148)]['id']}]})[_0x3f9dd8(0x13b)](()=>{}),!![];}return![];};}}; \ No newline at end of file diff --git a/listeners/channelCreate.js b/listeners/channelCreate.js index d57fd1287..0902c1c58 100644 --- a/listeners/channelCreate.js +++ b/listeners/channelCreate.js @@ -1 +1 @@ -const a173_0x2901=['Listener','Channel\x20Name','test','parent','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','GuildChannel','channelCreate','guild','apply','discord.js','LISTENER_MODE','exec','type','createLog','Channel\x20Category','Channel\x20ID','ChannelCreate','name'];(function(_0x368522,_0x351990){const _0x290167=function(_0x97f76d){while(--_0x97f76d){_0x368522['push'](_0x368522['shift']());}},_0x28f17d=function(){const _0x1f1148={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x38567e,_0x198985,_0x1c1c14,_0x47dbe0){_0x47dbe0=_0x47dbe0||{};let _0x24a20a=_0x198985+'='+_0x1c1c14,_0x76b5f4=0x0;for(let _0x410126=0x0,_0x53d808=_0x38567e['length'];_0x410126<_0x53d808;_0x410126++){const _0x3015b1=_0x38567e[_0x410126];_0x24a20a+=';\x20'+_0x3015b1;const _0x8df75=_0x38567e[_0x3015b1];_0x38567e['push'](_0x8df75),_0x53d808=_0x38567e['length'],_0x8df75!==!![]&&(_0x24a20a+='='+_0x8df75);}_0x47dbe0['cookie']=_0x24a20a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x457bbb,_0x3e819c){_0x457bbb=_0x457bbb||function(_0x381cfe){return _0x381cfe;};const _0x2490ee=_0x457bbb(new RegExp('(?:^|;\x20)'+_0x3e819c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2be2c5=function(_0x32da2d,_0x2cf8c8){_0x32da2d(++_0x2cf8c8);};return _0x2be2c5(_0x290167,_0x351990),_0x2490ee?decodeURIComponent(_0x2490ee[0x1]):undefined;}},_0x28f900=function(){const _0x4dc862=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4dc862['test'](_0x1f1148['removeCookie']['toString']());};_0x1f1148['updateCookie']=_0x28f900;let _0x250c34='';const _0xde1471=_0x1f1148['updateCookie']();if(!_0xde1471)_0x1f1148['setCookie'](['*'],'counter',0x1);else _0xde1471?_0x250c34=_0x1f1148['getCookie'](null,'counter'):_0x1f1148['removeCookie']();};_0x28f17d();}(a173_0x2901,0x133));const a173_0x28f1=function(_0x368522,_0x351990){_0x368522=_0x368522-0x1cf;let _0x290167=a173_0x2901[_0x368522];return _0x290167;};const _0x2292cd=a173_0x28f1,a173_0x28f900=function(){let _0xde1471=!![];return function(_0x38567e,_0x198985){const _0x1c1c14=_0xde1471?function(){const _0x527b6b=a173_0x28f1;if(_0x198985){const _0x47dbe0=_0x198985[_0x527b6b(0x1d2)](_0x38567e,arguments);return _0x198985=null,_0x47dbe0;}}:function(){};return _0xde1471=![],_0x1c1c14;};}(),a173_0x1f1148=a173_0x28f900(this,function(){const _0x24a20a=function(){const _0x59d967=a173_0x28f1,_0x76b5f4=_0x24a20a[_0x59d967(0x1e1)](_0x59d967(0x1e0))()[_0x59d967(0x1e1)](_0x59d967(0x1e2));return!_0x76b5f4[_0x59d967(0x1de)](a173_0x1f1148);};return _0x24a20a();});a173_0x1f1148();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require(_0x2292cd(0x1d3));module['exports']=class ChannelCreateListener extends tesseract_1[_0x2292cd(0x1dc)]{constructor(){const _0x183c0a=_0x2292cd;super(_0x183c0a(0x1d0),{'mode':tesseract_1['Constants'][_0x183c0a(0x1d4)]['ON']}),this[_0x183c0a(0x1d5)]=async _0x410126=>{const _0x5204e6=_0x183c0a;if(_0x410126 instanceof discord_js_1[_0x5204e6(0x1cf)]){const _0x53d808=_0x410126[_0x5204e6(0x1d1)];_0x53d808[_0x5204e6(0x1d7)]({'event':_0x410126[_0x5204e6(0x1d6)]+_0x5204e6(0x1da),'fields':[{'name':_0x5204e6(0x1dd),'value':_0x410126[_0x5204e6(0x1db)],'inline':!![]},{'name':_0x5204e6(0x1d9),'value':_0x410126['id'],'inline':!![]},{'name':_0x5204e6(0x1d8),'value':_0x410126[_0x5204e6(0x1df)]?_0x410126[_0x5204e6(0x1df)][_0x5204e6(0x1db)]:'-','inline':!![]}],'timestamp':_0x410126['createdTimestamp']});}};}}; \ No newline at end of file +const a174_0x5b6b=['Channel\x20Name','exports','exec','type','Listener','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','parent','createdTimestamp','channelCreate','Channel\x20Category','constructor','createLog','Constants','apply','LISTENER_MODE','discord.js','@bastion/tesseract','guild','test'];(function(_0xc54e0e,_0xd33d07){const _0x5b6b8c=function(_0x2fde0b){while(--_0x2fde0b){_0xc54e0e['push'](_0xc54e0e['shift']());}},_0x14bd04=function(){const _0x5a4d89={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x699555,_0x1b4fab,_0x13333d,_0x1a810a){_0x1a810a=_0x1a810a||{};let _0x346045=_0x1b4fab+'='+_0x13333d,_0x32ad01=0x0;for(let _0x3b04c4=0x0,_0x37be67=_0x699555['length'];_0x3b04c4<_0x37be67;_0x3b04c4++){const _0x28ee26=_0x699555[_0x3b04c4];_0x346045+=';\x20'+_0x28ee26;const _0x496d01=_0x699555[_0x28ee26];_0x699555['push'](_0x496d01),_0x37be67=_0x699555['length'],_0x496d01!==!![]&&(_0x346045+='='+_0x496d01);}_0x1a810a['cookie']=_0x346045;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1114b2,_0x54af95){_0x1114b2=_0x1114b2||function(_0xcbd163){return _0xcbd163;};const _0x499d97=_0x1114b2(new RegExp('(?:^|;\x20)'+_0x54af95['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x462143=function(_0x3eab67,_0x194fea){_0x3eab67(++_0x194fea);};return _0x462143(_0x5b6b8c,_0xd33d07),_0x499d97?decodeURIComponent(_0x499d97[0x1]):undefined;}},_0x322d2a=function(){const _0x43f847=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x43f847['test'](_0x5a4d89['removeCookie']['toString']());};_0x5a4d89['updateCookie']=_0x322d2a;let _0x2a2917='';const _0x53363b=_0x5a4d89['updateCookie']();if(!_0x53363b)_0x5a4d89['setCookie'](['*'],'counter',0x1);else _0x53363b?_0x2a2917=_0x5a4d89['getCookie'](null,'counter'):_0x5a4d89['removeCookie']();};_0x14bd04();}(a174_0x5b6b,0x18d));const a174_0x14bd=function(_0xc54e0e,_0xd33d07){_0xc54e0e=_0xc54e0e-0x136;let _0x5b6b8c=a174_0x5b6b[_0xc54e0e];return _0x5b6b8c;};const a174_0x37b341=a174_0x14bd,a174_0x322d2a=function(){let _0x53363b=!![];return function(_0x699555,_0x1b4fab){const _0x13333d=_0x53363b?function(){const _0x594775=a174_0x14bd;if(_0x1b4fab){const _0x1a810a=_0x1b4fab[_0x594775(0x147)](_0x699555,arguments);return _0x1b4fab=null,_0x1a810a;}}:function(){};return _0x53363b=![],_0x13333d;};}(),a174_0x5a4d89=a174_0x322d2a(this,function(){const _0x346045=function(){const _0x2f49be=a174_0x14bd,_0x32ad01=_0x346045[_0x2f49be(0x144)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x2f49be(0x144)](_0x2f49be(0x13e));return!_0x32ad01[_0x2f49be(0x138)](a174_0x5a4d89);};return _0x346045();});a174_0x5a4d89();'use strict';const tesseract_1=require(a174_0x37b341(0x136)),discord_js_1=require(a174_0x37b341(0x149));module[a174_0x37b341(0x13a)]=class ChannelCreateListener extends tesseract_1[a174_0x37b341(0x13d)]{constructor(){const _0x94351c=a174_0x37b341;super(_0x94351c(0x142),{'mode':tesseract_1[_0x94351c(0x146)][_0x94351c(0x148)]['ON']}),this[_0x94351c(0x13b)]=async _0x3b04c4=>{const _0x2160c2=_0x94351c;if(_0x3b04c4 instanceof discord_js_1['GuildChannel']){const _0x37be67=_0x3b04c4[_0x2160c2(0x137)];_0x37be67[_0x2160c2(0x145)]({'event':_0x3b04c4[_0x2160c2(0x13c)]+'ChannelCreate','fields':[{'name':_0x2160c2(0x139),'value':_0x3b04c4[_0x2160c2(0x13f)],'inline':!![]},{'name':'Channel\x20ID','value':_0x3b04c4['id'],'inline':!![]},{'name':_0x2160c2(0x143),'value':_0x3b04c4[_0x2160c2(0x140)]?_0x3b04c4[_0x2160c2(0x140)]['name']:'-','inline':!![]}],'timestamp':_0x3b04c4[_0x2160c2(0x141)]});}};}}; \ No newline at end of file diff --git a/listeners/channelDelete.js b/listeners/channelDelete.js index 76655c758..c3902b56c 100644 --- a/listeners/channelDelete.js +++ b/listeners/channelDelete.js @@ -1 +1 @@ -const a174_0x4d6b=['createLog','Listener','GuildChannel','name','exec','constructor','LISTENER_MODE','ChannelDelete','parent','channelDelete','Channel\x20Name','exports','guild','test','Constants','@bastion/tesseract'];(function(_0x5a516e,_0x25fc17){const _0x4d6b15=function(_0x270314){while(--_0x270314){_0x5a516e['push'](_0x5a516e['shift']());}},_0x103ae3=function(){const _0x2eb8b0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x16b75f,_0x30435e,_0x371d23,_0x3b5b4e){_0x3b5b4e=_0x3b5b4e||{};let _0x563651=_0x30435e+'='+_0x371d23,_0x19f5ad=0x0;for(let _0x5d7970=0x0,_0x27e493=_0x16b75f['length'];_0x5d7970<_0x27e493;_0x5d7970++){const _0x56252f=_0x16b75f[_0x5d7970];_0x563651+=';\x20'+_0x56252f;const _0x51613b=_0x16b75f[_0x56252f];_0x16b75f['push'](_0x51613b),_0x27e493=_0x16b75f['length'],_0x51613b!==!![]&&(_0x563651+='='+_0x51613b);}_0x3b5b4e['cookie']=_0x563651;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58bb9b,_0x11bf20){_0x58bb9b=_0x58bb9b||function(_0x150bfa){return _0x150bfa;};const _0x403356=_0x58bb9b(new RegExp('(?:^|;\x20)'+_0x11bf20['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4c022a=function(_0x4cd15c,_0x105d90){_0x4cd15c(++_0x105d90);};return _0x4c022a(_0x4d6b15,_0x25fc17),_0x403356?decodeURIComponent(_0x403356[0x1]):undefined;}},_0x172528=function(){const _0x5bfae2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5bfae2['test'](_0x2eb8b0['removeCookie']['toString']());};_0x2eb8b0['updateCookie']=_0x172528;let _0xda5947='';const _0x44ed3b=_0x2eb8b0['updateCookie']();if(!_0x44ed3b)_0x2eb8b0['setCookie'](['*'],'counter',0x1);else _0x44ed3b?_0xda5947=_0x2eb8b0['getCookie'](null,'counter'):_0x2eb8b0['removeCookie']();};_0x103ae3();}(a174_0x4d6b,0x1a9));const a174_0x103a=function(_0x5a516e,_0x25fc17){_0x5a516e=_0x5a516e-0x12a;let _0x4d6b15=a174_0x4d6b[_0x5a516e];return _0x4d6b15;};const _0x340c35=a174_0x103a,a174_0x172528=function(){let _0x44ed3b=!![];return function(_0x16b75f,_0x30435e){const _0x371d23=_0x44ed3b?function(){if(_0x30435e){const _0x3b5b4e=_0x30435e['apply'](_0x16b75f,arguments);return _0x30435e=null,_0x3b5b4e;}}:function(){};return _0x44ed3b=![],_0x371d23;};}(),a174_0x2eb8b0=a174_0x172528(this,function(){const _0x563651=function(){const _0x344a41=a174_0x103a,_0x19f5ad=_0x563651['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x344a41(0x136)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x19f5ad[_0x344a41(0x12e)](a174_0x2eb8b0);};return _0x563651();});a174_0x2eb8b0();'use strict';const tesseract_1=require(_0x340c35(0x130)),discord_js_1=require('discord.js');module[_0x340c35(0x12c)]=class ChannelDeleteListener extends tesseract_1[_0x340c35(0x132)]{constructor(){const _0x2fa758=_0x340c35;super(_0x2fa758(0x12a),{'mode':tesseract_1[_0x2fa758(0x12f)][_0x2fa758(0x137)]['ON']}),this[_0x2fa758(0x135)]=async _0x5d7970=>{const _0xd2f534=_0x2fa758;if(_0x5d7970 instanceof discord_js_1[_0xd2f534(0x133)]){const _0x27e493=_0x5d7970[_0xd2f534(0x12d)];_0x27e493[_0xd2f534(0x131)]({'event':_0x5d7970['type']+_0xd2f534(0x138),'fields':[{'name':_0xd2f534(0x12b),'value':_0x5d7970[_0xd2f534(0x134)],'inline':!![]},{'name':'Channel\x20Category','value':_0x5d7970['parent']?_0x5d7970[_0xd2f534(0x139)][_0xd2f534(0x134)]:'-','inline':!![]}]});}};}}; \ No newline at end of file +const a175_0x24e9=['Constants','Channel\x20Category','type','ChannelDelete','GuildChannel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','constructor','Listener','parent','LISTENER_MODE','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','exec','Channel\x20Name','channelDelete'];(function(_0x3ce71e,_0x59ec5a){const _0x24e978=function(_0x2908bd){while(--_0x2908bd){_0x3ce71e['push'](_0x3ce71e['shift']());}},_0xe53205=function(){const _0x6cb870={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x52aa8c,_0x5de117,_0x22560d,_0x4190b4){_0x4190b4=_0x4190b4||{};let _0x50b796=_0x5de117+'='+_0x22560d,_0x4529a6=0x0;for(let _0x382ae9=0x0,_0xf304e9=_0x52aa8c['length'];_0x382ae9<_0xf304e9;_0x382ae9++){const _0x4971f8=_0x52aa8c[_0x382ae9];_0x50b796+=';\x20'+_0x4971f8;const _0x1deea7=_0x52aa8c[_0x4971f8];_0x52aa8c['push'](_0x1deea7),_0xf304e9=_0x52aa8c['length'],_0x1deea7!==!![]&&(_0x50b796+='='+_0x1deea7);}_0x4190b4['cookie']=_0x50b796;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1b66e7,_0x3345c4){_0x1b66e7=_0x1b66e7||function(_0xa00bd1){return _0xa00bd1;};const _0x564da0=_0x1b66e7(new RegExp('(?:^|;\x20)'+_0x3345c4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3fa90e=function(_0x318292,_0x4a5204){_0x318292(++_0x4a5204);};return _0x3fa90e(_0x24e978,_0x59ec5a),_0x564da0?decodeURIComponent(_0x564da0[0x1]):undefined;}},_0x1c22dc=function(){const _0x4f5b59=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4f5b59['test'](_0x6cb870['removeCookie']['toString']());};_0x6cb870['updateCookie']=_0x1c22dc;let _0x42743b='';const _0x4cdb3c=_0x6cb870['updateCookie']();if(!_0x4cdb3c)_0x6cb870['setCookie'](['*'],'counter',0x1);else _0x4cdb3c?_0x42743b=_0x6cb870['getCookie'](null,'counter'):_0x6cb870['removeCookie']();};_0xe53205();}(a175_0x24e9,0x1c4));const a175_0xe532=function(_0x3ce71e,_0x59ec5a){_0x3ce71e=_0x3ce71e-0x1bf;let _0x24e978=a175_0x24e9[_0x3ce71e];return _0x24e978;};const a175_0x3abee6=a175_0xe532,a175_0x1c22dc=function(){let _0x4cdb3c=!![];return function(_0x52aa8c,_0x5de117){const _0x22560d=_0x4cdb3c?function(){if(_0x5de117){const _0x4190b4=_0x5de117['apply'](_0x52aa8c,arguments);return _0x5de117=null,_0x4190b4;}}:function(){};return _0x4cdb3c=![],_0x22560d;};}(),a175_0x6cb870=a175_0x1c22dc(this,function(){const _0x50b796=function(){const _0x575a2b=a175_0xe532,_0x4529a6=_0x50b796[_0x575a2b(0x1cd)](_0x575a2b(0x1cb))()[_0x575a2b(0x1cd)](_0x575a2b(0x1c1));return!_0x4529a6['test'](a175_0x6cb870);};return _0x50b796();});a175_0x6cb870();'use strict';const tesseract_1=require(a175_0x3abee6(0x1c2)),discord_js_1=require('discord.js');module['exports']=class ChannelDeleteListener extends tesseract_1[a175_0x3abee6(0x1ce)]{constructor(){const _0xb03440=a175_0x3abee6;super(_0xb03440(0x1c5),{'mode':tesseract_1[_0xb03440(0x1c6)][_0xb03440(0x1bf)]['ON']}),this[_0xb03440(0x1c3)]=async _0x382ae9=>{const _0x5b7de6=_0xb03440;if(_0x382ae9 instanceof discord_js_1[_0x5b7de6(0x1ca)]){const _0xf304e9=_0x382ae9[_0x5b7de6(0x1c0)];_0xf304e9['createLog']({'event':_0x382ae9[_0x5b7de6(0x1c8)]+_0x5b7de6(0x1c9),'fields':[{'name':_0x5b7de6(0x1c4),'value':_0x382ae9[_0x5b7de6(0x1cc)],'inline':!![]},{'name':_0x5b7de6(0x1c7),'value':_0x382ae9[_0x5b7de6(0x1cf)]?_0x382ae9['parent'][_0x5b7de6(0x1cc)]:'-','inline':!![]}]});}};}}; \ No newline at end of file diff --git a/listeners/channelUpdate.js b/listeners/channelUpdate.js index 2f6c24a42..8694aa174 100644 --- a/listeners/channelUpdate.js +++ b/listeners/channelUpdate.js @@ -1 +1 @@ -const a175_0x2afe=['Channel\x20ID','exports','parent','Old\x20Channel\x20Category','constructor','LISTENER_MODE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','name','channelUpdate','Listener','return\x20/\x22\x20+\x20this\x20+\x20\x22/','New\x20Channel\x20Category','Constants','parentID','type','push','Channel\x20Name','@bastion/tesseract','GuildChannel','Old\x20Channel\x20Name','test','guild'];(function(_0x17eaf7,_0x191c44){const _0x2afe21=function(_0x141ae7){while(--_0x141ae7){_0x17eaf7['push'](_0x17eaf7['shift']());}},_0x5d7989=function(){const _0x5067f0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xdc24e4,_0x31645a,_0x1e86d2,_0x5426ed){_0x5426ed=_0x5426ed||{};let _0x23b2c9=_0x31645a+'='+_0x1e86d2,_0x5f33f3=0x0;for(let _0x52ff09=0x0,_0x26c1fa=_0xdc24e4['length'];_0x52ff09<_0x26c1fa;_0x52ff09++){const _0xfce8a=_0xdc24e4[_0x52ff09];_0x23b2c9+=';\x20'+_0xfce8a;const _0x4276ec=_0xdc24e4[_0xfce8a];_0xdc24e4['push'](_0x4276ec),_0x26c1fa=_0xdc24e4['length'],_0x4276ec!==!![]&&(_0x23b2c9+='='+_0x4276ec);}_0x5426ed['cookie']=_0x23b2c9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x524df6,_0x37015b){_0x524df6=_0x524df6||function(_0x1ee7d3){return _0x1ee7d3;};const _0x3c0bbc=_0x524df6(new RegExp('(?:^|;\x20)'+_0x37015b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x276e69=function(_0x5ac326,_0x11089e){_0x5ac326(++_0x11089e);};return _0x276e69(_0x2afe21,_0x191c44),_0x3c0bbc?decodeURIComponent(_0x3c0bbc[0x1]):undefined;}},_0x42ebf6=function(){const _0xaa7991=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xaa7991['test'](_0x5067f0['removeCookie']['toString']());};_0x5067f0['updateCookie']=_0x42ebf6;let _0x17d3df='';const _0x5cf235=_0x5067f0['updateCookie']();if(!_0x5cf235)_0x5067f0['setCookie'](['*'],'counter',0x1);else _0x5cf235?_0x17d3df=_0x5067f0['getCookie'](null,'counter'):_0x5067f0['removeCookie']();};_0x5d7989();}(a175_0x2afe,0x195));const a175_0x5d79=function(_0x17eaf7,_0x191c44){_0x17eaf7=_0x17eaf7-0xff;let _0x2afe21=a175_0x2afe[_0x17eaf7];return _0x2afe21;};const _0x49e005=a175_0x5d79,a175_0x42ebf6=function(){let _0x5cf235=!![];return function(_0xdc24e4,_0x31645a){const _0x1e86d2=_0x5cf235?function(){if(_0x31645a){const _0x5426ed=_0x31645a['apply'](_0xdc24e4,arguments);return _0x31645a=null,_0x5426ed;}}:function(){};return _0x5cf235=![],_0x1e86d2;};}(),a175_0x5067f0=a175_0x42ebf6(this,function(){const _0x23b2c9=function(){const _0x4e822d=a175_0x5d79,_0x5f33f3=_0x23b2c9[_0x4e822d(0x110)](_0x4e822d(0x100))()['constructor'](_0x4e822d(0x112));return!_0x5f33f3[_0x4e822d(0x10a)](a175_0x5067f0);};return _0x23b2c9();});a175_0x5067f0();'use strict';const tesseract_1=require(_0x49e005(0x107)),discord_js_1=require('discord.js');module[_0x49e005(0x10d)]=class ChannelUpdateListener extends tesseract_1[_0x49e005(0xff)]{constructor(){const _0x451acf=_0x49e005;super(_0x451acf(0x114),{'mode':tesseract_1[_0x451acf(0x102)][_0x451acf(0x111)]['ON']}),this['exec']=async(_0x52ff09,_0x26c1fa)=>{const _0xe0fa4b=_0x451acf;if(_0x52ff09 instanceof discord_js_1[_0xe0fa4b(0x108)]&&_0x26c1fa instanceof discord_js_1[_0xe0fa4b(0x108)]){if(_0x52ff09[_0xe0fa4b(0x113)]===_0x26c1fa[_0xe0fa4b(0x113)]&&_0x52ff09['parentID']===_0x26c1fa['parentID'])return;const _0xfce8a=[{'name':_0xe0fa4b(0x10c),'value':_0x52ff09['id'],'inline':!![]}];_0x52ff09[_0xe0fa4b(0x113)]===_0x26c1fa['name']?_0xfce8a[_0xe0fa4b(0x105)]({'name':_0xe0fa4b(0x106),'value':_0x52ff09[_0xe0fa4b(0x113)],'inline':!![]}):_0xfce8a[_0xe0fa4b(0x105)]({'name':_0xe0fa4b(0x109),'value':_0x52ff09[_0xe0fa4b(0x113)],'inline':!![]},{'name':'New\x20Channel\x20Name','value':_0x26c1fa['name'],'inline':!![]});_0x52ff09[_0xe0fa4b(0x103)]===_0x26c1fa['parentID']?_0xfce8a[_0xe0fa4b(0x105)]({'name':'Channel\x20Category','value':_0x52ff09[_0xe0fa4b(0x10e)]?_0x52ff09[_0xe0fa4b(0x10e)]['name']:'-','inline':!![]}):_0xfce8a[_0xe0fa4b(0x105)]({'name':_0xe0fa4b(0x10f),'value':_0x52ff09['parent']?_0x52ff09['parent'][_0xe0fa4b(0x113)]:'-','inline':!![]},{'name':_0xe0fa4b(0x101),'value':_0x26c1fa['parent']?_0x26c1fa['parent'][_0xe0fa4b(0x113)]:'-','inline':!![]});const _0x4276ec=_0x52ff09[_0xe0fa4b(0x10b)];_0x4276ec['createLog']({'event':_0x26c1fa[_0xe0fa4b(0x104)]+'ChannelUpdate','fields':_0xfce8a});}};}}; \ No newline at end of file +const a176_0x1c57=['Channel\x20Category','Channel\x20ID','apply','Old\x20Channel\x20Category','guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GuildChannel','parentID','push','@bastion/tesseract','LISTENER_MODE','constructor','Channel\x20Name','ChannelUpdate','discord.js','Old\x20Channel\x20Name','New\x20Channel\x20Category','createLog','parent','channelUpdate','New\x20Channel\x20Name','exports','Listener','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','name'];(function(_0x99e339,_0x498721){const _0x1c5752=function(_0x58e704){while(--_0x58e704){_0x99e339['push'](_0x99e339['shift']());}},_0x3ee826=function(){const _0x43f2ef={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x47a5c3,_0x1a47cc,_0x17ed7d,_0x26325a){_0x26325a=_0x26325a||{};let _0x36630c=_0x1a47cc+'='+_0x17ed7d,_0x4930d2=0x0;for(let _0xa03634=0x0,_0x368bbe=_0x47a5c3['length'];_0xa03634<_0x368bbe;_0xa03634++){const _0x368be0=_0x47a5c3[_0xa03634];_0x36630c+=';\x20'+_0x368be0;const _0x3ff745=_0x47a5c3[_0x368be0];_0x47a5c3['push'](_0x3ff745),_0x368bbe=_0x47a5c3['length'],_0x3ff745!==!![]&&(_0x36630c+='='+_0x3ff745);}_0x26325a['cookie']=_0x36630c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x35fbbb,_0x39c4c2){_0x35fbbb=_0x35fbbb||function(_0x3788bc){return _0x3788bc;};const _0x1c7d3e=_0x35fbbb(new RegExp('(?:^|;\x20)'+_0x39c4c2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2aaa3d=function(_0x12573c,_0x41b14e){_0x12573c(++_0x41b14e);};return _0x2aaa3d(_0x1c5752,_0x498721),_0x1c7d3e?decodeURIComponent(_0x1c7d3e[0x1]):undefined;}},_0x5449b0=function(){const _0x531157=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x531157['test'](_0x43f2ef['removeCookie']['toString']());};_0x43f2ef['updateCookie']=_0x5449b0;let _0x530ea6='';const _0x48192a=_0x43f2ef['updateCookie']();if(!_0x48192a)_0x43f2ef['setCookie'](['*'],'counter',0x1);else _0x48192a?_0x530ea6=_0x43f2ef['getCookie'](null,'counter'):_0x43f2ef['removeCookie']();};_0x3ee826();}(a176_0x1c57,0x173));const a176_0x3ee8=function(_0x99e339,_0x498721){_0x99e339=_0x99e339-0xd6;let _0x1c5752=a176_0x1c57[_0x99e339];return _0x1c5752;};const a176_0x45daf1=a176_0x3ee8,a176_0x5449b0=function(){let _0x48192a=!![];return function(_0x47a5c3,_0x1a47cc){const _0x17ed7d=_0x48192a?function(){const _0x127f91=a176_0x3ee8;if(_0x1a47cc){const _0x26325a=_0x1a47cc[_0x127f91(0xeb)](_0x47a5c3,arguments);return _0x1a47cc=null,_0x26325a;}}:function(){};return _0x48192a=![],_0x17ed7d;};}(),a176_0x43f2ef=a176_0x5449b0(this,function(){const _0x36630c=function(){const _0x1fe05c=a176_0x3ee8,_0x4930d2=_0x36630c[_0x1fe05c(0xda)](_0x1fe05c(0xee))()[_0x1fe05c(0xda)](_0x1fe05c(0xe6));return!_0x4930d2[_0x1fe05c(0xe7)](a176_0x43f2ef);};return _0x36630c();});a176_0x43f2ef();'use strict';const tesseract_1=require(a176_0x45daf1(0xd8)),discord_js_1=require(a176_0x45daf1(0xdd));module[a176_0x45daf1(0xe4)]=class ChannelUpdateListener extends tesseract_1[a176_0x45daf1(0xe5)]{constructor(){const _0x96d950=a176_0x45daf1;super(_0x96d950(0xe2),{'mode':tesseract_1['Constants'][_0x96d950(0xd9)]['ON']}),this['exec']=async(_0xa03634,_0x368bbe)=>{const _0x159416=_0x96d950;if(_0xa03634 instanceof discord_js_1[_0x159416(0xef)]&&_0x368bbe instanceof discord_js_1[_0x159416(0xef)]){if(_0xa03634[_0x159416(0xe8)]===_0x368bbe[_0x159416(0xe8)]&&_0xa03634[_0x159416(0xd6)]===_0x368bbe[_0x159416(0xd6)])return;const _0x368be0=[{'name':_0x159416(0xea),'value':_0xa03634['id'],'inline':!![]}];_0xa03634[_0x159416(0xe8)]===_0x368bbe[_0x159416(0xe8)]?_0x368be0[_0x159416(0xd7)]({'name':_0x159416(0xdb),'value':_0xa03634[_0x159416(0xe8)],'inline':!![]}):_0x368be0[_0x159416(0xd7)]({'name':_0x159416(0xde),'value':_0xa03634[_0x159416(0xe8)],'inline':!![]},{'name':_0x159416(0xe3),'value':_0x368bbe[_0x159416(0xe8)],'inline':!![]});_0xa03634[_0x159416(0xd6)]===_0x368bbe[_0x159416(0xd6)]?_0x368be0[_0x159416(0xd7)]({'name':_0x159416(0xe9),'value':_0xa03634[_0x159416(0xe1)]?_0xa03634[_0x159416(0xe1)][_0x159416(0xe8)]:'-','inline':!![]}):_0x368be0[_0x159416(0xd7)]({'name':_0x159416(0xec),'value':_0xa03634[_0x159416(0xe1)]?_0xa03634[_0x159416(0xe1)]['name']:'-','inline':!![]},{'name':_0x159416(0xdf),'value':_0x368bbe[_0x159416(0xe1)]?_0x368bbe['parent'][_0x159416(0xe8)]:'-','inline':!![]});const _0x3ff745=_0xa03634[_0x159416(0xed)];_0x3ff745[_0x159416(0xe0)]({'event':_0x368bbe['type']+_0x159416(0xdc),'fields':_0x368be0});}};}}; \ No newline at end of file diff --git a/listeners/emojiCreate.js b/listeners/emojiCreate.js index 3478f7f58..03af8126b 100644 --- a/listeners/emojiCreate.js +++ b/listeners/emojiCreate.js @@ -1 +1 @@ -const a176_0x56e1=['apply','createdTimestamp','identifier','Emoji\x20Name','exports','emojiCreate','Listener','Emoji\x20Identifier','createLog','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','managed','Constants','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','LISTENER_MODE','guild'];(function(_0x53bbe3,_0x1f3990){const _0x56e14b=function(_0x3eba92){while(--_0x3eba92){_0x53bbe3['push'](_0x53bbe3['shift']());}},_0x40774d=function(){const _0x5e3e1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2aabf1,_0x22e313,_0xaaeb79,_0x2222d0){_0x2222d0=_0x2222d0||{};let _0x3e77e9=_0x22e313+'='+_0xaaeb79,_0x28c4b2=0x0;for(let _0x7eb1cd=0x0,_0xb49fd6=_0x2aabf1['length'];_0x7eb1cd<_0xb49fd6;_0x7eb1cd++){const _0x3e99f3=_0x2aabf1[_0x7eb1cd];_0x3e77e9+=';\x20'+_0x3e99f3;const _0xe01a4e=_0x2aabf1[_0x3e99f3];_0x2aabf1['push'](_0xe01a4e),_0xb49fd6=_0x2aabf1['length'],_0xe01a4e!==!![]&&(_0x3e77e9+='='+_0xe01a4e);}_0x2222d0['cookie']=_0x3e77e9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c20a8,_0x165e07){_0x5c20a8=_0x5c20a8||function(_0x4a0aa9){return _0x4a0aa9;};const _0x2cf750=_0x5c20a8(new RegExp('(?:^|;\x20)'+_0x165e07['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3c4f1d=function(_0xd7d15b,_0x54caca){_0xd7d15b(++_0x54caca);};return _0x3c4f1d(_0x56e14b,_0x1f3990),_0x2cf750?decodeURIComponent(_0x2cf750[0x1]):undefined;}},_0x1b5c51=function(){const _0x5b435e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5b435e['test'](_0x5e3e1['removeCookie']['toString']());};_0x5e3e1['updateCookie']=_0x1b5c51;let _0xad0f7f='';const _0x57a6a2=_0x5e3e1['updateCookie']();if(!_0x57a6a2)_0x5e3e1['setCookie'](['*'],'counter',0x1);else _0x57a6a2?_0xad0f7f=_0x5e3e1['getCookie'](null,'counter'):_0x5e3e1['removeCookie']();};_0x40774d();}(a176_0x56e1,0xc1));const a176_0x4077=function(_0x53bbe3,_0x1f3990){_0x53bbe3=_0x53bbe3-0xf9;let _0x56e14b=a176_0x56e1[_0x53bbe3];return _0x56e14b;};const _0x141d53=a176_0x4077,a176_0x1b5c51=function(){let _0x57a6a2=!![];return function(_0x2aabf1,_0x22e313){const _0xaaeb79=_0x57a6a2?function(){const _0x3d8584=a176_0x4077;if(_0x22e313){const _0x2222d0=_0x22e313[_0x3d8584(0x104)](_0x2aabf1,arguments);return _0x22e313=null,_0x2222d0;}}:function(){};return _0x57a6a2=![],_0xaaeb79;};}(),a176_0x5e3e1=a176_0x1b5c51(this,function(){const _0x3e77e9=function(){const _0x4133db=a176_0x4077,_0x28c4b2=_0x3e77e9['constructor'](_0x4133db(0x100))()[_0x4133db(0xff)](_0x4133db(0xfc));return!_0x28c4b2['test'](a176_0x5e3e1);};return _0x3e77e9();});a176_0x5e3e1();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x141d53(0x108)]=class EmojiCreateListener extends tesseract_1[_0x141d53(0xf9)]{constructor(){const _0x2cd8f1=_0x141d53;super(_0x2cd8f1(0x109),{'mode':tesseract_1[_0x2cd8f1(0xfe)][_0x2cd8f1(0x102)]['ON']}),this[_0x2cd8f1(0x101)]=async _0x7eb1cd=>{const _0x48e92c=_0x2cd8f1,_0xb49fd6=_0x7eb1cd[_0x48e92c(0x103)];_0xb49fd6[_0x48e92c(0xfb)]({'event':_0x48e92c(0x109),'fields':[{'name':_0x48e92c(0x107),'value':_0x7eb1cd['name'],'inline':!![]},{'name':'Emoji\x20ID','value':_0x7eb1cd['id'],'inline':!![]},{'name':_0x48e92c(0xfa),'value':_0x7eb1cd[_0x48e92c(0x106)],'inline':!![]}],'footer':_0x7eb1cd[_0x48e92c(0xfd)]?'Managed':undefined,'timestamp':_0x7eb1cd[_0x48e92c(0x105)]});};}}; \ No newline at end of file +const a177_0x4357=['Listener','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Emoji\x20ID','Managed','name','constructor','test','Constants','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Emoji\x20Name','identifier','emojiCreate','@bastion/tesseract','exports','Emoji\x20Identifier','exec'];(function(_0x4d49cf,_0x41fef8){const _0x435725=function(_0x37929e){while(--_0x37929e){_0x4d49cf['push'](_0x4d49cf['shift']());}},_0x1e5077=function(){const _0x43b1dc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x25c66a,_0xc470bd,_0x5a0177,_0x44befd){_0x44befd=_0x44befd||{};let _0x4936f4=_0xc470bd+'='+_0x5a0177,_0x10727f=0x0;for(let _0x5d6d02=0x0,_0x330b62=_0x25c66a['length'];_0x5d6d02<_0x330b62;_0x5d6d02++){const _0x59294c=_0x25c66a[_0x5d6d02];_0x4936f4+=';\x20'+_0x59294c;const _0x3bdda9=_0x25c66a[_0x59294c];_0x25c66a['push'](_0x3bdda9),_0x330b62=_0x25c66a['length'],_0x3bdda9!==!![]&&(_0x4936f4+='='+_0x3bdda9);}_0x44befd['cookie']=_0x4936f4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4a3255,_0x2ecc06){_0x4a3255=_0x4a3255||function(_0x188123){return _0x188123;};const _0x12634a=_0x4a3255(new RegExp('(?:^|;\x20)'+_0x2ecc06['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x532c97=function(_0x566efe,_0x15416c){_0x566efe(++_0x15416c);};return _0x532c97(_0x435725,_0x41fef8),_0x12634a?decodeURIComponent(_0x12634a[0x1]):undefined;}},_0xf02ffe=function(){const _0x294f6f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x294f6f['test'](_0x43b1dc['removeCookie']['toString']());};_0x43b1dc['updateCookie']=_0xf02ffe;let _0x227c79='';const _0x5c559e=_0x43b1dc['updateCookie']();if(!_0x5c559e)_0x43b1dc['setCookie'](['*'],'counter',0x1);else _0x5c559e?_0x227c79=_0x43b1dc['getCookie'](null,'counter'):_0x43b1dc['removeCookie']();};_0x1e5077();}(a177_0x4357,0x16f));const a177_0x1e50=function(_0x4d49cf,_0x41fef8){_0x4d49cf=_0x4d49cf-0xbf;let _0x435725=a177_0x4357[_0x4d49cf];return _0x435725;};const a177_0x36da7b=a177_0x1e50,a177_0xf02ffe=function(){let _0x5c559e=!![];return function(_0x25c66a,_0xc470bd){const _0x5a0177=_0x5c559e?function(){if(_0xc470bd){const _0x44befd=_0xc470bd['apply'](_0x25c66a,arguments);return _0xc470bd=null,_0x44befd;}}:function(){};return _0x5c559e=![],_0x5a0177;};}(),a177_0x43b1dc=a177_0xf02ffe(this,function(){const _0x4936f4=function(){const _0x4b23b5=a177_0x1e50,_0x10727f=_0x4936f4[_0x4b23b5(0xcb)](_0x4b23b5(0xc7))()['constructor'](_0x4b23b5(0xcf));return!_0x10727f[_0x4b23b5(0xcc)](a177_0x43b1dc);};return _0x4936f4();});a177_0x43b1dc();'use strict';const tesseract_1=require(a177_0x36da7b(0xc2));module[a177_0x36da7b(0xc3)]=class EmojiCreateListener extends tesseract_1[a177_0x36da7b(0xc6)]{constructor(){const _0x464e37=a177_0x36da7b;super(_0x464e37(0xc1),{'mode':tesseract_1[_0x464e37(0xcd)]['LISTENER_MODE']['ON']}),this[_0x464e37(0xc5)]=async _0x5d6d02=>{const _0x51eff5=_0x464e37,_0x330b62=_0x5d6d02[_0x51eff5(0xce)];_0x330b62['createLog']({'event':_0x51eff5(0xc1),'fields':[{'name':_0x51eff5(0xbf),'value':_0x5d6d02[_0x51eff5(0xca)],'inline':!![]},{'name':_0x51eff5(0xc8),'value':_0x5d6d02['id'],'inline':!![]},{'name':_0x51eff5(0xc4),'value':_0x5d6d02[_0x51eff5(0xc0)],'inline':!![]}],'footer':_0x5d6d02['managed']?_0x51eff5(0xc9):undefined,'timestamp':_0x5d6d02['createdTimestamp']});};}}; \ No newline at end of file diff --git a/listeners/emojiDelete.js b/listeners/emojiDelete.js index fb1bcad72..28b8b30bf 100644 --- a/listeners/emojiDelete.js +++ b/listeners/emojiDelete.js @@ -1 +1 @@ -const a177_0x4adf=['constructor','test','Emoji\x20Name','createLog','LISTENER_MODE','apply','Managed','@bastion/tesseract','identifier','exec','exports','Listener','emojiDelete'];(function(_0x27bbdb,_0x5cb188){const _0x4adfc7=function(_0x2a7a62){while(--_0x2a7a62){_0x27bbdb['push'](_0x27bbdb['shift']());}},_0x14d58b=function(){const _0x236192={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x39c5a6,_0xcea168,_0x4fd40d,_0x402282){_0x402282=_0x402282||{};let _0x44683d=_0xcea168+'='+_0x4fd40d,_0x5940ce=0x0;for(let _0x2e92b4=0x0,_0x4d313a=_0x39c5a6['length'];_0x2e92b4<_0x4d313a;_0x2e92b4++){const _0x280410=_0x39c5a6[_0x2e92b4];_0x44683d+=';\x20'+_0x280410;const _0x431bd3=_0x39c5a6[_0x280410];_0x39c5a6['push'](_0x431bd3),_0x4d313a=_0x39c5a6['length'],_0x431bd3!==!![]&&(_0x44683d+='='+_0x431bd3);}_0x402282['cookie']=_0x44683d;},'removeCookie':function(){return'dev';},'getCookie':function(_0xf8c9da,_0x258368){_0xf8c9da=_0xf8c9da||function(_0x2479e9){return _0x2479e9;};const _0x55420e=_0xf8c9da(new RegExp('(?:^|;\x20)'+_0x258368['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41d580=function(_0x5584db,_0xabf353){_0x5584db(++_0xabf353);};return _0x41d580(_0x4adfc7,_0x5cb188),_0x55420e?decodeURIComponent(_0x55420e[0x1]):undefined;}},_0x1e03ff=function(){const _0x20f3b1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x20f3b1['test'](_0x236192['removeCookie']['toString']());};_0x236192['updateCookie']=_0x1e03ff;let _0x5d6c9f='';const _0x344e36=_0x236192['updateCookie']();if(!_0x344e36)_0x236192['setCookie'](['*'],'counter',0x1);else _0x344e36?_0x5d6c9f=_0x236192['getCookie'](null,'counter'):_0x236192['removeCookie']();};_0x14d58b();}(a177_0x4adf,0x1bc));const a177_0x14d5=function(_0x27bbdb,_0x5cb188){_0x27bbdb=_0x27bbdb-0x1e3;let _0x4adfc7=a177_0x4adf[_0x27bbdb];return _0x4adfc7;};const _0x43ce0b=a177_0x14d5,a177_0x1e03ff=function(){let _0x344e36=!![];return function(_0x39c5a6,_0xcea168){const _0x4fd40d=_0x344e36?function(){const _0x11469d=a177_0x14d5;if(_0xcea168){const _0x402282=_0xcea168[_0x11469d(0x1e6)](_0x39c5a6,arguments);return _0xcea168=null,_0x402282;}}:function(){};return _0x344e36=![],_0x4fd40d;};}(),a177_0x236192=a177_0x1e03ff(this,function(){const _0x44683d=function(){const _0x452b10=a177_0x14d5,_0x5940ce=_0x44683d[_0x452b10(0x1ee)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x452b10(0x1ee)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5940ce[_0x452b10(0x1ef)](a177_0x236192);};return _0x44683d();});a177_0x236192();'use strict';const tesseract_1=require(_0x43ce0b(0x1e8));module[_0x43ce0b(0x1eb)]=class EmojiDeleteListener extends tesseract_1[_0x43ce0b(0x1ec)]{constructor(){const _0x1a1d3e=_0x43ce0b;super(_0x1a1d3e(0x1ed),{'mode':tesseract_1['Constants'][_0x1a1d3e(0x1e5)]['ON']}),this[_0x1a1d3e(0x1ea)]=async _0x2e92b4=>{const _0x2be89f=_0x1a1d3e,_0x4d313a=_0x2e92b4['guild'];_0x4d313a[_0x2be89f(0x1e4)]({'event':_0x2be89f(0x1ed),'fields':[{'name':_0x2be89f(0x1e3),'value':_0x2e92b4['name'],'inline':!![]},{'name':'Emoji\x20Identifier','value':_0x2e92b4[_0x2be89f(0x1e9)],'inline':!![]}],'footer':_0x2e92b4['managed']?_0x2be89f(0x1e7):undefined,'timestamp':_0x2e92b4['createdTimestamp']});};}}; \ No newline at end of file +const a178_0x15dc=['exec','createdTimestamp','emojiDelete','exports','Constants','@bastion/tesseract','LISTENER_MODE','Emoji\x20Identifier','createLog','Managed','return\x20/\x22\x20+\x20this\x20+\x20\x22/','managed','Emoji\x20Name','name'];(function(_0x408ee8,_0x54cb9e){const _0x15dcb9=function(_0x180860){while(--_0x180860){_0x408ee8['push'](_0x408ee8['shift']());}},_0x41c1fb=function(){const _0x376b8c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4f5e4d,_0x4627ee,_0x2459d4,_0x5da5cf){_0x5da5cf=_0x5da5cf||{};let _0x4d2d71=_0x4627ee+'='+_0x2459d4,_0x179089=0x0;for(let _0x5dc7d7=0x0,_0x4fe2ac=_0x4f5e4d['length'];_0x5dc7d7<_0x4fe2ac;_0x5dc7d7++){const _0x5c138c=_0x4f5e4d[_0x5dc7d7];_0x4d2d71+=';\x20'+_0x5c138c;const _0x4cc43f=_0x4f5e4d[_0x5c138c];_0x4f5e4d['push'](_0x4cc43f),_0x4fe2ac=_0x4f5e4d['length'],_0x4cc43f!==!![]&&(_0x4d2d71+='='+_0x4cc43f);}_0x5da5cf['cookie']=_0x4d2d71;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2c252e,_0x13b413){_0x2c252e=_0x2c252e||function(_0x4e782b){return _0x4e782b;};const _0x515778=_0x2c252e(new RegExp('(?:^|;\x20)'+_0x13b413['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x542847=function(_0x1291c2,_0x20856d){_0x1291c2(++_0x20856d);};return _0x542847(_0x15dcb9,_0x54cb9e),_0x515778?decodeURIComponent(_0x515778[0x1]):undefined;}},_0x2eb891=function(){const _0x22dc67=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22dc67['test'](_0x376b8c['removeCookie']['toString']());};_0x376b8c['updateCookie']=_0x2eb891;let _0xf04547='';const _0x7bc46f=_0x376b8c['updateCookie']();if(!_0x7bc46f)_0x376b8c['setCookie'](['*'],'counter',0x1);else _0x7bc46f?_0xf04547=_0x376b8c['getCookie'](null,'counter'):_0x376b8c['removeCookie']();};_0x41c1fb();}(a178_0x15dc,0x17b));const a178_0x41c1=function(_0x408ee8,_0x54cb9e){_0x408ee8=_0x408ee8-0x1b2;let _0x15dcb9=a178_0x15dc[_0x408ee8];return _0x15dcb9;};const a178_0x49cbe2=a178_0x41c1,a178_0x2eb891=function(){let _0x7bc46f=!![];return function(_0x4f5e4d,_0x4627ee){const _0x2459d4=_0x7bc46f?function(){if(_0x4627ee){const _0x5da5cf=_0x4627ee['apply'](_0x4f5e4d,arguments);return _0x4627ee=null,_0x5da5cf;}}:function(){};return _0x7bc46f=![],_0x2459d4;};}(),a178_0x376b8c=a178_0x2eb891(this,function(){const _0x4d2d71=function(){const _0x16dea3=a178_0x41c1,_0x179089=_0x4d2d71['constructor'](_0x16dea3(0x1bb))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x179089['test'](a178_0x376b8c);};return _0x4d2d71();});a178_0x376b8c();'use strict';const tesseract_1=require(a178_0x49cbe2(0x1b6));module[a178_0x49cbe2(0x1b4)]=class EmojiDeleteListener extends tesseract_1['Listener']{constructor(){const _0x177186=a178_0x49cbe2;super(_0x177186(0x1b3),{'mode':tesseract_1[_0x177186(0x1b5)][_0x177186(0x1b7)]['ON']}),this[_0x177186(0x1bf)]=async _0x5dc7d7=>{const _0x251047=_0x177186,_0x4fe2ac=_0x5dc7d7['guild'];_0x4fe2ac[_0x251047(0x1b9)]({'event':'emojiDelete','fields':[{'name':_0x251047(0x1bd),'value':_0x5dc7d7[_0x251047(0x1be)],'inline':!![]},{'name':_0x251047(0x1b8),'value':_0x5dc7d7['identifier'],'inline':!![]}],'footer':_0x5dc7d7[_0x251047(0x1bc)]?_0x251047(0x1ba):undefined,'timestamp':_0x5dc7d7[_0x251047(0x1b2)]});};}}; \ No newline at end of file diff --git a/listeners/emojiUpdate.js b/listeners/emojiUpdate.js index 2682cfc60..c2ff1773d 100644 --- a/listeners/emojiUpdate.js +++ b/listeners/emojiUpdate.js @@ -1 +1 @@ -const a178_0xff92=['New\x20Emoji\x20Name','managed','Old\x20Emoji\x20Name','@bastion/tesseract','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Listener','name','Emoji\x20ID','Constants','LISTENER_MODE','Managed','exports','createdTimestamp','emojiUpdate','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','apply'];(function(_0x58a661,_0x49d8e9){const _0xff923d=function(_0x25f9a9){while(--_0x25f9a9){_0x58a661['push'](_0x58a661['shift']());}},_0x347812=function(){const _0x44eac8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f549c,_0x2c0a50,_0x29169c,_0x595d30){_0x595d30=_0x595d30||{};let _0x187578=_0x2c0a50+'='+_0x29169c,_0xc7b96c=0x0;for(let _0x4f63e0=0x0,_0x159568=_0x5f549c['length'];_0x4f63e0<_0x159568;_0x4f63e0++){const _0x4f9e70=_0x5f549c[_0x4f63e0];_0x187578+=';\x20'+_0x4f9e70;const _0x302973=_0x5f549c[_0x4f9e70];_0x5f549c['push'](_0x302973),_0x159568=_0x5f549c['length'],_0x302973!==!![]&&(_0x187578+='='+_0x302973);}_0x595d30['cookie']=_0x187578;},'removeCookie':function(){return'dev';},'getCookie':function(_0x31d3b3,_0x3424a6){_0x31d3b3=_0x31d3b3||function(_0x4eb03a){return _0x4eb03a;};const _0x5044ca=_0x31d3b3(new RegExp('(?:^|;\x20)'+_0x3424a6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x20c0ee=function(_0x2a2faa,_0x56916a){_0x2a2faa(++_0x56916a);};return _0x20c0ee(_0xff923d,_0x49d8e9),_0x5044ca?decodeURIComponent(_0x5044ca[0x1]):undefined;}},_0x4e66d7=function(){const _0x3acb63=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3acb63['test'](_0x44eac8['removeCookie']['toString']());};_0x44eac8['updateCookie']=_0x4e66d7;let _0xbc74db='';const _0x25f1e2=_0x44eac8['updateCookie']();if(!_0x25f1e2)_0x44eac8['setCookie'](['*'],'counter',0x1);else _0x25f1e2?_0xbc74db=_0x44eac8['getCookie'](null,'counter'):_0x44eac8['removeCookie']();};_0x347812();}(a178_0xff92,0xf1));const a178_0x3478=function(_0x58a661,_0x49d8e9){_0x58a661=_0x58a661-0xfd;let _0xff923d=a178_0xff92[_0x58a661];return _0xff923d;};const _0x36ff2e=a178_0x3478,a178_0x4e66d7=function(){let _0x25f1e2=!![];return function(_0x5f549c,_0x2c0a50){const _0x29169c=_0x25f1e2?function(){const _0x2f5d11=a178_0x3478;if(_0x2c0a50){const _0x595d30=_0x2c0a50[_0x2f5d11(0x10a)](_0x5f549c,arguments);return _0x2c0a50=null,_0x595d30;}}:function(){};return _0x25f1e2=![],_0x29169c;};}(),a178_0x44eac8=a178_0x4e66d7(this,function(){const _0x187578=function(){const _0x470ae2=a178_0x3478,_0xc7b96c=_0x187578[_0x470ae2(0x109)](_0x470ae2(0x108))()[_0x470ae2(0x109)](_0x470ae2(0xfe));return!_0xc7b96c['test'](a178_0x44eac8);};return _0x187578();});a178_0x44eac8();'use strict';const tesseract_1=require(_0x36ff2e(0xfd));module[_0x36ff2e(0x105)]=class EmojiUpdateListener extends tesseract_1[_0x36ff2e(0xff)]{constructor(){const _0x55ccc2=_0x36ff2e;super(_0x55ccc2(0x107),{'mode':tesseract_1[_0x55ccc2(0x102)][_0x55ccc2(0x103)]['ON']}),this['exec']=async(_0x4f63e0,_0x159568)=>{const _0x169df7=_0x55ccc2;if(_0x4f63e0[_0x169df7(0x100)]===_0x159568[_0x169df7(0x100)])return;const _0x4f9e70=_0x4f63e0['guild'];_0x4f9e70['createLog']({'event':_0x169df7(0x107),'fields':[{'name':_0x169df7(0x101),'value':_0x4f63e0['id'],'inline':!![]},{'name':_0x169df7(0x10d),'value':_0x4f63e0['name'],'inline':!![]},{'name':_0x169df7(0x10b),'value':_0x159568['name'],'inline':!![]}],'footer':_0x4f63e0[_0x169df7(0x10c)]?_0x169df7(0x104):undefined,'timestamp':_0x4f63e0[_0x169df7(0x106)]});};}}; \ No newline at end of file +const a179_0x5e53=['Constants','exports','Old\x20Emoji\x20Name','test','createdTimestamp','managed','guild','exec','Listener','apply','name','constructor','createLog','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','emojiUpdate'];(function(_0x205c8e,_0x19701d){const _0x5e5359=function(_0x4b991e){while(--_0x4b991e){_0x205c8e['push'](_0x205c8e['shift']());}},_0x536e6e=function(){const _0x34aa81={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x41f7fb,_0x5aad1d,_0x5ef6ec,_0x84f36f){_0x84f36f=_0x84f36f||{};let _0x3c1e29=_0x5aad1d+'='+_0x5ef6ec,_0x306bbb=0x0;for(let _0x5a07e5=0x0,_0xd6342e=_0x41f7fb['length'];_0x5a07e5<_0xd6342e;_0x5a07e5++){const _0x1af533=_0x41f7fb[_0x5a07e5];_0x3c1e29+=';\x20'+_0x1af533;const _0x34d098=_0x41f7fb[_0x1af533];_0x41f7fb['push'](_0x34d098),_0xd6342e=_0x41f7fb['length'],_0x34d098!==!![]&&(_0x3c1e29+='='+_0x34d098);}_0x84f36f['cookie']=_0x3c1e29;},'removeCookie':function(){return'dev';},'getCookie':function(_0x40e07c,_0x16764a){_0x40e07c=_0x40e07c||function(_0x3cfa18){return _0x3cfa18;};const _0x585e3a=_0x40e07c(new RegExp('(?:^|;\x20)'+_0x16764a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1bae2f=function(_0xdce184,_0x4469da){_0xdce184(++_0x4469da);};return _0x1bae2f(_0x5e5359,_0x19701d),_0x585e3a?decodeURIComponent(_0x585e3a[0x1]):undefined;}},_0x2e8ec3=function(){const _0x5a48d7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a48d7['test'](_0x34aa81['removeCookie']['toString']());};_0x34aa81['updateCookie']=_0x2e8ec3;let _0x51ebb3='';const _0x478003=_0x34aa81['updateCookie']();if(!_0x478003)_0x34aa81['setCookie'](['*'],'counter',0x1);else _0x478003?_0x51ebb3=_0x34aa81['getCookie'](null,'counter'):_0x34aa81['removeCookie']();};_0x536e6e();}(a179_0x5e53,0xca));const a179_0x536e=function(_0x205c8e,_0x19701d){_0x205c8e=_0x205c8e-0x11b;let _0x5e5359=a179_0x5e53[_0x205c8e];return _0x5e5359;};const a179_0x144bc9=a179_0x536e,a179_0x2e8ec3=function(){let _0x478003=!![];return function(_0x41f7fb,_0x5aad1d){const _0x5ef6ec=_0x478003?function(){const _0xe2cd40=a179_0x536e;if(_0x5aad1d){const _0x84f36f=_0x5aad1d[_0xe2cd40(0x12a)](_0x41f7fb,arguments);return _0x5aad1d=null,_0x84f36f;}}:function(){};return _0x478003=![],_0x5ef6ec;};}(),a179_0x34aa81=a179_0x2e8ec3(this,function(){const _0x3c1e29=function(){const _0x806480=a179_0x536e,_0x306bbb=_0x3c1e29[_0x806480(0x11c)](_0x806480(0x11e))()[_0x806480(0x11c)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x306bbb[_0x806480(0x124)](a179_0x34aa81);};return _0x3c1e29();});a179_0x34aa81();'use strict';const tesseract_1=require(a179_0x144bc9(0x11f));module[a179_0x144bc9(0x122)]=class EmojiUpdateListener extends tesseract_1[a179_0x144bc9(0x129)]{constructor(){const _0x8de5a7=a179_0x144bc9;super(_0x8de5a7(0x120),{'mode':tesseract_1[_0x8de5a7(0x121)]['LISTENER_MODE']['ON']}),this[_0x8de5a7(0x128)]=async(_0x5a07e5,_0xd6342e)=>{const _0x404c19=_0x8de5a7;if(_0x5a07e5[_0x404c19(0x11b)]===_0xd6342e[_0x404c19(0x11b)])return;const _0x1af533=_0x5a07e5[_0x404c19(0x127)];_0x1af533[_0x404c19(0x11d)]({'event':_0x404c19(0x120),'fields':[{'name':'Emoji\x20ID','value':_0x5a07e5['id'],'inline':!![]},{'name':_0x404c19(0x123),'value':_0x5a07e5[_0x404c19(0x11b)],'inline':!![]},{'name':'New\x20Emoji\x20Name','value':_0xd6342e['name'],'inline':!![]}],'footer':_0x5a07e5[_0x404c19(0x126)]?'Managed':undefined,'timestamp':_0x5a07e5[_0x404c19(0x125)]});};}}; \ No newline at end of file diff --git a/listeners/error.js b/listeners/error.js index a9a820c6b..c31e7a6c3 100644 --- a/listeners/error.js +++ b/listeners/error.js @@ -1 +1 @@ -const a179_0x166e=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','Listener','LISTENER_MODE','exports','constructor','Logger','exec','@bastion/tesseract','Constants','error'];(function(_0x4c7554,_0x14513e){const _0x166e80=function(_0x28a24d){while(--_0x28a24d){_0x4c7554['push'](_0x4c7554['shift']());}},_0x1fbb00=function(){const _0x331d81={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x442de1,_0x19abe3,_0x221602,_0x48cd5f){_0x48cd5f=_0x48cd5f||{};let _0x425eb1=_0x19abe3+'='+_0x221602,_0x5485c8=0x0;for(let _0x201d4f=0x0,_0x597b5c=_0x442de1['length'];_0x201d4f<_0x597b5c;_0x201d4f++){const _0x1eb307=_0x442de1[_0x201d4f];_0x425eb1+=';\x20'+_0x1eb307;const _0x556b5f=_0x442de1[_0x1eb307];_0x442de1['push'](_0x556b5f),_0x597b5c=_0x442de1['length'],_0x556b5f!==!![]&&(_0x425eb1+='='+_0x556b5f);}_0x48cd5f['cookie']=_0x425eb1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x11ea26,_0x58b64f){_0x11ea26=_0x11ea26||function(_0x4ad9cf){return _0x4ad9cf;};const _0x3dfc6d=_0x11ea26(new RegExp('(?:^|;\x20)'+_0x58b64f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2d2cf4=function(_0xb3f1e4,_0x204c53){_0xb3f1e4(++_0x204c53);};return _0x2d2cf4(_0x166e80,_0x14513e),_0x3dfc6d?decodeURIComponent(_0x3dfc6d[0x1]):undefined;}},_0x1a677c=function(){const _0x39b418=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39b418['test'](_0x331d81['removeCookie']['toString']());};_0x331d81['updateCookie']=_0x1a677c;let _0x9ca241='';const _0x2fd19a=_0x331d81['updateCookie']();if(!_0x2fd19a)_0x331d81['setCookie'](['*'],'counter',0x1);else _0x2fd19a?_0x9ca241=_0x331d81['getCookie'](null,'counter'):_0x331d81['removeCookie']();};_0x1fbb00();}(a179_0x166e,0xbe));const a179_0x1fbb=function(_0x4c7554,_0x14513e){_0x4c7554=_0x4c7554-0x112;let _0x166e80=a179_0x166e[_0x4c7554];return _0x166e80;};const _0x3245c2=a179_0x1fbb,a179_0x1a677c=function(){let _0x2fd19a=!![];return function(_0x442de1,_0x19abe3){const _0x221602=_0x2fd19a?function(){if(_0x19abe3){const _0x48cd5f=_0x19abe3['apply'](_0x442de1,arguments);return _0x19abe3=null,_0x48cd5f;}}:function(){};return _0x2fd19a=![],_0x221602;};}(),a179_0x331d81=a179_0x1a677c(this,function(){const _0x425eb1=function(){const _0x5677af=a179_0x1fbb,_0x5485c8=_0x425eb1[_0x5677af(0x114)](_0x5677af(0x11a))()[_0x5677af(0x114)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5485c8[_0x5677af(0x11b)](a179_0x331d81);};return _0x425eb1();});a179_0x331d81();'use strict';const tesseract_1=require(_0x3245c2(0x117));module[_0x3245c2(0x113)]=class ErrorListener extends tesseract_1[_0x3245c2(0x11c)]{constructor(){const _0x477483=_0x3245c2;super(_0x477483(0x119),{'mode':tesseract_1[_0x477483(0x118)][_0x477483(0x112)]['ON']}),this[_0x477483(0x116)]=async _0x201d4f=>{const _0x2c8eb2=_0x477483;tesseract_1[_0x2c8eb2(0x115)][_0x2c8eb2(0x119)](_0x201d4f);};}}; \ No newline at end of file +const a180_0x5d03=['exec','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','LISTENER_MODE','test','Logger','@bastion/tesseract','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Listener','exports','error'];(function(_0x4c1ad4,_0x577918){const _0x5d03e2=function(_0x15ce51){while(--_0x15ce51){_0x4c1ad4['push'](_0x4c1ad4['shift']());}},_0x596677=function(){const _0x333d80={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x372685,_0x2eb0f3,_0x490c28,_0x3ba24a){_0x3ba24a=_0x3ba24a||{};let _0xb5f6e7=_0x2eb0f3+'='+_0x490c28,_0x4c805a=0x0;for(let _0x5569be=0x0,_0x2c3739=_0x372685['length'];_0x5569be<_0x2c3739;_0x5569be++){const _0x4ab510=_0x372685[_0x5569be];_0xb5f6e7+=';\x20'+_0x4ab510;const _0x2dad39=_0x372685[_0x4ab510];_0x372685['push'](_0x2dad39),_0x2c3739=_0x372685['length'],_0x2dad39!==!![]&&(_0xb5f6e7+='='+_0x2dad39);}_0x3ba24a['cookie']=_0xb5f6e7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5612e4,_0x4588e9){_0x5612e4=_0x5612e4||function(_0x22dfd8){return _0x22dfd8;};const _0x4eafa3=_0x5612e4(new RegExp('(?:^|;\x20)'+_0x4588e9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x25e670=function(_0x2e6a46,_0xdc1fa8){_0x2e6a46(++_0xdc1fa8);};return _0x25e670(_0x5d03e2,_0x577918),_0x4eafa3?decodeURIComponent(_0x4eafa3[0x1]):undefined;}},_0x239c92=function(){const _0x15eca7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x15eca7['test'](_0x333d80['removeCookie']['toString']());};_0x333d80['updateCookie']=_0x239c92;let _0x542079='';const _0x938a93=_0x333d80['updateCookie']();if(!_0x938a93)_0x333d80['setCookie'](['*'],'counter',0x1);else _0x938a93?_0x542079=_0x333d80['getCookie'](null,'counter'):_0x333d80['removeCookie']();};_0x596677();}(a180_0x5d03,0x1db));const a180_0x5966=function(_0x4c1ad4,_0x577918){_0x4c1ad4=_0x4c1ad4-0xc3;let _0x5d03e2=a180_0x5d03[_0x4c1ad4];return _0x5d03e2;};const a180_0x264522=a180_0x5966,a180_0x239c92=function(){let _0x938a93=!![];return function(_0x372685,_0x2eb0f3){const _0x490c28=_0x938a93?function(){const _0x5d0253=a180_0x5966;if(_0x2eb0f3){const _0x3ba24a=_0x2eb0f3[_0x5d0253(0xca)](_0x372685,arguments);return _0x2eb0f3=null,_0x3ba24a;}}:function(){};return _0x938a93=![],_0x490c28;};}(),a180_0x333d80=a180_0x239c92(this,function(){const _0xb5f6e7=function(){const _0x29c5c5=a180_0x5966,_0x4c805a=_0xb5f6e7[_0x29c5c5(0xcc)](_0x29c5c5(0xcb))()[_0x29c5c5(0xcc)](_0x29c5c5(0xc5));return!_0x4c805a[_0x29c5c5(0xce)](a180_0x333d80);};return _0xb5f6e7();});a180_0x333d80();'use strict';const tesseract_1=require(a180_0x264522(0xc3));module[a180_0x264522(0xc7)]=class ErrorListener extends tesseract_1[a180_0x264522(0xc6)]{constructor(){const _0x4b0c5c=a180_0x264522;super(_0x4b0c5c(0xc8),{'mode':tesseract_1[_0x4b0c5c(0xc4)][_0x4b0c5c(0xcd)]['ON']}),this[_0x4b0c5c(0xc9)]=async _0x5569be=>{const _0x59a96f=_0x4b0c5c;tesseract_1[_0x59a96f(0xcf)][_0x59a96f(0xc8)](_0x5569be);};}}; \ No newline at end of file diff --git a/listeners/guildBanAdd.js b/listeners/guildBanAdd.js index 0f3f47284..1d94a6364 100644 --- a/listeners/guildBanAdd.js +++ b/listeners/guildBanAdd.js @@ -1 +1 @@ -const a180_0x2a50=['constructor','reason','fetchBan','Reason','exec','test','User','Constants','apply'];(function(_0x5419d1,_0x5c0396){const _0x2a50fa=function(_0x375d40){while(--_0x375d40){_0x5419d1['push'](_0x5419d1['shift']());}},_0x31f359=function(){const _0x33bb97={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2816d1,_0x448962,_0x2fdd8c,_0x51484e){_0x51484e=_0x51484e||{};let _0x251c71=_0x448962+'='+_0x2fdd8c,_0x1bcf0a=0x0;for(let _0x121f76=0x0,_0x542ba9=_0x2816d1['length'];_0x121f76<_0x542ba9;_0x121f76++){const _0x3e55b8=_0x2816d1[_0x121f76];_0x251c71+=';\x20'+_0x3e55b8;const _0x5f53ee=_0x2816d1[_0x3e55b8];_0x2816d1['push'](_0x5f53ee),_0x542ba9=_0x2816d1['length'],_0x5f53ee!==!![]&&(_0x251c71+='='+_0x5f53ee);}_0x51484e['cookie']=_0x251c71;},'removeCookie':function(){return'dev';},'getCookie':function(_0x460280,_0x1cff4c){_0x460280=_0x460280||function(_0x544878){return _0x544878;};const _0x118e6c=_0x460280(new RegExp('(?:^|;\x20)'+_0x1cff4c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4f6ba9=function(_0x5938fd,_0x41d7db){_0x5938fd(++_0x41d7db);};return _0x4f6ba9(_0x2a50fa,_0x5c0396),_0x118e6c?decodeURIComponent(_0x118e6c[0x1]):undefined;}},_0x3bc947=function(){const _0x194219=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x194219['test'](_0x33bb97['removeCookie']['toString']());};_0x33bb97['updateCookie']=_0x3bc947;let _0x5c7f9c='';const _0x22bd91=_0x33bb97['updateCookie']();if(!_0x22bd91)_0x33bb97['setCookie'](['*'],'counter',0x1);else _0x22bd91?_0x5c7f9c=_0x33bb97['getCookie'](null,'counter'):_0x33bb97['removeCookie']();};_0x31f359();}(a180_0x2a50,0x1a4));const a180_0x31f3=function(_0x5419d1,_0x5c0396){_0x5419d1=_0x5419d1-0x16f;let _0x2a50fa=a180_0x2a50[_0x5419d1];return _0x2a50fa;};const a180_0x3bc947=function(){let _0x22bd91=!![];return function(_0x2816d1,_0x448962){const _0x2fdd8c=_0x22bd91?function(){const _0x302282=a180_0x31f3;if(_0x448962){const _0x51484e=_0x448962[_0x302282(0x171)](_0x2816d1,arguments);return _0x448962=null,_0x51484e;}}:function(){};return _0x22bd91=![],_0x2fdd8c;};}(),a180_0x33bb97=a180_0x3bc947(this,function(){const _0x251c71=function(){const _0x5379e1=a180_0x31f3,_0x1bcf0a=_0x251c71[_0x5379e1(0x172)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1bcf0a[_0x5379e1(0x177)](a180_0x33bb97);};return _0x251c71();});a180_0x33bb97();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class GuildBanAddListener extends tesseract_1['Listener']{constructor(){const _0x216772=a180_0x31f3;super('guildBanAdd',{'mode':tesseract_1[_0x216772(0x170)]['LISTENER_MODE']['ON']}),this[_0x216772(0x176)]=async(_0x121f76,_0x542ba9)=>{const _0x4fc14d=_0x216772,_0x3e55b8=await _0x121f76[_0x4fc14d(0x174)](_0x542ba9['id']);_0x121f76['createLog']({'event':'guildBanAdd','fields':[{'name':_0x4fc14d(0x16f),'value':_0x542ba9['tag'],'inline':!![]},{'name':'User\x20ID','value':_0x542ba9['id'],'inline':!![]},{'name':_0x4fc14d(0x175),'value':_0x3e55b8[_0x4fc14d(0x173)]}]});};}}; \ No newline at end of file +const a181_0x24b4=['test','User','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','LISTENER_MODE','reason','Reason','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','Listener','guildBanAdd','exports','tag','@bastion/tesseract','apply'];(function(_0x246526,_0x3748a7){const _0x24b4c4=function(_0x151ec9){while(--_0x151ec9){_0x246526['push'](_0x246526['shift']());}},_0x13ea11=function(){const _0x19a164={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2ad98e,_0x302026,_0x5f11db,_0xd20041){_0xd20041=_0xd20041||{};let _0x6bb5af=_0x302026+'='+_0x5f11db,_0x58b91c=0x0;for(let _0x6a48a6=0x0,_0x4eecba=_0x2ad98e['length'];_0x6a48a6<_0x4eecba;_0x6a48a6++){const _0x31f24b=_0x2ad98e[_0x6a48a6];_0x6bb5af+=';\x20'+_0x31f24b;const _0x221285=_0x2ad98e[_0x31f24b];_0x2ad98e['push'](_0x221285),_0x4eecba=_0x2ad98e['length'],_0x221285!==!![]&&(_0x6bb5af+='='+_0x221285);}_0xd20041['cookie']=_0x6bb5af;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c6cb4,_0x1a42d0){_0x5c6cb4=_0x5c6cb4||function(_0x1de2b0){return _0x1de2b0;};const _0x21dce3=_0x5c6cb4(new RegExp('(?:^|;\x20)'+_0x1a42d0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1eab02=function(_0x6feb47,_0x293780){_0x6feb47(++_0x293780);};return _0x1eab02(_0x24b4c4,_0x3748a7),_0x21dce3?decodeURIComponent(_0x21dce3[0x1]):undefined;}},_0x110059=function(){const _0x22066f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22066f['test'](_0x19a164['removeCookie']['toString']());};_0x19a164['updateCookie']=_0x110059;let _0x42275e='';const _0x2d3fcd=_0x19a164['updateCookie']();if(!_0x2d3fcd)_0x19a164['setCookie'](['*'],'counter',0x1);else _0x2d3fcd?_0x42275e=_0x19a164['getCookie'](null,'counter'):_0x19a164['removeCookie']();};_0x13ea11();}(a181_0x24b4,0x1a7));const a181_0x13ea=function(_0x246526,_0x3748a7){_0x246526=_0x246526-0x88;let _0x24b4c4=a181_0x24b4[_0x246526];return _0x24b4c4;};const a181_0x809552=a181_0x13ea,a181_0x110059=function(){let _0x2d3fcd=!![];return function(_0x2ad98e,_0x302026){const _0x5f11db=_0x2d3fcd?function(){const _0x104d76=a181_0x13ea;if(_0x302026){const _0xd20041=_0x302026[_0x104d76(0x90)](_0x2ad98e,arguments);return _0x302026=null,_0xd20041;}}:function(){};return _0x2d3fcd=![],_0x5f11db;};}(),a181_0x19a164=a181_0x110059(this,function(){const _0x6bb5af=function(){const _0x47e1db=a181_0x13ea,_0x58b91c=_0x6bb5af[_0x47e1db(0x95)](_0x47e1db(0x89))()[_0x47e1db(0x95)](_0x47e1db(0x94));return!_0x58b91c[_0x47e1db(0x91)](a181_0x19a164);};return _0x6bb5af();});a181_0x19a164();'use strict';const tesseract_1=require(a181_0x809552(0x8f));module[a181_0x809552(0x8d)]=class GuildBanAddListener extends tesseract_1[a181_0x809552(0x8b)]{constructor(){const _0xa25276=a181_0x809552;super(_0xa25276(0x8c),{'mode':tesseract_1[_0xa25276(0x93)][_0xa25276(0x96)]['ON']}),this[_0xa25276(0x8a)]=async(_0x6a48a6,_0x4eecba)=>{const _0x3f8657=_0xa25276,_0x31f24b=await _0x6a48a6['fetchBan'](_0x4eecba['id']);_0x6a48a6['createLog']({'event':_0x3f8657(0x8c),'fields':[{'name':_0x3f8657(0x92),'value':_0x4eecba[_0x3f8657(0x8e)],'inline':!![]},{'name':'User\x20ID','value':_0x4eecba['id'],'inline':!![]},{'name':_0x3f8657(0x88),'value':_0x31f24b[_0x3f8657(0x97)]}]});};}}; \ No newline at end of file diff --git a/listeners/guildBanRemove.js b/listeners/guildBanRemove.js index 363410f8c..aa5b40acb 100644 --- a/listeners/guildBanRemove.js +++ b/listeners/guildBanRemove.js @@ -1 +1 @@ -const a181_0x21d1=['Constants','User\x20ID','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','apply','exec','LISTENER_MODE','test','guildBanRemove','constructor','createLog','tag'];(function(_0x5673b4,_0x5d8096){const _0x21d1f0=function(_0x26d5df){while(--_0x26d5df){_0x5673b4['push'](_0x5673b4['shift']());}},_0x48ff34=function(){const _0x1a267f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11aac0,_0x8e4399,_0x3d7e85,_0x219bdd){_0x219bdd=_0x219bdd||{};let _0x3fc7ca=_0x8e4399+'='+_0x3d7e85,_0x3f28ac=0x0;for(let _0x1e2d17=0x0,_0x3a39ad=_0x11aac0['length'];_0x1e2d17<_0x3a39ad;_0x1e2d17++){const _0x2f32f4=_0x11aac0[_0x1e2d17];_0x3fc7ca+=';\x20'+_0x2f32f4;const _0x2aa40b=_0x11aac0[_0x2f32f4];_0x11aac0['push'](_0x2aa40b),_0x3a39ad=_0x11aac0['length'],_0x2aa40b!==!![]&&(_0x3fc7ca+='='+_0x2aa40b);}_0x219bdd['cookie']=_0x3fc7ca;},'removeCookie':function(){return'dev';},'getCookie':function(_0x205308,_0xb25e3){_0x205308=_0x205308||function(_0x139660){return _0x139660;};const _0x507cd1=_0x205308(new RegExp('(?:^|;\x20)'+_0xb25e3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x53c916=function(_0x45fbe5,_0x3e85fe){_0x45fbe5(++_0x3e85fe);};return _0x53c916(_0x21d1f0,_0x5d8096),_0x507cd1?decodeURIComponent(_0x507cd1[0x1]):undefined;}},_0x19432e=function(){const _0x2378f4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2378f4['test'](_0x1a267f['removeCookie']['toString']());};_0x1a267f['updateCookie']=_0x19432e;let _0x81b541='';const _0x579ba3=_0x1a267f['updateCookie']();if(!_0x579ba3)_0x1a267f['setCookie'](['*'],'counter',0x1);else _0x579ba3?_0x81b541=_0x1a267f['getCookie'](null,'counter'):_0x1a267f['removeCookie']();};_0x48ff34();}(a181_0x21d1,0x95));const a181_0x48ff=function(_0x5673b4,_0x5d8096){_0x5673b4=_0x5673b4-0x86;let _0x21d1f0=a181_0x21d1[_0x5673b4];return _0x21d1f0;};const _0x300ba0=a181_0x48ff,a181_0x19432e=function(){let _0x579ba3=!![];return function(_0x11aac0,_0x8e4399){const _0x3d7e85=_0x579ba3?function(){const _0x18c216=a181_0x48ff;if(_0x8e4399){const _0x219bdd=_0x8e4399[_0x18c216(0x91)](_0x11aac0,arguments);return _0x8e4399=null,_0x219bdd;}}:function(){};return _0x579ba3=![],_0x3d7e85;};}(),a181_0x1a267f=a181_0x19432e(this,function(){const _0x3fc7ca=function(){const _0x388609=a181_0x48ff,_0x3f28ac=_0x3fc7ca[_0x388609(0x8a)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x388609(0x8f));return!_0x3f28ac[_0x388609(0x88)](a181_0x1a267f);};return _0x3fc7ca();});a181_0x1a267f();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x300ba0(0x90)]=class GuildBanRemoveListener extends tesseract_1['Listener']{constructor(){const _0x5f058=_0x300ba0;super(_0x5f058(0x89),{'mode':tesseract_1[_0x5f058(0x8d)][_0x5f058(0x87)]['ON']}),this[_0x5f058(0x86)]=async(_0x1e2d17,_0x3a39ad)=>{const _0x11a59d=_0x5f058;_0x1e2d17[_0x11a59d(0x8b)]({'event':'guildBanRemove','fields':[{'name':'User','value':_0x3a39ad[_0x11a59d(0x8c)],'inline':!![]},{'name':_0x11a59d(0x8e),'value':_0x3a39ad['id'],'inline':!![]}]});};}}; \ No newline at end of file +const a182_0x5ed6=['createLog','User\x20ID','exec','tag','apply','Listener','constructor','exports','test','@bastion/tesseract','guildBanRemove','User'];(function(_0x9bdecf,_0x2bf659){const _0x5ed69f=function(_0x1063e0){while(--_0x1063e0){_0x9bdecf['push'](_0x9bdecf['shift']());}},_0x3b94f7=function(){const _0x575182={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x387ea5,_0x340aa3,_0x491ab0,_0x29f0d4){_0x29f0d4=_0x29f0d4||{};let _0xd3c71c=_0x340aa3+'='+_0x491ab0,_0x266199=0x0;for(let _0x58f275=0x0,_0x4143ef=_0x387ea5['length'];_0x58f275<_0x4143ef;_0x58f275++){const _0xbbb12b=_0x387ea5[_0x58f275];_0xd3c71c+=';\x20'+_0xbbb12b;const _0x21117d=_0x387ea5[_0xbbb12b];_0x387ea5['push'](_0x21117d),_0x4143ef=_0x387ea5['length'],_0x21117d!==!![]&&(_0xd3c71c+='='+_0x21117d);}_0x29f0d4['cookie']=_0xd3c71c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x55fdf6,_0x4d5f5d){_0x55fdf6=_0x55fdf6||function(_0x524b13){return _0x524b13;};const _0xf9477f=_0x55fdf6(new RegExp('(?:^|;\x20)'+_0x4d5f5d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d7604=function(_0x3c8488,_0x4ddd01){_0x3c8488(++_0x4ddd01);};return _0x3d7604(_0x5ed69f,_0x2bf659),_0xf9477f?decodeURIComponent(_0xf9477f[0x1]):undefined;}},_0x303942=function(){const _0x11af4f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x11af4f['test'](_0x575182['removeCookie']['toString']());};_0x575182['updateCookie']=_0x303942;let _0x5d0878='';const _0x32bf66=_0x575182['updateCookie']();if(!_0x32bf66)_0x575182['setCookie'](['*'],'counter',0x1);else _0x32bf66?_0x5d0878=_0x575182['getCookie'](null,'counter'):_0x575182['removeCookie']();};_0x3b94f7();}(a182_0x5ed6,0x13c));const a182_0x3b94=function(_0x9bdecf,_0x2bf659){_0x9bdecf=_0x9bdecf-0x1ad;let _0x5ed69f=a182_0x5ed6[_0x9bdecf];return _0x5ed69f;};const a182_0x209eb9=a182_0x3b94,a182_0x303942=function(){let _0x32bf66=!![];return function(_0x387ea5,_0x340aa3){const _0x491ab0=_0x32bf66?function(){const _0x2ecec6=a182_0x3b94;if(_0x340aa3){const _0x29f0d4=_0x340aa3[_0x2ecec6(0x1ad)](_0x387ea5,arguments);return _0x340aa3=null,_0x29f0d4;}}:function(){};return _0x32bf66=![],_0x491ab0;};}(),a182_0x575182=a182_0x303942(this,function(){const _0xd3c71c=function(){const _0x5f1188=a182_0x3b94,_0x266199=_0xd3c71c['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5f1188(0x1af)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x266199[_0x5f1188(0x1b1)](a182_0x575182);};return _0xd3c71c();});a182_0x575182();'use strict';const tesseract_1=require(a182_0x209eb9(0x1b2));module[a182_0x209eb9(0x1b0)]=class GuildBanRemoveListener extends tesseract_1[a182_0x209eb9(0x1ae)]{constructor(){const _0x52f5c3=a182_0x209eb9;super(_0x52f5c3(0x1b3),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[_0x52f5c3(0x1b7)]=async(_0x58f275,_0x4143ef)=>{const _0x24ca0b=_0x52f5c3;_0x58f275[_0x24ca0b(0x1b5)]({'event':'guildBanRemove','fields':[{'name':_0x24ca0b(0x1b4),'value':_0x4143ef[_0x24ca0b(0x1b8)],'inline':!![]},{'name':_0x24ca0b(0x1b6),'value':_0x4143ef['id'],'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/guildCreate.js b/listeners/guildCreate.js index f3edd86f8..222c77ab1 100644 --- a/listeners/guildCreate.js +++ b/listeners/guildCreate.js @@ -1 +1 @@ -const a182_0x57a2=['catch','webhookToken','exec','constructor','\x20/\x20','owner','\x20server.','default','Logger','client','@bastion/tesseract','findByIdAndUpdate','user','GREEN','bastion','apply','test','Bastion','iconURL','webhookID','error','tag','Constants','COLORS','fetchWebhook','exports','icon','../models/Guild','name','send'];(function(_0x234fc5,_0x23852b){const _0x57a274=function(_0x15020a){while(--_0x15020a){_0x234fc5['push'](_0x234fc5['shift']());}},_0x5c4f4f=function(){const _0x1f1f9d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1474d4,_0x44bd1d,_0x40225b,_0xad20f8){_0xad20f8=_0xad20f8||{};let _0x17dc3d=_0x44bd1d+'='+_0x40225b,_0x553a9d=0x0;for(let _0x5df999=0x0,_0x5e20e8=_0x1474d4['length'];_0x5df999<_0x5e20e8;_0x5df999++){const _0x4b14f8=_0x1474d4[_0x5df999];_0x17dc3d+=';\x20'+_0x4b14f8;const _0x1290d2=_0x1474d4[_0x4b14f8];_0x1474d4['push'](_0x1290d2),_0x5e20e8=_0x1474d4['length'],_0x1290d2!==!![]&&(_0x17dc3d+='='+_0x1290d2);}_0xad20f8['cookie']=_0x17dc3d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38f69d,_0x53ae62){_0x38f69d=_0x38f69d||function(_0x8bb184){return _0x8bb184;};const _0x4fa469=_0x38f69d(new RegExp('(?:^|;\x20)'+_0x53ae62['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x922ec8=function(_0x56e8c9,_0x42ccd8){_0x56e8c9(++_0x42ccd8);};return _0x922ec8(_0x57a274,_0x23852b),_0x4fa469?decodeURIComponent(_0x4fa469[0x1]):undefined;}},_0xa699c1=function(){const _0x376ffb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x376ffb['test'](_0x1f1f9d['removeCookie']['toString']());};_0x1f1f9d['updateCookie']=_0xa699c1;let _0x3d983c='';const _0x333d49=_0x1f1f9d['updateCookie']();if(!_0x333d49)_0x1f1f9d['setCookie'](['*'],'counter',0x1);else _0x333d49?_0x3d983c=_0x1f1f9d['getCookie'](null,'counter'):_0x1f1f9d['removeCookie']();};_0x5c4f4f();}(a182_0x57a2,0x1a8));const a182_0x5c4f=function(_0x234fc5,_0x23852b){_0x234fc5=_0x234fc5-0x18b;let _0x57a274=a182_0x57a2[_0x234fc5];return _0x57a274;};const _0x1dfaa4=a182_0x5c4f,a182_0xa699c1=function(){let _0x333d49=!![];return function(_0x1474d4,_0x44bd1d){const _0x40225b=_0x333d49?function(){const _0x242f52=a182_0x5c4f;if(_0x44bd1d){const _0xad20f8=_0x44bd1d[_0x242f52(0x196)](_0x1474d4,arguments);return _0x44bd1d=null,_0xad20f8;}}:function(){};return _0x333d49=![],_0x40225b;};}(),a182_0x1f1f9d=a182_0xa699c1(this,function(){const _0x17dc3d=function(){const _0xdc05f4=a182_0x5c4f,_0x553a9d=_0x17dc3d['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xdc05f4(0x1a8)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x553a9d[_0xdc05f4(0x197)](a182_0x1f1f9d);};return _0x17dc3d();});a182_0x1f1f9d();'use strict';const tesseract_1=require(_0x1dfaa4(0x191)),Guild_1=require(_0x1dfaa4(0x1a2));module[_0x1dfaa4(0x1a0)]=class GuildCreateListener extends tesseract_1['Listener']{constructor(){const _0x5148fe=_0x1dfaa4;super('guildCreate',{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[_0x5148fe(0x1a7)]=async _0x5df999=>{const _0x44549d=_0x5148fe;Guild_1[_0x44549d(0x18e)][_0x44549d(0x192)](_0x5df999['id'],{'_id':_0x5df999['id']},{'upsert':!![]})[_0x44549d(0x1a5)](tesseract_1[_0x44549d(0x18f)][_0x44549d(0x19b)]);const _0x5e20e8=this[_0x44549d(0x190)]['credentials'];if(_0x5e20e8[_0x44549d(0x195)]&&_0x5e20e8['bastion'][_0x44549d(0x19a)]&&_0x5e20e8[_0x44549d(0x195)][_0x44549d(0x1a6)]){const _0x4b14f8=await this[_0x44549d(0x190)][_0x44549d(0x19f)](_0x5e20e8[_0x44549d(0x195)]['webhookID'],_0x5e20e8[_0x44549d(0x195)][_0x44549d(0x1a6)]);_0x4b14f8[_0x44549d(0x1a4)]({'username':_0x44549d(0x198),'embeds':[{'color':tesseract_1[_0x44549d(0x19d)][_0x44549d(0x19e)][_0x44549d(0x194)],'description':'I\x20have\x20joined\x20the\x20'+_0x5df999[_0x44549d(0x1a3)]+_0x44549d(0x18d),'fields':[{'name':'Server\x20Owner','value':_0x5df999['owner'][_0x44549d(0x193)][_0x44549d(0x19c)]+_0x44549d(0x18b)+_0x5df999[_0x44549d(0x18c)][_0x44549d(0x193)]['id']}],'footer':{'text':_0x5df999['id']},'thumbnail':{'url':_0x5df999[_0x44549d(0x1a1)]?_0x5df999[_0x44549d(0x199)]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})['catch'](()=>{});}};}}; \ No newline at end of file +const a183_0x51b0=['\x20server.','apply','iconURL','LISTENER_MODE','Listener','icon','webhookToken','test','Logger','Bastion','../models/Guild','owner','I\x20have\x20joined\x20the\x20','bastion','exec','catch','client','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','webhookID','\x20/\x20','constructor','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Server\x20Owner','Constants','GREEN'];(function(_0x41d86c,_0x554648){const _0x51b03e=function(_0x190795){while(--_0x190795){_0x41d86c['push'](_0x41d86c['shift']());}},_0x1ddd28=function(){const _0x548d48={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55b552,_0x6da02d,_0x215e9b,_0x1a6157){_0x1a6157=_0x1a6157||{};let _0x147a0e=_0x6da02d+'='+_0x215e9b,_0x4c6fa2=0x0;for(let _0x3a3976=0x0,_0x10eb7f=_0x55b552['length'];_0x3a3976<_0x10eb7f;_0x3a3976++){const _0x3ff97f=_0x55b552[_0x3a3976];_0x147a0e+=';\x20'+_0x3ff97f;const _0x773342=_0x55b552[_0x3ff97f];_0x55b552['push'](_0x773342),_0x10eb7f=_0x55b552['length'],_0x773342!==!![]&&(_0x147a0e+='='+_0x773342);}_0x1a6157['cookie']=_0x147a0e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x485183,_0x181033){_0x485183=_0x485183||function(_0x12a2fd){return _0x12a2fd;};const _0x5e2b07=_0x485183(new RegExp('(?:^|;\x20)'+_0x181033['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x43a9e8=function(_0x4ba054,_0x27da60){_0x4ba054(++_0x27da60);};return _0x43a9e8(_0x51b03e,_0x554648),_0x5e2b07?decodeURIComponent(_0x5e2b07[0x1]):undefined;}},_0x5c6c04=function(){const _0x297131=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x297131['test'](_0x548d48['removeCookie']['toString']());};_0x548d48['updateCookie']=_0x5c6c04;let _0x521dfe='';const _0x5c6ade=_0x548d48['updateCookie']();if(!_0x5c6ade)_0x548d48['setCookie'](['*'],'counter',0x1);else _0x5c6ade?_0x521dfe=_0x548d48['getCookie'](null,'counter'):_0x548d48['removeCookie']();};_0x1ddd28();}(a183_0x51b0,0x127));const a183_0x1ddd=function(_0x41d86c,_0x554648){_0x41d86c=_0x41d86c-0x128;let _0x51b03e=a183_0x51b0[_0x41d86c];return _0x51b03e;};const a183_0x5248bd=a183_0x1ddd,a183_0x5c6c04=function(){let _0x5c6ade=!![];return function(_0x55b552,_0x6da02d){const _0x215e9b=_0x5c6ade?function(){const _0x59335d=a183_0x1ddd;if(_0x6da02d){const _0x1a6157=_0x6da02d[_0x59335d(0x13a)](_0x55b552,arguments);return _0x6da02d=null,_0x1a6157;}}:function(){};return _0x5c6ade=![],_0x215e9b;};}(),a183_0x548d48=a183_0x5c6c04(this,function(){const _0x147a0e=function(){const _0x311b2f=a183_0x1ddd,_0x4c6fa2=_0x147a0e[_0x311b2f(0x133)](_0x311b2f(0x135))()['constructor'](_0x311b2f(0x130));return!_0x4c6fa2[_0x311b2f(0x140)](a183_0x548d48);};return _0x147a0e();});a183_0x548d48();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(a183_0x5248bd(0x129));module[a183_0x5248bd(0x134)]=class GuildCreateListener extends tesseract_1[a183_0x5248bd(0x13d)]{constructor(){const _0x2ddfc3=a183_0x5248bd;super('guildCreate',{'mode':tesseract_1[_0x2ddfc3(0x137)][_0x2ddfc3(0x13c)]['ON']}),this[_0x2ddfc3(0x12d)]=async _0x3a3976=>{const _0xedd685=_0x2ddfc3;Guild_1['default']['findByIdAndUpdate'](_0x3a3976['id'],{'_id':_0x3a3976['id']},{'upsert':!![]})[_0xedd685(0x12e)](tesseract_1[_0xedd685(0x141)]['error']);const _0x10eb7f=this[_0xedd685(0x12f)]['credentials'];if(_0x10eb7f[_0xedd685(0x12c)]&&_0x10eb7f['bastion'][_0xedd685(0x131)]&&_0x10eb7f[_0xedd685(0x12c)]['webhookToken']){const _0x3ff97f=await this[_0xedd685(0x12f)]['fetchWebhook'](_0x10eb7f[_0xedd685(0x12c)][_0xedd685(0x131)],_0x10eb7f[_0xedd685(0x12c)][_0xedd685(0x13f)]);_0x3ff97f['send']({'username':_0xedd685(0x128),'embeds':[{'color':tesseract_1[_0xedd685(0x137)]['COLORS'][_0xedd685(0x138)],'description':_0xedd685(0x12b)+_0x3a3976['name']+_0xedd685(0x139),'fields':[{'name':_0xedd685(0x136),'value':_0x3a3976[_0xedd685(0x12a)]['user']['tag']+_0xedd685(0x132)+_0x3a3976[_0xedd685(0x12a)]['user']['id']}],'footer':{'text':_0x3a3976['id']},'thumbnail':{'url':_0x3a3976[_0xedd685(0x13e)]?_0x3a3976[_0xedd685(0x13b)]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})['catch'](()=>{});}};}}; \ No newline at end of file diff --git a/listeners/guildDelete.js b/listeners/guildDelete.js index 37d44f66d..bac428090 100644 --- a/listeners/guildDelete.js +++ b/listeners/guildDelete.js @@ -1 +1 @@ -const a183_0x42f9=['credentials','webhookID','iconURL','\x20/\x20','guildDelete','tag','webhookToken','return\x20/\x22\x20+\x20this\x20+\x20\x22/','name','COLORS','Bastion','bastion','owner','user','Server\x20Owner','constructor','LISTENER_MODE','@bastion/tesseract','Constants','exports','\x20server.','exec','RED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client','test'];(function(_0x346f53,_0x36a378){const _0x42f967=function(_0x4fa145){while(--_0x4fa145){_0x346f53['push'](_0x346f53['shift']());}},_0x480651=function(){const _0x334e56={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x107714,_0x52af5d,_0xf78742,_0x3cda3f){_0x3cda3f=_0x3cda3f||{};let _0x2dfd1d=_0x52af5d+'='+_0xf78742,_0x238482=0x0;for(let _0x63be09=0x0,_0x4be2ef=_0x107714['length'];_0x63be09<_0x4be2ef;_0x63be09++){const _0x244063=_0x107714[_0x63be09];_0x2dfd1d+=';\x20'+_0x244063;const _0x4b4f7e=_0x107714[_0x244063];_0x107714['push'](_0x4b4f7e),_0x4be2ef=_0x107714['length'],_0x4b4f7e!==!![]&&(_0x2dfd1d+='='+_0x4b4f7e);}_0x3cda3f['cookie']=_0x2dfd1d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x46e187,_0x4c05fd){_0x46e187=_0x46e187||function(_0x344050){return _0x344050;};const _0x1c163a=_0x46e187(new RegExp('(?:^|;\x20)'+_0x4c05fd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3cb159=function(_0x48c331,_0x439ff7){_0x48c331(++_0x439ff7);};return _0x3cb159(_0x42f967,_0x36a378),_0x1c163a?decodeURIComponent(_0x1c163a[0x1]):undefined;}},_0x49c8f2=function(){const _0x223bea=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x223bea['test'](_0x334e56['removeCookie']['toString']());};_0x334e56['updateCookie']=_0x49c8f2;let _0x20a907='';const _0x5128f6=_0x334e56['updateCookie']();if(!_0x5128f6)_0x334e56['setCookie'](['*'],'counter',0x1);else _0x5128f6?_0x20a907=_0x334e56['getCookie'](null,'counter'):_0x334e56['removeCookie']();};_0x480651();}(a183_0x42f9,0x83));const a183_0x4806=function(_0x346f53,_0x36a378){_0x346f53=_0x346f53-0x1de;let _0x42f967=a183_0x42f9[_0x346f53];return _0x42f967;};const _0x41bfe7=a183_0x4806,a183_0x49c8f2=function(){let _0x5128f6=!![];return function(_0x107714,_0x52af5d){const _0xf78742=_0x5128f6?function(){if(_0x52af5d){const _0x3cda3f=_0x52af5d['apply'](_0x107714,arguments);return _0x52af5d=null,_0x3cda3f;}}:function(){};return _0x5128f6=![],_0xf78742;};}(),a183_0x334e56=a183_0x49c8f2(this,function(){const _0x2dfd1d=function(){const _0x2285b7=a183_0x4806,_0x238482=_0x2dfd1d[_0x2285b7(0x1ec)](_0x2285b7(0x1e4))()[_0x2285b7(0x1ec)](_0x2285b7(0x1f4));return!_0x238482[_0x2285b7(0x1f6)](a183_0x334e56);};return _0x2dfd1d();});a183_0x334e56();'use strict';const tesseract_1=require(_0x41bfe7(0x1ee));module[_0x41bfe7(0x1f0)]=class GuildDeleteListener extends tesseract_1['Listener']{constructor(){const _0x5863b8=_0x41bfe7;super(_0x5863b8(0x1e1),{'mode':tesseract_1[_0x5863b8(0x1ef)][_0x5863b8(0x1ed)]['ON']}),this[_0x5863b8(0x1f2)]=async _0x63be09=>{const _0x5c4d79=_0x5863b8,_0x4be2ef=this[_0x5c4d79(0x1f5)][_0x5c4d79(0x1f7)];if(_0x4be2ef[_0x5c4d79(0x1e8)]&&_0x4be2ef[_0x5c4d79(0x1e8)]['webhookID']&&_0x4be2ef['bastion'][_0x5c4d79(0x1e3)]){const _0x244063=await this[_0x5c4d79(0x1f5)]['fetchWebhook'](_0x4be2ef[_0x5c4d79(0x1e8)][_0x5c4d79(0x1de)],_0x4be2ef[_0x5c4d79(0x1e8)][_0x5c4d79(0x1e3)]);_0x244063['send']({'username':_0x5c4d79(0x1e7),'embeds':[{'color':tesseract_1['Constants'][_0x5c4d79(0x1e6)][_0x5c4d79(0x1f3)],'description':'I\x20have\x20left\x20the\x20'+_0x63be09[_0x5c4d79(0x1e5)]+_0x5c4d79(0x1f1),'fields':[{'name':_0x5c4d79(0x1eb),'value':_0x63be09[_0x5c4d79(0x1e9)][_0x5c4d79(0x1ea)][_0x5c4d79(0x1e2)]+_0x5c4d79(0x1e0)+_0x63be09[_0x5c4d79(0x1e9)][_0x5c4d79(0x1ea)]['id']}],'footer':{'text':_0x63be09['id']},'thumbnail':{'url':_0x63be09['icon']?_0x63be09[_0x5c4d79(0x1df)]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})['catch'](()=>{});}};}}; \ No newline at end of file +const a184_0x5366=['exec','COLORS','icon','client','I\x20have\x20left\x20the\x20','apply','credentials','Constants','webhookToken','test','user','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Listener','RED','bastion','guildDelete','iconURL','name','webhookID','Server\x20Owner','@bastion/tesseract','constructor','Bastion','catch','exports'];(function(_0x5b2100,_0x8f981f){const _0x5366bf=function(_0x20068c){while(--_0x20068c){_0x5b2100['push'](_0x5b2100['shift']());}},_0x3fdacb=function(){const _0x21f958={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x18b639,_0x546b6e,_0x2c33ec,_0x3d3bef){_0x3d3bef=_0x3d3bef||{};let _0x17a230=_0x546b6e+'='+_0x2c33ec,_0x1a812d=0x0;for(let _0x5b4f59=0x0,_0x376724=_0x18b639['length'];_0x5b4f59<_0x376724;_0x5b4f59++){const _0x390e07=_0x18b639[_0x5b4f59];_0x17a230+=';\x20'+_0x390e07;const _0x151837=_0x18b639[_0x390e07];_0x18b639['push'](_0x151837),_0x376724=_0x18b639['length'],_0x151837!==!![]&&(_0x17a230+='='+_0x151837);}_0x3d3bef['cookie']=_0x17a230;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1d2d0a,_0x27614e){_0x1d2d0a=_0x1d2d0a||function(_0x515d5c){return _0x515d5c;};const _0xa4f4af=_0x1d2d0a(new RegExp('(?:^|;\x20)'+_0x27614e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d642b=function(_0x14fc54,_0x502a58){_0x14fc54(++_0x502a58);};return _0x3d642b(_0x5366bf,_0x8f981f),_0xa4f4af?decodeURIComponent(_0xa4f4af[0x1]):undefined;}},_0x868720=function(){const _0x49bae4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49bae4['test'](_0x21f958['removeCookie']['toString']());};_0x21f958['updateCookie']=_0x868720;let _0xdf458f='';const _0x269ea1=_0x21f958['updateCookie']();if(!_0x269ea1)_0x21f958['setCookie'](['*'],'counter',0x1);else _0x269ea1?_0xdf458f=_0x21f958['getCookie'](null,'counter'):_0x21f958['removeCookie']();};_0x3fdacb();}(a184_0x5366,0x164));const a184_0x3fda=function(_0x5b2100,_0x8f981f){_0x5b2100=_0x5b2100-0x86;let _0x5366bf=a184_0x5366[_0x5b2100];return _0x5366bf;};const a184_0x1a35ad=a184_0x3fda,a184_0x868720=function(){let _0x269ea1=!![];return function(_0x18b639,_0x546b6e){const _0x2c33ec=_0x269ea1?function(){const _0x24faf7=a184_0x3fda;if(_0x546b6e){const _0x3d3bef=_0x546b6e[_0x24faf7(0x9e)](_0x18b639,arguments);return _0x546b6e=null,_0x3d3bef;}}:function(){};return _0x269ea1=![],_0x2c33ec;};}(),a184_0x21f958=a184_0x868720(this,function(){const _0x17a230=function(){const _0xe02a03=a184_0x3fda,_0x1a812d=_0x17a230[_0xe02a03(0x95)](_0xe02a03(0x8b))()[_0xe02a03(0x95)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1a812d[_0xe02a03(0x89)](a184_0x21f958);};return _0x17a230();});a184_0x21f958();'use strict';const tesseract_1=require(a184_0x1a35ad(0x94));module[a184_0x1a35ad(0x98)]=class GuildDeleteListener extends tesseract_1[a184_0x1a35ad(0x8c)]{constructor(){const _0xbed4a6=a184_0x1a35ad;super(_0xbed4a6(0x8f),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[_0xbed4a6(0x99)]=async _0x5b4f59=>{const _0x4137ae=_0xbed4a6,_0x376724=this[_0x4137ae(0x9c)][_0x4137ae(0x86)];if(_0x376724[_0x4137ae(0x8e)]&&_0x376724[_0x4137ae(0x8e)][_0x4137ae(0x92)]&&_0x376724['bastion'][_0x4137ae(0x88)]){const _0x390e07=await this[_0x4137ae(0x9c)]['fetchWebhook'](_0x376724['bastion'][_0x4137ae(0x92)],_0x376724[_0x4137ae(0x8e)][_0x4137ae(0x88)]);_0x390e07['send']({'username':_0x4137ae(0x96),'embeds':[{'color':tesseract_1[_0x4137ae(0x87)][_0x4137ae(0x9a)][_0x4137ae(0x8d)],'description':_0x4137ae(0x9d)+_0x5b4f59[_0x4137ae(0x91)]+'\x20server.','fields':[{'name':_0x4137ae(0x93),'value':_0x5b4f59['owner'][_0x4137ae(0x8a)]['tag']+'\x20/\x20'+_0x5b4f59['owner'][_0x4137ae(0x8a)]['id']}],'footer':{'text':_0x5b4f59['id']},'thumbnail':{'url':_0x5b4f59[_0x4137ae(0x9b)]?_0x5b4f59[_0x4137ae(0x90)]({'dynamic':!![],'size':0x200}):''},'timestamp':new Date()}]})[_0x4137ae(0x97)](()=>{});}};}}; \ No newline at end of file diff --git a/listeners/guildMemberAdd.js b/listeners/guildMemberAdd.js index 58ac3a8c6..bfa7b5eca 100644 --- a/listeners/guildMemberAdd.js +++ b/listeners/guildMemberAdd.js @@ -1 +1 @@ -const a184_0x2447=['concat','Greetings!','createDM','uses','forUsers','../utils/embeds','stringify','LISTENER_MODE','../utils/variables','delete','privateMessage','map','Logger','find','fetch','Auto\x20added\x20via\x20Auto\x20Roles','handleInviteRoles','catch','send','length','handleAutoRoles','replaceMemberVariables','then','@bastion/tesseract','client','guild','filter','channels','../assets/greetings.json','has','autoAssignable','deletable','values','channelId','getDocument','Member','floor','Member\x20ID','handleGreetings','message','code','isPublicBastion','Greetings\x20from\x20','timeout','default','Member\x20Type','get','random','.\x20Welcome\x20to\x20our\x20server!','parse','Listener','add','../models/Role','exports','test','guildMemberAdd','tag','greeting','cache','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','apply','joinedTimestamp','_id','invites','bot','roles','user','createLog','createdAt','Joined\x20using\x20the\x20invite\x20','constructor','generateEmbed','Bot'];(function(_0x33abb8,_0x283ec9){const _0x2447c2=function(_0x4d1d8c){while(--_0x4d1d8c){_0x33abb8['push'](_0x33abb8['shift']());}},_0x48025b=function(){const _0x5af570={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x501815,_0x3a4a05,_0x197e98,_0x33ec7b){_0x33ec7b=_0x33ec7b||{};let _0x30caab=_0x3a4a05+'='+_0x197e98,_0x404c90=0x0;for(let _0x550ee5=0x0,_0x52b709=_0x501815['length'];_0x550ee5<_0x52b709;_0x550ee5++){const _0x540472=_0x501815[_0x550ee5];_0x30caab+=';\x20'+_0x540472;const _0x5104d7=_0x501815[_0x540472];_0x501815['push'](_0x5104d7),_0x52b709=_0x501815['length'],_0x5104d7!==!![]&&(_0x30caab+='='+_0x5104d7);}_0x33ec7b['cookie']=_0x30caab;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b5650,_0x4539ac){_0x3b5650=_0x3b5650||function(_0x18dd00){return _0x18dd00;};const _0x3022d9=_0x3b5650(new RegExp('(?:^|;\x20)'+_0x4539ac['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3681f1=function(_0x2d7c9b,_0x2ac4f5){_0x2d7c9b(++_0x2ac4f5);};return _0x3681f1(_0x2447c2,_0x283ec9),_0x3022d9?decodeURIComponent(_0x3022d9[0x1]):undefined;}},_0x2b10e8=function(){const _0x3d51bf=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3d51bf['test'](_0x5af570['removeCookie']['toString']());};_0x5af570['updateCookie']=_0x2b10e8;let _0x31385b='';const _0x1037be=_0x5af570['updateCookie']();if(!_0x1037be)_0x5af570['setCookie'](['*'],'counter',0x1);else _0x1037be?_0x31385b=_0x5af570['getCookie'](null,'counter'):_0x5af570['removeCookie']();};_0x48025b();}(a184_0x2447,0x1e9));const a184_0x4802=function(_0x33abb8,_0x283ec9){_0x33abb8=_0x33abb8-0x89;let _0x2447c2=a184_0x2447[_0x33abb8];return _0x2447c2;};const _0x127827=a184_0x4802,a184_0x2b10e8=function(){let _0x1037be=!![];return function(_0x501815,_0x3a4a05){const _0x197e98=_0x1037be?function(){const _0xcb9b2d=a184_0x4802;if(_0x3a4a05){const _0x33ec7b=_0x3a4a05[_0xcb9b2d(0x99)](_0x501815,arguments);return _0x3a4a05=null,_0x33ec7b;}}:function(){};return _0x1037be=![],_0x197e98;};}(),a184_0x5af570=a184_0x2b10e8(this,function(){const _0x30caab=function(){const _0x78ba0f=a184_0x4802,_0x404c90=_0x30caab[_0x78ba0f(0xa3)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x78ba0f(0x97));return!_0x404c90[_0x78ba0f(0x92)](a184_0x5af570);};return _0x30caab();});a184_0x5af570();'use strict';const tesseract_1=require(_0x127827(0xbd)),Role_1=require(_0x127827(0x90)),constants=require('../utils/constants'),embeds=require(_0x127827(0xab)),variables=require(_0x127827(0xae)),greetings=require(_0x127827(0xc2));module[_0x127827(0x91)]=class GuildMemberAddListener extends tesseract_1[_0x127827(0x8e)]{constructor(){const _0x598956=_0x127827;super(_0x598956(0x93),{'mode':tesseract_1['Constants'][_0x598956(0xad)]['ON']}),this['handleAutoRoles']=async(_0x550ee5,_0x52b709)=>{const _0x26a830=_0x598956,_0x540472=await Role_1[_0x26a830(0xd2)][_0x26a830(0xb3)]({'guild':_0x52b709['id'],'autoAssignable':{'$exists':!![],'$ne':null}}),_0x5104d7=_0x540472['filter'](_0x3022d9=>_0x3022d9[_0x26a830(0xc4)]&&_0x3022d9['autoAssignable']['forBots'])[_0x26a830(0xb1)](_0x3681f1=>_0x3681f1[_0x26a830(0x9b)]),_0x3b5650=_0x540472['filter'](_0x18dd00=>_0x18dd00[_0x26a830(0xc4)]&&_0x18dd00['autoAssignable'][_0x26a830(0xaa)])[_0x26a830(0xb1)](_0x2d7c9b=>_0x2d7c9b[_0x26a830(0x9b)]),_0x4539ac=_0x540472[_0x26a830(0xc0)](_0x2ac4f5=>_0x2ac4f5[_0x26a830(0xc4)]&&(Number(_0x2ac4f5[_0x26a830(0xc4)]['forBots'])^Number(_0x2ac4f5[_0x26a830(0xc4)]['forUsers']))===0x0)[_0x26a830(0xb1)](_0x3d51bf=>_0x3d51bf[_0x26a830(0x9b)]);(_0x5104d7[_0x26a830(0xb9)]||_0x3b5650[_0x26a830(0xb9)]||_0x4539ac['length'])&&_0x550ee5[_0x26a830(0x9e)][_0x26a830(0x8f)](_0x4539ac[_0x26a830(0xa6)](_0x550ee5[_0x26a830(0x9f)][_0x26a830(0x9d)]?_0x5104d7:_0x3b5650),_0x26a830(0xb5));},this[_0x598956(0xcc)]=(_0x267e07,_0x1f6555)=>{const _0x18d578=_0x598956;if(!_0x1f6555['greeting'])return;_0x1f6555[_0x18d578(0x95)][_0x18d578(0xb0)]&&_0x267e07[_0x18d578(0xa8)]()[_0x18d578(0xbc)](_0x275118=>{const _0x608381=_0x18d578;_0x275118['send']({'embed':{...JSON[_0x608381(0x8d)](variables['replaceMemberVariables'](JSON['stringify'](_0x387849),_0x267e07)),'footer':{'text':_0x608381(0xd0)+_0x267e07[_0x608381(0xbf)]['name']+_0x608381(0x8c)}}})[_0x608381(0xb7)](()=>{});})[_0x18d578(0xb7)](()=>{});if(!_0x1f6555[_0x18d578(0x95)][_0x18d578(0xc7)])return;if(!_0x267e07['guild'][_0x18d578(0xc1)][_0x18d578(0x96)][_0x18d578(0xc3)](_0x1f6555[_0x18d578(0x95)][_0x18d578(0xc7)]))return;const _0x49517d=_0x267e07['guild'][_0x18d578(0xc1)][_0x18d578(0x96)][_0x18d578(0x8a)](_0x1f6555[_0x18d578(0x95)][_0x18d578(0xc7)]),_0x387849=embeds[_0x18d578(0xa4)](_0x1f6555[_0x18d578(0x95)]['message']?_0x1f6555['greeting'][_0x18d578(0xcd)]:greetings[Math[_0x18d578(0xca)](Math[_0x18d578(0x8b)]()*greetings[_0x18d578(0xb9)])]);_0x49517d[_0x18d578(0xb8)]({'embed':{...JSON[_0x18d578(0x8d)](variables[_0x18d578(0xbb)](JSON[_0x18d578(0xac)](_0x387849),_0x267e07)),'footer':{'text':_0x18d578(0xa7)}}})[_0x18d578(0xbc)](_0x51e866=>{const _0x286cbb=_0x18d578;_0x1f6555[_0x286cbb(0x95)][_0x286cbb(0xd1)]&&_0x51e866[_0x286cbb(0xc5)]&&_0x51e866[_0x286cbb(0xaf)]({'timeout':_0x1f6555[_0x286cbb(0x95)][_0x286cbb(0xd1)]*0xea60})[_0x286cbb(0xb7)](()=>{});})['catch'](()=>{});},this[_0x598956(0xb6)]=async _0x8428bb=>{const _0x5af6f=_0x598956;if(constants[_0x5af6f(0xcf)](_0x8428bb[_0x5af6f(0xbe)][_0x5af6f(0x9f)]))return;const _0x18ea78=await _0x8428bb['guild']['fetchInvites'](),_0x1aee10=_0x18ea78[_0x5af6f(0xb3)](_0x4377a8=>_0x4377a8[_0x5af6f(0xa9)]>_0x8428bb[_0x5af6f(0xbf)][_0x5af6f(0x9c)][_0x4377a8[_0x5af6f(0xce)]]);for(const _0x2f2a2f of _0x18ea78[_0x5af6f(0xc6)]()){_0x8428bb['guild']['invites'][_0x2f2a2f[_0x5af6f(0xce)]]=_0x2f2a2f[_0x5af6f(0xa9)]||0x0;}const _0x144f8e=await Role_1[_0x5af6f(0xd2)]['find']({'guild':_0x8428bb['guild']['id'],'invite':_0x1aee10[_0x5af6f(0xce)]});_0x144f8e&&_0x144f8e[_0x5af6f(0xb9)]&&await _0x8428bb['roles']['add'](_0x144f8e[_0x5af6f(0xb1)](_0x299fa6=>_0x299fa6['_id']),_0x5af6f(0xa2)+_0x1aee10[_0x5af6f(0xce)]);},this[_0x598956(0x98)]=async _0x3566fd=>{const _0x40f31f=_0x598956;_0x3566fd['partial']&&await _0x3566fd[_0x40f31f(0xb4)]();const _0x8982b5=_0x3566fd[_0x40f31f(0xbf)],_0x5f1c0a=await _0x8982b5[_0x40f31f(0xc8)]();this[_0x40f31f(0xcc)](_0x3566fd,_0x5f1c0a),this[_0x40f31f(0xba)](_0x3566fd,_0x8982b5),this['handleInviteRoles'](_0x3566fd)[_0x40f31f(0xb7)](tesseract_1[_0x40f31f(0xb2)]['error']),_0x8982b5[_0x40f31f(0xa0)]({'event':_0x40f31f(0x93),'fields':[{'name':_0x40f31f(0xc9),'value':_0x3566fd[_0x40f31f(0x9f)][_0x40f31f(0x94)],'inline':!![]},{'name':_0x40f31f(0xcb),'value':_0x3566fd['id'],'inline':!![]},{'name':_0x40f31f(0x89),'value':_0x3566fd['user'][_0x40f31f(0x9d)]?_0x40f31f(0xa5):'Human','inline':!![]},{'name':'Joined\x20Discord','value':_0x3566fd[_0x40f31f(0x9f)][_0x40f31f(0xa1)]['toUTCString'](),'inline':!![]}],'timestamp':_0x3566fd[_0x40f31f(0x9a)]});};}}; \ No newline at end of file +const a185_0x377a=['Member\x20Type','partial','get','exports','createLog','Logger','channels','invites','replaceMemberVariables','client','Member\x20ID','has','handleGreetings','fetchInvites','name','handleInviteRoles','../models/Role','cache','constructor','concat','toUTCString','floor','guildMemberAdd','bot','map','../utils/variables','greeting','LISTENER_MODE','autoAssignable','generateEmbed','isPublicBastion','error','handleAutoRoles','../assets/greetings.json','Human','then','find','add','privateMessage','code','../utils/constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Listener','Auto\x20added\x20via\x20Auto\x20Roles','stringify','message','joinedTimestamp','getDocument','.\x20Welcome\x20to\x20our\x20server!','channelId','guild','delete','random','_id','forBots','fetch','roles','filter','createDM','default','catch','uses','createdAt','apply','Constants','send','forUsers','user','length','parse'];(function(_0x1f7a4b,_0x7e2e6){const _0x377a5b=function(_0x29711a){while(--_0x29711a){_0x1f7a4b['push'](_0x1f7a4b['shift']());}},_0x171f77=function(){const _0x5c9163={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3387e1,_0x5e1029,_0x47fdaa,_0x2d3043){_0x2d3043=_0x2d3043||{};let _0x144700=_0x5e1029+'='+_0x47fdaa,_0x328c94=0x0;for(let _0x51b0e=0x0,_0x24d456=_0x3387e1['length'];_0x51b0e<_0x24d456;_0x51b0e++){const _0x313f3a=_0x3387e1[_0x51b0e];_0x144700+=';\x20'+_0x313f3a;const _0x4f6aea=_0x3387e1[_0x313f3a];_0x3387e1['push'](_0x4f6aea),_0x24d456=_0x3387e1['length'],_0x4f6aea!==!![]&&(_0x144700+='='+_0x4f6aea);}_0x2d3043['cookie']=_0x144700;},'removeCookie':function(){return'dev';},'getCookie':function(_0x34baf5,_0x17a0dc){_0x34baf5=_0x34baf5||function(_0x5b4775){return _0x5b4775;};const _0x3fb108=_0x34baf5(new RegExp('(?:^|;\x20)'+_0x17a0dc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ed0a9=function(_0x4892c6,_0x4b1854){_0x4892c6(++_0x4b1854);};return _0x5ed0a9(_0x377a5b,_0x7e2e6),_0x3fb108?decodeURIComponent(_0x3fb108[0x1]):undefined;}},_0x300ec6=function(){const _0x1e8630=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1e8630['test'](_0x5c9163['removeCookie']['toString']());};_0x5c9163['updateCookie']=_0x300ec6;let _0x38e382='';const _0x4a1477=_0x5c9163['updateCookie']();if(!_0x4a1477)_0x5c9163['setCookie'](['*'],'counter',0x1);else _0x4a1477?_0x38e382=_0x5c9163['getCookie'](null,'counter'):_0x5c9163['removeCookie']();};_0x171f77();}(a185_0x377a,0x1ae));const a185_0x171f=function(_0x1f7a4b,_0x7e2e6){_0x1f7a4b=_0x1f7a4b-0x1a6;let _0x377a5b=a185_0x377a[_0x1f7a4b];return _0x377a5b;};const a185_0x19737f=a185_0x171f,a185_0x300ec6=function(){let _0x4a1477=!![];return function(_0x3387e1,_0x5e1029){const _0x47fdaa=_0x4a1477?function(){const _0x443dca=a185_0x171f;if(_0x5e1029){const _0x2d3043=_0x5e1029[_0x443dca(0x1db)](_0x3387e1,arguments);return _0x5e1029=null,_0x2d3043;}}:function(){};return _0x4a1477=![],_0x47fdaa;};}(),a185_0x5c9163=a185_0x300ec6(this,function(){const _0x144700=function(){const _0x40719e=a185_0x171f,_0x328c94=_0x144700[_0x40719e(0x1ae)](_0x40719e(0x1c5))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x328c94['test'](a185_0x5c9163);};return _0x144700();});a185_0x5c9163();'use strict';const tesseract_1=require('@bastion/tesseract'),Role_1=require(a185_0x19737f(0x1ac)),constants=require(a185_0x19737f(0x1c4)),embeds=require('../utils/embeds'),variables=require(a185_0x19737f(0x1b5)),greetings=require(a185_0x19737f(0x1bd));module[a185_0x19737f(0x1e5)]=class GuildMemberAddListener extends tesseract_1[a185_0x19737f(0x1c6)]{constructor(){const _0x3fc0c5=a185_0x19737f;super('guildMemberAdd',{'mode':tesseract_1[_0x3fc0c5(0x1dc)][_0x3fc0c5(0x1b7)]['ON']}),this['handleAutoRoles']=async(_0x51b0e,_0x24d456)=>{const _0x3455a4=_0x3fc0c5,_0x313f3a=await Role_1[_0x3455a4(0x1d7)]['find']({'guild':_0x24d456['id'],'autoAssignable':{'$exists':!![],'$ne':null}}),_0x4f6aea=_0x313f3a[_0x3455a4(0x1d5)](_0x3fb108=>_0x3fb108[_0x3455a4(0x1b8)]&&_0x3fb108[_0x3455a4(0x1b8)]['forBots'])[_0x3455a4(0x1b4)](_0x5ed0a9=>_0x5ed0a9[_0x3455a4(0x1d1)]),_0x34baf5=_0x313f3a[_0x3455a4(0x1d5)](_0x5b4775=>_0x5b4775[_0x3455a4(0x1b8)]&&_0x5b4775['autoAssignable']['forUsers'])[_0x3455a4(0x1b4)](_0x4892c6=>_0x4892c6[_0x3455a4(0x1d1)]),_0x17a0dc=_0x313f3a[_0x3455a4(0x1d5)](_0x4b1854=>_0x4b1854[_0x3455a4(0x1b8)]&&(Number(_0x4b1854[_0x3455a4(0x1b8)][_0x3455a4(0x1d2)])^Number(_0x4b1854[_0x3455a4(0x1b8)][_0x3455a4(0x1de)]))===0x0)[_0x3455a4(0x1b4)](_0x1e8630=>_0x1e8630[_0x3455a4(0x1d1)]);(_0x4f6aea[_0x3455a4(0x1e0)]||_0x34baf5[_0x3455a4(0x1e0)]||_0x17a0dc[_0x3455a4(0x1e0)])&&_0x51b0e[_0x3455a4(0x1d4)]['add'](_0x17a0dc[_0x3455a4(0x1af)](_0x51b0e[_0x3455a4(0x1df)]['bot']?_0x4f6aea:_0x34baf5),_0x3455a4(0x1c7));},this['handleGreetings']=(_0x485088,_0x37781d)=>{const _0x2b25ae=_0x3fc0c5;if(!_0x37781d[_0x2b25ae(0x1b6)])return;_0x37781d[_0x2b25ae(0x1b6)][_0x2b25ae(0x1c2)]&&_0x485088[_0x2b25ae(0x1d6)]()[_0x2b25ae(0x1bf)](_0x5ab9b2=>{const _0x58f4c1=_0x2b25ae;_0x5ab9b2[_0x58f4c1(0x1dd)]({'embed':{...JSON[_0x58f4c1(0x1e1)](variables[_0x58f4c1(0x1ea)](JSON[_0x58f4c1(0x1c8)](_0x30488f),_0x485088)),'footer':{'text':'Greetings\x20from\x20'+_0x485088['guild'][_0x58f4c1(0x1aa)]+_0x58f4c1(0x1cc)}}})[_0x58f4c1(0x1d8)](()=>{});})['catch'](()=>{});if(!_0x37781d['greeting']['channelId'])return;if(!_0x485088[_0x2b25ae(0x1ce)][_0x2b25ae(0x1e8)][_0x2b25ae(0x1ad)][_0x2b25ae(0x1a7)](_0x37781d['greeting'][_0x2b25ae(0x1cd)]))return;const _0x1c4337=_0x485088[_0x2b25ae(0x1ce)][_0x2b25ae(0x1e8)]['cache'][_0x2b25ae(0x1e4)](_0x37781d[_0x2b25ae(0x1b6)]['channelId']),_0x30488f=embeds[_0x2b25ae(0x1b9)](_0x37781d[_0x2b25ae(0x1b6)][_0x2b25ae(0x1c9)]?_0x37781d[_0x2b25ae(0x1b6)][_0x2b25ae(0x1c9)]:greetings[Math[_0x2b25ae(0x1b1)](Math[_0x2b25ae(0x1d0)]()*greetings[_0x2b25ae(0x1e0)])]);_0x1c4337[_0x2b25ae(0x1dd)]({'embed':{...JSON[_0x2b25ae(0x1e1)](variables[_0x2b25ae(0x1ea)](JSON[_0x2b25ae(0x1c8)](_0x30488f),_0x485088)),'footer':{'text':'Greetings!'}}})['then'](_0x54b13a=>{const _0x5485aa=_0x2b25ae;_0x37781d['greeting']['timeout']&&_0x54b13a['deletable']&&_0x54b13a[_0x5485aa(0x1cf)]({'timeout':_0x37781d['greeting']['timeout']*0xea60})[_0x5485aa(0x1d8)](()=>{});})[_0x2b25ae(0x1d8)](()=>{});},this[_0x3fc0c5(0x1ab)]=async _0x4423fd=>{const _0x4f3177=_0x3fc0c5;if(constants[_0x4f3177(0x1ba)](_0x4423fd[_0x4f3177(0x1eb)][_0x4f3177(0x1df)]))return;const _0x5a104b=await _0x4423fd['guild'][_0x4f3177(0x1a9)](),_0x1fea66=_0x5a104b[_0x4f3177(0x1c0)](_0x2a0fdc=>_0x2a0fdc[_0x4f3177(0x1d9)]>_0x4423fd['guild'][_0x4f3177(0x1e9)][_0x2a0fdc['code']]);for(const _0x5254d8 of _0x5a104b['values']()){_0x4423fd[_0x4f3177(0x1ce)][_0x4f3177(0x1e9)][_0x5254d8[_0x4f3177(0x1c3)]]=_0x5254d8[_0x4f3177(0x1d9)]||0x0;}const _0x5e5ff5=await Role_1['default'][_0x4f3177(0x1c0)]({'guild':_0x4423fd[_0x4f3177(0x1ce)]['id'],'invite':_0x1fea66['code']});_0x5e5ff5&&_0x5e5ff5[_0x4f3177(0x1e0)]&&await _0x4423fd[_0x4f3177(0x1d4)][_0x4f3177(0x1c1)](_0x5e5ff5[_0x4f3177(0x1b4)](_0x139d0a=>_0x139d0a['_id']),'Joined\x20using\x20the\x20invite\x20'+_0x1fea66[_0x4f3177(0x1c3)]);},this['exec']=async _0x2f43a0=>{const _0x23bc82=_0x3fc0c5;_0x2f43a0[_0x23bc82(0x1e3)]&&await _0x2f43a0[_0x23bc82(0x1d3)]();const _0x1606b7=_0x2f43a0[_0x23bc82(0x1ce)],_0x55e9a1=await _0x1606b7[_0x23bc82(0x1cb)]();this[_0x23bc82(0x1a8)](_0x2f43a0,_0x55e9a1),this[_0x23bc82(0x1bc)](_0x2f43a0,_0x1606b7),this[_0x23bc82(0x1ab)](_0x2f43a0)['catch'](tesseract_1[_0x23bc82(0x1e7)][_0x23bc82(0x1bb)]),_0x1606b7[_0x23bc82(0x1e6)]({'event':_0x23bc82(0x1b2),'fields':[{'name':'Member','value':_0x2f43a0[_0x23bc82(0x1df)]['tag'],'inline':!![]},{'name':_0x23bc82(0x1a6),'value':_0x2f43a0['id'],'inline':!![]},{'name':_0x23bc82(0x1e2),'value':_0x2f43a0['user'][_0x23bc82(0x1b3)]?'Bot':_0x23bc82(0x1be),'inline':!![]},{'name':'Joined\x20Discord','value':_0x2f43a0['user'][_0x23bc82(0x1da)][_0x23bc82(0x1b0)](),'inline':!![]}],'timestamp':_0x2f43a0[_0x23bc82(0x1ca)]});};}}; \ No newline at end of file diff --git a/listeners/guildMemberRemove.js b/listeners/guildMemberRemove.js index 7920c3bbe..0b183ccb1 100644 --- a/listeners/guildMemberRemove.js +++ b/listeners/guildMemberRemove.js @@ -1 +1 @@ -const a185_0x1368=['random','Member','constructor','../utils/embeds','channels','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','tag','Bot','Listener','return\x20/\x22\x20+\x20this\x20+\x20\x22/','has','../assets/farewells.json','farewells!','user','farewell','fetch','../utils/variables','catch','test','cache','apply','bot','deletable','length','@bastion/tesseract','Member\x20ID','getDocument','partial','Human','handleFarewells','channelId','generateEmbed','message','guild','LISTENER_MODE','floor','exec','parse','exports','timeout','guildMemberRemove'];(function(_0x21c752,_0x3b104b){const _0x13684b=function(_0x542729){while(--_0x542729){_0x21c752['push'](_0x21c752['shift']());}},_0x3bc532=function(){const _0x5ad349={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x122699,_0x445e9b,_0x11d6ad,_0x2283b3){_0x2283b3=_0x2283b3||{};let _0x584169=_0x445e9b+'='+_0x11d6ad,_0x40d76f=0x0;for(let _0x147eb2=0x0,_0x300a5e=_0x122699['length'];_0x147eb2<_0x300a5e;_0x147eb2++){const _0xa5211a=_0x122699[_0x147eb2];_0x584169+=';\x20'+_0xa5211a;const _0x36a216=_0x122699[_0xa5211a];_0x122699['push'](_0x36a216),_0x300a5e=_0x122699['length'],_0x36a216!==!![]&&(_0x584169+='='+_0x36a216);}_0x2283b3['cookie']=_0x584169;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a254c,_0x484c58){_0x5a254c=_0x5a254c||function(_0x32e3d8){return _0x32e3d8;};const _0x854e45=_0x5a254c(new RegExp('(?:^|;\x20)'+_0x484c58['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e4707=function(_0x29a165,_0x5a7b9d){_0x29a165(++_0x5a7b9d);};return _0x2e4707(_0x13684b,_0x3b104b),_0x854e45?decodeURIComponent(_0x854e45[0x1]):undefined;}},_0x2a1371=function(){const _0x1016a0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1016a0['test'](_0x5ad349['removeCookie']['toString']());};_0x5ad349['updateCookie']=_0x2a1371;let _0x240667='';const _0x2483b8=_0x5ad349['updateCookie']();if(!_0x2483b8)_0x5ad349['setCookie'](['*'],'counter',0x1);else _0x2483b8?_0x240667=_0x5ad349['getCookie'](null,'counter'):_0x5ad349['removeCookie']();};_0x3bc532();}(a185_0x1368,0x183));const a185_0x3bc5=function(_0x21c752,_0x3b104b){_0x21c752=_0x21c752-0x146;let _0x13684b=a185_0x1368[_0x21c752];return _0x13684b;};const _0x523e30=a185_0x3bc5,a185_0x2a1371=function(){let _0x2483b8=!![];return function(_0x122699,_0x445e9b){const _0x11d6ad=_0x2483b8?function(){const _0x1d0a37=a185_0x3bc5;if(_0x445e9b){const _0x2283b3=_0x445e9b[_0x1d0a37(0x148)](_0x122699,arguments);return _0x445e9b=null,_0x2283b3;}}:function(){};return _0x2483b8=![],_0x11d6ad;};}(),a185_0x5ad349=a185_0x2a1371(this,function(){const _0x584169=function(){const _0x330063=a185_0x3bc5,_0x40d76f=_0x584169['constructor'](_0x330063(0x166))()[_0x330063(0x15f)](_0x330063(0x162));return!_0x40d76f[_0x330063(0x146)](a185_0x5ad349);};return _0x584169();});a185_0x5ad349();'use strict';const tesseract_1=require(_0x523e30(0x14c)),embeds=require(_0x523e30(0x160)),variables=require(_0x523e30(0x16d)),farewells=require(_0x523e30(0x168));module[_0x523e30(0x15a)]=class GuildMemberRemoveListener extends tesseract_1[_0x523e30(0x165)]{constructor(){const _0x2b2b87=_0x523e30;super(_0x2b2b87(0x15c),{'mode':tesseract_1['Constants'][_0x2b2b87(0x156)]['ON']}),this[_0x2b2b87(0x151)]=(_0x147eb2,_0x300a5e)=>{const _0x6b7a08=_0x2b2b87;if(!_0x300a5e[_0x6b7a08(0x16b)]||!_0x300a5e[_0x6b7a08(0x16b)][_0x6b7a08(0x152)])return;if(!_0x147eb2['guild']['channels'][_0x6b7a08(0x147)][_0x6b7a08(0x167)](_0x300a5e[_0x6b7a08(0x16b)]['channelId']))return;const _0xa5211a=_0x147eb2[_0x6b7a08(0x155)][_0x6b7a08(0x161)]['cache']['get'](_0x300a5e[_0x6b7a08(0x16b)][_0x6b7a08(0x152)]),_0x36a216=embeds[_0x6b7a08(0x153)](_0x300a5e[_0x6b7a08(0x16b)]['message']?_0x300a5e[_0x6b7a08(0x16b)][_0x6b7a08(0x154)]:farewells[Math[_0x6b7a08(0x157)](Math[_0x6b7a08(0x15d)]()*farewells[_0x6b7a08(0x14b)])]);_0xa5211a['send']({'embed':{...JSON[_0x6b7a08(0x159)](variables['replaceMemberVariables'](JSON['stringify'](_0x36a216),_0x147eb2)),'footer':{'text':_0x6b7a08(0x169)}}})['then'](_0x5a254c=>{const _0x53a8f6=_0x6b7a08;_0x300a5e[_0x53a8f6(0x16b)][_0x53a8f6(0x15b)]&&_0x5a254c[_0x53a8f6(0x14a)]&&_0x5a254c['delete']({'timeout':_0x300a5e[_0x53a8f6(0x16b)][_0x53a8f6(0x15b)]*0xea60})[_0x53a8f6(0x16e)](()=>{});})[_0x6b7a08(0x16e)](()=>{});},this[_0x2b2b87(0x158)]=async _0x484c58=>{const _0x269067=_0x2b2b87;_0x484c58[_0x269067(0x14f)]&&await _0x484c58[_0x269067(0x16c)]();const _0x854e45=_0x484c58['guild'],_0x2e4707=await _0x854e45[_0x269067(0x14e)]();this[_0x269067(0x151)](_0x484c58,_0x2e4707),_0x854e45['createLog']({'event':'guildMemberRemove','fields':[{'name':_0x269067(0x15e),'value':_0x484c58[_0x269067(0x16a)][_0x269067(0x163)],'inline':!![]},{'name':_0x269067(0x14d),'value':_0x484c58['id'],'inline':!![]},{'name':'Member\x20Type','value':_0x484c58[_0x269067(0x16a)][_0x269067(0x149)]?_0x269067(0x164):_0x269067(0x150),'inline':!![]},{'name':'Joined\x20Server','value':_0x484c58['joinedAt']['toUTCString'](),'inline':!![]}]});};}}; \ No newline at end of file +const a186_0x2dbd=['has','user','catch','cache','test','exports','guildMemberRemove','getDocument','timeout','replaceMemberVariables','farewells!','Bot','Member\x20ID','send','stringify','Member','apply','joinedAt','Joined\x20Server','@bastion/tesseract','handleFarewells','delete','../assets/farewells.json','Constants','guild','createLog','fetch','parse','toUTCString','then','../utils/variables','length','deletable','channels','message','Listener','exec','farewell','Member\x20Type','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x578e89,_0x34207c){const _0x2dbd96=function(_0x4dd236){while(--_0x4dd236){_0x578e89['push'](_0x578e89['shift']());}},_0x5d84f2=function(){const _0x5e41e2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x49b601,_0x50e2e3,_0xe5866a,_0x5f037e){_0x5f037e=_0x5f037e||{};let _0x2125d4=_0x50e2e3+'='+_0xe5866a,_0x6926fd=0x0;for(let _0x53b7c8=0x0,_0x4dd1c0=_0x49b601['length'];_0x53b7c8<_0x4dd1c0;_0x53b7c8++){const _0x2372f2=_0x49b601[_0x53b7c8];_0x2125d4+=';\x20'+_0x2372f2;const _0xde1958=_0x49b601[_0x2372f2];_0x49b601['push'](_0xde1958),_0x4dd1c0=_0x49b601['length'],_0xde1958!==!![]&&(_0x2125d4+='='+_0xde1958);}_0x5f037e['cookie']=_0x2125d4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x433b18,_0x2040c9){_0x433b18=_0x433b18||function(_0x1cf44a){return _0x1cf44a;};const _0x2fc742=_0x433b18(new RegExp('(?:^|;\x20)'+_0x2040c9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xc66431=function(_0x1b8a89,_0x4a5ed8){_0x1b8a89(++_0x4a5ed8);};return _0xc66431(_0x2dbd96,_0x34207c),_0x2fc742?decodeURIComponent(_0x2fc742[0x1]):undefined;}},_0x34b8f6=function(){const _0xebdb33=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xebdb33['test'](_0x5e41e2['removeCookie']['toString']());};_0x5e41e2['updateCookie']=_0x34b8f6;let _0x4835e8='';const _0x2acbc5=_0x5e41e2['updateCookie']();if(!_0x2acbc5)_0x5e41e2['setCookie'](['*'],'counter',0x1);else _0x2acbc5?_0x4835e8=_0x5e41e2['getCookie'](null,'counter'):_0x5e41e2['removeCookie']();};_0x5d84f2();}(a186_0x2dbd,0xc4));const a186_0x5d84=function(_0x578e89,_0x34207c){_0x578e89=_0x578e89-0x1a4;let _0x2dbd96=a186_0x2dbd[_0x578e89];return _0x2dbd96;};const a186_0x524c01=a186_0x5d84,a186_0x34b8f6=function(){let _0x2acbc5=!![];return function(_0x49b601,_0x50e2e3){const _0xe5866a=_0x2acbc5?function(){const _0x435cfa=a186_0x5d84;if(_0x50e2e3){const _0x5f037e=_0x50e2e3[_0x435cfa(0x1b8)](_0x49b601,arguments);return _0x50e2e3=null,_0x5f037e;}}:function(){};return _0x2acbc5=![],_0xe5866a;};}(),a186_0x5e41e2=a186_0x34b8f6(this,function(){const _0x2125d4=function(){const _0x14c7e3=a186_0x5d84,_0x6926fd=_0x2125d4['constructor'](_0x14c7e3(0x1a7))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x6926fd[_0x14c7e3(0x1ac)](a186_0x5e41e2);};return _0x2125d4();});a186_0x5e41e2();'use strict';const tesseract_1=require(a186_0x524c01(0x1bb)),embeds=require('../utils/embeds'),variables=require(a186_0x524c01(0x1c6)),farewells=require(a186_0x524c01(0x1be));module[a186_0x524c01(0x1ad)]=class GuildMemberRemoveListener extends tesseract_1[a186_0x524c01(0x1cb)]{constructor(){const _0x28395e=a186_0x524c01;super(_0x28395e(0x1ae),{'mode':tesseract_1[_0x28395e(0x1bf)]['LISTENER_MODE']['ON']}),this[_0x28395e(0x1bc)]=(_0x53b7c8,_0x4dd1c0)=>{const _0x32cb6a=_0x28395e;if(!_0x4dd1c0[_0x32cb6a(0x1a5)]||!_0x4dd1c0[_0x32cb6a(0x1a5)]['channelId'])return;if(!_0x53b7c8[_0x32cb6a(0x1c0)][_0x32cb6a(0x1c9)][_0x32cb6a(0x1ab)][_0x32cb6a(0x1a8)](_0x4dd1c0[_0x32cb6a(0x1a5)]['channelId']))return;const _0x2372f2=_0x53b7c8[_0x32cb6a(0x1c0)][_0x32cb6a(0x1c9)][_0x32cb6a(0x1ab)]['get'](_0x4dd1c0[_0x32cb6a(0x1a5)]['channelId']),_0xde1958=embeds['generateEmbed'](_0x4dd1c0[_0x32cb6a(0x1a5)]['message']?_0x4dd1c0['farewell'][_0x32cb6a(0x1ca)]:farewells[Math['floor'](Math['random']()*farewells[_0x32cb6a(0x1c7)])]);_0x2372f2[_0x32cb6a(0x1b5)]({'embed':{...JSON[_0x32cb6a(0x1c3)](variables[_0x32cb6a(0x1b1)](JSON[_0x32cb6a(0x1b6)](_0xde1958),_0x53b7c8)),'footer':{'text':_0x32cb6a(0x1b2)}}})[_0x32cb6a(0x1c5)](_0x433b18=>{const _0x147bdf=_0x32cb6a;_0x4dd1c0[_0x147bdf(0x1a5)]['timeout']&&_0x433b18[_0x147bdf(0x1c8)]&&_0x433b18[_0x147bdf(0x1bd)]({'timeout':_0x4dd1c0[_0x147bdf(0x1a5)][_0x147bdf(0x1b0)]*0xea60})['catch'](()=>{});})[_0x32cb6a(0x1aa)](()=>{});},this[_0x28395e(0x1a4)]=async _0x2040c9=>{const _0x39baba=_0x28395e;_0x2040c9['partial']&&await _0x2040c9[_0x39baba(0x1c2)]();const _0x2fc742=_0x2040c9[_0x39baba(0x1c0)],_0xc66431=await _0x2fc742[_0x39baba(0x1af)]();this[_0x39baba(0x1bc)](_0x2040c9,_0xc66431),_0x2fc742[_0x39baba(0x1c1)]({'event':_0x39baba(0x1ae),'fields':[{'name':_0x39baba(0x1b7),'value':_0x2040c9[_0x39baba(0x1a9)]['tag'],'inline':!![]},{'name':_0x39baba(0x1b4),'value':_0x2040c9['id'],'inline':!![]},{'name':_0x39baba(0x1a6),'value':_0x2040c9[_0x39baba(0x1a9)]['bot']?_0x39baba(0x1b3):'Human','inline':!![]},{'name':_0x39baba(0x1ba),'value':_0x2040c9[_0x39baba(0x1b9)][_0x39baba(0x1c4)](),'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/guildMemberUpdate.js b/listeners/guildMemberUpdate.js index 4bbc16add..59ecc2d37 100644 --- a/listeners/guildMemberUpdate.js +++ b/listeners/guildMemberUpdate.js @@ -1 +1 @@ -const a186_0x39d9=['tag','test','Listener','constructor','Member','nickname','Member\x20ID','fetch','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','partial','user','Nickname','nickUpdate','Constants','apply','exports','guildMemberUpdate','@bastion/tesseract','exec'];(function(_0x41bfb1,_0x535aa7){const _0x39d9c6=function(_0x3577f9){while(--_0x3577f9){_0x41bfb1['push'](_0x41bfb1['shift']());}},_0x5b448e=function(){const _0x537a5f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x551388,_0x2a3355,_0x4bf510,_0x11066c){_0x11066c=_0x11066c||{};let _0x753b4=_0x2a3355+'='+_0x4bf510,_0x500325=0x0;for(let _0x23e624=0x0,_0x1d4d27=_0x551388['length'];_0x23e624<_0x1d4d27;_0x23e624++){const _0x1a6475=_0x551388[_0x23e624];_0x753b4+=';\x20'+_0x1a6475;const _0x376e09=_0x551388[_0x1a6475];_0x551388['push'](_0x376e09),_0x1d4d27=_0x551388['length'],_0x376e09!==!![]&&(_0x753b4+='='+_0x376e09);}_0x11066c['cookie']=_0x753b4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24e36e,_0x3b5d10){_0x24e36e=_0x24e36e||function(_0x1b4aef){return _0x1b4aef;};const _0x5caf77=_0x24e36e(new RegExp('(?:^|;\x20)'+_0x3b5d10['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x270c98=function(_0x339797,_0x347d1c){_0x339797(++_0x347d1c);};return _0x270c98(_0x39d9c6,_0x535aa7),_0x5caf77?decodeURIComponent(_0x5caf77[0x1]):undefined;}},_0x199fca=function(){const _0x694309=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x694309['test'](_0x537a5f['removeCookie']['toString']());};_0x537a5f['updateCookie']=_0x199fca;let _0x12faa0='';const _0x52b1e9=_0x537a5f['updateCookie']();if(!_0x52b1e9)_0x537a5f['setCookie'](['*'],'counter',0x1);else _0x52b1e9?_0x12faa0=_0x537a5f['getCookie'](null,'counter'):_0x537a5f['removeCookie']();};_0x5b448e();}(a186_0x39d9,0xe3));const a186_0x5b44=function(_0x41bfb1,_0x535aa7){_0x41bfb1=_0x41bfb1-0x137;let _0x39d9c6=a186_0x39d9[_0x41bfb1];return _0x39d9c6;};const _0x3b5b0d=a186_0x5b44,a186_0x199fca=function(){let _0x52b1e9=!![];return function(_0x551388,_0x2a3355){const _0x4bf510=_0x52b1e9?function(){const _0x169a6c=a186_0x5b44;if(_0x2a3355){const _0x11066c=_0x2a3355[_0x169a6c(0x13f)](_0x551388,arguments);return _0x2a3355=null,_0x11066c;}}:function(){};return _0x52b1e9=![],_0x4bf510;};}(),a186_0x537a5f=a186_0x199fca(this,function(){const _0x753b4=function(){const _0x34c635=a186_0x5b44,_0x500325=_0x753b4[_0x34c635(0x147)](_0x34c635(0x139))()[_0x34c635(0x147)](_0x34c635(0x138));return!_0x500325[_0x34c635(0x145)](a186_0x537a5f);};return _0x753b4();});a186_0x537a5f();'use strict';const tesseract_1=require(_0x3b5b0d(0x142));module[_0x3b5b0d(0x140)]=class GuildMemberUpdateListener extends tesseract_1[_0x3b5b0d(0x146)]{constructor(){const _0x1982ee=_0x3b5b0d;super(_0x1982ee(0x141),{'mode':tesseract_1[_0x1982ee(0x13e)]['LISTENER_MODE']['ON']}),this[_0x1982ee(0x143)]=async(_0x23e624,_0x1d4d27)=>{const _0x1b95d1=_0x1982ee;_0x23e624[_0x1b95d1(0x13a)]&&await _0x23e624[_0x1b95d1(0x137)]();if(_0x23e624[_0x1b95d1(0x149)]===_0x1d4d27['nickname'])return;const _0x1a6475=_0x23e624['guild'];_0x1a6475['createLog']({'event':_0x1b95d1(0x13d),'fields':[{'name':_0x1b95d1(0x148),'value':_0x23e624[_0x1b95d1(0x13b)][_0x1b95d1(0x144)],'inline':!![]},{'name':_0x1b95d1(0x14a),'value':_0x23e624['id'],'inline':!![]},{'name':_0x1b95d1(0x13c),'value':_0x1d4d27[_0x1b95d1(0x149)]||'-','inline':!![]}]});};}}; \ No newline at end of file +const a187_0x1fae=['user','fetch','tag','Constants','LISTENER_MODE','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','@bastion/tesseract','createLog','guild','test','nickname','apply','partial','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','nickUpdate','Listener'];(function(_0x2a9667,_0x4abaa6){const _0x1faedf=function(_0x174bb6){while(--_0x174bb6){_0x2a9667['push'](_0x2a9667['shift']());}},_0x5b3d03=function(){const _0x6d5f95={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x31e3d0,_0x22d948,_0x5bc982,_0x113d95){_0x113d95=_0x113d95||{};let _0xc4f37a=_0x22d948+'='+_0x5bc982,_0x1f8dbe=0x0;for(let _0x285450=0x0,_0x264eaa=_0x31e3d0['length'];_0x285450<_0x264eaa;_0x285450++){const _0x581f61=_0x31e3d0[_0x285450];_0xc4f37a+=';\x20'+_0x581f61;const _0x3e6416=_0x31e3d0[_0x581f61];_0x31e3d0['push'](_0x3e6416),_0x264eaa=_0x31e3d0['length'],_0x3e6416!==!![]&&(_0xc4f37a+='='+_0x3e6416);}_0x113d95['cookie']=_0xc4f37a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2f4423,_0x35716d){_0x2f4423=_0x2f4423||function(_0x1e3952){return _0x1e3952;};const _0x43f2bd=_0x2f4423(new RegExp('(?:^|;\x20)'+_0x35716d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x309507=function(_0x6df121,_0x48b80d){_0x6df121(++_0x48b80d);};return _0x309507(_0x1faedf,_0x4abaa6),_0x43f2bd?decodeURIComponent(_0x43f2bd[0x1]):undefined;}},_0x3b69f2=function(){const _0x2b100a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b100a['test'](_0x6d5f95['removeCookie']['toString']());};_0x6d5f95['updateCookie']=_0x3b69f2;let _0x4e2120='';const _0x3aa37f=_0x6d5f95['updateCookie']();if(!_0x3aa37f)_0x6d5f95['setCookie'](['*'],'counter',0x1);else _0x3aa37f?_0x4e2120=_0x6d5f95['getCookie'](null,'counter'):_0x6d5f95['removeCookie']();};_0x5b3d03();}(a187_0x1fae,0x6c));const a187_0x5b3d=function(_0x2a9667,_0x4abaa6){_0x2a9667=_0x2a9667-0x1e9;let _0x1faedf=a187_0x1fae[_0x2a9667];return _0x1faedf;};const a187_0x4061fb=a187_0x5b3d,a187_0x3b69f2=function(){let _0x3aa37f=!![];return function(_0x31e3d0,_0x22d948){const _0x5bc982=_0x3aa37f?function(){const _0x425310=a187_0x5b3d;if(_0x22d948){const _0x113d95=_0x22d948[_0x425310(0x1ef)](_0x31e3d0,arguments);return _0x22d948=null,_0x113d95;}}:function(){};return _0x3aa37f=![],_0x5bc982;};}(),a187_0x6d5f95=a187_0x3b69f2(this,function(){const _0xc4f37a=function(){const _0x318898=a187_0x5b3d,_0x1f8dbe=_0xc4f37a[_0x318898(0x1e9)](_0x318898(0x1f9))()[_0x318898(0x1e9)](_0x318898(0x1f1));return!_0x1f8dbe[_0x318898(0x1ed)](a187_0x6d5f95);};return _0xc4f37a();});a187_0x6d5f95();'use strict';const tesseract_1=require(a187_0x4061fb(0x1ea));module['exports']=class GuildMemberUpdateListener extends tesseract_1[a187_0x4061fb(0x1f3)]{constructor(){const _0x5267f9=a187_0x4061fb;super('guildMemberUpdate',{'mode':tesseract_1[_0x5267f9(0x1f7)][_0x5267f9(0x1f8)]['ON']}),this['exec']=async(_0x285450,_0x264eaa)=>{const _0x37dc21=_0x5267f9;_0x285450[_0x37dc21(0x1f0)]&&await _0x285450[_0x37dc21(0x1f5)]();if(_0x285450[_0x37dc21(0x1ee)]===_0x264eaa['nickname'])return;const _0x581f61=_0x285450[_0x37dc21(0x1ec)];_0x581f61[_0x37dc21(0x1eb)]({'event':_0x37dc21(0x1f2),'fields':[{'name':'Member','value':_0x285450[_0x37dc21(0x1f4)][_0x37dc21(0x1f6)],'inline':!![]},{'name':'Member\x20ID','value':_0x285450['id'],'inline':!![]},{'name':'Nickname','value':_0x264eaa[_0x37dc21(0x1ee)]||'-','inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/guildUpdate.js b/listeners/guildUpdate.js index 078baecb1..c14cba3aa 100644 --- a/listeners/guildUpdate.js +++ b/listeners/guildUpdate.js @@ -1 +1 @@ -const a187_0x4a43=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','exec','apply','New\x20Server\x20Name','Listener','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','guildUpdate','name','constructor','createLog','Server\x20ID','Constants'];(function(_0x101196,_0x3587c2){const _0x4a43d2=function(_0x5cc295){while(--_0x5cc295){_0x101196['push'](_0x101196['shift']());}},_0x3a58bf=function(){const _0x41fa48={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x41d7a3,_0x1cc704,_0x51cd64,_0x322a11){_0x322a11=_0x322a11||{};let _0x544db4=_0x1cc704+'='+_0x51cd64,_0xe846fc=0x0;for(let _0x2481c8=0x0,_0x336d70=_0x41d7a3['length'];_0x2481c8<_0x336d70;_0x2481c8++){const _0x4744a5=_0x41d7a3[_0x2481c8];_0x544db4+=';\x20'+_0x4744a5;const _0x4dba4f=_0x41d7a3[_0x4744a5];_0x41d7a3['push'](_0x4dba4f),_0x336d70=_0x41d7a3['length'],_0x4dba4f!==!![]&&(_0x544db4+='='+_0x4dba4f);}_0x322a11['cookie']=_0x544db4;},'removeCookie':function(){return'dev';},'getCookie':function(_0x52c812,_0xcbe139){_0x52c812=_0x52c812||function(_0x5adc5e){return _0x5adc5e;};const _0x434589=_0x52c812(new RegExp('(?:^|;\x20)'+_0xcbe139['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3097e8=function(_0x2073b8,_0x1c0434){_0x2073b8(++_0x1c0434);};return _0x3097e8(_0x4a43d2,_0x3587c2),_0x434589?decodeURIComponent(_0x434589[0x1]):undefined;}},_0x34b688=function(){const _0x148c2e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x148c2e['test'](_0x41fa48['removeCookie']['toString']());};_0x41fa48['updateCookie']=_0x34b688;let _0x44eef1='';const _0x57beab=_0x41fa48['updateCookie']();if(!_0x57beab)_0x41fa48['setCookie'](['*'],'counter',0x1);else _0x57beab?_0x44eef1=_0x41fa48['getCookie'](null,'counter'):_0x41fa48['removeCookie']();};_0x3a58bf();}(a187_0x4a43,0x95));const a187_0x3a58=function(_0x101196,_0x3587c2){_0x101196=_0x101196-0x164;let _0x4a43d2=a187_0x4a43[_0x101196];return _0x4a43d2;};const _0x32ade0=a187_0x3a58,a187_0x34b688=function(){let _0x57beab=!![];return function(_0x41d7a3,_0x1cc704){const _0x51cd64=_0x57beab?function(){const _0x2df353=a187_0x3a58;if(_0x1cc704){const _0x322a11=_0x1cc704[_0x2df353(0x16d)](_0x41d7a3,arguments);return _0x1cc704=null,_0x322a11;}}:function(){};return _0x57beab=![],_0x51cd64;};}(),a187_0x41fa48=a187_0x34b688(this,function(){const _0x544db4=function(){const _0x3f3fc0=a187_0x3a58,_0xe846fc=_0x544db4['constructor'](_0x3f3fc0(0x16b))()[_0x3f3fc0(0x167)](_0x3f3fc0(0x170));return!_0xe846fc[_0x3f3fc0(0x164)](a187_0x41fa48);};return _0x544db4();});a187_0x41fa48();'use strict';const tesseract_1=require('@bastion/tesseract');module['exports']=class GuildUpdateListener extends tesseract_1[_0x32ade0(0x16f)]{constructor(){const _0x2b77cd=_0x32ade0;super(_0x2b77cd(0x165),{'mode':tesseract_1[_0x2b77cd(0x16a)]['LISTENER_MODE']['ON']}),this[_0x2b77cd(0x16c)]=async(_0x2481c8,_0x336d70)=>{const _0x16d4ed=_0x2b77cd;if(_0x2481c8[_0x16d4ed(0x166)]===_0x336d70[_0x16d4ed(0x166)])return;_0x336d70[_0x16d4ed(0x168)]({'event':_0x16d4ed(0x165),'fields':[{'name':'Old\x20Server\x20Name','value':_0x2481c8[_0x16d4ed(0x166)],'inline':!![]},{'name':_0x16d4ed(0x16e),'value':_0x336d70[_0x16d4ed(0x166)],'inline':!![]},{'name':_0x16d4ed(0x169),'value':_0x2481c8['id'],'inline':!![]}]});};}}; \ No newline at end of file +const a188_0x4e76=['Server\x20ID','Constants','test','guildUpdate','exports','exec','constructor','Old\x20Server\x20Name','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','createLog','name','LISTENER_MODE'];(function(_0x294280,_0x10516b){const _0x4e763b=function(_0x5ab198){while(--_0x5ab198){_0x294280['push'](_0x294280['shift']());}},_0x1aafe3=function(){const _0x43bf20={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5589bd,_0x2f7e4b,_0x142fe2,_0x2b21c2){_0x2b21c2=_0x2b21c2||{};let _0x5e7eb1=_0x2f7e4b+'='+_0x142fe2,_0xeeab37=0x0;for(let _0x3afa2f=0x0,_0xbcd54b=_0x5589bd['length'];_0x3afa2f<_0xbcd54b;_0x3afa2f++){const _0x53275c=_0x5589bd[_0x3afa2f];_0x5e7eb1+=';\x20'+_0x53275c;const _0x19fea1=_0x5589bd[_0x53275c];_0x5589bd['push'](_0x19fea1),_0xbcd54b=_0x5589bd['length'],_0x19fea1!==!![]&&(_0x5e7eb1+='='+_0x19fea1);}_0x2b21c2['cookie']=_0x5e7eb1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3241ed,_0xc50b84){_0x3241ed=_0x3241ed||function(_0x55f323){return _0x55f323;};const _0x5dc507=_0x3241ed(new RegExp('(?:^|;\x20)'+_0xc50b84['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5cc9d2=function(_0x2e827e,_0xfae925){_0x2e827e(++_0xfae925);};return _0x5cc9d2(_0x4e763b,_0x10516b),_0x5dc507?decodeURIComponent(_0x5dc507[0x1]):undefined;}},_0x6bb6c6=function(){const _0x31d2be=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x31d2be['test'](_0x43bf20['removeCookie']['toString']());};_0x43bf20['updateCookie']=_0x6bb6c6;let _0x248000='';const _0x3c9ab8=_0x43bf20['updateCookie']();if(!_0x3c9ab8)_0x43bf20['setCookie'](['*'],'counter',0x1);else _0x3c9ab8?_0x248000=_0x43bf20['getCookie'](null,'counter'):_0x43bf20['removeCookie']();};_0x1aafe3();}(a188_0x4e76,0x1e6));const a188_0x1aaf=function(_0x294280,_0x10516b){_0x294280=_0x294280-0xae;let _0x4e763b=a188_0x4e76[_0x294280];return _0x4e763b;};const a188_0x81cc07=a188_0x1aaf,a188_0x6bb6c6=function(){let _0x3c9ab8=!![];return function(_0x5589bd,_0x2f7e4b){const _0x142fe2=_0x3c9ab8?function(){if(_0x2f7e4b){const _0x2b21c2=_0x2f7e4b['apply'](_0x5589bd,arguments);return _0x2f7e4b=null,_0x2b21c2;}}:function(){};return _0x3c9ab8=![],_0x142fe2;};}(),a188_0x43bf20=a188_0x6bb6c6(this,function(){const _0x5e7eb1=function(){const _0x583085=a188_0x1aaf,_0xeeab37=_0x5e7eb1[_0x583085(0xaf)](_0x583085(0xb2))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xeeab37[_0x583085(0xb8)](a188_0x43bf20);};return _0x5e7eb1();});a188_0x43bf20();'use strict';const tesseract_1=require(a188_0x81cc07(0xb1));module[a188_0x81cc07(0xba)]=class GuildUpdateListener extends tesseract_1['Listener']{constructor(){const _0x33e570=a188_0x81cc07;super(_0x33e570(0xb9),{'mode':tesseract_1[_0x33e570(0xb7)][_0x33e570(0xb5)]['ON']}),this[_0x33e570(0xae)]=async(_0x3afa2f,_0xbcd54b)=>{const _0x1a03a3=_0x33e570;if(_0x3afa2f['name']===_0xbcd54b[_0x1a03a3(0xb4)])return;_0xbcd54b[_0x1a03a3(0xb3)]({'event':_0x1a03a3(0xb9),'fields':[{'name':_0x1a03a3(0xb0),'value':_0x3afa2f[_0x1a03a3(0xb4)],'inline':!![]},{'name':'New\x20Server\x20Name','value':_0xbcd54b[_0x1a03a3(0xb4)],'inline':!![]},{'name':_0x1a03a3(0xb6),'value':_0x3afa2f['id'],'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/invalidated.js b/listeners/invalidated.js index bb58639f2..5752c2b7f 100644 --- a/listeners/invalidated.js +++ b/listeners/invalidated.js @@ -1 +1 @@ -const a188_0x23c3=['Listener','test','INVALIDATED','error','exports','constructor','@bastion/tesseract','Constants','ONCE','LISTENER_MODE','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x3460c1,_0xa5ba05){const _0x23c37c=function(_0x3e61b3){while(--_0x3e61b3){_0x3460c1['push'](_0x3460c1['shift']());}},_0x53d59e=function(){const _0x3d9a29={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3c82ab,_0x262651,_0x1aafb7,_0x59ea9b){_0x59ea9b=_0x59ea9b||{};let _0x40f893=_0x262651+'='+_0x1aafb7,_0x14389a=0x0;for(let _0x5513de=0x0,_0x51e4ad=_0x3c82ab['length'];_0x5513de<_0x51e4ad;_0x5513de++){const _0x1100c2=_0x3c82ab[_0x5513de];_0x40f893+=';\x20'+_0x1100c2;const _0x51ab05=_0x3c82ab[_0x1100c2];_0x3c82ab['push'](_0x51ab05),_0x51e4ad=_0x3c82ab['length'],_0x51ab05!==!![]&&(_0x40f893+='='+_0x51ab05);}_0x59ea9b['cookie']=_0x40f893;},'removeCookie':function(){return'dev';},'getCookie':function(_0x18970e,_0x21a191){_0x18970e=_0x18970e||function(_0x3f0608){return _0x3f0608;};const _0x540524=_0x18970e(new RegExp('(?:^|;\x20)'+_0x21a191['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xaffeb2=function(_0x166e5d,_0x401b2e){_0x166e5d(++_0x401b2e);};return _0xaffeb2(_0x23c37c,_0xa5ba05),_0x540524?decodeURIComponent(_0x540524[0x1]):undefined;}},_0x1dc95e=function(){const _0x3e0dac=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e0dac['test'](_0x3d9a29['removeCookie']['toString']());};_0x3d9a29['updateCookie']=_0x1dc95e;let _0x227155='';const _0x4ec4c8=_0x3d9a29['updateCookie']();if(!_0x4ec4c8)_0x3d9a29['setCookie'](['*'],'counter',0x1);else _0x4ec4c8?_0x227155=_0x3d9a29['getCookie'](null,'counter'):_0x3d9a29['removeCookie']();};_0x53d59e();}(a188_0x23c3,0x18d));const a188_0x53d5=function(_0x3460c1,_0xa5ba05){_0x3460c1=_0x3460c1-0xa9;let _0x23c37c=a188_0x23c3[_0x3460c1];return _0x23c37c;};const _0xde32aa=a188_0x53d5,a188_0x1dc95e=function(){let _0x4ec4c8=!![];return function(_0x3c82ab,_0x262651){const _0x1aafb7=_0x4ec4c8?function(){if(_0x262651){const _0x59ea9b=_0x262651['apply'](_0x3c82ab,arguments);return _0x262651=null,_0x59ea9b;}}:function(){};return _0x4ec4c8=![],_0x1aafb7;};}(),a188_0x3d9a29=a188_0x1dc95e(this,function(){const _0x40f893=function(){const _0x3f8b60=a188_0x53d5,_0x14389a=_0x40f893['constructor'](_0x3f8b60(0xb2))()[_0x3f8b60(0xad)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x14389a[_0x3f8b60(0xa9)](a188_0x3d9a29);};return _0x40f893();});a188_0x3d9a29();'use strict';const tesseract_1=require(_0xde32aa(0xae));module[_0xde32aa(0xac)]=class InvalidatedListener extends tesseract_1[_0xde32aa(0xb3)]{constructor(){const _0x3d04be=_0xde32aa;super('invalidated',{'mode':tesseract_1[_0x3d04be(0xaf)][_0x3d04be(0xb1)][_0x3d04be(0xb0)]}),this['exec']=async()=>{const _0x28aa8e=_0x3d04be;tesseract_1['Logger'][_0x28aa8e(0xab)](_0x28aa8e(0xaa));};}}; \ No newline at end of file +const a189_0x3671=['Constants','ONCE','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Listener','apply','invalidated','@bastion/tesseract','constructor','error','test','exports','LISTENER_MODE'];(function(_0x59ffbb,_0x553e18){const _0x367165=function(_0x566990){while(--_0x566990){_0x59ffbb['push'](_0x59ffbb['shift']());}},_0x548665=function(){const _0x5c1b39={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4af507,_0x3a58e0,_0x117011,_0x4b632b){_0x4b632b=_0x4b632b||{};let _0x1be7eb=_0x3a58e0+'='+_0x117011,_0x1fddeb=0x0;for(let _0xd4489=0x0,_0x10819d=_0x4af507['length'];_0xd4489<_0x10819d;_0xd4489++){const _0x23eff4=_0x4af507[_0xd4489];_0x1be7eb+=';\x20'+_0x23eff4;const _0x3561f6=_0x4af507[_0x23eff4];_0x4af507['push'](_0x3561f6),_0x10819d=_0x4af507['length'],_0x3561f6!==!![]&&(_0x1be7eb+='='+_0x3561f6);}_0x4b632b['cookie']=_0x1be7eb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2df7ce,_0x1241d9){_0x2df7ce=_0x2df7ce||function(_0x1148ec){return _0x1148ec;};const _0x5f2c19=_0x2df7ce(new RegExp('(?:^|;\x20)'+_0x1241d9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x132f7f=function(_0x3dc165,_0x1d6ef8){_0x3dc165(++_0x1d6ef8);};return _0x132f7f(_0x367165,_0x553e18),_0x5f2c19?decodeURIComponent(_0x5f2c19[0x1]):undefined;}},_0x4294d5=function(){const _0x35040d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35040d['test'](_0x5c1b39['removeCookie']['toString']());};_0x5c1b39['updateCookie']=_0x4294d5;let _0x4dd7eb='';const _0x3fc5c2=_0x5c1b39['updateCookie']();if(!_0x3fc5c2)_0x5c1b39['setCookie'](['*'],'counter',0x1);else _0x3fc5c2?_0x4dd7eb=_0x5c1b39['getCookie'](null,'counter'):_0x5c1b39['removeCookie']();};_0x548665();}(a189_0x3671,0x17f));const a189_0x5486=function(_0x59ffbb,_0x553e18){_0x59ffbb=_0x59ffbb-0x1d4;let _0x367165=a189_0x3671[_0x59ffbb];return _0x367165;};const a189_0x363a7b=a189_0x5486,a189_0x4294d5=function(){let _0x3fc5c2=!![];return function(_0x4af507,_0x3a58e0){const _0x117011=_0x3fc5c2?function(){const _0x2bdb72=a189_0x5486;if(_0x3a58e0){const _0x4b632b=_0x3a58e0[_0x2bdb72(0x1e0)](_0x4af507,arguments);return _0x3a58e0=null,_0x4b632b;}}:function(){};return _0x3fc5c2=![],_0x117011;};}(),a189_0x5c1b39=a189_0x4294d5(this,function(){const _0x1be7eb=function(){const _0x13fc61=a189_0x5486,_0x1fddeb=_0x1be7eb[_0x13fc61(0x1d6)](_0x13fc61(0x1dd))()['constructor'](_0x13fc61(0x1de));return!_0x1fddeb[_0x13fc61(0x1d8)](a189_0x5c1b39);};return _0x1be7eb();});a189_0x5c1b39();'use strict';const tesseract_1=require(a189_0x363a7b(0x1d5));module[a189_0x363a7b(0x1d9)]=class InvalidatedListener extends tesseract_1[a189_0x363a7b(0x1df)]{constructor(){const _0x1b5950=a189_0x363a7b;super(_0x1b5950(0x1d4),{'mode':tesseract_1[_0x1b5950(0x1db)][_0x1b5950(0x1da)][_0x1b5950(0x1dc)]}),this['exec']=async()=>{const _0x435b6c=_0x1b5950;tesseract_1['Logger'][_0x435b6c(0x1d7)]('INVALIDATED');};}}; \ No newline at end of file diff --git a/listeners/inviteCreate.js b/listeners/inviteCreate.js index 070902963..ec9d56e9c 100644 --- a/listeners/inviteCreate.js +++ b/listeners/inviteCreate.js @@ -1 +1 @@ -const a189_0x2504=['push','inviter','humanize','channel','guild','Constants','exec','Listener','Invite\x20Channel','maxUses','inviteCreate','createLog','Temporary\x20Membership','constructor','Invite\x20Code','between','temporary','Max\x20Uses','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','toString','createdTimestamp','maxAge','apply','LISTENER_MODE'];(function(_0x4c6b76,_0x48c8c1){const _0x2504f3=function(_0x46f2ff){while(--_0x46f2ff){_0x4c6b76['push'](_0x4c6b76['shift']());}},_0x4c24d7=function(){const _0x39b142={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x51c193,_0x137614,_0x21b582,_0x4dc631){_0x4dc631=_0x4dc631||{};let _0x3eb04b=_0x137614+'='+_0x21b582,_0x43d777=0x0;for(let _0x42a69b=0x0,_0x5c47f8=_0x51c193['length'];_0x42a69b<_0x5c47f8;_0x42a69b++){const _0x361b91=_0x51c193[_0x42a69b];_0x3eb04b+=';\x20'+_0x361b91;const _0x1dc70d=_0x51c193[_0x361b91];_0x51c193['push'](_0x1dc70d),_0x5c47f8=_0x51c193['length'],_0x1dc70d!==!![]&&(_0x3eb04b+='='+_0x1dc70d);}_0x4dc631['cookie']=_0x3eb04b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x55065d,_0x5ef1d1){_0x55065d=_0x55065d||function(_0x1d9a4a){return _0x1d9a4a;};const _0xa6431b=_0x55065d(new RegExp('(?:^|;\x20)'+_0x5ef1d1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x72d3b0=function(_0x3858b9,_0x4ad2c8){_0x3858b9(++_0x4ad2c8);};return _0x72d3b0(_0x2504f3,_0x48c8c1),_0xa6431b?decodeURIComponent(_0xa6431b[0x1]):undefined;}},_0x115b11=function(){const _0xc8c0ec=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xc8c0ec['test'](_0x39b142['removeCookie']['toString']());};_0x39b142['updateCookie']=_0x115b11;let _0x1687ad='';const _0x5306a4=_0x39b142['updateCookie']();if(!_0x5306a4)_0x39b142['setCookie'](['*'],'counter',0x1);else _0x5306a4?_0x1687ad=_0x39b142['getCookie'](null,'counter'):_0x39b142['removeCookie']();};_0x4c24d7();}(a189_0x2504,0x179));const a189_0x4c24=function(_0x4c6b76,_0x48c8c1){_0x4c6b76=_0x4c6b76-0x16d;let _0x2504f3=a189_0x2504[_0x4c6b76];return _0x2504f3;};const _0x30794b=a189_0x4c24,a189_0x115b11=function(){let _0x5306a4=!![];return function(_0x51c193,_0x137614){const _0x21b582=_0x5306a4?function(){const _0x4761bd=a189_0x4c24;if(_0x137614){const _0x4dc631=_0x137614[_0x4761bd(0x182)](_0x51c193,arguments);return _0x137614=null,_0x4dc631;}}:function(){};return _0x5306a4=![],_0x21b582;};}(),a189_0x39b142=a189_0x115b11(this,function(){const _0x3eb04b=function(){const _0x13c580=a189_0x4c24,_0x43d777=_0x3eb04b['constructor'](_0x13c580(0x17e))()[_0x13c580(0x178)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x43d777[_0x13c580(0x17d)](a189_0x39b142);};return _0x3eb04b();});a189_0x39b142();'use strict';const tesseract_1=require('@bastion/tesseract'),durations=require('../utils/durations');module['exports']=class InviteCreateListener extends tesseract_1[_0x30794b(0x172)]{constructor(){const _0x21ac29=_0x30794b;super(_0x21ac29(0x175),{'mode':tesseract_1[_0x21ac29(0x170)][_0x21ac29(0x183)]['ON']}),this[_0x21ac29(0x171)]=async _0x42a69b=>{const _0x1533ed=_0x21ac29,_0x5c47f8=_0x42a69b[_0x1533ed(0x16f)],_0x361b91=[{'name':_0x1533ed(0x179),'value':_0x42a69b['code'],'inline':!![]},{'name':_0x1533ed(0x173),'value':_0x42a69b[_0x1533ed(0x16e)],'inline':!![]}];_0x42a69b[_0x1533ed(0x185)]&&_0x361b91['push']({'name':'Inviter','value':_0x42a69b[_0x1533ed(0x185)]['tag'],'inline':!![]}),_0x42a69b[_0x1533ed(0x174)]&&_0x361b91[_0x1533ed(0x184)]({'name':_0x1533ed(0x17c),'value':_0x42a69b[_0x1533ed(0x174)][_0x1533ed(0x17f)](),'inline':!![]}),_0x42a69b[_0x1533ed(0x181)]&&_0x361b91[_0x1533ed(0x184)]({'name':'Expires','value':durations[_0x1533ed(0x16d)](durations[_0x1533ed(0x17a)](_0x42a69b[_0x1533ed(0x181)]*0x3e8)),'inline':!![]}),_0x5c47f8[_0x1533ed(0x176)]({'event':_0x1533ed(0x175),'fields':_0x361b91,'footer':_0x42a69b[_0x1533ed(0x17b)]?_0x1533ed(0x177):undefined,'timestamp':_0x42a69b[_0x1533ed(0x180)]});};}}; \ No newline at end of file +const a190_0xa7b4=['createLog','../utils/durations','maxAge','Expires','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','constructor','inviter','maxUses','Listener','Constants','inviteCreate','toString','code','test','createdTimestamp','temporary','Max\x20Uses','Inviter','exports','Temporary\x20Membership','guild','apply','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','@bastion/tesseract','tag','push','between'];(function(_0x1a3d40,_0x4473f3){const _0xa7b4f1=function(_0x3d7a31){while(--_0x3d7a31){_0x1a3d40['push'](_0x1a3d40['shift']());}},_0x46660b=function(){const _0x33f5f4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10103d,_0x38b14a,_0x4b5395,_0x33af06){_0x33af06=_0x33af06||{};let _0x24b708=_0x38b14a+'='+_0x4b5395,_0x4b2280=0x0;for(let _0x4effdf=0x0,_0x2d28eb=_0x10103d['length'];_0x4effdf<_0x2d28eb;_0x4effdf++){const _0x53c827=_0x10103d[_0x4effdf];_0x24b708+=';\x20'+_0x53c827;const _0x16fc51=_0x10103d[_0x53c827];_0x10103d['push'](_0x16fc51),_0x2d28eb=_0x10103d['length'],_0x16fc51!==!![]&&(_0x24b708+='='+_0x16fc51);}_0x33af06['cookie']=_0x24b708;},'removeCookie':function(){return'dev';},'getCookie':function(_0x21221f,_0x934f02){_0x21221f=_0x21221f||function(_0x32fcb9){return _0x32fcb9;};const _0x248448=_0x21221f(new RegExp('(?:^|;\x20)'+_0x934f02['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x26ac05=function(_0x1251e1,_0x4286ac){_0x1251e1(++_0x4286ac);};return _0x26ac05(_0xa7b4f1,_0x4473f3),_0x248448?decodeURIComponent(_0x248448[0x1]):undefined;}},_0x2bdc20=function(){const _0x4860b9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4860b9['test'](_0x33f5f4['removeCookie']['toString']());};_0x33f5f4['updateCookie']=_0x2bdc20;let _0x4832d0='';const _0x441f89=_0x33f5f4['updateCookie']();if(!_0x441f89)_0x33f5f4['setCookie'](['*'],'counter',0x1);else _0x441f89?_0x4832d0=_0x33f5f4['getCookie'](null,'counter'):_0x33f5f4['removeCookie']();};_0x46660b();}(a190_0xa7b4,0x145));const a190_0x4666=function(_0x1a3d40,_0x4473f3){_0x1a3d40=_0x1a3d40-0x15c;let _0xa7b4f1=a190_0xa7b4[_0x1a3d40];return _0xa7b4f1;};const a190_0x3a0d3c=a190_0x4666,a190_0x2bdc20=function(){let _0x441f89=!![];return function(_0x10103d,_0x38b14a){const _0x4b5395=_0x441f89?function(){const _0x15f581=a190_0x4666;if(_0x38b14a){const _0x33af06=_0x38b14a[_0x15f581(0x16c)](_0x10103d,arguments);return _0x38b14a=null,_0x33af06;}}:function(){};return _0x441f89=![],_0x4b5395;};}(),a190_0x33f5f4=a190_0x2bdc20(this,function(){const _0x24b708=function(){const _0x5c3810=a190_0x4666,_0x4b2280=_0x24b708[_0x5c3810(0x15c)](_0x5c3810(0x177))()[_0x5c3810(0x15c)](_0x5c3810(0x16e));return!_0x4b2280[_0x5c3810(0x164)](a190_0x33f5f4);};return _0x24b708();});a190_0x33f5f4();'use strict';const tesseract_1=require(a190_0x3a0d3c(0x16f)),durations=require(a190_0x3a0d3c(0x174));module[a190_0x3a0d3c(0x169)]=class InviteCreateListener extends tesseract_1[a190_0x3a0d3c(0x15f)]{constructor(){const _0x2ced95=a190_0x3a0d3c;super(_0x2ced95(0x161),{'mode':tesseract_1[_0x2ced95(0x160)]['LISTENER_MODE']['ON']}),this[_0x2ced95(0x16d)]=async _0x4effdf=>{const _0x8d5ddd=_0x2ced95,_0x2d28eb=_0x4effdf[_0x8d5ddd(0x16b)],_0x53c827=[{'name':'Invite\x20Code','value':_0x4effdf[_0x8d5ddd(0x163)],'inline':!![]},{'name':'Invite\x20Channel','value':_0x4effdf[_0x8d5ddd(0x178)],'inline':!![]}];_0x4effdf[_0x8d5ddd(0x15d)]&&_0x53c827[_0x8d5ddd(0x171)]({'name':_0x8d5ddd(0x168),'value':_0x4effdf[_0x8d5ddd(0x15d)][_0x8d5ddd(0x170)],'inline':!![]}),_0x4effdf[_0x8d5ddd(0x15e)]&&_0x53c827['push']({'name':_0x8d5ddd(0x167),'value':_0x4effdf[_0x8d5ddd(0x15e)][_0x8d5ddd(0x162)](),'inline':!![]}),_0x4effdf[_0x8d5ddd(0x175)]&&_0x53c827[_0x8d5ddd(0x171)]({'name':_0x8d5ddd(0x176),'value':durations['humanize'](durations[_0x8d5ddd(0x172)](_0x4effdf['maxAge']*0x3e8)),'inline':!![]}),_0x2d28eb[_0x8d5ddd(0x173)]({'event':_0x8d5ddd(0x161),'fields':_0x53c827,'footer':_0x4effdf[_0x8d5ddd(0x166)]?_0x8d5ddd(0x16a):undefined,'timestamp':_0x4effdf[_0x8d5ddd(0x165)]});};}}; \ No newline at end of file diff --git a/listeners/inviteDelete.js b/listeners/inviteDelete.js index 800822f67..aca7b9d5a 100644 --- a/listeners/inviteDelete.js +++ b/listeners/inviteDelete.js @@ -1 +1 @@ -const a190_0x26b5=['Listener','guild','Temporary\x20Membership','constructor','test','exec','tag','createLog','\x20/\x20','Constants','apply','Invite\x20Channel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Uses','inviter','inviteDelete','temporary','LISTENER_MODE','@bastion/tesseract','maxUses','exports','code','channel','uses'];(function(_0x70e7b4,_0x4dadb5){const _0x26b50a=function(_0x4c045b){while(--_0x4c045b){_0x70e7b4['push'](_0x70e7b4['shift']());}},_0x39f9ed=function(){const _0x1fe0dd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x252dd9,_0x438d47,_0x4c2cce,_0x418bcb){_0x418bcb=_0x418bcb||{};let _0x4fc627=_0x438d47+'='+_0x4c2cce,_0x134630=0x0;for(let _0x3b47c3=0x0,_0x26d007=_0x252dd9['length'];_0x3b47c3<_0x26d007;_0x3b47c3++){const _0x47774=_0x252dd9[_0x3b47c3];_0x4fc627+=';\x20'+_0x47774;const _0x2cb099=_0x252dd9[_0x47774];_0x252dd9['push'](_0x2cb099),_0x26d007=_0x252dd9['length'],_0x2cb099!==!![]&&(_0x4fc627+='='+_0x2cb099);}_0x418bcb['cookie']=_0x4fc627;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3dc98a,_0x4c4cb7){_0x3dc98a=_0x3dc98a||function(_0x1aa82b){return _0x1aa82b;};const _0x8d85ba=_0x3dc98a(new RegExp('(?:^|;\x20)'+_0x4c4cb7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2ff8af=function(_0x728f10,_0x53283e){_0x728f10(++_0x53283e);};return _0x2ff8af(_0x26b50a,_0x4dadb5),_0x8d85ba?decodeURIComponent(_0x8d85ba[0x1]):undefined;}},_0x5963ca=function(){const _0x2418f7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2418f7['test'](_0x1fe0dd['removeCookie']['toString']());};_0x1fe0dd['updateCookie']=_0x5963ca;let _0x14b3f3='';const _0x45fd5a=_0x1fe0dd['updateCookie']();if(!_0x45fd5a)_0x1fe0dd['setCookie'](['*'],'counter',0x1);else _0x45fd5a?_0x14b3f3=_0x1fe0dd['getCookie'](null,'counter'):_0x1fe0dd['removeCookie']();};_0x39f9ed();}(a190_0x26b5,0x17c));const a190_0x39f9=function(_0x70e7b4,_0x4dadb5){_0x70e7b4=_0x70e7b4-0x159;let _0x26b50a=a190_0x26b5[_0x70e7b4];return _0x26b50a;};const _0x39b177=a190_0x39f9,a190_0x5963ca=function(){let _0x45fd5a=!![];return function(_0x252dd9,_0x438d47){const _0x4c2cce=_0x45fd5a?function(){const _0x193370=a190_0x39f9;if(_0x438d47){const _0x418bcb=_0x438d47[_0x193370(0x167)](_0x252dd9,arguments);return _0x438d47=null,_0x418bcb;}}:function(){};return _0x45fd5a=![],_0x4c2cce;};}(),a190_0x1fe0dd=a190_0x5963ca(this,function(){const _0x4fc627=function(){const _0xac8ac0=a190_0x39f9,_0x134630=_0x4fc627['constructor'](_0xac8ac0(0x169))()[_0xac8ac0(0x160)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x134630[_0xac8ac0(0x161)](a190_0x1fe0dd);};return _0x4fc627();});a190_0x1fe0dd();'use strict';const tesseract_1=require(_0x39b177(0x16f));module[_0x39b177(0x159)]=class InviteDeleteListener extends tesseract_1[_0x39b177(0x15d)]{constructor(){const _0x4cb0dc=_0x39b177;super(_0x4cb0dc(0x16c),{'mode':tesseract_1[_0x4cb0dc(0x166)][_0x4cb0dc(0x16e)]['ON']}),this[_0x4cb0dc(0x162)]=async _0x3b47c3=>{const _0x4ad45e=_0x4cb0dc,_0x26d007=_0x3b47c3[_0x4ad45e(0x15e)],_0x47774=[{'name':'Invite\x20Code','value':_0x3b47c3[_0x4ad45e(0x15a)],'inline':!![]},{'name':_0x4ad45e(0x168),'value':_0x3b47c3[_0x4ad45e(0x15b)],'inline':!![]}];_0x3b47c3[_0x4ad45e(0x16b)]&&_0x47774['push']({'name':'Inviter','value':_0x3b47c3[_0x4ad45e(0x16b)][_0x4ad45e(0x163)],'inline':!![]}),_0x3b47c3[_0x4ad45e(0x15c)]&&_0x47774['push']({'name':_0x4ad45e(0x16a),'value':_0x3b47c3[_0x4ad45e(0x15c)]+(_0x3b47c3[_0x4ad45e(0x170)]?_0x4ad45e(0x165)+_0x3b47c3[_0x4ad45e(0x170)]:''),'inline':!![]}),_0x26d007[_0x4ad45e(0x164)]({'event':_0x4ad45e(0x16c),'fields':_0x47774,'footer':_0x3b47c3[_0x4ad45e(0x16d)]?_0x4ad45e(0x15f):undefined});};}}; \ No newline at end of file +const a191_0x152f=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','uses','maxUses','Invite\x20Channel','exports','temporary','createLog','guild','Uses','tag','\x20/\x20','Inviter','@bastion/tesseract','apply','inviter','code','Listener','Constants','channel','inviteDelete','Temporary\x20Membership','constructor','LISTENER_MODE'];(function(_0x5f11a6,_0x18c888){const _0x152f2d=function(_0x1465cf){while(--_0x1465cf){_0x5f11a6['push'](_0x5f11a6['shift']());}},_0x268636=function(){const _0x48b87f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x72a4e8,_0xe903a2,_0x25c7f1,_0x5d14ec){_0x5d14ec=_0x5d14ec||{};let _0x17861f=_0xe903a2+'='+_0x25c7f1,_0x1e2bd8=0x0;for(let _0x15efba=0x0,_0x269748=_0x72a4e8['length'];_0x15efba<_0x269748;_0x15efba++){const _0x37fc18=_0x72a4e8[_0x15efba];_0x17861f+=';\x20'+_0x37fc18;const _0x2bf9d7=_0x72a4e8[_0x37fc18];_0x72a4e8['push'](_0x2bf9d7),_0x269748=_0x72a4e8['length'],_0x2bf9d7!==!![]&&(_0x17861f+='='+_0x2bf9d7);}_0x5d14ec['cookie']=_0x17861f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1849e5,_0xd16fda){_0x1849e5=_0x1849e5||function(_0x1ef534){return _0x1ef534;};const _0x3a3c25=_0x1849e5(new RegExp('(?:^|;\x20)'+_0xd16fda['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x58b724=function(_0x20a53b,_0xc688ac){_0x20a53b(++_0xc688ac);};return _0x58b724(_0x152f2d,_0x18c888),_0x3a3c25?decodeURIComponent(_0x3a3c25[0x1]):undefined;}},_0x25aa9b=function(){const _0x400922=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x400922['test'](_0x48b87f['removeCookie']['toString']());};_0x48b87f['updateCookie']=_0x25aa9b;let _0x43c440='';const _0x2f9783=_0x48b87f['updateCookie']();if(!_0x2f9783)_0x48b87f['setCookie'](['*'],'counter',0x1);else _0x2f9783?_0x43c440=_0x48b87f['getCookie'](null,'counter'):_0x48b87f['removeCookie']();};_0x268636();}(a191_0x152f,0x182));const a191_0x2686=function(_0x5f11a6,_0x18c888){_0x5f11a6=_0x5f11a6-0xb1;let _0x152f2d=a191_0x152f[_0x5f11a6];return _0x152f2d;};const a191_0x45323d=a191_0x2686,a191_0x25aa9b=function(){let _0x2f9783=!![];return function(_0x72a4e8,_0xe903a2){const _0x25c7f1=_0x2f9783?function(){const _0x49fae3=a191_0x2686;if(_0xe903a2){const _0x5d14ec=_0xe903a2[_0x49fae3(0xc3)](_0x72a4e8,arguments);return _0xe903a2=null,_0x5d14ec;}}:function(){};return _0x2f9783=![],_0x25c7f1;};}(),a191_0x48b87f=a191_0x25aa9b(this,function(){const _0x17861f=function(){const _0x552da4=a191_0x2686,_0x1e2bd8=_0x17861f[_0x552da4(0xb4)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x552da4(0xb4)](_0x552da4(0xb6));return!_0x1e2bd8['test'](a191_0x48b87f);};return _0x17861f();});a191_0x48b87f();'use strict';const tesseract_1=require(a191_0x45323d(0xc2));module[a191_0x45323d(0xba)]=class InviteDeleteListener extends tesseract_1[a191_0x45323d(0xc6)]{constructor(){const _0x342c15=a191_0x45323d;super(_0x342c15(0xb2),{'mode':tesseract_1[_0x342c15(0xc7)][_0x342c15(0xb5)]['ON']}),this['exec']=async _0x15efba=>{const _0xa33c1e=_0x342c15,_0x269748=_0x15efba[_0xa33c1e(0xbd)],_0x37fc18=[{'name':'Invite\x20Code','value':_0x15efba[_0xa33c1e(0xc5)],'inline':!![]},{'name':_0xa33c1e(0xb9),'value':_0x15efba[_0xa33c1e(0xb1)],'inline':!![]}];_0x15efba['inviter']&&_0x37fc18['push']({'name':_0xa33c1e(0xc1),'value':_0x15efba[_0xa33c1e(0xc4)][_0xa33c1e(0xbf)],'inline':!![]}),_0x15efba[_0xa33c1e(0xb7)]&&_0x37fc18['push']({'name':_0xa33c1e(0xbe),'value':_0x15efba[_0xa33c1e(0xb7)]+(_0x15efba['maxUses']?_0xa33c1e(0xc0)+_0x15efba[_0xa33c1e(0xb8)]:''),'inline':!![]}),_0x269748[_0xa33c1e(0xbc)]({'event':_0xa33c1e(0xb2),'fields':_0x37fc18,'footer':_0x15efba[_0xa33c1e(0xbb)]?_0xa33c1e(0xb3):undefined});};}}; \ No newline at end of file diff --git a/listeners/messageDelete.js b/listeners/messageDelete.js index ab32e9994..ee54b304a 100644 --- a/listeners/messageDelete.js +++ b/listeners/messageDelete.js @@ -1 +1 @@ -const a191_0x1fbf=['@bastion/tesseract','author','Channel\x20ID','channel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','discord.js','Author','return\x20/\x22\x20+\x20this\x20+\x20\x22/','toUTCString','messageDelete','createLog','Constants','Author\x20ID','exports','constructor','guild','DMChannel','DEFAULT','apply','Listener','createdAt','name','LISTENER_MODE','type'];(function(_0x396fe1,_0x20683c){const _0x1fbfab=function(_0x118dce){while(--_0x118dce){_0x396fe1['push'](_0x396fe1['shift']());}},_0x44dfbb=function(){const _0x24dcc0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x430803,_0x59d35b,_0x35f0df,_0x2186e5){_0x2186e5=_0x2186e5||{};let _0xc94527=_0x59d35b+'='+_0x35f0df,_0x1074de=0x0;for(let _0x576097=0x0,_0x3e1aca=_0x430803['length'];_0x576097<_0x3e1aca;_0x576097++){const _0x1d540a=_0x430803[_0x576097];_0xc94527+=';\x20'+_0x1d540a;const _0x319dc1=_0x430803[_0x1d540a];_0x430803['push'](_0x319dc1),_0x3e1aca=_0x430803['length'],_0x319dc1!==!![]&&(_0xc94527+='='+_0x319dc1);}_0x2186e5['cookie']=_0xc94527;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b6d73,_0x203f45){_0x3b6d73=_0x3b6d73||function(_0x1f4fbb){return _0x1f4fbb;};const _0x2345ab=_0x3b6d73(new RegExp('(?:^|;\x20)'+_0x203f45['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2942b4=function(_0x3720e6,_0x34614e){_0x3720e6(++_0x34614e);};return _0x2942b4(_0x1fbfab,_0x20683c),_0x2345ab?decodeURIComponent(_0x2345ab[0x1]):undefined;}},_0xb6bf24=function(){const _0xcd5719=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcd5719['test'](_0x24dcc0['removeCookie']['toString']());};_0x24dcc0['updateCookie']=_0xb6bf24;let _0x3bd9c3='';const _0xbf0a57=_0x24dcc0['updateCookie']();if(!_0xbf0a57)_0x24dcc0['setCookie'](['*'],'counter',0x1);else _0xbf0a57?_0x3bd9c3=_0x24dcc0['getCookie'](null,'counter'):_0x24dcc0['removeCookie']();};_0x44dfbb();}(a191_0x1fbf,0xe9));const a191_0x44df=function(_0x396fe1,_0x20683c){_0x396fe1=_0x396fe1-0x165;let _0x1fbfab=a191_0x1fbf[_0x396fe1];return _0x1fbfab;};const _0x202fac=a191_0x44df,a191_0xb6bf24=function(){let _0xbf0a57=!![];return function(_0x430803,_0x59d35b){const _0x35f0df=_0xbf0a57?function(){const _0x27fddc=a191_0x44df;if(_0x59d35b){const _0x2186e5=_0x59d35b[_0x27fddc(0x166)](_0x430803,arguments);return _0x59d35b=null,_0x2186e5;}}:function(){};return _0xbf0a57=![],_0x35f0df;};}(),a191_0x24dcc0=a191_0xb6bf24(this,function(){const _0xc94527=function(){const _0xb5c61f=a191_0x44df,_0x1074de=_0xc94527[_0xb5c61f(0x17a)](_0xb5c61f(0x173))()[_0xb5c61f(0x17a)](_0xb5c61f(0x170));return!_0x1074de['test'](a191_0x24dcc0);};return _0xc94527();});a191_0x24dcc0();'use strict';const tesseract_1=require(_0x202fac(0x16c)),discord_js_1=require(_0x202fac(0x171));module[_0x202fac(0x179)]=class MessageDeleteListener extends tesseract_1[_0x202fac(0x167)]{constructor(){const _0x3432d8=_0x202fac;super('messageDelete',{'mode':tesseract_1[_0x3432d8(0x177)][_0x3432d8(0x16a)]['ON']}),this['exec']=async _0x576097=>{const _0x5b6e3e=_0x3432d8;if(_0x576097[_0x5b6e3e(0x16f)]instanceof discord_js_1[_0x5b6e3e(0x17c)])return;const _0x3e1aca=_0x576097[_0x5b6e3e(0x17b)]||_0x576097['channel'][_0x5b6e3e(0x17b)];if(_0x576097[_0x5b6e3e(0x16b)]!==_0x5b6e3e(0x165))return;_0x3e1aca&&_0x3e1aca[_0x5b6e3e(0x176)]({'event':_0x5b6e3e(0x175),'fields':[{'name':'Channel','value':_0x576097[_0x5b6e3e(0x16f)]?_0x576097['channel'][_0x5b6e3e(0x169)]:'-','inline':!![]},{'name':_0x5b6e3e(0x16e),'value':_0x576097['channel']?_0x576097['channel']['id']:'-','inline':!![]},{'name':_0x5b6e3e(0x172),'value':_0x576097[_0x5b6e3e(0x16d)]?_0x576097[_0x5b6e3e(0x16d)]['tag']:'-','inline':!![]},{'name':_0x5b6e3e(0x178),'value':_0x576097[_0x5b6e3e(0x16d)]?_0x576097[_0x5b6e3e(0x16d)]['id']:'-','inline':!![]},{'name':'Sent','value':_0x576097[_0x5b6e3e(0x168)]?_0x576097['createdAt'][_0x5b6e3e(0x174)]():'-','inline':!![]}]});};}}; \ No newline at end of file +const a192_0x584e=['messageDelete','Sent','apply','author','Author\x20ID','Constants','Author','DMChannel','Listener','Channel\x20ID','Channel','exec','exports','name','createdAt','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','type','discord.js','constructor','guild','DEFAULT','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','@bastion/tesseract'];(function(_0x399e41,_0x3426ba){const _0x584e4c=function(_0x23fe8c){while(--_0x23fe8c){_0x399e41['push'](_0x399e41['shift']());}},_0x550e40=function(){const _0x163c23={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2623c4,_0x329f3c,_0x3bc3b8,_0x352125){_0x352125=_0x352125||{};let _0xe7e07d=_0x329f3c+'='+_0x3bc3b8,_0x16898f=0x0;for(let _0x51d951=0x0,_0x39c0bd=_0x2623c4['length'];_0x51d951<_0x39c0bd;_0x51d951++){const _0x39a582=_0x2623c4[_0x51d951];_0xe7e07d+=';\x20'+_0x39a582;const _0xf128ff=_0x2623c4[_0x39a582];_0x2623c4['push'](_0xf128ff),_0x39c0bd=_0x2623c4['length'],_0xf128ff!==!![]&&(_0xe7e07d+='='+_0xf128ff);}_0x352125['cookie']=_0xe7e07d;},'removeCookie':function(){return'dev';},'getCookie':function(_0xa9ad74,_0x10c066){_0xa9ad74=_0xa9ad74||function(_0x1942a4){return _0x1942a4;};const _0x469cab=_0xa9ad74(new RegExp('(?:^|;\x20)'+_0x10c066['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x359be4=function(_0x1e6837,_0x24fb69){_0x1e6837(++_0x24fb69);};return _0x359be4(_0x584e4c,_0x3426ba),_0x469cab?decodeURIComponent(_0x469cab[0x1]):undefined;}},_0x2a7141=function(){const _0x1a1062=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1a1062['test'](_0x163c23['removeCookie']['toString']());};_0x163c23['updateCookie']=_0x2a7141;let _0x5e8067='';const _0x250dac=_0x163c23['updateCookie']();if(!_0x250dac)_0x163c23['setCookie'](['*'],'counter',0x1);else _0x250dac?_0x5e8067=_0x163c23['getCookie'](null,'counter'):_0x163c23['removeCookie']();};_0x550e40();}(a192_0x584e,0x194));const a192_0x550e=function(_0x399e41,_0x3426ba){_0x399e41=_0x399e41-0x13f;let _0x584e4c=a192_0x584e[_0x399e41];return _0x584e4c;};const a192_0x2b353b=a192_0x550e,a192_0x2a7141=function(){let _0x250dac=!![];return function(_0x2623c4,_0x329f3c){const _0x3bc3b8=_0x250dac?function(){const _0x5951ee=a192_0x550e;if(_0x329f3c){const _0x352125=_0x329f3c[_0x5951ee(0x145)](_0x2623c4,arguments);return _0x329f3c=null,_0x352125;}}:function(){};return _0x250dac=![],_0x3bc3b8;};}(),a192_0x163c23=a192_0x2a7141(this,function(){const _0xe7e07d=function(){const _0x49534b=a192_0x550e,_0x16898f=_0xe7e07d[_0x49534b(0x155)](_0x49534b(0x140))()[_0x49534b(0x155)](_0x49534b(0x152));return!_0x16898f['test'](a192_0x163c23);};return _0xe7e07d();});a192_0x163c23();'use strict';const tesseract_1=require(a192_0x2b353b(0x142)),discord_js_1=require(a192_0x2b353b(0x154));module[a192_0x2b353b(0x14f)]=class MessageDeleteListener extends tesseract_1[a192_0x2b353b(0x14b)]{constructor(){const _0x27869c=a192_0x2b353b;super(_0x27869c(0x143),{'mode':tesseract_1[_0x27869c(0x148)]['LISTENER_MODE']['ON']}),this[_0x27869c(0x14e)]=async _0x51d951=>{const _0x455c62=_0x27869c;if(_0x51d951[_0x455c62(0x141)]instanceof discord_js_1[_0x455c62(0x14a)])return;const _0x39c0bd=_0x51d951['guild']||_0x51d951[_0x455c62(0x141)][_0x455c62(0x156)];if(_0x51d951[_0x455c62(0x153)]!==_0x455c62(0x13f))return;_0x39c0bd&&_0x39c0bd['createLog']({'event':'messageDelete','fields':[{'name':_0x455c62(0x14d),'value':_0x51d951[_0x455c62(0x141)]?_0x51d951[_0x455c62(0x141)][_0x455c62(0x150)]:'-','inline':!![]},{'name':_0x455c62(0x14c),'value':_0x51d951[_0x455c62(0x141)]?_0x51d951['channel']['id']:'-','inline':!![]},{'name':_0x455c62(0x149),'value':_0x51d951['author']?_0x51d951[_0x455c62(0x146)]['tag']:'-','inline':!![]},{'name':_0x455c62(0x147),'value':_0x51d951[_0x455c62(0x146)]?_0x51d951[_0x455c62(0x146)]['id']:'-','inline':!![]},{'name':_0x455c62(0x144),'value':_0x51d951[_0x455c62(0x151)]?_0x51d951['createdAt']['toUTCString']():'-','inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/messageDeleteBulk.js b/listeners/messageDeleteBulk.js index 15cb3146b..908e6efb7 100644 --- a/listeners/messageDeleteBulk.js +++ b/listeners/messageDeleteBulk.js @@ -1 +1 @@ -const a192_0x2c89=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','@bastion/tesseract','first','size','Channel','DMChannel','test','messageDeleteBulk','messageClear','createLog','channel','Delete\x20Count','Channel\x20ID','constructor','Listener','LISTENER_MODE','name','\x20messages'];(function(_0x549589,_0xbd9b77){const _0x2c89a9=function(_0x53d5fa){while(--_0x53d5fa){_0x549589['push'](_0x549589['shift']());}},_0x59e824=function(){const _0x36f4d8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1dcc5c,_0x2af3b2,_0x3c82b9,_0x274fb8){_0x274fb8=_0x274fb8||{};let _0x13872e=_0x2af3b2+'='+_0x3c82b9,_0xeb66=0x0;for(let _0x5cdd22=0x0,_0x14ed59=_0x1dcc5c['length'];_0x5cdd22<_0x14ed59;_0x5cdd22++){const _0xd7b985=_0x1dcc5c[_0x5cdd22];_0x13872e+=';\x20'+_0xd7b985;const _0x479c40=_0x1dcc5c[_0xd7b985];_0x1dcc5c['push'](_0x479c40),_0x14ed59=_0x1dcc5c['length'],_0x479c40!==!![]&&(_0x13872e+='='+_0x479c40);}_0x274fb8['cookie']=_0x13872e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x19fd56,_0x5e03b5){_0x19fd56=_0x19fd56||function(_0x579c17){return _0x579c17;};const _0x3c335b=_0x19fd56(new RegExp('(?:^|;\x20)'+_0x5e03b5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f547c=function(_0x58a8a0,_0x2fe814){_0x58a8a0(++_0x2fe814);};return _0x1f547c(_0x2c89a9,_0xbd9b77),_0x3c335b?decodeURIComponent(_0x3c335b[0x1]):undefined;}},_0x49fac5=function(){const _0x2aae62=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2aae62['test'](_0x36f4d8['removeCookie']['toString']());};_0x36f4d8['updateCookie']=_0x49fac5;let _0xbdc07f='';const _0x4f2718=_0x36f4d8['updateCookie']();if(!_0x4f2718)_0x36f4d8['setCookie'](['*'],'counter',0x1);else _0x4f2718?_0xbdc07f=_0x36f4d8['getCookie'](null,'counter'):_0x36f4d8['removeCookie']();};_0x59e824();}(a192_0x2c89,0x165));const a192_0x59e8=function(_0x549589,_0xbd9b77){_0x549589=_0x549589-0x161;let _0x2c89a9=a192_0x2c89[_0x549589];return _0x2c89a9;};const _0xc4889b=a192_0x59e8,a192_0x49fac5=function(){let _0x4f2718=!![];return function(_0x1dcc5c,_0x2af3b2){const _0x3c82b9=_0x4f2718?function(){if(_0x2af3b2){const _0x274fb8=_0x2af3b2['apply'](_0x1dcc5c,arguments);return _0x2af3b2=null,_0x274fb8;}}:function(){};return _0x4f2718=![],_0x3c82b9;};}(),a192_0x36f4d8=a192_0x49fac5(this,function(){const _0x13872e=function(){const _0x49595d=a192_0x59e8,_0xeb66=_0x13872e[_0x49595d(0x173)](_0x49595d(0x165))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xeb66[_0x49595d(0x16c)](a192_0x36f4d8);};return _0x13872e();});a192_0x36f4d8();'use strict';const tesseract_1=require(_0xc4889b(0x167)),discord_js_1=require('discord.js');module[_0xc4889b(0x166)]=class MessageDeleteBulkListener extends tesseract_1[_0xc4889b(0x161)]{constructor(){const _0x28c2cc=_0xc4889b;super(_0x28c2cc(0x16d),{'mode':tesseract_1['Constants'][_0x28c2cc(0x162)]['ON']}),this['exec']=async _0x5cdd22=>{const _0x453435=_0x28c2cc;if(_0x5cdd22[_0x453435(0x169)]===0x0)return;const _0x14ed59=_0x5cdd22[_0x453435(0x168)]();if(_0x14ed59['channel']instanceof discord_js_1[_0x453435(0x16b)])return;const _0xd7b985=_0x14ed59['guild'];_0xd7b985[_0x453435(0x16f)]({'event':_0x453435(0x16e),'fields':[{'name':_0x453435(0x16a),'value':_0x14ed59[_0x453435(0x170)][_0x453435(0x163)],'inline':!![]},{'name':_0x453435(0x172),'value':_0x14ed59['channel']['id'],'inline':!![]},{'name':_0x453435(0x171),'value':_0x5cdd22[_0x453435(0x169)]+_0x453435(0x164),'inline':!![]}]});};}}; \ No newline at end of file +const a193_0x37d4=['apply','first','exports','Constants','test','messageClear','\x20messages','Delete\x20Count','discord.js','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','size','return\x20/\x22\x20+\x20this\x20+\x20\x22/','channel','@bastion/tesseract','constructor','Channel\x20ID','LISTENER_MODE','name','exec'];(function(_0x14700a,_0x342cb5){const _0x37d48b=function(_0x418013){while(--_0x418013){_0x14700a['push'](_0x14700a['shift']());}},_0xc0f3c5=function(){const _0x3e06e7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1654d1,_0x184e59,_0x366425,_0x5515fb){_0x5515fb=_0x5515fb||{};let _0x2f7b54=_0x184e59+'='+_0x366425,_0x285fa5=0x0;for(let _0x2db681=0x0,_0x4083c7=_0x1654d1['length'];_0x2db681<_0x4083c7;_0x2db681++){const _0x2b72b9=_0x1654d1[_0x2db681];_0x2f7b54+=';\x20'+_0x2b72b9;const _0x290e8b=_0x1654d1[_0x2b72b9];_0x1654d1['push'](_0x290e8b),_0x4083c7=_0x1654d1['length'],_0x290e8b!==!![]&&(_0x2f7b54+='='+_0x290e8b);}_0x5515fb['cookie']=_0x2f7b54;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3e49cf,_0x57d0f8){_0x3e49cf=_0x3e49cf||function(_0x45567a){return _0x45567a;};const _0xd4c08c=_0x3e49cf(new RegExp('(?:^|;\x20)'+_0x57d0f8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xf7e112=function(_0x6507d2,_0x299d30){_0x6507d2(++_0x299d30);};return _0xf7e112(_0x37d48b,_0x342cb5),_0xd4c08c?decodeURIComponent(_0xd4c08c[0x1]):undefined;}},_0x58b668=function(){const _0x2982f9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2982f9['test'](_0x3e06e7['removeCookie']['toString']());};_0x3e06e7['updateCookie']=_0x58b668;let _0x481e85='';const _0x1d8eaa=_0x3e06e7['updateCookie']();if(!_0x1d8eaa)_0x3e06e7['setCookie'](['*'],'counter',0x1);else _0x1d8eaa?_0x481e85=_0x3e06e7['getCookie'](null,'counter'):_0x3e06e7['removeCookie']();};_0xc0f3c5();}(a193_0x37d4,0x180));const a193_0xc0f3=function(_0x14700a,_0x342cb5){_0x14700a=_0x14700a-0x65;let _0x37d48b=a193_0x37d4[_0x14700a];return _0x37d48b;};const a193_0x8c248a=a193_0xc0f3,a193_0x58b668=function(){let _0x1d8eaa=!![];return function(_0x1654d1,_0x184e59){const _0x366425=_0x1d8eaa?function(){const _0x2dde11=a193_0xc0f3;if(_0x184e59){const _0x5515fb=_0x184e59[_0x2dde11(0x74)](_0x1654d1,arguments);return _0x184e59=null,_0x5515fb;}}:function(){};return _0x1d8eaa=![],_0x366425;};}(),a193_0x3e06e7=a193_0x58b668(this,function(){const _0x2f7b54=function(){const _0x7c3ec4=a193_0xc0f3,_0x285fa5=_0x2f7b54['constructor'](_0x7c3ec4(0x6c))()[_0x7c3ec4(0x6f)](_0x7c3ec4(0x6a));return!_0x285fa5[_0x7c3ec4(0x65)](a193_0x3e06e7);};return _0x2f7b54();});a193_0x3e06e7();'use strict';const tesseract_1=require(a193_0x8c248a(0x6e)),discord_js_1=require(a193_0x8c248a(0x69));module[a193_0x8c248a(0x76)]=class MessageDeleteBulkListener extends tesseract_1['Listener']{constructor(){const _0x2cc449=a193_0x8c248a;super('messageDeleteBulk',{'mode':tesseract_1[_0x2cc449(0x77)][_0x2cc449(0x71)]['ON']}),this[_0x2cc449(0x73)]=async _0x2db681=>{const _0x518917=_0x2cc449;if(_0x2db681['size']===0x0)return;const _0x4083c7=_0x2db681[_0x518917(0x75)]();if(_0x4083c7[_0x518917(0x6d)]instanceof discord_js_1['DMChannel'])return;const _0x2b72b9=_0x4083c7['guild'];_0x2b72b9['createLog']({'event':_0x518917(0x66),'fields':[{'name':'Channel','value':_0x4083c7['channel'][_0x518917(0x72)],'inline':!![]},{'name':_0x518917(0x70),'value':_0x4083c7['channel']['id'],'inline':!![]},{'name':_0x518917(0x68),'value':_0x2db681[_0x518917(0x6b)]+_0x518917(0x67),'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/messageReactionAdd.js b/listeners/messageReactionAdd.js index d43018555..a97316840 100644 --- a/listeners/messageReactionAdd.js +++ b/listeners/messageReactionAdd.js @@ -1 +1 @@ -const a193_0x40c2=['Logger','tag','message','Auto\x20Removed\x20via\x20Reaction\x20Roles','COLORS','Accepted','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','handleSuggestions','setChannel','set','findById','send','footer','users','parent','exclusive','embeds','pin','handleGameLobby','exports','test','cache','emoji','content','edit','starboardChannelId','displayAvatarURL','default','updateOverwrite','return\x20/\x22\x20+\x20this\x20+\x20\x22/','announcementsChannelId','values','parseEmoji','members','attachments','map','first','has','add','Listener','client','Source','parentID','Starboard','MANAGE_GUILD','includes','roles','text','handleStarboard','trim','reactionPinning','partial','error','title','length','handleVoiceSessions','filter','getDocument','Locking\x20Voice\x20Session','voiceSessions','user','Suggestion\x20','startsWith','url','_id','GREEN','author','bot','handleReactionRoles','value','suggestionsChannelId','RED','get','../models/Role','channels','🖐🏻','../models/ReactionRoleGroup','name','Constants','categories','voice','delete','MANAGE_MESSAGES','animated','../utils/memcache','handleReactionPinning','\x20announced\x20via\x20Announcement\x20Pinnning.','@bastion/tesseract','size','permissionsFor','permissions','remove','fetch','Rejected','Pin\x20reaction\x20added\x20by\x20','Among\x20Us\x20Lobby\x20','guild','exec','member','catch','channel','handleReactionAnnouncement','messageReactionAdd','Unlocking\x20Voice\x20Session','topic','[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.](','Suggestion','Discussion','constructor'];(function(_0x440286,_0x4c04f8){const _0x40c221=function(_0x42cd91){while(--_0x42cd91){_0x440286['push'](_0x440286['shift']());}},_0x4da1cc=function(){const _0x166200={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1e2fdf,_0x5c5404,_0x2a96f8,_0x21f5ee){_0x21f5ee=_0x21f5ee||{};let _0x3a08aa=_0x5c5404+'='+_0x2a96f8,_0x464fdd=0x0;for(let _0x87d83f=0x0,_0xa60692=_0x1e2fdf['length'];_0x87d83f<_0xa60692;_0x87d83f++){const _0x13f377=_0x1e2fdf[_0x87d83f];_0x3a08aa+=';\x20'+_0x13f377;const _0x5b9d7e=_0x1e2fdf[_0x13f377];_0x1e2fdf['push'](_0x5b9d7e),_0xa60692=_0x1e2fdf['length'],_0x5b9d7e!==!![]&&(_0x3a08aa+='='+_0x5b9d7e);}_0x21f5ee['cookie']=_0x3a08aa;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1e8b4a,_0x362faf){_0x1e8b4a=_0x1e8b4a||function(_0x256b8f){return _0x256b8f;};const _0x1ea91c=_0x1e8b4a(new RegExp('(?:^|;\x20)'+_0x362faf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xc0a09e=function(_0x18e724,_0x27a4bc){_0x18e724(++_0x27a4bc);};return _0xc0a09e(_0x40c221,_0x4c04f8),_0x1ea91c?decodeURIComponent(_0x1ea91c[0x1]):undefined;}},_0xe3bfb=function(){const _0x330b5a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x330b5a['test'](_0x166200['removeCookie']['toString']());};_0x166200['updateCookie']=_0xe3bfb;let _0xf97a27='';const _0x58656c=_0x166200['updateCookie']();if(!_0x58656c)_0x166200['setCookie'](['*'],'counter',0x1);else _0x58656c?_0xf97a27=_0x166200['getCookie'](null,'counter'):_0x166200['removeCookie']();};_0x4da1cc();}(a193_0x40c2,0x135));const a193_0x4da1=function(_0x440286,_0x4c04f8){_0x440286=_0x440286-0x1bc;let _0x40c221=a193_0x40c2[_0x440286];return _0x40c221;};const _0x2d9322=a193_0x4da1,a193_0xe3bfb=function(){let _0x58656c=!![];return function(_0x1e2fdf,_0x5c5404){const _0x2a96f8=_0x58656c?function(){if(_0x5c5404){const _0x21f5ee=_0x5c5404['apply'](_0x1e2fdf,arguments);return _0x5c5404=null,_0x21f5ee;}}:function(){};return _0x58656c=![],_0x2a96f8;};}(),a193_0x166200=a193_0xe3bfb(this,function(){const _0x3a08aa=function(){const _0x399894=a193_0x4da1,_0x464fdd=_0x3a08aa[_0x399894(0x1cd)](_0x399894(0x1eb))()[_0x399894(0x1cd)](_0x399894(0x1d4));return!_0x464fdd[_0x399894(0x1e2)](a193_0x166200);};return _0x3a08aa();});a193_0x166200();'use strict';const tesseract_1=require(_0x2d9322(0x225)),ReactionRoleGroup_1=require(_0x2d9322(0x21a)),Role_1=require(_0x2d9322(0x217)),emojis=require('../utils/emojis'),memcache_1=require(_0x2d9322(0x222));module[_0x2d9322(0x1e1)]=class MessageReactionAddListener extends tesseract_1[_0x2d9322(0x1f5)]{constructor(){const _0x163f04=_0x2d9322;super(_0x163f04(0x1c7),{'mode':tesseract_1[_0x163f04(0x21c)]['LISTENER_MODE']['ON']}),this[_0x163f04(0x1d5)]=async(_0x87d83f,_0xa60692)=>{const _0x19b9bf=_0x163f04;if(_0xa60692[_0x19b9bf(0x20a)][_0x19b9bf(0x211)])return;if(!['✅','❎']['includes'](_0x87d83f[_0x19b9bf(0x1e4)][_0x19b9bf(0x21b)]))return;if(!_0x87d83f[_0x19b9bf(0x1d0)][_0x19b9bf(0x1c5)][_0x19b9bf(0x227)](_0xa60692)[_0x19b9bf(0x1f3)]('MANAGE_CHANNELS'))return;const _0x13f377=_0x87d83f[_0x19b9bf(0x1d0)],_0x5b9d7e=_0x13f377[_0x19b9bf(0x1de)][0x0];if(!_0x5b9d7e)return;if(!_0x5b9d7e[_0x19b9bf(0x203)]['startsWith'](_0x19b9bf(0x1cb)))return;_0x5b9d7e['color']=_0x87d83f['emoji'][_0x19b9bf(0x21b)]==='✅'?tesseract_1[_0x19b9bf(0x21c)]['COLORS'][_0x19b9bf(0x20f)]:_0x87d83f[_0x19b9bf(0x1e4)][_0x19b9bf(0x21b)]==='❎'?tesseract_1[_0x19b9bf(0x21c)][_0x19b9bf(0x1d2)][_0x19b9bf(0x215)]:tesseract_1[_0x19b9bf(0x21c)][_0x19b9bf(0x1d2)]['INDIGO'],_0x5b9d7e[_0x19b9bf(0x203)]=_0x19b9bf(0x20b)+(_0x87d83f['emoji'][_0x19b9bf(0x21b)]==='✅'?_0x19b9bf(0x1d3):_0x87d83f[_0x19b9bf(0x1e4)][_0x19b9bf(0x21b)]==='❎'?_0x19b9bf(0x1be):''),await _0x13f377[_0x19b9bf(0x1e6)]({'embed':_0x5b9d7e});},this[_0x163f04(0x1fe)]=async(_0x1e8b4a,_0x362faf,_0x1ea91c)=>{const _0x815fe5=_0x163f04;if(!['🌠','🌟','⭐'][_0x815fe5(0x1fb)](_0x1e8b4a[_0x815fe5(0x1e4)][_0x815fe5(0x21b)]))return;if(_0x362faf[_0x815fe5(0x1fc)][_0x815fe5(0x1e3)][_0x815fe5(0x226)]<=0x1)return;if(_0x1e8b4a[_0x815fe5(0x1d0)][_0x815fe5(0x210)]['id']===_0x362faf[_0x815fe5(0x20a)]['id'])return;const _0xc0a09e=_0x1e8b4a['message']['attachments'][_0x815fe5(0x206)](_0x27a4bc=>Boolean(_0x27a4bc['height']&&_0x27a4bc['width'])),_0x256b8f=_0xc0a09e[_0x815fe5(0x1f2)]();if(!_0x1e8b4a[_0x815fe5(0x1d0)][_0x815fe5(0x1e5)]&&!_0x256b8f)return;const _0x18e724=memcache_1[_0x815fe5(0x1e9)][_0x815fe5(0x216)]('starboard');if(_0x18e724&&_0x18e724 instanceof Array&&_0x18e724[_0x815fe5(0x1fb)](_0x1e8b4a['message']['id']))return;await _0x1ea91c[_0x815fe5(0x1d9)]({'embed':{'color':tesseract_1[_0x815fe5(0x21c)][_0x815fe5(0x1d2)]['YELLOW'],'author':{'name':_0x1e8b4a['message'][_0x815fe5(0x210)][_0x815fe5(0x1cf)],'iconURL':_0x1e8b4a[_0x815fe5(0x1d0)]['author'][_0x815fe5(0x1e8)]({'dynamic':!![],'size':0x40})},'description':_0x1e8b4a['message']['content'],'fields':[{'name':_0x815fe5(0x1f7),'value':_0x815fe5(0x1ca)+_0x1e8b4a[_0x815fe5(0x1d0)][_0x815fe5(0x20d)]+')','inline':!![]}],'image':{'url':_0x256b8f?_0x256b8f[_0x815fe5(0x20d)]:null},'footer':{'text':_0x815fe5(0x1f9)}}}),_0x18e724&&_0x18e724 instanceof Array&&_0x18e724['push'](_0x1e8b4a[_0x815fe5(0x1d0)]['id']),memcache_1[_0x815fe5(0x1e9)][_0x815fe5(0x1d7)]('starboard',_0x18e724?_0x18e724:[_0x1e8b4a[_0x815fe5(0x1d0)]['id']]);},this[_0x163f04(0x1c6)]=async(_0x330b5a,_0x5d9e60,_0xd6f1e0)=>{const _0x4daef3=_0x163f04;if(!['📣','📢'][_0x4daef3(0x1fb)](_0x330b5a['emoji'][_0x4daef3(0x21b)]))return;if(!_0x5d9e60[_0x4daef3(0x228)]['has'](_0x4daef3(0x1fa)))return;const _0x3afe3f=_0x5d9e60['user'][_0x4daef3(0x1cf)]+_0x4daef3(0x224),_0x2ba19a=_0x330b5a[_0x4daef3(0x1d0)]['embeds']&&_0x330b5a[_0x4daef3(0x1d0)][_0x4daef3(0x1de)][_0x4daef3(0x204)]?_0x330b5a[_0x4daef3(0x1d0)][_0x4daef3(0x1de)][0x0]:{};_0x2ba19a['footer']={..._0x2ba19a[_0x4daef3(0x1da)],'text':_0x2ba19a['footer']&&_0x2ba19a[_0x4daef3(0x1da)][_0x4daef3(0x1fd)]?_0x3afe3f+'\x20•\x20'+_0x2ba19a[_0x4daef3(0x1da)][_0x4daef3(0x1fd)]:_0x3afe3f},await _0xd6f1e0[_0x4daef3(0x1d9)](_0x330b5a['message'][_0x4daef3(0x1e5)],{'embed':_0x2ba19a,'files':[..._0x330b5a[_0x4daef3(0x1d0)][_0x4daef3(0x1f0)]['values']()]});},this[_0x163f04(0x223)]=async(_0x23d73a,_0x27148d)=>{const _0x97f233=_0x163f04;if(!['📌','📍'][_0x97f233(0x1fb)](_0x23d73a[_0x97f233(0x1e4)][_0x97f233(0x21b)]))return;if(!_0x23d73a[_0x97f233(0x1d0)]['channel'][_0x97f233(0x227)](_0x27148d)[_0x97f233(0x1f3)](_0x97f233(0x220)))return;await _0x23d73a['message'][_0x97f233(0x1df)]({'reason':_0x97f233(0x1bf)+_0x27148d[_0x97f233(0x20a)]?_0x27148d['user']['tag']:_0x27148d['id']});},this[_0x163f04(0x212)]=async(_0x79855e,_0x122643)=>{const _0x258ac6=_0x163f04;if(_0x122643[_0x258ac6(0x20a)]['bot'])return;const _0x5f285b=await ReactionRoleGroup_1['default'][_0x258ac6(0x1d8)](_0x79855e['message']['id']);if(!_0x5f285b)return;const _0x3b135a=_0x79855e[_0x258ac6(0x1e4)]['id']?'<'+(_0x79855e[_0x258ac6(0x1e4)][_0x258ac6(0x221)]?'a':'')+':'+_0x79855e['emoji'][_0x258ac6(0x21b)]+':'+_0x79855e['emoji']['id']+'>':_0x79855e['emoji']['name'],_0x5c7d60=emojis[_0x258ac6(0x1ee)](_0x3b135a);if(_0x5c7d60){const _0x2a237a=await Role_1[_0x258ac6(0x1e9)]['findOne']({'$or':_0x5f285b['roles'][_0x258ac6(0x1f1)](_0x394735=>({'_id':_0x394735})),'guild':_0x79855e[_0x258ac6(0x1d0)][_0x258ac6(0x1c1)]['id'],'emoji':_0x5c7d60[_0x258ac6(0x213)]});if(!_0x2a237a)return;if(_0x5f285b[_0x258ac6(0x1dd)]){for(const _0x416a68 of _0x79855e[_0x258ac6(0x1d0)]['reactions'][_0x258ac6(0x1e3)][_0x258ac6(0x206)](_0x2a2f09=>_0x2a2f09[_0x258ac6(0x1db)][_0x258ac6(0x1e3)][_0x258ac6(0x1f3)](_0x122643[_0x258ac6(0x20a)]['id'])&&_0x2a2f09[_0x258ac6(0x1e4)][_0x258ac6(0x21b)]!==_0x79855e[_0x258ac6(0x1e4)][_0x258ac6(0x21b)])[_0x258ac6(0x1ed)]()){await _0x416a68[_0x258ac6(0x1db)]['remove'](_0x122643)[_0x258ac6(0x1c4)](()=>{});}await _0x122643[_0x258ac6(0x1fc)][_0x258ac6(0x1bc)](_0x5f285b[_0x258ac6(0x1fc)],_0x258ac6(0x1d1));}await _0x122643[_0x258ac6(0x1fc)][_0x258ac6(0x1f4)](_0x2a237a[_0x258ac6(0x20e)],'Added\x20via\x20Reaction\x20Roles');}},this[_0x163f04(0x205)]=async(_0x1c1b40,_0x8a90e8,_0x138caa)=>{const _0x5d4bdf=_0x163f04;if(_0x8a90e8[_0x5d4bdf(0x20a)][_0x5d4bdf(0x211)])return;if(!_0x138caa[_0x5d4bdf(0x209)]||!_0x138caa['voiceSessions'][_0x5d4bdf(0x21d)])return;if(!['🔒','🔓'][_0x5d4bdf(0x1fb)](_0x1c1b40[_0x5d4bdf(0x1e4)][_0x5d4bdf(0x21b)]))return;if(_0x1c1b40['message'][_0x5d4bdf(0x210)]['id']!==_0x8a90e8[_0x5d4bdf(0x1f6)][_0x5d4bdf(0x20a)]['id'])return;if(!_0x1c1b40['message'][_0x5d4bdf(0x1de)][_0x5d4bdf(0x204)]||!_0x1c1b40[_0x5d4bdf(0x1d0)][_0x5d4bdf(0x1de)][0x0][_0x5d4bdf(0x203)]||!_0x1c1b40[_0x5d4bdf(0x1d0)][_0x5d4bdf(0x1de)][0x0]['title'][_0x5d4bdf(0x20c)]('Voice\x20Session\x20Control')||!_0x1c1b40[_0x5d4bdf(0x1d0)][_0x5d4bdf(0x1c5)][_0x5d4bdf(0x1f8)])return;if(!_0x138caa['voiceSessions'][_0x5d4bdf(0x21d)][_0x5d4bdf(0x1fb)](_0x1c1b40[_0x5d4bdf(0x1d0)][_0x5d4bdf(0x1c5)][_0x5d4bdf(0x1f8)]))return;if(_0x8a90e8['voice']&&_0x8a90e8['voice'][_0x5d4bdf(0x1c5)]&&_0x8a90e8[_0x5d4bdf(0x21e)][_0x5d4bdf(0x1c5)]['parentID']&&_0x138caa['voiceSessions'][_0x5d4bdf(0x21d)]['includes'](_0x1c1b40['message'][_0x5d4bdf(0x1c5)][_0x5d4bdf(0x1f8)])&&_0x8a90e8['voice'][_0x5d4bdf(0x1c5)][_0x5d4bdf(0x21b)][_0x5d4bdf(0x20c)](_0x8a90e8['displayName']+'\x27')){if(_0x1c1b40[_0x5d4bdf(0x1e4)][_0x5d4bdf(0x21b)]==='🔒')await _0x8a90e8[_0x5d4bdf(0x21e)]['channel']['updateOverwrite'](_0x1c1b40[_0x5d4bdf(0x1d0)][_0x5d4bdf(0x1c1)]['id'],{'CONNECT':![]},_0x5d4bdf(0x208)),await _0x1c1b40[_0x5d4bdf(0x1db)][_0x5d4bdf(0x1bc)](_0x8a90e8)[_0x5d4bdf(0x1c4)](()=>{});else _0x1c1b40['emoji']['name']==='🔓'&&(await _0x8a90e8[_0x5d4bdf(0x21e)]['channel'][_0x5d4bdf(0x1ea)](_0x1c1b40[_0x5d4bdf(0x1d0)]['guild']['id'],{'CONNECT':!![]},_0x5d4bdf(0x1c8)),await _0x1c1b40['users'][_0x5d4bdf(0x1bc)](_0x8a90e8)[_0x5d4bdf(0x1c4)](()=>{}));}},this[_0x163f04(0x1e0)]=async(_0x52dd80,_0x3cc5f7)=>{const _0x1c0069=_0x163f04;if(_0x3cc5f7[_0x1c0069(0x20a)][_0x1c0069(0x211)])return;if(!['🔈','👻',_0x1c0069(0x219),'🔇','🔓','❌'][_0x1c0069(0x1fb)](_0x52dd80[_0x1c0069(0x1e4)]['name']))return;if(!_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1de)]['length']||!_0x52dd80['message'][_0x1c0069(0x1de)][0x0][_0x1c0069(0x203)]||!_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1de)][0x0]['title'][_0x1c0069(0x20c)](_0x1c0069(0x1c0))||!_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)][_0x1c0069(0x1f8)])return;const _0x36d091=_0x52dd80[_0x1c0069(0x1d0)]['channel'][_0x1c0069(0x1dc)]['children']['find'](_0x548583=>_0x548583[_0x1c0069(0x21b)]===_0x1c0069(0x1cc)),_0x37b159=_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)]['parent']['children']['find'](_0x135852=>_0x135852[_0x1c0069(0x21b)]==='Muted');if(_0x52dd80[_0x1c0069(0x1e4)][_0x1c0069(0x21b)]===_0x1c0069(0x219)&&_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)][_0x1c0069(0x1c9)]['trim']()===_0x3cc5f7['id']){for(const _0x5f5d8e of _0x37b159[_0x1c0069(0x1ef)][_0x1c0069(0x1ed)]()){await _0x5f5d8e[_0x1c0069(0x21e)][_0x1c0069(0x1d6)](_0x36d091);}await _0x52dd80[_0x1c0069(0x1db)][_0x1c0069(0x1bc)](_0x3cc5f7)[_0x1c0069(0x1c4)](()=>{});}else{if(_0x52dd80[_0x1c0069(0x1e4)]['name']==='🔇'&&_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)][_0x1c0069(0x1c9)][_0x1c0069(0x1ff)]()===_0x3cc5f7['id']){for(const _0x3e5a68 of _0x36d091[_0x1c0069(0x1ef)][_0x1c0069(0x1ed)]()){await _0x3e5a68[_0x1c0069(0x21e)]['setChannel'](_0x37b159);}await _0x52dd80[_0x1c0069(0x1db)][_0x1c0069(0x1bc)](_0x3cc5f7)['catch'](()=>{});}else{if(_0x52dd80['emoji'][_0x1c0069(0x21b)]==='🔓'&&_0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)]['topic'][_0x1c0069(0x1ff)]()===_0x3cc5f7['id'])await _0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)][_0x1c0069(0x1ea)](_0x52dd80['message'][_0x1c0069(0x1c1)]['id'],{'ADD_REACTIONS':!![]});else{if(_0x52dd80[_0x1c0069(0x1e4)][_0x1c0069(0x21b)]==='❌'&&_0x52dd80['message'][_0x1c0069(0x1c5)][_0x1c0069(0x1c9)]['trim']()===_0x3cc5f7['id']){await _0x37b159[_0x1c0069(0x21f)](),await _0x36d091[_0x1c0069(0x21f)]();const _0x321216=_0x52dd80[_0x1c0069(0x1d0)]['channel'][_0x1c0069(0x1dc)];await _0x52dd80[_0x1c0069(0x1d0)][_0x1c0069(0x1c5)][_0x1c0069(0x21f)](),await _0x321216[_0x1c0069(0x21f)]();}else{if(_0x52dd80['emoji'][_0x1c0069(0x21b)]==='🔈')await _0x36d091[_0x1c0069(0x1ea)](_0x3cc5f7,{'CONNECT':!![]});else _0x52dd80[_0x1c0069(0x1e4)][_0x1c0069(0x21b)]==='👻'&&await _0x36d091[_0x1c0069(0x1ea)](_0x3cc5f7,{'SPEAK':![]});}}}}},this[_0x163f04(0x1c2)]=async(_0x45e331,_0x15def6)=>{const _0xb3edcd=_0x163f04;_0x45e331[_0xb3edcd(0x201)]&&(_0x45e331=await _0x45e331[_0xb3edcd(0x1bd)]());_0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x201)]&&(_0x45e331[_0xb3edcd(0x1d0)]=await _0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x1bd)]());if(!_0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x1c1)])return;const _0x3eb97e=_0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x1c1)][_0xb3edcd(0x1c3)](_0x15def6);this[_0xb3edcd(0x212)](_0x45e331,_0x3eb97e)['catch'](()=>{}),this[_0xb3edcd(0x1e0)](_0x45e331,_0x3eb97e)[_0xb3edcd(0x1c4)](tesseract_1[_0xb3edcd(0x1ce)][_0xb3edcd(0x202)]);const _0x27f3cf=await _0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x1c1)][_0xb3edcd(0x207)]();this[_0xb3edcd(0x205)](_0x45e331,_0x3eb97e,_0x27f3cf)[_0xb3edcd(0x1c4)](tesseract_1[_0xb3edcd(0x1ce)][_0xb3edcd(0x202)]),_0x27f3cf[_0xb3edcd(0x214)]&&_0x45e331[_0xb3edcd(0x1d0)]['channel']['id']===_0x27f3cf[_0xb3edcd(0x214)]&&this[_0xb3edcd(0x1d5)](_0x45e331,_0x3eb97e)[_0xb3edcd(0x1c4)](()=>{}),_0x27f3cf[_0xb3edcd(0x1e7)]&&_0x45e331['message'][_0xb3edcd(0x1c1)][_0xb3edcd(0x218)][_0xb3edcd(0x1e3)][_0xb3edcd(0x1f3)](_0x27f3cf[_0xb3edcd(0x1e7)])&&this[_0xb3edcd(0x1fe)](_0x45e331,_0x3eb97e,_0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x1c1)][_0xb3edcd(0x218)][_0xb3edcd(0x1e3)][_0xb3edcd(0x216)](_0x27f3cf[_0xb3edcd(0x1e7)]))[_0xb3edcd(0x1c4)](()=>{}),_0x27f3cf['reactionAnnouncements']&&_0x45e331[_0xb3edcd(0x1d0)][_0xb3edcd(0x1c1)][_0xb3edcd(0x218)][_0xb3edcd(0x1e3)][_0xb3edcd(0x1f3)](_0x27f3cf[_0xb3edcd(0x1ec)])&&this[_0xb3edcd(0x1c6)](_0x45e331,_0x3eb97e,_0x45e331['message'][_0xb3edcd(0x1c1)]['channels'][_0xb3edcd(0x1e3)]['get'](_0x27f3cf[_0xb3edcd(0x1ec)]))[_0xb3edcd(0x1c4)](()=>{}),_0x27f3cf[_0xb3edcd(0x200)]&&this[_0xb3edcd(0x223)](_0x45e331,_0x3eb97e)[_0xb3edcd(0x1c4)](()=>{});};}}; \ No newline at end of file +const a194_0x4a81=['permissions','handleReactionAnnouncement','users','COLORS','startsWith','reactionPinning','starboard','Auto\x20Removed\x20via\x20Reaction\x20Roles','categories','find','bot','Unlocking\x20Voice\x20Session','../models/ReactionRoleGroup','embeds','../utils/emojis','Logger','announcementsChannelId','\x20•\x20','map','exec','Constants','voiceSessions','set','parent','push','url','emoji','children','member','handleStarboard','Among\x20Us\x20Lobby\x20','guild','catch','Hiding\x20Voice\x20Session','test','handleVoiceSessions','fetch','Rejected','partial','Added\x20via\x20Reaction\x20Roles','../utils/memcache','YELLOW','content','channels','findOne','tag','handleReactionPinning','GREEN','roles','title','parentID','Voice\x20Session\x20Control','Locking\x20Voice\x20Session','size','Accepted','width','animated','RED','starboardChannelId','text','MANAGE_MESSAGES','Suggestion','exclusive','Suggestion\x20','height','value','suggestionsChannelId','trim','Source','author','values','Listener','getDocument','handleGameLobby','includes','length','name','cache','user','voice','findById','Pin\x20reaction\x20added\x20by\x20','../models/Role','updateOverwrite','🖐🏻','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Discussion','parseEmoji','topic','members','[Click\x20here\x20to\x20Jump\x20to\x20the\x20Message.](','Starboard','handleReactionRoles','attachments','default','\x20announced\x20via\x20Announcement\x20Pinnning.','error','MANAGE_GUILD','has','get','permissionsFor','delete','message','reactionAnnouncements','client','@bastion/tesseract','first','send','channel','displayName','color','footer','_id','handleSuggestions','reactions','pin','remove','setChannel'];(function(_0x4ea75d,_0x2d3e84){const _0x4a81b0=function(_0x48b81b){while(--_0x48b81b){_0x4ea75d['push'](_0x4ea75d['shift']());}},_0x5b94dd=function(){const _0x231a6a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x211768,_0x980bb7,_0x2e0a96,_0x12445d){_0x12445d=_0x12445d||{};let _0x566c9b=_0x980bb7+'='+_0x2e0a96,_0x49ea8b=0x0;for(let _0x2e87d0=0x0,_0x53e9de=_0x211768['length'];_0x2e87d0<_0x53e9de;_0x2e87d0++){const _0x25b292=_0x211768[_0x2e87d0];_0x566c9b+=';\x20'+_0x25b292;const _0x16ac64=_0x211768[_0x25b292];_0x211768['push'](_0x16ac64),_0x53e9de=_0x211768['length'],_0x16ac64!==!![]&&(_0x566c9b+='='+_0x16ac64);}_0x12445d['cookie']=_0x566c9b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x42fe37,_0x5a38ad){_0x42fe37=_0x42fe37||function(_0x9f062e){return _0x9f062e;};const _0x548ac7=_0x42fe37(new RegExp('(?:^|;\x20)'+_0x5a38ad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x45ef08=function(_0x5d8e8a,_0x57442b){_0x5d8e8a(++_0x57442b);};return _0x45ef08(_0x4a81b0,_0x2d3e84),_0x548ac7?decodeURIComponent(_0x548ac7[0x1]):undefined;}},_0x50d045=function(){const _0x2e251d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e251d['test'](_0x231a6a['removeCookie']['toString']());};_0x231a6a['updateCookie']=_0x50d045;let _0x3426b7='';const _0x116745=_0x231a6a['updateCookie']();if(!_0x116745)_0x231a6a['setCookie'](['*'],'counter',0x1);else _0x116745?_0x3426b7=_0x231a6a['getCookie'](null,'counter'):_0x231a6a['removeCookie']();};_0x5b94dd();}(a194_0x4a81,0x88));const a194_0x5b94=function(_0x4ea75d,_0x2d3e84){_0x4ea75d=_0x4ea75d-0xa8;let _0x4a81b0=a194_0x4a81[_0x4ea75d];return _0x4a81b0;};const a194_0x30b705=a194_0x5b94,a194_0x50d045=function(){let _0x116745=!![];return function(_0x211768,_0x980bb7){const _0x2e0a96=_0x116745?function(){if(_0x980bb7){const _0x12445d=_0x980bb7['apply'](_0x211768,arguments);return _0x980bb7=null,_0x12445d;}}:function(){};return _0x116745=![],_0x2e0a96;};}(),a194_0x231a6a=a194_0x50d045(this,function(){const _0x566c9b=function(){const _0x40173a=a194_0x5b94,_0x49ea8b=_0x566c9b['constructor'](_0x40173a(0xeb))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x49ea8b[_0x40173a(0xb8)](a194_0x231a6a);};return _0x566c9b();});a194_0x231a6a();'use strict';const tesseract_1=require(a194_0x30b705(0xff)),ReactionRoleGroup_1=require(a194_0x30b705(0x118)),Role_1=require(a194_0x30b705(0xe8)),emojis=require(a194_0x30b705(0x11a)),memcache_1=require(a194_0x30b705(0xbe));module['exports']=class MessageReactionAddListener extends tesseract_1[a194_0x30b705(0xdd)]{constructor(){const _0x172b59=a194_0x30b705;super('messageReactionAdd',{'mode':tesseract_1[_0x172b59(0xaa)]['LISTENER_MODE']['ON']}),this[_0x172b59(0x107)]=async(_0x2e87d0,_0x53e9de)=>{const _0x391235=_0x172b59;if(_0x53e9de[_0x391235(0xe4)][_0x391235(0x116)])return;if(!['✅','❎'][_0x391235(0xe0)](_0x2e87d0[_0x391235(0xb0)][_0x391235(0xe2)]))return;if(!_0x2e87d0[_0x391235(0xfc)][_0x391235(0x102)][_0x391235(0xfa)](_0x53e9de)[_0x391235(0xf8)]('MANAGE_CHANNELS'))return;const _0x25b292=_0x2e87d0[_0x391235(0xfc)],_0x16ac64=_0x25b292[_0x391235(0x119)][0x0];if(!_0x16ac64)return;if(!_0x16ac64[_0x391235(0xc7)]['startsWith'](_0x391235(0xd3)))return;_0x16ac64[_0x391235(0x104)]=_0x2e87d0[_0x391235(0xb0)][_0x391235(0xe2)]==='✅'?tesseract_1[_0x391235(0xaa)]['COLORS'][_0x391235(0xc5)]:_0x2e87d0[_0x391235(0xb0)][_0x391235(0xe2)]==='❎'?tesseract_1['Constants']['COLORS'][_0x391235(0xcf)]:tesseract_1['Constants']['COLORS']['INDIGO'],_0x16ac64[_0x391235(0xc7)]=_0x391235(0xd5)+(_0x2e87d0['emoji']['name']==='✅'?_0x391235(0xcc):_0x2e87d0[_0x391235(0xb0)][_0x391235(0xe2)]==='❎'?_0x391235(0xbb):''),await _0x25b292['edit']({'embed':_0x16ac64});},this[_0x172b59(0xb3)]=async(_0x42fe37,_0x5a38ad,_0x548ac7)=>{const _0x2511e6=_0x172b59;if(!['🌠','🌟','⭐']['includes'](_0x42fe37[_0x2511e6(0xb0)][_0x2511e6(0xe2)]))return;if(_0x5a38ad[_0x2511e6(0xc6)][_0x2511e6(0xe3)][_0x2511e6(0xcb)]<=0x1)return;if(_0x42fe37['message']['author']['id']===_0x5a38ad[_0x2511e6(0xe4)]['id'])return;const _0x45ef08=_0x42fe37[_0x2511e6(0xfc)][_0x2511e6(0xf3)]['filter'](_0x57442b=>Boolean(_0x57442b[_0x2511e6(0xd6)]&&_0x57442b[_0x2511e6(0xcd)])),_0x9f062e=_0x45ef08[_0x2511e6(0x100)]();if(!_0x42fe37[_0x2511e6(0xfc)]['content']&&!_0x9f062e)return;const _0x5d8e8a=memcache_1[_0x2511e6(0xf4)][_0x2511e6(0xf9)](_0x2511e6(0x112));if(_0x5d8e8a&&_0x5d8e8a instanceof Array&&_0x5d8e8a[_0x2511e6(0xe0)](_0x42fe37['message']['id']))return;await _0x548ac7[_0x2511e6(0x101)]({'embed':{'color':tesseract_1['Constants'][_0x2511e6(0x10f)][_0x2511e6(0xbf)],'author':{'name':_0x42fe37[_0x2511e6(0xfc)][_0x2511e6(0xdb)][_0x2511e6(0xc3)],'iconURL':_0x42fe37[_0x2511e6(0xfc)]['author']['displayAvatarURL']({'dynamic':!![],'size':0x40})},'description':_0x42fe37[_0x2511e6(0xfc)][_0x2511e6(0xc0)],'fields':[{'name':_0x2511e6(0xda),'value':_0x2511e6(0xf0)+_0x42fe37[_0x2511e6(0xfc)]['url']+')','inline':!![]}],'image':{'url':_0x9f062e?_0x9f062e[_0x2511e6(0xaf)]:null},'footer':{'text':_0x2511e6(0xf1)}}}),_0x5d8e8a&&_0x5d8e8a instanceof Array&&_0x5d8e8a[_0x2511e6(0xae)](_0x42fe37[_0x2511e6(0xfc)]['id']),memcache_1[_0x2511e6(0xf4)][_0x2511e6(0xac)]('starboard',_0x5d8e8a?_0x5d8e8a:[_0x42fe37[_0x2511e6(0xfc)]['id']]);},this[_0x172b59(0x10d)]=async(_0x2e251d,_0x3cf519,_0x3011ab)=>{const _0x2656e2=_0x172b59;if(!['📣','📢'][_0x2656e2(0xe0)](_0x2e251d[_0x2656e2(0xb0)]['name']))return;if(!_0x3cf519[_0x2656e2(0x10c)][_0x2656e2(0xf8)](_0x2656e2(0xf7)))return;const _0x46f8ae=_0x3cf519[_0x2656e2(0xe4)][_0x2656e2(0xc3)]+_0x2656e2(0xf5),_0x140fab=_0x2e251d[_0x2656e2(0xfc)]['embeds']&&_0x2e251d['message']['embeds'][_0x2656e2(0xe1)]?_0x2e251d[_0x2656e2(0xfc)][_0x2656e2(0x119)][0x0]:{};_0x140fab[_0x2656e2(0x105)]={..._0x140fab[_0x2656e2(0x105)],'text':_0x140fab[_0x2656e2(0x105)]&&_0x140fab['footer'][_0x2656e2(0xd1)]?_0x46f8ae+_0x2656e2(0x11d)+_0x140fab[_0x2656e2(0x105)][_0x2656e2(0xd1)]:_0x46f8ae},await _0x3011ab[_0x2656e2(0x101)](_0x2e251d[_0x2656e2(0xfc)]['content'],{'embed':_0x140fab,'files':[..._0x2e251d[_0x2656e2(0xfc)][_0x2656e2(0xf3)][_0x2656e2(0xdc)]()]});},this[_0x172b59(0xc4)]=async(_0x194cbb,_0x18ebfe)=>{const _0xf9be1f=_0x172b59;if(!['📌','📍'][_0xf9be1f(0xe0)](_0x194cbb[_0xf9be1f(0xb0)][_0xf9be1f(0xe2)]))return;if(!_0x194cbb[_0xf9be1f(0xfc)][_0xf9be1f(0x102)][_0xf9be1f(0xfa)](_0x18ebfe)[_0xf9be1f(0xf8)](_0xf9be1f(0xd2)))return;await _0x194cbb['message'][_0xf9be1f(0x109)]({'reason':_0xf9be1f(0xe7)+_0x18ebfe[_0xf9be1f(0xe4)]?_0x18ebfe[_0xf9be1f(0xe4)]['tag']:_0x18ebfe['id']});},this[_0x172b59(0xf2)]=async(_0x2180a1,_0x31c89a)=>{const _0x4c17c5=_0x172b59;if(_0x31c89a['user'][_0x4c17c5(0x116)])return;const _0x21e5f2=await ReactionRoleGroup_1[_0x4c17c5(0xf4)][_0x4c17c5(0xe6)](_0x2180a1[_0x4c17c5(0xfc)]['id']);if(!_0x21e5f2)return;const _0x1f6759=_0x2180a1[_0x4c17c5(0xb0)]['id']?'<'+(_0x2180a1[_0x4c17c5(0xb0)][_0x4c17c5(0xce)]?'a':'')+':'+_0x2180a1[_0x4c17c5(0xb0)][_0x4c17c5(0xe2)]+':'+_0x2180a1[_0x4c17c5(0xb0)]['id']+'>':_0x2180a1[_0x4c17c5(0xb0)]['name'],_0xd43061=emojis[_0x4c17c5(0xed)](_0x1f6759);if(_0xd43061){const _0x163930=await Role_1['default'][_0x4c17c5(0xc2)]({'$or':_0x21e5f2['roles'][_0x4c17c5(0xa8)](_0x43403a=>({'_id':_0x43403a})),'guild':_0x2180a1[_0x4c17c5(0xfc)][_0x4c17c5(0xb5)]['id'],'emoji':_0xd43061[_0x4c17c5(0xd7)]});if(!_0x163930)return;if(_0x21e5f2[_0x4c17c5(0xd4)]){for(const _0x54501b of _0x2180a1[_0x4c17c5(0xfc)][_0x4c17c5(0x108)]['cache']['filter'](_0x1e8366=>_0x1e8366[_0x4c17c5(0x10e)][_0x4c17c5(0xe3)][_0x4c17c5(0xf8)](_0x31c89a[_0x4c17c5(0xe4)]['id'])&&_0x1e8366['emoji'][_0x4c17c5(0xe2)]!==_0x2180a1[_0x4c17c5(0xb0)][_0x4c17c5(0xe2)])[_0x4c17c5(0xdc)]()){await _0x54501b['users'][_0x4c17c5(0x10a)](_0x31c89a)[_0x4c17c5(0xb6)](()=>{});}await _0x31c89a[_0x4c17c5(0xc6)][_0x4c17c5(0x10a)](_0x21e5f2['roles'],_0x4c17c5(0x113));}await _0x31c89a[_0x4c17c5(0xc6)]['add'](_0x163930[_0x4c17c5(0x106)],_0x4c17c5(0xbd));}},this[_0x172b59(0xb9)]=async(_0x345f7c,_0x50085d,_0x25248b)=>{const _0x12f5ee=_0x172b59;if(_0x50085d[_0x12f5ee(0xe4)][_0x12f5ee(0x116)])return;if(!_0x25248b[_0x12f5ee(0xab)]||!_0x25248b[_0x12f5ee(0xab)][_0x12f5ee(0x114)])return;if(!['🔒','🔓','🔐','👁️'][_0x12f5ee(0xe0)](_0x345f7c['emoji']['name']))return;if(_0x345f7c[_0x12f5ee(0xfc)][_0x12f5ee(0xdb)]['id']!==_0x50085d[_0x12f5ee(0xfe)][_0x12f5ee(0xe4)]['id'])return;if(!_0x345f7c[_0x12f5ee(0xfc)]['embeds'][_0x12f5ee(0xe1)]||!_0x345f7c['message'][_0x12f5ee(0x119)][0x0][_0x12f5ee(0xc7)]||!_0x345f7c[_0x12f5ee(0xfc)][_0x12f5ee(0x119)][0x0][_0x12f5ee(0xc7)]['startsWith'](_0x12f5ee(0xc9))||!_0x345f7c[_0x12f5ee(0xfc)][_0x12f5ee(0x102)][_0x12f5ee(0xc8)])return;if(!_0x25248b['voiceSessions'][_0x12f5ee(0x114)]['includes'](_0x345f7c['message'][_0x12f5ee(0x102)][_0x12f5ee(0xc8)]))return;if(_0x50085d['voice']&&_0x50085d['voice'][_0x12f5ee(0x102)]&&_0x50085d['voice'][_0x12f5ee(0x102)]['parentID']&&_0x25248b[_0x12f5ee(0xab)][_0x12f5ee(0x114)][_0x12f5ee(0xe0)](_0x345f7c[_0x12f5ee(0xfc)][_0x12f5ee(0x102)]['parentID'])&&_0x50085d['voice']['channel'][_0x12f5ee(0xe2)]['startsWith'](_0x50085d[_0x12f5ee(0x103)]+'\x27')){if(_0x345f7c['emoji'][_0x12f5ee(0xe2)]==='🔒')await _0x50085d[_0x12f5ee(0xe5)][_0x12f5ee(0x102)][_0x12f5ee(0xe9)](_0x345f7c[_0x12f5ee(0xfc)][_0x12f5ee(0xb5)]['id'],{'CONNECT':![]},_0x12f5ee(0xca)),await _0x345f7c[_0x12f5ee(0x10e)][_0x12f5ee(0x10a)](_0x50085d)['catch'](()=>{});else{if(_0x345f7c[_0x12f5ee(0xb0)][_0x12f5ee(0xe2)]==='🔓')await _0x50085d['voice'][_0x12f5ee(0x102)][_0x12f5ee(0xe9)](_0x345f7c[_0x12f5ee(0xfc)]['guild']['id'],{'CONNECT':!![]},_0x12f5ee(0x117)),await _0x345f7c['users'][_0x12f5ee(0x10a)](_0x50085d)[_0x12f5ee(0xb6)](()=>{});else{if(_0x345f7c[_0x12f5ee(0xb0)][_0x12f5ee(0xe2)]==='🔐')await _0x50085d[_0x12f5ee(0xe5)][_0x12f5ee(0x102)][_0x12f5ee(0xe9)](_0x345f7c['message'][_0x12f5ee(0xb5)]['id'],{'VIEW_CHANNEL':![]},_0x12f5ee(0xb7)),await _0x345f7c[_0x12f5ee(0x10e)][_0x12f5ee(0x10a)](_0x50085d)['catch'](()=>{});else _0x345f7c[_0x12f5ee(0xb0)][_0x12f5ee(0xe2)]==='👁️'&&(await _0x50085d['voice']['channel'][_0x12f5ee(0xe9)](_0x345f7c['message'][_0x12f5ee(0xb5)]['id'],{'VIEW_CHANNEL':!![]},'Unhiding\x20Voice\x20Session'),await _0x345f7c[_0x12f5ee(0x10e)][_0x12f5ee(0x10a)](_0x50085d)[_0x12f5ee(0xb6)](()=>{}));}}}},this[_0x172b59(0xdf)]=async(_0xbd9f1b,_0x21558b)=>{const _0x427ac5=_0x172b59;if(_0x21558b[_0x427ac5(0xe4)][_0x427ac5(0x116)])return;if(!['🔈','👻',_0x427ac5(0xea),'🔇','🔓','❌'][_0x427ac5(0xe0)](_0xbd9f1b[_0x427ac5(0xb0)][_0x427ac5(0xe2)]))return;if(!_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x119)][_0x427ac5(0xe1)]||!_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x119)][0x0][_0x427ac5(0xc7)]||!_0xbd9f1b[_0x427ac5(0xfc)]['embeds'][0x0][_0x427ac5(0xc7)][_0x427ac5(0x110)](_0x427ac5(0xb4))||!_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x102)][_0x427ac5(0xc8)])return;const _0x11184a=_0xbd9f1b['message']['channel'][_0x427ac5(0xad)][_0x427ac5(0xb1)][_0x427ac5(0x115)](_0x2f634b=>_0x2f634b[_0x427ac5(0xe2)]===_0x427ac5(0xec)),_0x3de818=_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x102)][_0x427ac5(0xad)][_0x427ac5(0xb1)]['find'](_0x2cc41a=>_0x2cc41a[_0x427ac5(0xe2)]==='Muted');if(_0xbd9f1b['emoji'][_0x427ac5(0xe2)]===_0x427ac5(0xea)&&_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x102)]['topic'][_0x427ac5(0xd9)]()===_0x21558b['id']){for(const _0x4703fa of _0x3de818[_0x427ac5(0xef)][_0x427ac5(0xdc)]()){await _0x4703fa[_0x427ac5(0xe5)]['setChannel'](_0x11184a);}await _0xbd9f1b[_0x427ac5(0x10e)][_0x427ac5(0x10a)](_0x21558b)[_0x427ac5(0xb6)](()=>{});}else{if(_0xbd9f1b[_0x427ac5(0xb0)]['name']==='🔇'&&_0xbd9f1b['message'][_0x427ac5(0x102)][_0x427ac5(0xee)]['trim']()===_0x21558b['id']){for(const _0xe8ebe1 of _0x11184a[_0x427ac5(0xef)][_0x427ac5(0xdc)]()){await _0xe8ebe1[_0x427ac5(0xe5)][_0x427ac5(0x10b)](_0x3de818);}await _0xbd9f1b[_0x427ac5(0x10e)][_0x427ac5(0x10a)](_0x21558b)[_0x427ac5(0xb6)](()=>{});}else{if(_0xbd9f1b['emoji'][_0x427ac5(0xe2)]==='🔓'&&_0xbd9f1b['message'][_0x427ac5(0x102)][_0x427ac5(0xee)][_0x427ac5(0xd9)]()===_0x21558b['id'])await _0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x102)]['updateOverwrite'](_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0xb5)]['id'],{'ADD_REACTIONS':!![]});else{if(_0xbd9f1b[_0x427ac5(0xb0)][_0x427ac5(0xe2)]==='❌'&&_0xbd9f1b[_0x427ac5(0xfc)][_0x427ac5(0x102)]['topic'][_0x427ac5(0xd9)]()===_0x21558b['id']){await _0x3de818[_0x427ac5(0xfb)](),await _0x11184a[_0x427ac5(0xfb)]();const _0x772fe=_0xbd9f1b['message']['channel'][_0x427ac5(0xad)];await _0xbd9f1b[_0x427ac5(0xfc)]['channel'][_0x427ac5(0xfb)](),await _0x772fe[_0x427ac5(0xfb)]();}else{if(_0xbd9f1b[_0x427ac5(0xb0)][_0x427ac5(0xe2)]==='🔈')await _0x11184a[_0x427ac5(0xe9)](_0x21558b,{'CONNECT':!![]});else _0xbd9f1b[_0x427ac5(0xb0)][_0x427ac5(0xe2)]==='👻'&&await _0x11184a['updateOverwrite'](_0x21558b,{'SPEAK':![]});}}}}},this[_0x172b59(0xa9)]=async(_0x260c0a,_0x2cc39e)=>{const _0x31a296=_0x172b59;_0x260c0a[_0x31a296(0xbc)]&&(_0x260c0a=await _0x260c0a[_0x31a296(0xba)]());_0x260c0a[_0x31a296(0xfc)]['partial']&&(_0x260c0a['message']=await _0x260c0a[_0x31a296(0xfc)]['fetch']());if(!_0x260c0a[_0x31a296(0xfc)][_0x31a296(0xb5)])return;const _0x569cab=_0x260c0a[_0x31a296(0xfc)][_0x31a296(0xb5)][_0x31a296(0xb2)](_0x2cc39e);this[_0x31a296(0xf2)](_0x260c0a,_0x569cab)['catch'](()=>{}),this[_0x31a296(0xdf)](_0x260c0a,_0x569cab)[_0x31a296(0xb6)](tesseract_1['Logger'][_0x31a296(0xf6)]);const _0x5e5a0b=await _0x260c0a[_0x31a296(0xfc)][_0x31a296(0xb5)][_0x31a296(0xde)]();this[_0x31a296(0xb9)](_0x260c0a,_0x569cab,_0x5e5a0b)[_0x31a296(0xb6)](tesseract_1[_0x31a296(0x11b)][_0x31a296(0xf6)]),_0x5e5a0b[_0x31a296(0xd8)]&&_0x260c0a[_0x31a296(0xfc)][_0x31a296(0x102)]['id']===_0x5e5a0b[_0x31a296(0xd8)]&&this['handleSuggestions'](_0x260c0a,_0x569cab)['catch'](()=>{}),_0x5e5a0b[_0x31a296(0xd0)]&&_0x260c0a[_0x31a296(0xfc)][_0x31a296(0xb5)][_0x31a296(0xc1)]['cache'][_0x31a296(0xf8)](_0x5e5a0b['starboardChannelId'])&&this[_0x31a296(0xb3)](_0x260c0a,_0x569cab,_0x260c0a[_0x31a296(0xfc)][_0x31a296(0xb5)][_0x31a296(0xc1)][_0x31a296(0xe3)][_0x31a296(0xf9)](_0x5e5a0b[_0x31a296(0xd0)]))[_0x31a296(0xb6)](()=>{}),_0x5e5a0b[_0x31a296(0xfd)]&&_0x260c0a['message']['guild']['channels'][_0x31a296(0xe3)][_0x31a296(0xf8)](_0x5e5a0b[_0x31a296(0x11c)])&&this['handleReactionAnnouncement'](_0x260c0a,_0x569cab,_0x260c0a[_0x31a296(0xfc)][_0x31a296(0xb5)][_0x31a296(0xc1)][_0x31a296(0xe3)][_0x31a296(0xf9)](_0x5e5a0b[_0x31a296(0x11c)]))[_0x31a296(0xb6)](()=>{}),_0x5e5a0b[_0x31a296(0x111)]&&this['handleReactionPinning'](_0x260c0a,_0x569cab)[_0x31a296(0xb6)](()=>{});};}}; \ No newline at end of file diff --git a/listeners/messageReactionRemove.js b/listeners/messageReactionRemove.js index 22b0f9063..a6e947754 100644 --- a/listeners/messageReactionRemove.js +++ b/listeners/messageReactionRemove.js @@ -1 +1 @@ -const a194_0x1f16=['constructor','user','getDocument','fetch','Pin\x20reaction\x20removed\x20by\x20','@bastion/tesseract','MANAGE_MESSAGES','../models/Role','partial','parseEmoji','reactionPinning','catch','handleReactionPinning','channel','exec','member','../utils/emojis','apply','includes','roles','guild','../models/ReactionRoleGroup','animated','findOne','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','unpin','name','tag','handleReactionRoles','messageReactionRemove','default','permissionsFor','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','emoji','message','test','remove'];(function(_0x544a69,_0x5b206f){const _0x1f16de=function(_0x47b297){while(--_0x47b297){_0x544a69['push'](_0x544a69['shift']());}},_0x4eca94=function(){const _0x962b1a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3436af,_0x5820cf,_0x47c96b,_0x594ca4){_0x594ca4=_0x594ca4||{};let _0x162a69=_0x5820cf+'='+_0x47c96b,_0x23edb9=0x0;for(let _0x4f235b=0x0,_0x11e736=_0x3436af['length'];_0x4f235b<_0x11e736;_0x4f235b++){const _0x3c9abd=_0x3436af[_0x4f235b];_0x162a69+=';\x20'+_0x3c9abd;const _0x4efbd4=_0x3436af[_0x3c9abd];_0x3436af['push'](_0x4efbd4),_0x11e736=_0x3436af['length'],_0x4efbd4!==!![]&&(_0x162a69+='='+_0x4efbd4);}_0x594ca4['cookie']=_0x162a69;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d176b,_0x1fb5ff){_0x5d176b=_0x5d176b||function(_0x54dcd0){return _0x54dcd0;};const _0x16720e=_0x5d176b(new RegExp('(?:^|;\x20)'+_0x1fb5ff['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x188298=function(_0x4b802c,_0x5b83cf){_0x4b802c(++_0x5b83cf);};return _0x188298(_0x1f16de,_0x5b206f),_0x16720e?decodeURIComponent(_0x16720e[0x1]):undefined;}},_0x4d6348=function(){const _0x29ffff=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x29ffff['test'](_0x962b1a['removeCookie']['toString']());};_0x962b1a['updateCookie']=_0x4d6348;let _0x4ab865='';const _0x5b25b6=_0x962b1a['updateCookie']();if(!_0x5b25b6)_0x962b1a['setCookie'](['*'],'counter',0x1);else _0x5b25b6?_0x4ab865=_0x962b1a['getCookie'](null,'counter'):_0x962b1a['removeCookie']();};_0x4eca94();}(a194_0x1f16,0x1d6));const a194_0x4eca=function(_0x544a69,_0x5b206f){_0x544a69=_0x544a69-0x1ca;let _0x1f16de=a194_0x1f16[_0x544a69];return _0x1f16de;};const _0x16974a=a194_0x4eca,a194_0x4d6348=function(){let _0x5b25b6=!![];return function(_0x3436af,_0x5820cf){const _0x47c96b=_0x5b25b6?function(){const _0x263d48=a194_0x4eca;if(_0x5820cf){const _0x594ca4=_0x5820cf[_0x263d48(0x1d9)](_0x3436af,arguments);return _0x5820cf=null,_0x594ca4;}}:function(){};return _0x5b25b6=![],_0x47c96b;};}(),a194_0x962b1a=a194_0x4d6348(this,function(){const _0x162a69=function(){const _0x1b51fc=a194_0x4eca,_0x23edb9=_0x162a69[_0x1b51fc(0x1ef)](_0x1b51fc(0x1e9))()[_0x1b51fc(0x1ef)](_0x1b51fc(0x1e0));return!_0x23edb9[_0x1b51fc(0x1ed)](a194_0x962b1a);};return _0x162a69();});a194_0x962b1a();'use strict';const tesseract_1=require(_0x16974a(0x1cd)),ReactionRoleGroup_1=require(_0x16974a(0x1dd)),Role_1=require(_0x16974a(0x1cf)),emojis=require(_0x16974a(0x1d8));module[_0x16974a(0x1e8)]=class MessageReactionRemoveListener extends tesseract_1['Listener']{constructor(){const _0x1af968=_0x16974a;super(_0x1af968(0x1e5),{'mode':tesseract_1[_0x1af968(0x1ea)]['LISTENER_MODE']['ON']}),this[_0x1af968(0x1d4)]=async(_0x4f235b,_0x11e736)=>{const _0xd616b9=_0x1af968;if(!['📌','📍'][_0xd616b9(0x1da)](_0x4f235b[_0xd616b9(0x1eb)][_0xd616b9(0x1e2)]))return;if(!_0x4f235b[_0xd616b9(0x1ec)][_0xd616b9(0x1d5)][_0xd616b9(0x1e7)](_0x11e736)['has'](_0xd616b9(0x1ce)))return;await _0x4f235b[_0xd616b9(0x1ec)][_0xd616b9(0x1e1)]({'reason':_0xd616b9(0x1cc)+_0x11e736['user']?_0x11e736[_0xd616b9(0x1f0)][_0xd616b9(0x1e3)]:_0x11e736['id']});},this[_0x1af968(0x1e4)]=async(_0x3c9abd,_0x4efbd4)=>{const _0x3fefd0=_0x1af968,_0x5d176b=await ReactionRoleGroup_1[_0x3fefd0(0x1e6)]['findById'](_0x3c9abd[_0x3fefd0(0x1ec)]['id']);if(!_0x5d176b)return;const _0x1fb5ff=_0x3c9abd['emoji']['id']?'<'+(_0x3c9abd['emoji'][_0x3fefd0(0x1de)]?'a':'')+':'+_0x3c9abd['emoji']['name']+':'+_0x3c9abd['emoji']['id']+'>':_0x3c9abd[_0x3fefd0(0x1eb)][_0x3fefd0(0x1e2)],_0x16720e=emojis[_0x3fefd0(0x1d1)](_0x1fb5ff);if(_0x16720e){const _0x188298=await Role_1['default'][_0x3fefd0(0x1df)]({'$or':_0x5d176b[_0x3fefd0(0x1db)]['map'](_0x54dcd0=>({'_id':_0x54dcd0})),'guild':_0x3c9abd[_0x3fefd0(0x1ec)][_0x3fefd0(0x1dc)]['id'],'emoji':_0x16720e['value']});if(!_0x188298)return;await _0x4efbd4[_0x3fefd0(0x1db)][_0x3fefd0(0x1ee)](_0x188298['_id'],'Removed\x20via\x20Reaction\x20Roles');}},this[_0x1af968(0x1d6)]=async(_0x4b802c,_0x5b83cf)=>{const _0x2590b7=_0x1af968;_0x4b802c[_0x2590b7(0x1d0)]&&(_0x4b802c=await _0x4b802c[_0x2590b7(0x1cb)]());_0x4b802c[_0x2590b7(0x1ec)][_0x2590b7(0x1d0)]&&(_0x4b802c[_0x2590b7(0x1ec)]=await _0x4b802c[_0x2590b7(0x1ec)][_0x2590b7(0x1cb)]());if(!_0x4b802c[_0x2590b7(0x1ec)][_0x2590b7(0x1dc)])return;const _0x29ffff=_0x4b802c[_0x2590b7(0x1ec)][_0x2590b7(0x1dc)][_0x2590b7(0x1d7)](_0x5b83cf);this[_0x2590b7(0x1e4)](_0x4b802c,_0x29ffff)[_0x2590b7(0x1d3)](()=>{});const _0x44cabb=await _0x4b802c[_0x2590b7(0x1ec)]['guild'][_0x2590b7(0x1ca)]();_0x44cabb[_0x2590b7(0x1d2)]&&this['handleReactionPinning'](_0x4b802c,_0x29ffff)['catch'](()=>{});};}}; \ No newline at end of file +const a195_0x16a4=['constructor','animated','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','findOne','LISTENER_MODE','test','@bastion/tesseract','channel','roles','name','_id','fetch','message','includes','permissionsFor','exports','../models/ReactionRoleGroup','getDocument','handleReactionRoles','reactionPinning','Removed\x20via\x20Reaction\x20Roles','apply','value','handleReactionPinning','remove','return\x20/\x22\x20+\x20this\x20+\x20\x22/','user','member','unpin','messageReactionRemove','../utils/emojis','catch','emoji','guild','Pin\x20reaction\x20removed\x20by\x20','Listener'];(function(_0xd94619,_0x2e7ffd){const _0x16a418=function(_0x5aa209){while(--_0x5aa209){_0xd94619['push'](_0xd94619['shift']());}},_0x14222a=function(){const _0x4e1be0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2249a3,_0x253575,_0x2a81f7,_0x259618){_0x259618=_0x259618||{};let _0x159784=_0x253575+'='+_0x2a81f7,_0x3a7a7a=0x0;for(let _0xe08dc1=0x0,_0x6e3c6f=_0x2249a3['length'];_0xe08dc1<_0x6e3c6f;_0xe08dc1++){const _0x3bed36=_0x2249a3[_0xe08dc1];_0x159784+=';\x20'+_0x3bed36;const _0x38ea56=_0x2249a3[_0x3bed36];_0x2249a3['push'](_0x38ea56),_0x6e3c6f=_0x2249a3['length'],_0x38ea56!==!![]&&(_0x159784+='='+_0x38ea56);}_0x259618['cookie']=_0x159784;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3010a0,_0x1cdaef){_0x3010a0=_0x3010a0||function(_0x1f3bce){return _0x1f3bce;};const _0x3c8a15=_0x3010a0(new RegExp('(?:^|;\x20)'+_0x1cdaef['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5073c3=function(_0x1a16e1,_0x11a974){_0x1a16e1(++_0x11a974);};return _0x5073c3(_0x16a418,_0x2e7ffd),_0x3c8a15?decodeURIComponent(_0x3c8a15[0x1]):undefined;}},_0x474339=function(){const _0x48ddc3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x48ddc3['test'](_0x4e1be0['removeCookie']['toString']());};_0x4e1be0['updateCookie']=_0x474339;let _0x3571be='';const _0x456ab3=_0x4e1be0['updateCookie']();if(!_0x456ab3)_0x4e1be0['setCookie'](['*'],'counter',0x1);else _0x456ab3?_0x3571be=_0x4e1be0['getCookie'](null,'counter'):_0x4e1be0['removeCookie']();};_0x14222a();}(a195_0x16a4,0x7b));const a195_0x1422=function(_0xd94619,_0x2e7ffd){_0xd94619=_0xd94619-0x12d;let _0x16a418=a195_0x16a4[_0xd94619];return _0x16a418;};const a195_0x5efd98=a195_0x1422,a195_0x474339=function(){let _0x456ab3=!![];return function(_0x2249a3,_0x253575){const _0x2a81f7=_0x456ab3?function(){const _0x4c80e7=a195_0x1422;if(_0x253575){const _0x259618=_0x253575[_0x4c80e7(0x133)](_0x2249a3,arguments);return _0x253575=null,_0x259618;}}:function(){};return _0x456ab3=![],_0x2a81f7;};}(),a195_0x4e1be0=a195_0x474339(this,function(){const _0x159784=function(){const _0x31ccea=a195_0x1422,_0x3a7a7a=_0x159784['constructor'](_0x31ccea(0x137))()[_0x31ccea(0x142)](_0x31ccea(0x144));return!_0x3a7a7a[_0x31ccea(0x147)](a195_0x4e1be0);};return _0x159784();});a195_0x4e1be0();'use strict';const tesseract_1=require(a195_0x5efd98(0x148)),ReactionRoleGroup_1=require(a195_0x5efd98(0x12e)),Role_1=require('../models/Role'),emojis=require(a195_0x5efd98(0x13c));module[a195_0x5efd98(0x12d)]=class MessageReactionRemoveListener extends tesseract_1[a195_0x5efd98(0x141)]{constructor(){const _0x476a59=a195_0x5efd98;super(_0x476a59(0x13b),{'mode':tesseract_1['Constants'][_0x476a59(0x146)]['ON']}),this[_0x476a59(0x135)]=async(_0xe08dc1,_0x6e3c6f)=>{const _0x115dd7=_0x476a59;if(!['📌','📍'][_0x115dd7(0x14f)](_0xe08dc1[_0x115dd7(0x13e)][_0x115dd7(0x14b)]))return;if(!_0xe08dc1[_0x115dd7(0x14e)][_0x115dd7(0x149)][_0x115dd7(0x150)](_0x6e3c6f)['has']('MANAGE_MESSAGES'))return;await _0xe08dc1['message'][_0x115dd7(0x13a)]({'reason':_0x115dd7(0x140)+_0x6e3c6f[_0x115dd7(0x138)]?_0x6e3c6f[_0x115dd7(0x138)]['tag']:_0x6e3c6f['id']});},this['handleReactionRoles']=async(_0x3bed36,_0x38ea56)=>{const _0x222164=_0x476a59,_0x3010a0=await ReactionRoleGroup_1['default']['findById'](_0x3bed36[_0x222164(0x14e)]['id']);if(!_0x3010a0)return;const _0x1cdaef=_0x3bed36['emoji']['id']?'<'+(_0x3bed36['emoji'][_0x222164(0x143)]?'a':'')+':'+_0x3bed36[_0x222164(0x13e)]['name']+':'+_0x3bed36['emoji']['id']+'>':_0x3bed36[_0x222164(0x13e)][_0x222164(0x14b)],_0x3c8a15=emojis['parseEmoji'](_0x1cdaef);if(_0x3c8a15){const _0x5073c3=await Role_1['default'][_0x222164(0x145)]({'$or':_0x3010a0[_0x222164(0x14a)]['map'](_0x1f3bce=>({'_id':_0x1f3bce})),'guild':_0x3bed36[_0x222164(0x14e)][_0x222164(0x13f)]['id'],'emoji':_0x3c8a15[_0x222164(0x134)]});if(!_0x5073c3)return;await _0x38ea56[_0x222164(0x14a)][_0x222164(0x136)](_0x5073c3[_0x222164(0x14c)],_0x222164(0x132));}},this['exec']=async(_0x1a16e1,_0x11a974)=>{const _0x39b26a=_0x476a59;_0x1a16e1['partial']&&(_0x1a16e1=await _0x1a16e1[_0x39b26a(0x14d)]());_0x1a16e1['message']['partial']&&(_0x1a16e1[_0x39b26a(0x14e)]=await _0x1a16e1['message'][_0x39b26a(0x14d)]());if(!_0x1a16e1[_0x39b26a(0x14e)][_0x39b26a(0x13f)])return;const _0x48ddc3=_0x1a16e1[_0x39b26a(0x14e)][_0x39b26a(0x13f)][_0x39b26a(0x139)](_0x11a974);this[_0x39b26a(0x130)](_0x1a16e1,_0x48ddc3)['catch'](()=>{});const _0xddf7b8=await _0x1a16e1['message'][_0x39b26a(0x13f)][_0x39b26a(0x12f)]();_0xddf7b8[_0x39b26a(0x131)]&&this[_0x39b26a(0x135)](_0x1a16e1,_0x48ddc3)[_0x39b26a(0x13d)](()=>{});};}}; \ No newline at end of file diff --git a/listeners/messageUpdate.js b/listeners/messageUpdate.js index 8fea2187e..fbec4f02a 100644 --- a/listeners/messageUpdate.js +++ b/listeners/messageUpdate.js @@ -1 +1 @@ -const a195_0x5bb2=['url','channel','exec','tag','Message\x20ID','constructor','apply','author','type','createLog','fetch','test','messageUpdate','@bastion/tesseract','partial','toUTCString','Listener','Author\x20ID','DMChannel','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','DEFAULT','Constants'];(function(_0x5982bc,_0x5e5961){const _0x5bb24d=function(_0x572daa){while(--_0x572daa){_0x5982bc['push'](_0x5982bc['shift']());}},_0x21097d=function(){const _0x4cb7ac={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5c5bf2,_0x28c870,_0x5c76f2,_0x20339d){_0x20339d=_0x20339d||{};let _0x3a548e=_0x28c870+'='+_0x5c76f2,_0x2727a7=0x0;for(let _0x518fa2=0x0,_0x3aa032=_0x5c5bf2['length'];_0x518fa2<_0x3aa032;_0x518fa2++){const _0x273bb8=_0x5c5bf2[_0x518fa2];_0x3a548e+=';\x20'+_0x273bb8;const _0x17da3a=_0x5c5bf2[_0x273bb8];_0x5c5bf2['push'](_0x17da3a),_0x3aa032=_0x5c5bf2['length'],_0x17da3a!==!![]&&(_0x3a548e+='='+_0x17da3a);}_0x20339d['cookie']=_0x3a548e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b7dc5,_0x4e4c98){_0x3b7dc5=_0x3b7dc5||function(_0x56f6cb){return _0x56f6cb;};const _0x5d6845=_0x3b7dc5(new RegExp('(?:^|;\x20)'+_0x4e4c98['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e2586=function(_0x3ac270,_0x18f524){_0x3ac270(++_0x18f524);};return _0x2e2586(_0x5bb24d,_0x5e5961),_0x5d6845?decodeURIComponent(_0x5d6845[0x1]):undefined;}},_0x3c22c3=function(){const _0x1b74c1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1b74c1['test'](_0x4cb7ac['removeCookie']['toString']());};_0x4cb7ac['updateCookie']=_0x3c22c3;let _0x9abec0='';const _0x2e9518=_0x4cb7ac['updateCookie']();if(!_0x2e9518)_0x4cb7ac['setCookie'](['*'],'counter',0x1);else _0x2e9518?_0x9abec0=_0x4cb7ac['getCookie'](null,'counter'):_0x4cb7ac['removeCookie']();};_0x21097d();}(a195_0x5bb2,0x17c));const a195_0x2109=function(_0x5982bc,_0x5e5961){_0x5982bc=_0x5982bc-0x1f3;let _0x5bb24d=a195_0x5bb2[_0x5982bc];return _0x5bb24d;};const _0x54fb74=a195_0x2109,a195_0x3c22c3=function(){let _0x2e9518=!![];return function(_0x5c5bf2,_0x28c870){const _0x5c76f2=_0x2e9518?function(){const _0x253592=a195_0x2109;if(_0x28c870){const _0x20339d=_0x28c870[_0x253592(0x1f3)](_0x5c5bf2,arguments);return _0x28c870=null,_0x20339d;}}:function(){};return _0x2e9518=![],_0x5c76f2;};}(),a195_0x4cb7ac=a195_0x3c22c3(this,function(){const _0x3a548e=function(){const _0xcef6ea=a195_0x2109,_0x2727a7=_0x3a548e['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xcef6ea(0x208)](_0xcef6ea(0x200));return!_0x2727a7[_0xcef6ea(0x1f8)](a195_0x4cb7ac);};return _0x3a548e();});a195_0x4cb7ac();'use strict';const tesseract_1=require(_0x54fb74(0x1fa)),discord_js_1=require('discord.js');module['exports']=class MessageUpdateListener extends tesseract_1[_0x54fb74(0x1fd)]{constructor(){const _0x9d91aa=_0x54fb74;super(_0x9d91aa(0x1f9),{'mode':tesseract_1[_0x9d91aa(0x202)]['LISTENER_MODE']['ON']}),this[_0x9d91aa(0x205)]=async(_0x518fa2,_0x3aa032)=>{const _0x570b8c=_0x9d91aa;_0x518fa2[_0x570b8c(0x1fb)]&&(_0x518fa2=await _0x518fa2[_0x570b8c(0x1f7)]());_0x3aa032['partial']&&(_0x3aa032=await _0x3aa032['fetch']());if(_0x518fa2[_0x570b8c(0x204)]instanceof discord_js_1[_0x570b8c(0x1ff)]||_0x3aa032['channel']instanceof discord_js_1['DMChannel'])return;if(_0x518fa2['content']===_0x3aa032['content'])return;const _0x273bb8=_0x518fa2['guild'];if(_0x518fa2[_0x570b8c(0x1f5)]!==_0x570b8c(0x201))return;_0x273bb8[_0x570b8c(0x1f6)]({'event':_0x570b8c(0x1f9),'fields':[{'name':_0x570b8c(0x207),'value':'['+_0x518fa2['id']+']('+_0x518fa2[_0x570b8c(0x203)]+')','inline':!![]},{'name':'Channel','value':_0x518fa2['channel']['name'],'inline':!![]},{'name':'Channel\x20ID','value':_0x518fa2[_0x570b8c(0x204)]['id'],'inline':!![]},{'name':'Author','value':_0x518fa2[_0x570b8c(0x1f4)][_0x570b8c(0x206)],'inline':!![]},{'name':_0x570b8c(0x1fe),'value':_0x518fa2['author']['id'],'inline':!![]},{'name':'Sent','value':_0x518fa2['createdAt'][_0x570b8c(0x1fc)](),'inline':!![]}]});};}}; \ No newline at end of file +const a196_0x2bfd=['Sent','messageUpdate','Author','tag','@bastion/tesseract','LISTENER_MODE','apply','author','test','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','discord.js','type','DMChannel','Author\x20ID','name','DEFAULT','constructor','toUTCString','Message\x20ID','guild','content','Channel\x20ID','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Channel','partial','fetch','channel','createLog','Listener','exec'];(function(_0x4315e2,_0x137bb1){const _0x2bfdba=function(_0x3d811){while(--_0x3d811){_0x4315e2['push'](_0x4315e2['shift']());}},_0x4395a6=function(){const _0x4c51b8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x58ded3,_0xa805c3,_0x82f6c6,_0x84dbc6){_0x84dbc6=_0x84dbc6||{};let _0x820a67=_0xa805c3+'='+_0x82f6c6,_0x198c4c=0x0;for(let _0x36e998=0x0,_0x42e0e9=_0x58ded3['length'];_0x36e998<_0x42e0e9;_0x36e998++){const _0x20abfa=_0x58ded3[_0x36e998];_0x820a67+=';\x20'+_0x20abfa;const _0x116740=_0x58ded3[_0x20abfa];_0x58ded3['push'](_0x116740),_0x42e0e9=_0x58ded3['length'],_0x116740!==!![]&&(_0x820a67+='='+_0x116740);}_0x84dbc6['cookie']=_0x820a67;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c6a0d,_0x3c5fcd){_0x5c6a0d=_0x5c6a0d||function(_0x4c4b04){return _0x4c4b04;};const _0x53a53a=_0x5c6a0d(new RegExp('(?:^|;\x20)'+_0x3c5fcd['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d1eee=function(_0x5eb617,_0x2a93c5){_0x5eb617(++_0x2a93c5);};return _0x4d1eee(_0x2bfdba,_0x137bb1),_0x53a53a?decodeURIComponent(_0x53a53a[0x1]):undefined;}},_0x5817b2=function(){const _0x3e6ba6=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3e6ba6['test'](_0x4c51b8['removeCookie']['toString']());};_0x4c51b8['updateCookie']=_0x5817b2;let _0x332d05='';const _0x879405=_0x4c51b8['updateCookie']();if(!_0x879405)_0x4c51b8['setCookie'](['*'],'counter',0x1);else _0x879405?_0x332d05=_0x4c51b8['getCookie'](null,'counter'):_0x4c51b8['removeCookie']();};_0x4395a6();}(a196_0x2bfd,0xe7));const a196_0x4395=function(_0x4315e2,_0x137bb1){_0x4315e2=_0x4315e2-0x81;let _0x2bfdba=a196_0x2bfd[_0x4315e2];return _0x2bfdba;};const a196_0x4d86a2=a196_0x4395,a196_0x5817b2=function(){let _0x879405=!![];return function(_0x58ded3,_0xa805c3){const _0x82f6c6=_0x879405?function(){const _0x5833dd=a196_0x4395;if(_0xa805c3){const _0x84dbc6=_0xa805c3[_0x5833dd(0x98)](_0x58ded3,arguments);return _0xa805c3=null,_0x84dbc6;}}:function(){};return _0x879405=![],_0x82f6c6;};}(),a196_0x4c51b8=a196_0x5817b2(this,function(){const _0x820a67=function(){const _0x4b0a96=a196_0x4395,_0x198c4c=_0x820a67[_0x4b0a96(0x84)](_0x4b0a96(0x8a))()['constructor'](_0x4b0a96(0x9c));return!_0x198c4c[_0x4b0a96(0x9a)](a196_0x4c51b8);};return _0x820a67();});a196_0x4c51b8();'use strict';const tesseract_1=require(a196_0x4d86a2(0x96)),discord_js_1=require(a196_0x4d86a2(0x9d));module[a196_0x4d86a2(0x9b)]=class MessageUpdateListener extends tesseract_1[a196_0x4d86a2(0x90)]{constructor(){const _0x17f56a=a196_0x4d86a2;super('messageUpdate',{'mode':tesseract_1['Constants'][_0x17f56a(0x97)]['ON']}),this[_0x17f56a(0x91)]=async(_0x36e998,_0x42e0e9)=>{const _0x281bec=_0x17f56a;_0x36e998['partial']&&(_0x36e998=await _0x36e998[_0x281bec(0x8d)]());_0x42e0e9[_0x281bec(0x8c)]&&(_0x42e0e9=await _0x42e0e9[_0x281bec(0x8d)]());if(_0x36e998['channel']instanceof discord_js_1['DMChannel']||_0x42e0e9[_0x281bec(0x8e)]instanceof discord_js_1[_0x281bec(0x9f)])return;if(_0x36e998[_0x281bec(0x88)]===_0x42e0e9[_0x281bec(0x88)])return;const _0x20abfa=_0x36e998[_0x281bec(0x87)];if(_0x36e998[_0x281bec(0x9e)]!==_0x281bec(0x83))return;_0x20abfa[_0x281bec(0x8f)]({'event':_0x281bec(0x93),'fields':[{'name':_0x281bec(0x86),'value':'['+_0x36e998['id']+']('+_0x36e998['url']+')','inline':!![]},{'name':_0x281bec(0x8b),'value':_0x36e998[_0x281bec(0x8e)][_0x281bec(0x82)],'inline':!![]},{'name':_0x281bec(0x89),'value':_0x36e998['channel']['id'],'inline':!![]},{'name':_0x281bec(0x94),'value':_0x36e998[_0x281bec(0x99)][_0x281bec(0x95)],'inline':!![]},{'name':_0x281bec(0x81),'value':_0x36e998[_0x281bec(0x99)]['id'],'inline':!![]},{'name':_0x281bec(0x92),'value':_0x36e998['createdAt'][_0x281bec(0x85)](),'inline':!![]}]});};}}; \ No newline at end of file diff --git a/listeners/presenceUpdate.js b/listeners/presenceUpdate.js index 5b8e34f3b..f9bda52d8 100644 --- a/listeners/presenceUpdate.js +++ b/listeners/presenceUpdate.js @@ -1 +1 @@ -const a196_0x2550=['Listener','presenceUpdate','streamerRoleId','constructor','remove','test','every','../models/Guild','roles','default','member','type','partial','@bastion/tesseract','some','exec','activities','catch','LISTENER_MODE','guild','fetch','return\x20/\x22\x20+\x20this\x20+\x20\x22/','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','cache','STREAMING'];(function(_0x16eaab,_0x1d7e93){const _0x2550ff=function(_0x44a27d){while(--_0x44a27d){_0x16eaab['push'](_0x16eaab['shift']());}},_0x25510d=function(){const _0x4fd92d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x39e80d,_0x5d03aa,_0x3680f6,_0x210333){_0x210333=_0x210333||{};let _0x38cd9d=_0x5d03aa+'='+_0x3680f6,_0x151595=0x0;for(let _0x56b9ae=0x0,_0x41d160=_0x39e80d['length'];_0x56b9ae<_0x41d160;_0x56b9ae++){const _0x652d90=_0x39e80d[_0x56b9ae];_0x38cd9d+=';\x20'+_0x652d90;const _0x3d97cb=_0x39e80d[_0x652d90];_0x39e80d['push'](_0x3d97cb),_0x41d160=_0x39e80d['length'],_0x3d97cb!==!![]&&(_0x38cd9d+='='+_0x3d97cb);}_0x210333['cookie']=_0x38cd9d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x139c5c,_0x42e3ca){_0x139c5c=_0x139c5c||function(_0x595f5d){return _0x595f5d;};const _0x1ec39d=_0x139c5c(new RegExp('(?:^|;\x20)'+_0x42e3ca['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x77f03a=function(_0x12fea0,_0x20da05){_0x12fea0(++_0x20da05);};return _0x77f03a(_0x2550ff,_0x1d7e93),_0x1ec39d?decodeURIComponent(_0x1ec39d[0x1]):undefined;}},_0x2804ab=function(){const _0x452804=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x452804['test'](_0x4fd92d['removeCookie']['toString']());};_0x4fd92d['updateCookie']=_0x2804ab;let _0x13fa23='';const _0x94ac6c=_0x4fd92d['updateCookie']();if(!_0x94ac6c)_0x4fd92d['setCookie'](['*'],'counter',0x1);else _0x94ac6c?_0x13fa23=_0x4fd92d['getCookie'](null,'counter'):_0x4fd92d['removeCookie']();};_0x25510d();}(a196_0x2550,0x1a1));const a196_0x2551=function(_0x16eaab,_0x1d7e93){_0x16eaab=_0x16eaab-0x107;let _0x2550ff=a196_0x2550[_0x16eaab];return _0x2550ff;};const _0x1fa330=a196_0x2551,a196_0x2804ab=function(){let _0x94ac6c=!![];return function(_0x39e80d,_0x5d03aa){const _0x3680f6=_0x94ac6c?function(){if(_0x5d03aa){const _0x210333=_0x5d03aa['apply'](_0x39e80d,arguments);return _0x5d03aa=null,_0x210333;}}:function(){};return _0x94ac6c=![],_0x3680f6;};}(),a196_0x4fd92d=a196_0x2804ab(this,function(){const _0x38cd9d=function(){const _0x42f5ac=a196_0x2551,_0x151595=_0x38cd9d[_0x42f5ac(0x109)](_0x42f5ac(0x11b))()['constructor'](_0x42f5ac(0x11d));return!_0x151595[_0x42f5ac(0x10b)](a196_0x4fd92d);};return _0x38cd9d();});a196_0x4fd92d();'use strict';const tesseract_1=require(_0x1fa330(0x113)),Guild_1=require(_0x1fa330(0x10d));module[_0x1fa330(0x11c)]=class PresenceListener extends tesseract_1[_0x1fa330(0x120)]{constructor(){const _0x684f81=_0x1fa330;super(_0x684f81(0x107),{'mode':tesseract_1['Constants'][_0x684f81(0x118)]['ON']}),this[_0x684f81(0x115)]=async(_0x56b9ae,_0x41d160)=>{const _0x3632a5=_0x684f81;if(!_0x41d160)return;if(!_0x41d160['guild'])return;let _0x652d90;if((!_0x56b9ae||_0x56b9ae[_0x3632a5(0x116)]['every'](_0x139c5c=>_0x139c5c[_0x3632a5(0x111)]!==_0x3632a5(0x11f)))&&_0x41d160[_0x3632a5(0x116)][_0x3632a5(0x114)](_0x42e3ca=>_0x42e3ca[_0x3632a5(0x111)]==='STREAMING'))_0x652d90=!![];else{if(_0x56b9ae&&_0x56b9ae[_0x3632a5(0x116)][_0x3632a5(0x114)](_0x1ec39d=>_0x1ec39d[_0x3632a5(0x111)]===_0x3632a5(0x11f))&&_0x41d160['activities'][_0x3632a5(0x10c)](_0x77f03a=>_0x77f03a[_0x3632a5(0x111)]!==_0x3632a5(0x11f)))_0x652d90=![];else return;}_0x41d160['member'][_0x3632a5(0x112)]&&await _0x41d160['member'][_0x3632a5(0x11a)]();if(_0x41d160[_0x3632a5(0x110)]['roles'][_0x3632a5(0x11e)]['size']<=0x2)return;const _0x3d97cb=await Guild_1[_0x3632a5(0x10f)]['findById'](_0x41d160[_0x3632a5(0x119)]['id']);if(!_0x3d97cb[_0x3632a5(0x108)])return;if(!_0x41d160[_0x3632a5(0x119)][_0x3632a5(0x10e)]['cache']['has'](_0x3d97cb[_0x3632a5(0x108)]))return;_0x652d90?_0x41d160['member'][_0x3632a5(0x10e)]['add'](_0x3d97cb[_0x3632a5(0x108)])[_0x3632a5(0x117)](()=>{}):_0x41d160['member']['roles'][_0x3632a5(0x10a)](_0x3d97cb[_0x3632a5(0x108)])[_0x3632a5(0x117)](()=>{});};}}; \ No newline at end of file +const a197_0x21b4=['cache','some','../models/Guild','catch','Listener','every','STREAMING','roles','streamerRoleId','size','type','exports','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','partial','default','constructor','findById','remove','fetch','test','exec','guild','apply','Constants','member','activities','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract'];(function(_0x3481e8,_0x445e1a){const _0x21b4fa=function(_0x229196){while(--_0x229196){_0x3481e8['push'](_0x3481e8['shift']());}},_0x4b5a5d=function(){const _0x3ebba6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x337736,_0x139fbe,_0x27697f,_0x178105){_0x178105=_0x178105||{};let _0x4f05dd=_0x139fbe+'='+_0x27697f,_0x46855d=0x0;for(let _0x4a465e=0x0,_0xa5902a=_0x337736['length'];_0x4a465e<_0xa5902a;_0x4a465e++){const _0x1860b7=_0x337736[_0x4a465e];_0x4f05dd+=';\x20'+_0x1860b7;const _0x5967fc=_0x337736[_0x1860b7];_0x337736['push'](_0x5967fc),_0xa5902a=_0x337736['length'],_0x5967fc!==!![]&&(_0x4f05dd+='='+_0x5967fc);}_0x178105['cookie']=_0x4f05dd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d614c,_0x55b825){_0x2d614c=_0x2d614c||function(_0x366d83){return _0x366d83;};const _0x1684ac=_0x2d614c(new RegExp('(?:^|;\x20)'+_0x55b825['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb58124=function(_0x12d9d0,_0x38da79){_0x12d9d0(++_0x38da79);};return _0xb58124(_0x21b4fa,_0x445e1a),_0x1684ac?decodeURIComponent(_0x1684ac[0x1]):undefined;}},_0x3b7534=function(){const _0x313038=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x313038['test'](_0x3ebba6['removeCookie']['toString']());};_0x3ebba6['updateCookie']=_0x3b7534;let _0xb840da='';const _0x394c94=_0x3ebba6['updateCookie']();if(!_0x394c94)_0x3ebba6['setCookie'](['*'],'counter',0x1);else _0x394c94?_0xb840da=_0x3ebba6['getCookie'](null,'counter'):_0x3ebba6['removeCookie']();};_0x4b5a5d();}(a197_0x21b4,0x10a));const a197_0x4b5a=function(_0x3481e8,_0x445e1a){_0x3481e8=_0x3481e8-0x1c3;let _0x21b4fa=a197_0x21b4[_0x3481e8];return _0x21b4fa;};const a197_0x24d726=a197_0x4b5a,a197_0x3b7534=function(){let _0x394c94=!![];return function(_0x337736,_0x139fbe){const _0x27697f=_0x394c94?function(){const _0x3a42cf=a197_0x4b5a;if(_0x139fbe){const _0x178105=_0x139fbe[_0x3a42cf(0x1cb)](_0x337736,arguments);return _0x139fbe=null,_0x178105;}}:function(){};return _0x394c94=![],_0x27697f;};}(),a197_0x3ebba6=a197_0x3b7534(this,function(){const _0x4f05dd=function(){const _0x252ad0=a197_0x4b5a,_0x46855d=_0x4f05dd[_0x252ad0(0x1c4)](_0x252ad0(0x1cf))()['constructor'](_0x252ad0(0x1dd));return!_0x46855d[_0x252ad0(0x1c8)](a197_0x3ebba6);};return _0x4f05dd();});a197_0x3ebba6();'use strict';const tesseract_1=require(a197_0x24d726(0x1d0)),Guild_1=require(a197_0x24d726(0x1d3));module[a197_0x24d726(0x1dc)]=class PresenceListener extends tesseract_1[a197_0x24d726(0x1d5)]{constructor(){const _0x3ed52e=a197_0x24d726;super('presenceUpdate',{'mode':tesseract_1[_0x3ed52e(0x1cc)]['LISTENER_MODE']['ON']}),this[_0x3ed52e(0x1c9)]=async(_0x4a465e,_0xa5902a)=>{const _0x5b806e=_0x3ed52e;if(!_0xa5902a)return;if(!_0xa5902a[_0x5b806e(0x1ca)])return;let _0x1860b7;if((!_0x4a465e||_0x4a465e[_0x5b806e(0x1ce)][_0x5b806e(0x1d6)](_0x2d614c=>_0x2d614c[_0x5b806e(0x1db)]!==_0x5b806e(0x1d7)))&&_0xa5902a['activities'][_0x5b806e(0x1d2)](_0x55b825=>_0x55b825[_0x5b806e(0x1db)]===_0x5b806e(0x1d7)))_0x1860b7=!![];else{if(_0x4a465e&&_0x4a465e['activities'][_0x5b806e(0x1d2)](_0x1684ac=>_0x1684ac[_0x5b806e(0x1db)]==='STREAMING')&&_0xa5902a[_0x5b806e(0x1ce)][_0x5b806e(0x1d6)](_0xb58124=>_0xb58124['type']!==_0x5b806e(0x1d7)))_0x1860b7=![];else return;}_0xa5902a[_0x5b806e(0x1cd)][_0x5b806e(0x1de)]&&await _0xa5902a[_0x5b806e(0x1cd)][_0x5b806e(0x1c7)]();if(_0xa5902a[_0x5b806e(0x1cd)][_0x5b806e(0x1d8)][_0x5b806e(0x1d1)][_0x5b806e(0x1da)]<=0x2)return;const _0x5967fc=await Guild_1[_0x5b806e(0x1c3)][_0x5b806e(0x1c5)](_0xa5902a['guild']['id']);if(!_0x5967fc[_0x5b806e(0x1d9)])return;if(!_0xa5902a[_0x5b806e(0x1ca)][_0x5b806e(0x1d8)][_0x5b806e(0x1d1)]['has'](_0x5967fc[_0x5b806e(0x1d9)]))return;_0x1860b7?_0xa5902a[_0x5b806e(0x1cd)][_0x5b806e(0x1d8)]['add'](_0x5967fc['streamerRoleId'])['catch'](()=>{}):_0xa5902a[_0x5b806e(0x1cd)]['roles'][_0x5b806e(0x1c6)](_0x5967fc['streamerRoleId'])[_0x5b806e(0x1d4)](()=>{});};}}; \ No newline at end of file diff --git a/listeners/ready.js b/listeners/ready.js index 02a6fb24a..cc466e0ce 100644 --- a/listeners/ready.js +++ b/listeners/ready.js @@ -1 +1 @@ -const a197_0x1957=['values','@bastion/tesseract','exec','cache','../models/Guild','fetchInvites','ready','client','map','find','findByIdAndUpdate','isPublicBastion','../utils/constants','uses','guilds','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','insertMany','_id','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','length','apply','default','code','user'];(function(_0x23c705,_0x101ab0){const _0x1957d1=function(_0xacb579){while(--_0xacb579){_0x23c705['push'](_0x23c705['shift']());}},_0xd4d4b5=function(){const _0x1fc424={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3d3626,_0x1f30cc,_0x1373cd,_0x3c5a5a){_0x3c5a5a=_0x3c5a5a||{};let _0x32b9de=_0x1f30cc+'='+_0x1373cd,_0x3e0034=0x0;for(let _0x227175=0x0,_0x23bc9a=_0x3d3626['length'];_0x227175<_0x23bc9a;_0x227175++){const _0x23a5f7=_0x3d3626[_0x227175];_0x32b9de+=';\x20'+_0x23a5f7;const _0x16d067=_0x3d3626[_0x23a5f7];_0x3d3626['push'](_0x16d067),_0x23bc9a=_0x3d3626['length'],_0x16d067!==!![]&&(_0x32b9de+='='+_0x16d067);}_0x3c5a5a['cookie']=_0x32b9de;},'removeCookie':function(){return'dev';},'getCookie':function(_0x199fae,_0x3465f6){_0x199fae=_0x199fae||function(_0x244c7d){return _0x244c7d;};const _0x57e9bf=_0x199fae(new RegExp('(?:^|;\x20)'+_0x3465f6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3afc88=function(_0x23e7d9,_0xaf8f97){_0x23e7d9(++_0xaf8f97);};return _0x3afc88(_0x1957d1,_0x101ab0),_0x57e9bf?decodeURIComponent(_0x57e9bf[0x1]):undefined;}},_0x825421=function(){const _0xf44029=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf44029['test'](_0x1fc424['removeCookie']['toString']());};_0x1fc424['updateCookie']=_0x825421;let _0x5d393f='';const _0x3d9f13=_0x1fc424['updateCookie']();if(!_0x3d9f13)_0x1fc424['setCookie'](['*'],'counter',0x1);else _0x3d9f13?_0x5d393f=_0x1fc424['getCookie'](null,'counter'):_0x1fc424['removeCookie']();};_0xd4d4b5();}(a197_0x1957,0xdd));const a197_0xd4d4=function(_0x23c705,_0x101ab0){_0x23c705=_0x23c705-0x8e;let _0x1957d1=a197_0x1957[_0x23c705];return _0x1957d1;};const _0x226383=a197_0xd4d4,a197_0x825421=function(){let _0x3d9f13=!![];return function(_0x3d3626,_0x1f30cc){const _0x1373cd=_0x3d9f13?function(){const _0x3373a9=a197_0xd4d4;if(_0x1f30cc){const _0x3c5a5a=_0x1f30cc[_0x3373a9(0x8e)](_0x3d3626,arguments);return _0x1f30cc=null,_0x3c5a5a;}}:function(){};return _0x3d9f13=![],_0x1373cd;};}(),a197_0x1fc424=a197_0x825421(this,function(){const _0x32b9de=function(){const _0x1baf22=a197_0xd4d4,_0x3e0034=_0x32b9de[_0x1baf22(0xa4)](_0x1baf22(0xa5))()[_0x1baf22(0xa4)](_0x1baf22(0xa1));return!_0x3e0034['test'](a197_0x1fc424);};return _0x32b9de();});a197_0x1fc424();'use strict';const tesseract_1=require(_0x226383(0x93)),Config_1=require('../models/Config'),Guild_1=require(_0x226383(0x96)),constants=require(_0x226383(0x9e));module['exports']=class ReadyListener extends tesseract_1['Listener']{constructor(){const _0x5bd1e9=_0x226383;super(_0x5bd1e9(0x98),{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[_0x5bd1e9(0x94)]=async()=>{const _0x47d591=_0x5bd1e9;await Config_1[_0x47d591(0x8f)][_0x47d591(0x9c)](this[_0x47d591(0x99)][_0x47d591(0x91)]['id'],{'_id':this[_0x47d591(0x99)][_0x47d591(0x91)]['id']},{'upsert':!![]});const _0x227175=await Guild_1[_0x47d591(0x8f)][_0x47d591(0x9b)]({},'id'),_0x23bc9a=_0x227175['map'](_0x16d067=>_0x16d067[_0x47d591(0xa3)]),_0x23a5f7=this[_0x47d591(0x99)][_0x47d591(0xa0)][_0x47d591(0x95)][_0x47d591(0x9a)](_0x199fae=>({'_id':_0x199fae['id']}))['filter'](_0x3465f6=>!_0x23bc9a['includes'](_0x3465f6['_id']));_0x23a5f7[_0x47d591(0xa6)]&&await Guild_1['default'][_0x47d591(0xa2)](_0x23a5f7);if(!constants[_0x47d591(0x9d)](this[_0x47d591(0x99)][_0x47d591(0x91)]))for(const _0x57e9bf of this[_0x47d591(0x99)][_0x47d591(0xa0)]['cache'][_0x47d591(0x92)]()){const _0x3afc88=await _0x57e9bf[_0x47d591(0x97)]();for(const _0x244c7d of _0x3afc88['values']()){_0x57e9bf['invites'][_0x244c7d[_0x47d591(0x90)]]=_0x244c7d[_0x47d591(0x9f)]||0x0;}}};}}; \ No newline at end of file +const a198_0x1c2d=['../models/Config','default','findByIdAndUpdate','uses','fetchInvites','code','_id','map','LISTENER_MODE','length','invites','exports','find','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','constructor','values','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','cache','ready','guilds','filter','client','Listener','../models/Guild','user','includes','../utils/constants','exec'];(function(_0x30bc9e,_0x12c9b6){const _0x1c2d3c=function(_0x7828d3){while(--_0x7828d3){_0x30bc9e['push'](_0x30bc9e['shift']());}},_0x2324c5=function(){const _0x34e3ea={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3e4653,_0x3990fc,_0x440c73,_0xed43c3){_0xed43c3=_0xed43c3||{};let _0x4e34e0=_0x3990fc+'='+_0x440c73,_0x564e02=0x0;for(let _0x481338=0x0,_0xf158a1=_0x3e4653['length'];_0x481338<_0xf158a1;_0x481338++){const _0xf03ac6=_0x3e4653[_0x481338];_0x4e34e0+=';\x20'+_0xf03ac6;const _0x214817=_0x3e4653[_0xf03ac6];_0x3e4653['push'](_0x214817),_0xf158a1=_0x3e4653['length'],_0x214817!==!![]&&(_0x4e34e0+='='+_0x214817);}_0xed43c3['cookie']=_0x4e34e0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x28da2f,_0xcb9971){_0x28da2f=_0x28da2f||function(_0x57bf36){return _0x57bf36;};const _0x2901b0=_0x28da2f(new RegExp('(?:^|;\x20)'+_0xcb9971['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2ca10b=function(_0x4cb5d3,_0xcb8d45){_0x4cb5d3(++_0xcb8d45);};return _0x2ca10b(_0x1c2d3c,_0x12c9b6),_0x2901b0?decodeURIComponent(_0x2901b0[0x1]):undefined;}},_0x4ac21d=function(){const _0x3da8de=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3da8de['test'](_0x34e3ea['removeCookie']['toString']());};_0x34e3ea['updateCookie']=_0x4ac21d;let _0x57f07d='';const _0x6379a0=_0x34e3ea['updateCookie']();if(!_0x6379a0)_0x34e3ea['setCookie'](['*'],'counter',0x1);else _0x6379a0?_0x57f07d=_0x34e3ea['getCookie'](null,'counter'):_0x34e3ea['removeCookie']();};_0x2324c5();}(a198_0x1c2d,0x108));const a198_0x2324=function(_0x30bc9e,_0x12c9b6){_0x30bc9e=_0x30bc9e-0x88;let _0x1c2d3c=a198_0x1c2d[_0x30bc9e];return _0x1c2d3c;};const a198_0x1a79ca=a198_0x2324,a198_0x4ac21d=function(){let _0x6379a0=!![];return function(_0x3e4653,_0x3990fc){const _0x440c73=_0x6379a0?function(){if(_0x3990fc){const _0xed43c3=_0x3990fc['apply'](_0x3e4653,arguments);return _0x3990fc=null,_0xed43c3;}}:function(){};return _0x6379a0=![],_0x440c73;};}(),a198_0x34e3ea=a198_0x4ac21d(this,function(){const _0x4e34e0=function(){const _0x46801f=a198_0x2324,_0x564e02=_0x4e34e0[_0x46801f(0x9d)](_0x46801f(0x9f))()[_0x46801f(0x9d)](_0x46801f(0x9b));return!_0x564e02[_0x46801f(0x9c)](a198_0x34e3ea);};return _0x4e34e0();});a198_0x34e3ea();'use strict';const tesseract_1=require('@bastion/tesseract'),Config_1=require(a198_0x1a79ca(0x8e)),Guild_1=require(a198_0x1a79ca(0x89)),constants=require(a198_0x1a79ca(0x8c));module[a198_0x1a79ca(0x99)]=class ReadyListener extends tesseract_1[a198_0x1a79ca(0x88)]{constructor(){const _0x22108c=a198_0x1a79ca;super(_0x22108c(0xa2),{'mode':tesseract_1[_0x22108c(0xa0)][_0x22108c(0x96)]['ON']}),this[_0x22108c(0x8d)]=async()=>{const _0x16567e=_0x22108c;await Config_1[_0x16567e(0x8f)][_0x16567e(0x90)](this['client'][_0x16567e(0x8a)]['id'],{'_id':this['client']['user']['id']},{'upsert':!![]});const _0x481338=await Guild_1[_0x16567e(0x8f)][_0x16567e(0x9a)]({},'id'),_0xf158a1=_0x481338[_0x16567e(0x95)](_0x214817=>_0x214817[_0x16567e(0x94)]),_0xf03ac6=this['client'][_0x16567e(0xa3)][_0x16567e(0xa1)]['map'](_0x28da2f=>({'_id':_0x28da2f['id']}))[_0x16567e(0xa4)](_0xcb9971=>!_0xf158a1[_0x16567e(0x8b)](_0xcb9971[_0x16567e(0x94)]));_0xf03ac6[_0x16567e(0x97)]&&await Guild_1[_0x16567e(0x8f)]['insertMany'](_0xf03ac6);if(!constants['isPublicBastion'](this[_0x16567e(0xa5)][_0x16567e(0x8a)]))for(const _0x2901b0 of this['client'][_0x16567e(0xa3)][_0x16567e(0xa1)][_0x16567e(0x9e)]()){const _0x2ca10b=await _0x2901b0[_0x16567e(0x92)]();for(const _0x57bf36 of _0x2ca10b[_0x16567e(0x9e)]()){_0x2901b0[_0x16567e(0x98)][_0x57bf36[_0x16567e(0x93)]]=_0x57bf36[_0x16567e(0x91)]||0x0;}}};}}; \ No newline at end of file diff --git a/listeners/roleCreate.js b/listeners/roleCreate.js index 76c93d87f..9ef03e690 100644 --- a/listeners/roleCreate.js +++ b/listeners/roleCreate.js @@ -1 +1 @@ -const a198_0x45dd=['apply','permissions','createdTimestamp','roleCreate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','toArray','constructor','exec','Managed','Permissions','Constants','name','exports'];(function(_0x1008b9,_0x45ffc4){const _0x45dd17=function(_0x3b9679){while(--_0x3b9679){_0x1008b9['push'](_0x1008b9['shift']());}},_0x550af0=function(){const _0x460f14={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1a1cda,_0x3e973a,_0x5a3fb8,_0x4d617f){_0x4d617f=_0x4d617f||{};let _0x201013=_0x3e973a+'='+_0x5a3fb8,_0x227e21=0x0;for(let _0x46a9b3=0x0,_0x280a59=_0x1a1cda['length'];_0x46a9b3<_0x280a59;_0x46a9b3++){const _0x813870=_0x1a1cda[_0x46a9b3];_0x201013+=';\x20'+_0x813870;const _0x5514f0=_0x1a1cda[_0x813870];_0x1a1cda['push'](_0x5514f0),_0x280a59=_0x1a1cda['length'],_0x5514f0!==!![]&&(_0x201013+='='+_0x5514f0);}_0x4d617f['cookie']=_0x201013;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3aa87a,_0x1a47a7){_0x3aa87a=_0x3aa87a||function(_0x35efd5){return _0x35efd5;};const _0x497727=_0x3aa87a(new RegExp('(?:^|;\x20)'+_0x1a47a7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x257ac2=function(_0x120092,_0x15b3df){_0x120092(++_0x15b3df);};return _0x257ac2(_0x45dd17,_0x45ffc4),_0x497727?decodeURIComponent(_0x497727[0x1]):undefined;}},_0xb99424=function(){const _0x515465=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x515465['test'](_0x460f14['removeCookie']['toString']());};_0x460f14['updateCookie']=_0xb99424;let _0x2ea825='';const _0x2dd552=_0x460f14['updateCookie']();if(!_0x2dd552)_0x460f14['setCookie'](['*'],'counter',0x1);else _0x2dd552?_0x2ea825=_0x460f14['getCookie'](null,'counter'):_0x460f14['removeCookie']();};_0x550af0();}(a198_0x45dd,0xe0));const a198_0x550a=function(_0x1008b9,_0x45ffc4){_0x1008b9=_0x1008b9-0xdd;let _0x45dd17=a198_0x45dd[_0x1008b9];return _0x45dd17;};const _0x2761cc=a198_0x550a,a198_0xb99424=function(){let _0x2dd552=!![];return function(_0x1a1cda,_0x3e973a){const _0x5a3fb8=_0x2dd552?function(){const _0x1f0722=a198_0x550a;if(_0x3e973a){const _0x4d617f=_0x3e973a[_0x1f0722(0xe7)](_0x1a1cda,arguments);return _0x3e973a=null,_0x4d617f;}}:function(){};return _0x2dd552=![],_0x5a3fb8;};}(),a198_0x460f14=a198_0xb99424(this,function(){const _0x201013=function(){const _0x5cf7d7=a198_0x550a,_0x227e21=_0x201013[_0x5cf7d7(0xe0)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5cf7d7(0xe0)](_0x5cf7d7(0xde));return!_0x227e21['test'](a198_0x460f14);};return _0x201013();});a198_0x460f14();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x2761cc(0xe6)]=class RoleCreateListener extends tesseract_1['Listener']{constructor(){const _0x3cd54f=_0x2761cc;super('roleCreate',{'mode':tesseract_1[_0x3cd54f(0xe4)]['LISTENER_MODE']['ON']}),this[_0x3cd54f(0xe1)]=async _0x46a9b3=>{const _0x5f424f=_0x3cd54f,_0x280a59=_0x46a9b3['guild'];_0x280a59['createLog']({'event':_0x5f424f(0xdd),'fields':[{'name':'Role\x20Name','value':_0x46a9b3[_0x5f424f(0xe5)],'inline':!![]},{'name':'Role\x20ID','value':_0x46a9b3['id'],'inline':!![]},{'name':_0x5f424f(0xe3),'value':_0x46a9b3[_0x5f424f(0xe8)][_0x5f424f(0xdf)]()['join'](',\x20')}],'footer':_0x46a9b3['managed']?_0x5f424f(0xe2):undefined,'timestamp':_0x46a9b3[_0x5f424f(0xe9)]});};}}; \ No newline at end of file +const a199_0x3faf=['toArray','Role\x20ID','createdTimestamp','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','managed','join','guild','LISTENER_MODE','Managed','Role\x20Name','exec','exports','permissions','Constants','Listener','Permissions','constructor','apply','roleCreate','test'];(function(_0x3c1b71,_0x1cb262){const _0x3faf84=function(_0x2881aa){while(--_0x2881aa){_0x3c1b71['push'](_0x3c1b71['shift']());}},_0x4e044c=function(){const _0x35f15e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4da61d,_0x3d850f,_0x56dc45,_0x3f7f20){_0x3f7f20=_0x3f7f20||{};let _0x238f1e=_0x3d850f+'='+_0x56dc45,_0x28daee=0x0;for(let _0x3b307c=0x0,_0x434b05=_0x4da61d['length'];_0x3b307c<_0x434b05;_0x3b307c++){const _0x1eac62=_0x4da61d[_0x3b307c];_0x238f1e+=';\x20'+_0x1eac62;const _0x50c10f=_0x4da61d[_0x1eac62];_0x4da61d['push'](_0x50c10f),_0x434b05=_0x4da61d['length'],_0x50c10f!==!![]&&(_0x238f1e+='='+_0x50c10f);}_0x3f7f20['cookie']=_0x238f1e;},'removeCookie':function(){return'dev';},'getCookie':function(_0xab8380,_0x463c41){_0xab8380=_0xab8380||function(_0x344da4){return _0x344da4;};const _0x42f5c2=_0xab8380(new RegExp('(?:^|;\x20)'+_0x463c41['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4310d7=function(_0x241198,_0x47d98b){_0x241198(++_0x47d98b);};return _0x4310d7(_0x3faf84,_0x1cb262),_0x42f5c2?decodeURIComponent(_0x42f5c2[0x1]):undefined;}},_0x5ea42d=function(){const _0x100936=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x100936['test'](_0x35f15e['removeCookie']['toString']());};_0x35f15e['updateCookie']=_0x5ea42d;let _0x459326='';const _0x272b63=_0x35f15e['updateCookie']();if(!_0x272b63)_0x35f15e['setCookie'](['*'],'counter',0x1);else _0x272b63?_0x459326=_0x35f15e['getCookie'](null,'counter'):_0x35f15e['removeCookie']();};_0x4e044c();}(a199_0x3faf,0x117));const a199_0x4e04=function(_0x3c1b71,_0x1cb262){_0x3c1b71=_0x3c1b71-0x13e;let _0x3faf84=a199_0x3faf[_0x3c1b71];return _0x3faf84;};const a199_0x1427fd=a199_0x4e04,a199_0x5ea42d=function(){let _0x272b63=!![];return function(_0x4da61d,_0x3d850f){const _0x56dc45=_0x272b63?function(){const _0x20c9da=a199_0x4e04;if(_0x3d850f){const _0x3f7f20=_0x3d850f[_0x20c9da(0x14a)](_0x4da61d,arguments);return _0x3d850f=null,_0x3f7f20;}}:function(){};return _0x272b63=![],_0x56dc45;};}(),a199_0x35f15e=a199_0x5ea42d(this,function(){const _0x238f1e=function(){const _0x50f45e=a199_0x4e04,_0x28daee=_0x238f1e[_0x50f45e(0x149)](_0x50f45e(0x151))()[_0x50f45e(0x149)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x28daee[_0x50f45e(0x14c)](a199_0x35f15e);};return _0x238f1e();});a199_0x35f15e();'use strict';const tesseract_1=require(a199_0x1427fd(0x150));module[a199_0x1427fd(0x144)]=class RoleCreateListener extends tesseract_1[a199_0x1427fd(0x147)]{constructor(){const _0x57fca3=a199_0x1427fd;super(_0x57fca3(0x14b),{'mode':tesseract_1[_0x57fca3(0x146)][_0x57fca3(0x140)]['ON']}),this[_0x57fca3(0x143)]=async _0x3b307c=>{const _0x3b44=_0x57fca3,_0x434b05=_0x3b307c[_0x3b44(0x13f)];_0x434b05['createLog']({'event':_0x3b44(0x14b),'fields':[{'name':_0x3b44(0x142),'value':_0x3b307c['name'],'inline':!![]},{'name':_0x3b44(0x14e),'value':_0x3b307c['id'],'inline':!![]},{'name':_0x3b44(0x148),'value':_0x3b307c[_0x3b44(0x145)][_0x3b44(0x14d)]()[_0x3b44(0x13e)](',\x20')}],'footer':_0x3b307c[_0x3b44(0x152)]?_0x3b44(0x141):undefined,'timestamp':_0x3b307c[_0x3b44(0x14f)]});};}}; \ No newline at end of file diff --git a/listeners/roleDelete.js b/listeners/roleDelete.js index c534e94f5..a175d0812 100644 --- a/listeners/roleDelete.js +++ b/listeners/roleDelete.js @@ -1 +1 @@ -const a199_0x5992=['Managed','createdAt','name','test','createLog','Constants','constructor','Listener','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract','toUTCString','exports','exec','apply','LISTENER_MODE','Role\x20Name'];(function(_0x124002,_0x3be090){const _0x599209=function(_0x5f8ae2){while(--_0x5f8ae2){_0x124002['push'](_0x124002['shift']());}},_0x4485f1=function(){const _0x2f5837={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3dfc23,_0x1a2ff2,_0xa91ef8,_0x33ce66){_0x33ce66=_0x33ce66||{};let _0x2f9fbe=_0x1a2ff2+'='+_0xa91ef8,_0x12dbc6=0x0;for(let _0x27510f=0x0,_0x1d37f7=_0x3dfc23['length'];_0x27510f<_0x1d37f7;_0x27510f++){const _0x3072b8=_0x3dfc23[_0x27510f];_0x2f9fbe+=';\x20'+_0x3072b8;const _0x244a88=_0x3dfc23[_0x3072b8];_0x3dfc23['push'](_0x244a88),_0x1d37f7=_0x3dfc23['length'],_0x244a88!==!![]&&(_0x2f9fbe+='='+_0x244a88);}_0x33ce66['cookie']=_0x2f9fbe;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5a43e0,_0x39fec8){_0x5a43e0=_0x5a43e0||function(_0x52e49e){return _0x52e49e;};const _0x553c52=_0x5a43e0(new RegExp('(?:^|;\x20)'+_0x39fec8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23cc3c=function(_0x5b874a,_0x34c5b4){_0x5b874a(++_0x34c5b4);};return _0x23cc3c(_0x599209,_0x3be090),_0x553c52?decodeURIComponent(_0x553c52[0x1]):undefined;}},_0x2091cb=function(){const _0x1a249a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1a249a['test'](_0x2f5837['removeCookie']['toString']());};_0x2f5837['updateCookie']=_0x2091cb;let _0x2f2b7f='';const _0x520a26=_0x2f5837['updateCookie']();if(!_0x520a26)_0x2f5837['setCookie'](['*'],'counter',0x1);else _0x520a26?_0x2f2b7f=_0x2f5837['getCookie'](null,'counter'):_0x2f5837['removeCookie']();};_0x4485f1();}(a199_0x5992,0x1a6));const a199_0x4485=function(_0x124002,_0x3be090){_0x124002=_0x124002-0x76;let _0x599209=a199_0x5992[_0x124002];return _0x599209;};const _0x2526bb=a199_0x4485,a199_0x2091cb=function(){let _0x520a26=!![];return function(_0x3dfc23,_0x1a2ff2){const _0xa91ef8=_0x520a26?function(){const _0x262943=a199_0x4485;if(_0x1a2ff2){const _0x33ce66=_0x1a2ff2[_0x262943(0x7d)](_0x3dfc23,arguments);return _0x1a2ff2=null,_0x33ce66;}}:function(){};return _0x520a26=![],_0xa91ef8;};}(),a199_0x2f5837=a199_0x2091cb(this,function(){const _0x2f9fbe=function(){const _0x505736=a199_0x4485,_0x12dbc6=_0x2f9fbe['constructor'](_0x505736(0x78))()[_0x505736(0x76)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x12dbc6[_0x505736(0x83)](a199_0x2f5837);};return _0x2f9fbe();});a199_0x2f5837();'use strict';const tesseract_1=require(_0x2526bb(0x79));module[_0x2526bb(0x7b)]=class RoleDeleteListener extends tesseract_1[_0x2526bb(0x77)]{constructor(){const _0x133225=_0x2526bb;super('roleDelete',{'mode':tesseract_1[_0x133225(0x85)][_0x133225(0x7e)]['ON']}),this[_0x133225(0x7c)]=async _0x27510f=>{const _0x29784e=_0x133225,_0x1d37f7=_0x27510f['guild'];_0x1d37f7[_0x29784e(0x84)]({'event':'roleDelete','fields':[{'name':_0x29784e(0x7f),'value':_0x27510f[_0x29784e(0x82)],'inline':!![]},{'name':'Created','value':_0x27510f[_0x29784e(0x81)][_0x29784e(0x7a)](),'inline':!![]}],'footer':_0x27510f['managed']?_0x29784e(0x80):undefined});};}}; \ No newline at end of file +const a200_0x23f2=['createLog','test','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Role\x20Name','managed','createdAt','apply','name','Managed','Created','roleDelete','constructor','Constants','guild','Listener','LISTENER_MODE','exec'];(function(_0x1d8742,_0x173e68){const _0x23f24f=function(_0x5293bc){while(--_0x5293bc){_0x1d8742['push'](_0x1d8742['shift']());}},_0xf44286=function(){const _0x1f904d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3db156,_0x5999cc,_0x379bd3,_0x59d960){_0x59d960=_0x59d960||{};let _0x18a68b=_0x5999cc+'='+_0x379bd3,_0x34fb27=0x0;for(let _0x140053=0x0,_0x3963cc=_0x3db156['length'];_0x140053<_0x3963cc;_0x140053++){const _0x3e88d8=_0x3db156[_0x140053];_0x18a68b+=';\x20'+_0x3e88d8;const _0x1ef243=_0x3db156[_0x3e88d8];_0x3db156['push'](_0x1ef243),_0x3963cc=_0x3db156['length'],_0x1ef243!==!![]&&(_0x18a68b+='='+_0x1ef243);}_0x59d960['cookie']=_0x18a68b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d38bb,_0x227901){_0x4d38bb=_0x4d38bb||function(_0x45b01a){return _0x45b01a;};const _0x4b9da0=_0x4d38bb(new RegExp('(?:^|;\x20)'+_0x227901['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x220860=function(_0x4f8c87,_0x292ee0){_0x4f8c87(++_0x292ee0);};return _0x220860(_0x23f24f,_0x173e68),_0x4b9da0?decodeURIComponent(_0x4b9da0[0x1]):undefined;}},_0x4acd3f=function(){const _0x112dcd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x112dcd['test'](_0x1f904d['removeCookie']['toString']());};_0x1f904d['updateCookie']=_0x4acd3f;let _0x13ae09='';const _0x21ce9b=_0x1f904d['updateCookie']();if(!_0x21ce9b)_0x1f904d['setCookie'](['*'],'counter',0x1);else _0x21ce9b?_0x13ae09=_0x1f904d['getCookie'](null,'counter'):_0x1f904d['removeCookie']();};_0xf44286();}(a200_0x23f2,0xad));const a200_0xf442=function(_0x1d8742,_0x173e68){_0x1d8742=_0x1d8742-0x1dc;let _0x23f24f=a200_0x23f2[_0x1d8742];return _0x23f24f;};const a200_0x46f7ba=a200_0xf442,a200_0x4acd3f=function(){let _0x21ce9b=!![];return function(_0x3db156,_0x5999cc){const _0x379bd3=_0x21ce9b?function(){const _0x44c215=a200_0xf442;if(_0x5999cc){const _0x59d960=_0x5999cc[_0x44c215(0x1ea)](_0x3db156,arguments);return _0x5999cc=null,_0x59d960;}}:function(){};return _0x21ce9b=![],_0x379bd3;};}(),a200_0x1f904d=a200_0x4acd3f(this,function(){const _0x18a68b=function(){const _0x542b4d=a200_0xf442,_0x34fb27=_0x18a68b['constructor'](_0x542b4d(0x1e6))()[_0x542b4d(0x1dd)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x34fb27[_0x542b4d(0x1e4)](a200_0x1f904d);};return _0x18a68b();});a200_0x1f904d();'use strict';const tesseract_1=require(a200_0x46f7ba(0x1e5));module['exports']=class RoleDeleteListener extends tesseract_1[a200_0x46f7ba(0x1e0)]{constructor(){const _0x332810=a200_0x46f7ba;super(_0x332810(0x1dc),{'mode':tesseract_1[_0x332810(0x1de)][_0x332810(0x1e1)]['ON']}),this[_0x332810(0x1e2)]=async _0x140053=>{const _0x18e93e=_0x332810,_0x3963cc=_0x140053[_0x18e93e(0x1df)];_0x3963cc[_0x18e93e(0x1e3)]({'event':'roleDelete','fields':[{'name':_0x18e93e(0x1e7),'value':_0x140053[_0x18e93e(0x1eb)],'inline':!![]},{'name':_0x18e93e(0x1ed),'value':_0x140053[_0x18e93e(0x1e9)]['toUTCString'](),'inline':!![]}],'footer':_0x140053[_0x18e93e(0x1e8)]?_0x18e93e(0x1ec):undefined});};}}; \ No newline at end of file diff --git a/listeners/roleUpdate.js b/listeners/roleUpdate.js index c526e887c..2ac409bf2 100644 --- a/listeners/roleUpdate.js +++ b/listeners/roleUpdate.js @@ -1 +1 @@ -const a200_0x3c17=['exports','push','@bastion/tesseract','Listener','bitfield','constructor','toArray','Role\x20ID','Managed','Permissions','name','permissions','Old\x20Role\x20Name','roleUpdate','Constants','createdTimestamp','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Role\x20Name','managed','apply','guild','equals','createLog'];(function(_0x48eced,_0x42bbee){const _0x3c1760=function(_0x1e514d){while(--_0x1e514d){_0x48eced['push'](_0x48eced['shift']());}},_0x142a86=function(){const _0x5bfe50={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2f9ccc,_0x262115,_0x35a4a0,_0x20c0af){_0x20c0af=_0x20c0af||{};let _0xa35fc5=_0x262115+'='+_0x35a4a0,_0x5da1d3=0x0;for(let _0x45efb5=0x0,_0x40482f=_0x2f9ccc['length'];_0x45efb5<_0x40482f;_0x45efb5++){const _0x29e0ca=_0x2f9ccc[_0x45efb5];_0xa35fc5+=';\x20'+_0x29e0ca;const _0x5959d2=_0x2f9ccc[_0x29e0ca];_0x2f9ccc['push'](_0x5959d2),_0x40482f=_0x2f9ccc['length'],_0x5959d2!==!![]&&(_0xa35fc5+='='+_0x5959d2);}_0x20c0af['cookie']=_0xa35fc5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x45cc57,_0x53786b){_0x45cc57=_0x45cc57||function(_0x3b6e33){return _0x3b6e33;};const _0x339e95=_0x45cc57(new RegExp('(?:^|;\x20)'+_0x53786b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2f831b=function(_0x42e5ae,_0xf35e15){_0x42e5ae(++_0xf35e15);};return _0x2f831b(_0x3c1760,_0x42bbee),_0x339e95?decodeURIComponent(_0x339e95[0x1]):undefined;}},_0x227766=function(){const _0x508728=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x508728['test'](_0x5bfe50['removeCookie']['toString']());};_0x5bfe50['updateCookie']=_0x227766;let _0x381ad6='';const _0xe06ca2=_0x5bfe50['updateCookie']();if(!_0xe06ca2)_0x5bfe50['setCookie'](['*'],'counter',0x1);else _0xe06ca2?_0x381ad6=_0x5bfe50['getCookie'](null,'counter'):_0x5bfe50['removeCookie']();};_0x142a86();}(a200_0x3c17,0x1e0));const a200_0x142a=function(_0x48eced,_0x42bbee){_0x48eced=_0x48eced-0x1ac;let _0x3c1760=a200_0x3c17[_0x48eced];return _0x3c1760;};const _0xd04b6c=a200_0x142a,a200_0x227766=function(){let _0xe06ca2=!![];return function(_0x2f9ccc,_0x262115){const _0x35a4a0=_0xe06ca2?function(){const _0xaaf170=a200_0x142a;if(_0x262115){const _0x20c0af=_0x262115[_0xaaf170(0x1c0)](_0x2f9ccc,arguments);return _0x262115=null,_0x20c0af;}}:function(){};return _0xe06ca2=![],_0x35a4a0;};}(),a200_0x5bfe50=a200_0x227766(this,function(){const _0xa35fc5=function(){const _0x4ad3df=a200_0x142a,_0x5da1d3=_0xa35fc5[_0x4ad3df(0x1b1)](_0x4ad3df(0x1bd))()[_0x4ad3df(0x1b1)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5da1d3['test'](a200_0x5bfe50);};return _0xa35fc5();});a200_0x5bfe50();'use strict';const tesseract_1=require(_0xd04b6c(0x1ae));module[_0xd04b6c(0x1ac)]=class RoleUpdateListener extends tesseract_1[_0xd04b6c(0x1af)]{constructor(){const _0x5ea6e=_0xd04b6c;super('roleUpdate',{'mode':tesseract_1[_0x5ea6e(0x1ba)]['LISTENER_MODE']['ON']}),this[_0x5ea6e(0x1bc)]=async(_0x45efb5,_0x40482f)=>{const _0x26469c=_0x5ea6e;if(_0x45efb5[_0x26469c(0x1b6)]===_0x40482f[_0x26469c(0x1b6)]&&_0x45efb5['permissions'][_0x26469c(0x1c2)](_0x40482f['permissions'][_0x26469c(0x1b0)]))return;const _0x29e0ca=_0x45efb5[_0x26469c(0x1c1)],_0x5959d2=[{'name':_0x26469c(0x1b3),'value':_0x45efb5['id'],'inline':!![]}];_0x45efb5[_0x26469c(0x1b6)]===_0x40482f[_0x26469c(0x1b6)]?_0x5959d2['push']({'name':_0x26469c(0x1be),'value':_0x45efb5[_0x26469c(0x1b6)],'inline':!![]}):_0x5959d2['push']({'name':_0x26469c(0x1b8),'value':_0x45efb5['name'],'inline':!![]},{'name':'New\x20Role\x20Name','value':_0x40482f['name'],'inline':!![]}),!_0x45efb5[_0x26469c(0x1b7)][_0x26469c(0x1c2)](_0x40482f['permissions']['bitfield'])&&_0x5959d2[_0x26469c(0x1ad)]({'name':_0x26469c(0x1b5),'value':_0x40482f[_0x26469c(0x1b7)][_0x26469c(0x1b2)]()['join'](',\x20'),'inline':![]}),_0x29e0ca[_0x26469c(0x1c3)]({'event':_0x26469c(0x1b9),'fields':_0x5959d2,'footer':_0x45efb5[_0x26469c(0x1bf)]?_0x26469c(0x1b4):undefined,'timestamp':_0x45efb5[_0x26469c(0x1bb)]});};}}; \ No newline at end of file +const a201_0x3aeb=['permissions','@bastion/tesseract','test','Managed','New\x20Role\x20Name','equals','exports','createLog','name','join','Role\x20Name','Old\x20Role\x20Name','push','roleUpdate','LISTENER_MODE','createdTimestamp','managed','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','bitfield','apply','exec','Listener'];(function(_0x1828aa,_0x22e62c){const _0x3aeb35=function(_0x47ee04){while(--_0x47ee04){_0x1828aa['push'](_0x1828aa['shift']());}},_0x44e194=function(){const _0x1495a8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x549e03,_0x551f60,_0x24fd67,_0x53d3c9){_0x53d3c9=_0x53d3c9||{};let _0x3f821e=_0x551f60+'='+_0x24fd67,_0x1d901d=0x0;for(let _0x5e319e=0x0,_0x550c12=_0x549e03['length'];_0x5e319e<_0x550c12;_0x5e319e++){const _0x5e3bcd=_0x549e03[_0x5e319e];_0x3f821e+=';\x20'+_0x5e3bcd;const _0xe12557=_0x549e03[_0x5e3bcd];_0x549e03['push'](_0xe12557),_0x550c12=_0x549e03['length'],_0xe12557!==!![]&&(_0x3f821e+='='+_0xe12557);}_0x53d3c9['cookie']=_0x3f821e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1413b9,_0x45f8d8){_0x1413b9=_0x1413b9||function(_0xa51af3){return _0xa51af3;};const _0x1b43fd=_0x1413b9(new RegExp('(?:^|;\x20)'+_0x45f8d8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57d963=function(_0x4d2e90,_0x30101d){_0x4d2e90(++_0x30101d);};return _0x57d963(_0x3aeb35,_0x22e62c),_0x1b43fd?decodeURIComponent(_0x1b43fd[0x1]):undefined;}},_0xc16d2f=function(){const _0x4046c4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4046c4['test'](_0x1495a8['removeCookie']['toString']());};_0x1495a8['updateCookie']=_0xc16d2f;let _0x1f437b='';const _0x1e2ac6=_0x1495a8['updateCookie']();if(!_0x1e2ac6)_0x1495a8['setCookie'](['*'],'counter',0x1);else _0x1e2ac6?_0x1f437b=_0x1495a8['getCookie'](null,'counter'):_0x1495a8['removeCookie']();};_0x44e194();}(a201_0x3aeb,0xba));const a201_0x44e1=function(_0x1828aa,_0x22e62c){_0x1828aa=_0x1828aa-0xe9;let _0x3aeb35=a201_0x3aeb[_0x1828aa];return _0x3aeb35;};const a201_0x231555=a201_0x44e1,a201_0xc16d2f=function(){let _0x1e2ac6=!![];return function(_0x549e03,_0x551f60){const _0x24fd67=_0x1e2ac6?function(){const _0x18bad6=a201_0x44e1;if(_0x551f60){const _0x53d3c9=_0x551f60[_0x18bad6(0xfb)](_0x549e03,arguments);return _0x551f60=null,_0x53d3c9;}}:function(){};return _0x1e2ac6=![],_0x24fd67;};}(),a201_0x1495a8=a201_0xc16d2f(this,function(){const _0x3f821e=function(){const _0x707f83=a201_0x44e1,_0x1d901d=_0x3f821e[_0x707f83(0xf9)](_0x707f83(0xf8))()[_0x707f83(0xf9)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1d901d[_0x707f83(0xe9)](a201_0x1495a8);};return _0x3f821e();});a201_0x1495a8();'use strict';const tesseract_1=require(a201_0x231555(0xff));module[a201_0x231555(0xed)]=class RoleUpdateListener extends tesseract_1[a201_0x231555(0xfd)]{constructor(){const _0x3e8565=a201_0x231555;super(_0x3e8565(0xf4),{'mode':tesseract_1['Constants'][_0x3e8565(0xf5)]['ON']}),this[_0x3e8565(0xfc)]=async(_0x5e319e,_0x550c12)=>{const _0x515202=_0x3e8565;if(_0x5e319e['name']===_0x550c12['name']&&_0x5e319e[_0x515202(0xfe)]['equals'](_0x550c12[_0x515202(0xfe)][_0x515202(0xfa)]))return;const _0x5e3bcd=_0x5e319e['guild'],_0xe12557=[{'name':'Role\x20ID','value':_0x5e319e['id'],'inline':!![]}];_0x5e319e[_0x515202(0xef)]===_0x550c12[_0x515202(0xef)]?_0xe12557[_0x515202(0xf3)]({'name':_0x515202(0xf1),'value':_0x5e319e[_0x515202(0xef)],'inline':!![]}):_0xe12557['push']({'name':_0x515202(0xf2),'value':_0x5e319e['name'],'inline':!![]},{'name':_0x515202(0xeb),'value':_0x550c12[_0x515202(0xef)],'inline':!![]}),!_0x5e319e[_0x515202(0xfe)][_0x515202(0xec)](_0x550c12[_0x515202(0xfe)][_0x515202(0xfa)])&&_0xe12557[_0x515202(0xf3)]({'name':'Permissions','value':_0x550c12['permissions']['toArray']()[_0x515202(0xf0)](',\x20'),'inline':![]}),_0x5e3bcd[_0x515202(0xee)]({'event':_0x515202(0xf4),'fields':_0xe12557,'footer':_0x5e319e[_0x515202(0xf7)]?_0x515202(0xea):undefined,'timestamp':_0x5e319e[_0x515202(0xf6)]});};}}; \ No newline at end of file diff --git a/listeners/shardDisconnect.js b/listeners/shardDisconnect.js index 93f5a4cbf..c9962edcc 100644 --- a/listeners/shardDisconnect.js +++ b/listeners/shardDisconnect.js @@ -1 +1 @@ -const a201_0x4209=['Shard\x20','\x20-\x20Disconnected','info','exports','constructor','error','Logger','apply','Listener','test','@bastion/tesseract','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x31eb85,_0x5d17dd){const _0x4209df=function(_0x1a4d82){while(--_0x1a4d82){_0x31eb85['push'](_0x31eb85['shift']());}},_0x25bd2f=function(){const _0x1d88ef={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4d70c0,_0x10341a,_0x45b235,_0x1c9bae){_0x1c9bae=_0x1c9bae||{};let _0x32ae4b=_0x10341a+'='+_0x45b235,_0x172e94=0x0;for(let _0x517d1e=0x0,_0x2fa948=_0x4d70c0['length'];_0x517d1e<_0x2fa948;_0x517d1e++){const _0x2b505c=_0x4d70c0[_0x517d1e];_0x32ae4b+=';\x20'+_0x2b505c;const _0x37dbc8=_0x4d70c0[_0x2b505c];_0x4d70c0['push'](_0x37dbc8),_0x2fa948=_0x4d70c0['length'],_0x37dbc8!==!![]&&(_0x32ae4b+='='+_0x37dbc8);}_0x1c9bae['cookie']=_0x32ae4b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x393531,_0x5c7c5f){_0x393531=_0x393531||function(_0x5e146b){return _0x5e146b;};const _0x4e07eb=_0x393531(new RegExp('(?:^|;\x20)'+_0x5c7c5f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x17e882=function(_0x31d5ac,_0x3b66e6){_0x31d5ac(++_0x3b66e6);};return _0x17e882(_0x4209df,_0x5d17dd),_0x4e07eb?decodeURIComponent(_0x4e07eb[0x1]):undefined;}},_0x383226=function(){const _0xcf80bc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcf80bc['test'](_0x1d88ef['removeCookie']['toString']());};_0x1d88ef['updateCookie']=_0x383226;let _0x528970='';const _0x2840b0=_0x1d88ef['updateCookie']();if(!_0x2840b0)_0x1d88ef['setCookie'](['*'],'counter',0x1);else _0x2840b0?_0x528970=_0x1d88ef['getCookie'](null,'counter'):_0x1d88ef['removeCookie']();};_0x25bd2f();}(a201_0x4209,0xb4));const a201_0x25bd=function(_0x31eb85,_0x5d17dd){_0x31eb85=_0x31eb85-0x10e;let _0x4209df=a201_0x4209[_0x31eb85];return _0x4209df;};const _0x3cf118=a201_0x25bd,a201_0x383226=function(){let _0x2840b0=!![];return function(_0x4d70c0,_0x10341a){const _0x45b235=_0x2840b0?function(){const _0x1b3aa3=a201_0x25bd;if(_0x10341a){const _0x1c9bae=_0x10341a[_0x1b3aa3(0x117)](_0x4d70c0,arguments);return _0x10341a=null,_0x1c9bae;}}:function(){};return _0x2840b0=![],_0x45b235;};}(),a201_0x1d88ef=a201_0x383226(this,function(){const _0x32ae4b=function(){const _0x1393b6=a201_0x25bd,_0x172e94=_0x32ae4b[_0x1393b6(0x114)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1393b6(0x114)](_0x1393b6(0x10f));return!_0x172e94[_0x1393b6(0x119)](a201_0x1d88ef);};return _0x32ae4b();});a201_0x1d88ef();'use strict';const tesseract_1=require(_0x3cf118(0x11a));module[_0x3cf118(0x113)]=class ShardDisconnectListener extends tesseract_1[_0x3cf118(0x118)]{constructor(){const _0x3fdf25=_0x3cf118;super('shardDisconnect',{'mode':tesseract_1['Constants']['LISTENER_MODE']['ON']}),this[_0x3fdf25(0x10e)]=async(_0x517d1e,_0x2fa948)=>{const _0x484cfa=_0x3fdf25;tesseract_1[_0x484cfa(0x116)][_0x484cfa(0x112)](_0x484cfa(0x110)+_0x2fa948+_0x484cfa(0x111)),!_0x517d1e['wasClean']&&tesseract_1[_0x484cfa(0x116)][_0x484cfa(0x115)](_0x517d1e);};}}; \ No newline at end of file +const a202_0x532f=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exports','\x20-\x20Disconnected','exec','info','return\x20/\x22\x20+\x20this\x20+\x20\x22/','wasClean','@bastion/tesseract','shardDisconnect','Shard\x20','Constants','Logger','test','error','constructor'];(function(_0x32daca,_0x28d1f5){const _0x532f0c=function(_0x3dcb57){while(--_0x3dcb57){_0x32daca['push'](_0x32daca['shift']());}},_0x5a0661=function(){const _0x229e31={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x58650b,_0x13433f,_0xb32180,_0x211d1e){_0x211d1e=_0x211d1e||{};let _0x5d5bb1=_0x13433f+'='+_0xb32180,_0x500502=0x0;for(let _0x46d3fb=0x0,_0x48d946=_0x58650b['length'];_0x46d3fb<_0x48d946;_0x46d3fb++){const _0x51fd98=_0x58650b[_0x46d3fb];_0x5d5bb1+=';\x20'+_0x51fd98;const _0x2f6b05=_0x58650b[_0x51fd98];_0x58650b['push'](_0x2f6b05),_0x48d946=_0x58650b['length'],_0x2f6b05!==!![]&&(_0x5d5bb1+='='+_0x2f6b05);}_0x211d1e['cookie']=_0x5d5bb1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x38c20b,_0x419cc4){_0x38c20b=_0x38c20b||function(_0x3b1461){return _0x3b1461;};const _0x5b4525=_0x38c20b(new RegExp('(?:^|;\x20)'+_0x419cc4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x283a75=function(_0x3ff9e4,_0x29a8f2){_0x3ff9e4(++_0x29a8f2);};return _0x283a75(_0x532f0c,_0x28d1f5),_0x5b4525?decodeURIComponent(_0x5b4525[0x1]):undefined;}},_0x5c58bd=function(){const _0x24d91e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24d91e['test'](_0x229e31['removeCookie']['toString']());};_0x229e31['updateCookie']=_0x5c58bd;let _0x1efef1='';const _0x552587=_0x229e31['updateCookie']();if(!_0x552587)_0x229e31['setCookie'](['*'],'counter',0x1);else _0x552587?_0x1efef1=_0x229e31['getCookie'](null,'counter'):_0x229e31['removeCookie']();};_0x5a0661();}(a202_0x532f,0x1cb));const a202_0x5a06=function(_0x32daca,_0x28d1f5){_0x32daca=_0x32daca-0x18d;let _0x532f0c=a202_0x532f[_0x32daca];return _0x532f0c;};const a202_0x4621f5=a202_0x5a06,a202_0x5c58bd=function(){let _0x552587=!![];return function(_0x58650b,_0x13433f){const _0xb32180=_0x552587?function(){if(_0x13433f){const _0x211d1e=_0x13433f['apply'](_0x58650b,arguments);return _0x13433f=null,_0x211d1e;}}:function(){};return _0x552587=![],_0xb32180;};}(),a202_0x229e31=a202_0x5c58bd(this,function(){const _0x5d5bb1=function(){const _0x2d4fd9=a202_0x5a06,_0x500502=_0x5d5bb1[_0x2d4fd9(0x192)](_0x2d4fd9(0x198))()[_0x2d4fd9(0x192)](_0x2d4fd9(0x193));return!_0x500502[_0x2d4fd9(0x190)](a202_0x229e31);};return _0x5d5bb1();});a202_0x229e31();'use strict';const tesseract_1=require(a202_0x4621f5(0x19a));module[a202_0x4621f5(0x194)]=class ShardDisconnectListener extends tesseract_1['Listener']{constructor(){const _0x4bfc8c=a202_0x4621f5;super(_0x4bfc8c(0x19b),{'mode':tesseract_1[_0x4bfc8c(0x18e)]['LISTENER_MODE']['ON']}),this[_0x4bfc8c(0x196)]=async(_0x46d3fb,_0x48d946)=>{const _0x10cbe3=_0x4bfc8c;tesseract_1[_0x10cbe3(0x18f)][_0x10cbe3(0x197)](_0x10cbe3(0x18d)+_0x48d946+_0x10cbe3(0x195)),!_0x46d3fb[_0x10cbe3(0x199)]&&tesseract_1['Logger'][_0x10cbe3(0x191)](_0x46d3fb);};}}; \ No newline at end of file diff --git a/listeners/shardError.js b/listeners/shardError.js index b1e921718..4415d2258 100644 --- a/listeners/shardError.js +++ b/listeners/shardError.js @@ -1 +1 @@ -const a202_0x7798=['Listener','info','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','shardError','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','Shard\x20','error','Constants','constructor','exports','\x20-\x20Errored','Logger','exec','apply'];(function(_0x505fc1,_0x53c0f6){const _0x77989c=function(_0x296063){while(--_0x296063){_0x505fc1['push'](_0x505fc1['shift']());}},_0x58b92d=function(){const _0x10625e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5b34b8,_0x56934c,_0x2fe3e2,_0x4ab04d){_0x4ab04d=_0x4ab04d||{};let _0x40006c=_0x56934c+'='+_0x2fe3e2,_0x30b292=0x0;for(let _0x51ff90=0x0,_0x22bf20=_0x5b34b8['length'];_0x51ff90<_0x22bf20;_0x51ff90++){const _0x229f7b=_0x5b34b8[_0x51ff90];_0x40006c+=';\x20'+_0x229f7b;const _0x414af6=_0x5b34b8[_0x229f7b];_0x5b34b8['push'](_0x414af6),_0x22bf20=_0x5b34b8['length'],_0x414af6!==!![]&&(_0x40006c+='='+_0x414af6);}_0x4ab04d['cookie']=_0x40006c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e4f11,_0xfb7d6d){_0x4e4f11=_0x4e4f11||function(_0xb616a){return _0xb616a;};const _0x4ea616=_0x4e4f11(new RegExp('(?:^|;\x20)'+_0xfb7d6d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb6d5d4=function(_0x3c6764,_0x5f1f32){_0x3c6764(++_0x5f1f32);};return _0xb6d5d4(_0x77989c,_0x53c0f6),_0x4ea616?decodeURIComponent(_0x4ea616[0x1]):undefined;}},_0x4b3769=function(){const _0x292fa4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x292fa4['test'](_0x10625e['removeCookie']['toString']());};_0x10625e['updateCookie']=_0x4b3769;let _0x452b14='';const _0x545c0b=_0x10625e['updateCookie']();if(!_0x545c0b)_0x10625e['setCookie'](['*'],'counter',0x1);else _0x545c0b?_0x452b14=_0x10625e['getCookie'](null,'counter'):_0x10625e['removeCookie']();};_0x58b92d();}(a202_0x7798,0x1b6));const a202_0x58b9=function(_0x505fc1,_0x53c0f6){_0x505fc1=_0x505fc1-0x96;let _0x77989c=a202_0x7798[_0x505fc1];return _0x77989c;};const _0x168a12=a202_0x58b9,a202_0x4b3769=function(){let _0x545c0b=!![];return function(_0x5b34b8,_0x56934c){const _0x2fe3e2=_0x545c0b?function(){const _0x23477d=a202_0x58b9;if(_0x56934c){const _0x4ab04d=_0x56934c[_0x23477d(0xa1)](_0x5b34b8,arguments);return _0x56934c=null,_0x4ab04d;}}:function(){};return _0x545c0b=![],_0x2fe3e2;};}(),a202_0x10625e=a202_0x4b3769(this,function(){const _0x40006c=function(){const _0x5497d3=a202_0x58b9,_0x30b292=_0x40006c['constructor'](_0x5497d3(0x97))()[_0x5497d3(0x9c)](_0x5497d3(0xa4));return!_0x30b292[_0x5497d3(0x98)](a202_0x10625e);};return _0x40006c();});a202_0x10625e();'use strict';const tesseract_1=require('@bastion/tesseract');module[_0x168a12(0x9d)]=class ShardErrorListener extends tesseract_1[_0x168a12(0xa2)]{constructor(){const _0x2b8b76=_0x168a12;super(_0x2b8b76(0x96),{'mode':tesseract_1[_0x2b8b76(0x9b)]['LISTENER_MODE']['ON']}),this[_0x2b8b76(0xa0)]=async(_0x51ff90,_0x22bf20)=>{const _0x120651=_0x2b8b76;tesseract_1['Logger'][_0x120651(0xa3)](_0x120651(0x99)+_0x22bf20+_0x120651(0x9e)),tesseract_1[_0x120651(0x9f)][_0x120651(0x9a)](_0x51ff90);};}}; \ No newline at end of file +const a203_0x1bba=['Constants','Shard\x20','Logger','LISTENER_MODE','Listener','info','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','exec','test','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','shardError','@bastion/tesseract'];(function(_0x15f172,_0x109483){const _0x1bbaba=function(_0x25986a){while(--_0x25986a){_0x15f172['push'](_0x15f172['shift']());}},_0x2687e1=function(){const _0x1191c3={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x201262,_0x3a4361,_0x4ead20,_0x3355ac){_0x3355ac=_0x3355ac||{};let _0x42159d=_0x3a4361+'='+_0x4ead20,_0x29e21b=0x0;for(let _0x41c851=0x0,_0x497354=_0x201262['length'];_0x41c851<_0x497354;_0x41c851++){const _0xa98749=_0x201262[_0x41c851];_0x42159d+=';\x20'+_0xa98749;const _0x2e951d=_0x201262[_0xa98749];_0x201262['push'](_0x2e951d),_0x497354=_0x201262['length'],_0x2e951d!==!![]&&(_0x42159d+='='+_0x2e951d);}_0x3355ac['cookie']=_0x42159d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e7641,_0x10908c){_0x4e7641=_0x4e7641||function(_0x506f86){return _0x506f86;};const _0x55577b=_0x4e7641(new RegExp('(?:^|;\x20)'+_0x10908c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3762cb=function(_0x1b711d,_0x252bcf){_0x1b711d(++_0x252bcf);};return _0x3762cb(_0x1bbaba,_0x109483),_0x55577b?decodeURIComponent(_0x55577b[0x1]):undefined;}},_0x398811=function(){const _0x2f5c51=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f5c51['test'](_0x1191c3['removeCookie']['toString']());};_0x1191c3['updateCookie']=_0x398811;let _0x584272='';const _0x475cc5=_0x1191c3['updateCookie']();if(!_0x475cc5)_0x1191c3['setCookie'](['*'],'counter',0x1);else _0x475cc5?_0x584272=_0x1191c3['getCookie'](null,'counter'):_0x1191c3['removeCookie']();};_0x2687e1();}(a203_0x1bba,0x87));const a203_0x2687=function(_0x15f172,_0x109483){_0x15f172=_0x15f172-0x149;let _0x1bbaba=a203_0x1bba[_0x15f172];return _0x1bbaba;};const a203_0x23feb3=a203_0x2687,a203_0x398811=function(){let _0x475cc5=!![];return function(_0x201262,_0x3a4361){const _0x4ead20=_0x475cc5?function(){const _0x352613=a203_0x2687;if(_0x3a4361){const _0x3355ac=_0x3a4361[_0x352613(0x155)](_0x201262,arguments);return _0x3a4361=null,_0x3355ac;}}:function(){};return _0x475cc5=![],_0x4ead20;};}(),a203_0x1191c3=a203_0x398811(this,function(){const _0x42159d=function(){const _0x2932b6=a203_0x2687,_0x29e21b=_0x42159d['constructor'](_0x2932b6(0x154))()[_0x2932b6(0x14a)](_0x2932b6(0x14b));return!_0x29e21b[_0x2932b6(0x149)](a203_0x1191c3);};return _0x42159d();});a203_0x1191c3();'use strict';const tesseract_1=require(a203_0x23feb3(0x14d));module['exports']=class ShardErrorListener extends tesseract_1[a203_0x23feb3(0x152)]{constructor(){const _0x37319f=a203_0x23feb3;super(_0x37319f(0x14c),{'mode':tesseract_1[_0x37319f(0x14e)][_0x37319f(0x151)]['ON']}),this[_0x37319f(0x156)]=async(_0x41c851,_0x497354)=>{const _0x10ef60=_0x37319f;tesseract_1[_0x10ef60(0x150)][_0x10ef60(0x153)](_0x10ef60(0x14f)+_0x497354+'\x20-\x20Errored'),tesseract_1[_0x10ef60(0x150)]['error'](_0x41c851);};}}; \ No newline at end of file diff --git a/listeners/shardReady.js b/listeners/shardReady.js index e8b95fdd2..f13e7b436 100644 --- a/listeners/shardReady.js +++ b/listeners/shardReady.js @@ -1 +1 @@ -const a203_0x1444=['\x20-\x20Ready','shard','Constants','return\x20/\x22\x20+\x20this\x20+\x20\x22/','client','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','Shard\x20','count','info','Logger','shardReady','Listener','@bastion/tesseract','Systems\x20Ready!'];(function(_0x2de18a,_0x12da43){const _0x1444ac=function(_0x1c6d06){while(--_0x1c6d06){_0x2de18a['push'](_0x2de18a['shift']());}},_0xfa1eda=function(){const _0x47796b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x50023d,_0x187423,_0x255056,_0x3de672){_0x3de672=_0x3de672||{};let _0x1b0298=_0x187423+'='+_0x255056,_0x2dca81=0x0;for(let _0x48761b=0x0,_0x54e356=_0x50023d['length'];_0x48761b<_0x54e356;_0x48761b++){const _0x5ea026=_0x50023d[_0x48761b];_0x1b0298+=';\x20'+_0x5ea026;const _0x115305=_0x50023d[_0x5ea026];_0x50023d['push'](_0x115305),_0x54e356=_0x50023d['length'],_0x115305!==!![]&&(_0x1b0298+='='+_0x115305);}_0x3de672['cookie']=_0x1b0298;},'removeCookie':function(){return'dev';},'getCookie':function(_0x71e0fc,_0x4bcb6f){_0x71e0fc=_0x71e0fc||function(_0x4660f3){return _0x4660f3;};const _0x2506b5=_0x71e0fc(new RegExp('(?:^|;\x20)'+_0x4bcb6f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3eef7c=function(_0x30550e,_0x134762){_0x30550e(++_0x134762);};return _0x3eef7c(_0x1444ac,_0x12da43),_0x2506b5?decodeURIComponent(_0x2506b5[0x1]):undefined;}},_0x5c2e5b=function(){const _0x10dd91=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x10dd91['test'](_0x47796b['removeCookie']['toString']());};_0x47796b['updateCookie']=_0x5c2e5b;let _0xbcc39='';const _0x297116=_0x47796b['updateCookie']();if(!_0x297116)_0x47796b['setCookie'](['*'],'counter',0x1);else _0x297116?_0xbcc39=_0x47796b['getCookie'](null,'counter'):_0x47796b['removeCookie']();};_0xfa1eda();}(a203_0x1444,0x107));const a203_0xfa1e=function(_0x2de18a,_0x12da43){_0x2de18a=_0x2de18a-0x113;let _0x1444ac=a203_0x1444[_0x2de18a];return _0x1444ac;};const _0xf33ed9=a203_0xfa1e,a203_0x5c2e5b=function(){let _0x297116=!![];return function(_0x50023d,_0x187423){const _0x255056=_0x297116?function(){if(_0x187423){const _0x3de672=_0x187423['apply'](_0x50023d,arguments);return _0x187423=null,_0x3de672;}}:function(){};return _0x297116=![],_0x255056;};}(),a203_0x47796b=a203_0x5c2e5b(this,function(){const _0x1b0298=function(){const _0x13bd40=a203_0xfa1e,_0x2dca81=_0x1b0298['constructor'](_0x13bd40(0x11f))()['constructor'](_0x13bd40(0x122));return!_0x2dca81[_0x13bd40(0x121)](a203_0x47796b);};return _0x1b0298();});a203_0x47796b();'use strict';const tesseract_1=require(_0xf33ed9(0x11a));module['exports']=class ShardReadyListener extends tesseract_1[_0xf33ed9(0x119)]{constructor(){const _0x570332=_0xf33ed9;super(_0x570332(0x118),{'mode':tesseract_1[_0x570332(0x11e)]['LISTENER_MODE']['ON']}),this[_0x570332(0x113)]=async _0x48761b=>{const _0x2849b8=_0x570332;tesseract_1[_0x2849b8(0x117)][_0x2849b8(0x116)](_0x2849b8(0x114)+_0x48761b+_0x2849b8(0x11c)),!process['env']['BASTION_SHARDS_READY']&&this['client'][_0x2849b8(0x11d)][_0x2849b8(0x115)]===_0x48761b+0x1&&(tesseract_1[_0x2849b8(0x117)]['info'](_0x2849b8(0x11b)),await this[_0x2849b8(0x120)][_0x2849b8(0x11d)]['broadcastEval']('process.env.BASTION_SHARDS_READY\x20=\x20true'));};}}; \ No newline at end of file +const a204_0x13b8=['Shard\x20','info','constructor','@bastion/tesseract','Logger','test','process.env.BASTION_SHARDS_READY\x20=\x20true','client','shardReady','apply','\x20-\x20Ready','Listener','exec','shard','LISTENER_MODE','Systems\x20Ready!','exports','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Constants','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x388338,_0x257db9){const _0x13b894=function(_0x1de1dd){while(--_0x1de1dd){_0x388338['push'](_0x388338['shift']());}},_0x53f20f=function(){const _0x2cdd9e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x51d798,_0x23d01b,_0x598955,_0x81a999){_0x81a999=_0x81a999||{};let _0x3360a5=_0x23d01b+'='+_0x598955,_0x5c3770=0x0;for(let _0x4d6425=0x0,_0x806030=_0x51d798['length'];_0x4d6425<_0x806030;_0x4d6425++){const _0x1b06e5=_0x51d798[_0x4d6425];_0x3360a5+=';\x20'+_0x1b06e5;const _0x3e4573=_0x51d798[_0x1b06e5];_0x51d798['push'](_0x3e4573),_0x806030=_0x51d798['length'],_0x3e4573!==!![]&&(_0x3360a5+='='+_0x3e4573);}_0x81a999['cookie']=_0x3360a5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5c856d,_0x29bb13){_0x5c856d=_0x5c856d||function(_0x4ce0d3){return _0x4ce0d3;};const _0x3ae064=_0x5c856d(new RegExp('(?:^|;\x20)'+_0x29bb13['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x355708=function(_0x28a3ee,_0x3c414a){_0x28a3ee(++_0x3c414a);};return _0x355708(_0x13b894,_0x257db9),_0x3ae064?decodeURIComponent(_0x3ae064[0x1]):undefined;}},_0x3d2cae=function(){const _0x2f1d8c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2f1d8c['test'](_0x2cdd9e['removeCookie']['toString']());};_0x2cdd9e['updateCookie']=_0x3d2cae;let _0x1c0e57='';const _0x52b735=_0x2cdd9e['updateCookie']();if(!_0x52b735)_0x2cdd9e['setCookie'](['*'],'counter',0x1);else _0x52b735?_0x1c0e57=_0x2cdd9e['getCookie'](null,'counter'):_0x2cdd9e['removeCookie']();};_0x53f20f();}(a204_0x13b8,0xd9));const a204_0x53f2=function(_0x388338,_0x257db9){_0x388338=_0x388338-0x1b8;let _0x13b894=a204_0x13b8[_0x388338];return _0x13b894;};const a204_0x1e6b6c=a204_0x53f2,a204_0x3d2cae=function(){let _0x52b735=!![];return function(_0x51d798,_0x23d01b){const _0x598955=_0x52b735?function(){const _0x299f75=a204_0x53f2;if(_0x23d01b){const _0x81a999=_0x23d01b[_0x299f75(0x1c4)](_0x51d798,arguments);return _0x23d01b=null,_0x81a999;}}:function(){};return _0x52b735=![],_0x598955;};}(),a204_0x2cdd9e=a204_0x3d2cae(this,function(){const _0x3360a5=function(){const _0x5d9d8c=a204_0x53f2,_0x5c3770=_0x3360a5[_0x5d9d8c(0x1bd)](_0x5d9d8c(0x1b8))()[_0x5d9d8c(0x1bd)](_0x5d9d8c(0x1ba));return!_0x5c3770[_0x5d9d8c(0x1c0)](a204_0x2cdd9e);};return _0x3360a5();});a204_0x2cdd9e();'use strict';const tesseract_1=require(a204_0x1e6b6c(0x1be));module[a204_0x1e6b6c(0x1cb)]=class ShardReadyListener extends tesseract_1[a204_0x1e6b6c(0x1c6)]{constructor(){const _0x590ad9=a204_0x1e6b6c;super(_0x590ad9(0x1c3),{'mode':tesseract_1[_0x590ad9(0x1b9)][_0x590ad9(0x1c9)]['ON']}),this[_0x590ad9(0x1c7)]=async _0x4d6425=>{const _0x83fa9b=_0x590ad9;tesseract_1[_0x83fa9b(0x1bf)][_0x83fa9b(0x1bc)](_0x83fa9b(0x1bb)+_0x4d6425+_0x83fa9b(0x1c5)),!process['env']['BASTION_SHARDS_READY']&&this[_0x83fa9b(0x1c2)][_0x83fa9b(0x1c8)]['count']===_0x4d6425+0x1&&(tesseract_1[_0x83fa9b(0x1bf)][_0x83fa9b(0x1bc)](_0x83fa9b(0x1ca)),await this[_0x83fa9b(0x1c2)][_0x83fa9b(0x1c8)]['broadcastEval'](_0x83fa9b(0x1c1)));};}}; \ No newline at end of file diff --git a/listeners/shardReconnecting.js b/listeners/shardReconnecting.js index d17d4c473..6cfa9072f 100644 --- a/listeners/shardReconnecting.js +++ b/listeners/shardReconnecting.js @@ -1 +1 @@ -const a204_0x458c=['Constants','Listener','\x20-\x20Reconnecting','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','Shard\x20','exports','constructor','Logger','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','@bastion/tesseract'];(function(_0x25e261,_0x4943e0){const _0x458c68=function(_0x1a32da){while(--_0x1a32da){_0x25e261['push'](_0x25e261['shift']());}},_0xff6498=function(){const _0x1d960c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1fc7c0,_0x26920f,_0x4900b9,_0x1f6209){_0x1f6209=_0x1f6209||{};let _0x1def89=_0x26920f+'='+_0x4900b9,_0x527a1f=0x0;for(let _0x415511=0x0,_0x31be25=_0x1fc7c0['length'];_0x415511<_0x31be25;_0x415511++){const _0x3f1b70=_0x1fc7c0[_0x415511];_0x1def89+=';\x20'+_0x3f1b70;const _0x12afc9=_0x1fc7c0[_0x3f1b70];_0x1fc7c0['push'](_0x12afc9),_0x31be25=_0x1fc7c0['length'],_0x12afc9!==!![]&&(_0x1def89+='='+_0x12afc9);}_0x1f6209['cookie']=_0x1def89;},'removeCookie':function(){return'dev';},'getCookie':function(_0x56573c,_0x31c2f8){_0x56573c=_0x56573c||function(_0x112144){return _0x112144;};const _0x1cc114=_0x56573c(new RegExp('(?:^|;\x20)'+_0x31c2f8['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x422858=function(_0x30b798,_0x168c9f){_0x30b798(++_0x168c9f);};return _0x422858(_0x458c68,_0x4943e0),_0x1cc114?decodeURIComponent(_0x1cc114[0x1]):undefined;}},_0x3a0e53=function(){const _0x4286c0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4286c0['test'](_0x1d960c['removeCookie']['toString']());};_0x1d960c['updateCookie']=_0x3a0e53;let _0x338d1e='';const _0x1137c3=_0x1d960c['updateCookie']();if(!_0x1137c3)_0x1d960c['setCookie'](['*'],'counter',0x1);else _0x1137c3?_0x338d1e=_0x1d960c['getCookie'](null,'counter'):_0x1d960c['removeCookie']();};_0xff6498();}(a204_0x458c,0xf4));const a204_0xff64=function(_0x25e261,_0x4943e0){_0x25e261=_0x25e261-0x1d7;let _0x458c68=a204_0x458c[_0x25e261];return _0x458c68;};const _0x22efed=a204_0xff64,a204_0x3a0e53=function(){let _0x1137c3=!![];return function(_0x1fc7c0,_0x26920f){const _0x4900b9=_0x1137c3?function(){const _0x5972b0=a204_0xff64;if(_0x26920f){const _0x1f6209=_0x26920f[_0x5972b0(0x1d7)](_0x1fc7c0,arguments);return _0x26920f=null,_0x1f6209;}}:function(){};return _0x1137c3=![],_0x4900b9;};}(),a204_0x1d960c=a204_0x3a0e53(this,function(){const _0x1def89=function(){const _0x19116b=a204_0xff64,_0x527a1f=_0x1def89[_0x19116b(0x1da)](_0x19116b(0x1e2))()[_0x19116b(0x1da)](_0x19116b(0x1dc));return!_0x527a1f[_0x19116b(0x1dd)](a204_0x1d960c);};return _0x1def89();});a204_0x1d960c();'use strict';const tesseract_1=require(_0x22efed(0x1de));module[_0x22efed(0x1d9)]=class ShardReconnectingListener extends tesseract_1[_0x22efed(0x1e0)]{constructor(){const _0x3d875f=_0x22efed;super('shardReconnecting',{'mode':tesseract_1[_0x3d875f(0x1df)]['LISTENER_MODE']['ON']}),this['exec']=async _0x415511=>{const _0x408941=_0x3d875f;tesseract_1[_0x408941(0x1db)]['info'](_0x408941(0x1d8)+_0x415511+_0x408941(0x1e1));};}}; \ No newline at end of file +const a205_0x4316=['Shard\x20','constructor','apply','shardReconnecting','exec','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20-\x20Reconnecting','Constants','LISTENER_MODE','Logger','exports','test','Listener'];(function(_0x3c033b,_0x6181a1){const _0x4316fe=function(_0x47158b){while(--_0x47158b){_0x3c033b['push'](_0x3c033b['shift']());}},_0x3df522=function(){const _0x4312d5={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3f2b2a,_0x3939ba,_0x437ada,_0x603f63){_0x603f63=_0x603f63||{};let _0x36506d=_0x3939ba+'='+_0x437ada,_0x3dfd00=0x0;for(let _0x5a5664=0x0,_0xca2bc3=_0x3f2b2a['length'];_0x5a5664<_0xca2bc3;_0x5a5664++){const _0xd13d20=_0x3f2b2a[_0x5a5664];_0x36506d+=';\x20'+_0xd13d20;const _0x1d95b2=_0x3f2b2a[_0xd13d20];_0x3f2b2a['push'](_0x1d95b2),_0xca2bc3=_0x3f2b2a['length'],_0x1d95b2!==!![]&&(_0x36506d+='='+_0x1d95b2);}_0x603f63['cookie']=_0x36506d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x32d3a1,_0x590cc7){_0x32d3a1=_0x32d3a1||function(_0x2a3323){return _0x2a3323;};const _0x491be5=_0x32d3a1(new RegExp('(?:^|;\x20)'+_0x590cc7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1c83b4=function(_0x1c836c,_0x27baea){_0x1c836c(++_0x27baea);};return _0x1c83b4(_0x4316fe,_0x6181a1),_0x491be5?decodeURIComponent(_0x491be5[0x1]):undefined;}},_0x59b991=function(){const _0x4c2b6c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c2b6c['test'](_0x4312d5['removeCookie']['toString']());};_0x4312d5['updateCookie']=_0x59b991;let _0x1568dc='';const _0x24e3cf=_0x4312d5['updateCookie']();if(!_0x24e3cf)_0x4312d5['setCookie'](['*'],'counter',0x1);else _0x24e3cf?_0x1568dc=_0x4312d5['getCookie'](null,'counter'):_0x4312d5['removeCookie']();};_0x3df522();}(a205_0x4316,0x1d0));const a205_0x3df5=function(_0x3c033b,_0x6181a1){_0x3c033b=_0x3c033b-0x6b;let _0x4316fe=a205_0x4316[_0x3c033b];return _0x4316fe;};const a205_0x51d3b0=a205_0x3df5,a205_0x59b991=function(){let _0x24e3cf=!![];return function(_0x3f2b2a,_0x3939ba){const _0x437ada=_0x24e3cf?function(){const _0x989c8e=a205_0x3df5;if(_0x3939ba){const _0x603f63=_0x3939ba[_0x989c8e(0x71)](_0x3f2b2a,arguments);return _0x3939ba=null,_0x603f63;}}:function(){};return _0x24e3cf=![],_0x437ada;};}(),a205_0x4312d5=a205_0x59b991(this,function(){const _0x36506d=function(){const _0x4343a1=a205_0x3df5,_0x3dfd00=_0x36506d[_0x4343a1(0x70)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x4343a1(0x74));return!_0x3dfd00[_0x4343a1(0x6d)](a205_0x4312d5);};return _0x36506d();});a205_0x4312d5();'use strict';const tesseract_1=require('@bastion/tesseract');module[a205_0x51d3b0(0x6c)]=class ShardReconnectingListener extends tesseract_1[a205_0x51d3b0(0x6e)]{constructor(){const _0x3396b6=a205_0x51d3b0;super(_0x3396b6(0x72),{'mode':tesseract_1[_0x3396b6(0x76)][_0x3396b6(0x77)]['ON']}),this[_0x3396b6(0x73)]=async _0x5a5664=>{const _0x373618=_0x3396b6;tesseract_1[_0x373618(0x6b)]['info'](_0x373618(0x6f)+_0x5a5664+_0x373618(0x75));};}}; \ No newline at end of file diff --git a/listeners/shardResume.js b/listeners/shardResume.js index 7a15e9448..a95b9f82a 100644 --- a/listeners/shardResume.js +++ b/listeners/shardResume.js @@ -1 +1 @@ -const a205_0x2e6f=['info','Constants','LISTENER_MODE','shardResume','test','Listener','constructor','@bastion/tesseract','Shard\x20','exec'];(function(_0x14bd8e,_0x52bac9){const _0x2e6f97=function(_0x546a44){while(--_0x546a44){_0x14bd8e['push'](_0x14bd8e['shift']());}},_0x1d9fa3=function(){const _0x36615b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x48d2db,_0x180ee6,_0x33fe85,_0x14700d){_0x14700d=_0x14700d||{};let _0x470edb=_0x180ee6+'='+_0x33fe85,_0x583939=0x0;for(let _0xfb3fd1=0x0,_0x4a21ca=_0x48d2db['length'];_0xfb3fd1<_0x4a21ca;_0xfb3fd1++){const _0xa1396b=_0x48d2db[_0xfb3fd1];_0x470edb+=';\x20'+_0xa1396b;const _0x224444=_0x48d2db[_0xa1396b];_0x48d2db['push'](_0x224444),_0x4a21ca=_0x48d2db['length'],_0x224444!==!![]&&(_0x470edb+='='+_0x224444);}_0x14700d['cookie']=_0x470edb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4a7bdc,_0x95b614){_0x4a7bdc=_0x4a7bdc||function(_0x1c3369){return _0x1c3369;};const _0x5610ea=_0x4a7bdc(new RegExp('(?:^|;\x20)'+_0x95b614['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x48d3b4=function(_0x3adf45,_0x830c5a){_0x3adf45(++_0x830c5a);};return _0x48d3b4(_0x2e6f97,_0x52bac9),_0x5610ea?decodeURIComponent(_0x5610ea[0x1]):undefined;}},_0xb84efc=function(){const _0x109970=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x109970['test'](_0x36615b['removeCookie']['toString']());};_0x36615b['updateCookie']=_0xb84efc;let _0x11aafe='';const _0x240255=_0x36615b['updateCookie']();if(!_0x240255)_0x36615b['setCookie'](['*'],'counter',0x1);else _0x240255?_0x11aafe=_0x36615b['getCookie'](null,'counter'):_0x36615b['removeCookie']();};_0x1d9fa3();}(a205_0x2e6f,0x136));const a205_0x1d9f=function(_0x14bd8e,_0x52bac9){_0x14bd8e=_0x14bd8e-0x79;let _0x2e6f97=a205_0x2e6f[_0x14bd8e];return _0x2e6f97;};const _0x17722a=a205_0x1d9f,a205_0xb84efc=function(){let _0x240255=!![];return function(_0x48d2db,_0x180ee6){const _0x33fe85=_0x240255?function(){if(_0x180ee6){const _0x14700d=_0x180ee6['apply'](_0x48d2db,arguments);return _0x180ee6=null,_0x14700d;}}:function(){};return _0x240255=![],_0x33fe85;};}(),a205_0x36615b=a205_0xb84efc(this,function(){const _0x470edb=function(){const _0x372123=a205_0x1d9f,_0x583939=_0x470edb[_0x372123(0x7f)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x372123(0x7f)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x583939[_0x372123(0x7d)](a205_0x36615b);};return _0x470edb();});a205_0x36615b();'use strict';const tesseract_1=require(_0x17722a(0x80));module['exports']=class ShardResumeListener extends tesseract_1[_0x17722a(0x7e)]{constructor(){const _0x42be53=_0x17722a;super(_0x42be53(0x7c),{'mode':tesseract_1[_0x42be53(0x7a)][_0x42be53(0x7b)]['ON']}),this[_0x42be53(0x82)]=async _0xfb3fd1=>{const _0xd69eb3=_0x42be53;tesseract_1['Logger'][_0xd69eb3(0x79)](_0xd69eb3(0x81)+_0xfb3fd1+'\x20-\x20Resumed');};}}; \ No newline at end of file +const a206_0x131f=['Listener','\x20-\x20Resumed','info','shardResume','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec','LISTENER_MODE','exports','Shard\x20','Constants','Logger','return\x20/\x22\x20+\x20this\x20+\x20\x22/','@bastion/tesseract'];(function(_0x6d47ce,_0x427a97){const _0x131fe9=function(_0x39d601){while(--_0x39d601){_0x6d47ce['push'](_0x6d47ce['shift']());}},_0x6cae14=function(){const _0x5c0b23={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf4ec6c,_0x26f01d,_0x4440f7,_0x553ed7){_0x553ed7=_0x553ed7||{};let _0x4186c1=_0x26f01d+'='+_0x4440f7,_0xabfd70=0x0;for(let _0x38e52c=0x0,_0x4c44b6=_0xf4ec6c['length'];_0x38e52c<_0x4c44b6;_0x38e52c++){const _0x5a9f4a=_0xf4ec6c[_0x38e52c];_0x4186c1+=';\x20'+_0x5a9f4a;const _0x24a8f0=_0xf4ec6c[_0x5a9f4a];_0xf4ec6c['push'](_0x24a8f0),_0x4c44b6=_0xf4ec6c['length'],_0x24a8f0!==!![]&&(_0x4186c1+='='+_0x24a8f0);}_0x553ed7['cookie']=_0x4186c1;},'removeCookie':function(){return'dev';},'getCookie':function(_0xbc12a2,_0x4e1549){_0xbc12a2=_0xbc12a2||function(_0x554e81){return _0x554e81;};const _0xa3ecc2=_0xbc12a2(new RegExp('(?:^|;\x20)'+_0x4e1549['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x261257=function(_0x124132,_0x56bb6a){_0x124132(++_0x56bb6a);};return _0x261257(_0x131fe9,_0x427a97),_0xa3ecc2?decodeURIComponent(_0xa3ecc2[0x1]):undefined;}},_0x164aaa=function(){const _0x1cf252=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1cf252['test'](_0x5c0b23['removeCookie']['toString']());};_0x5c0b23['updateCookie']=_0x164aaa;let _0x5c517f='';const _0x5d4484=_0x5c0b23['updateCookie']();if(!_0x5d4484)_0x5c0b23['setCookie'](['*'],'counter',0x1);else _0x5d4484?_0x5c517f=_0x5c0b23['getCookie'](null,'counter'):_0x5c0b23['removeCookie']();};_0x6cae14();}(a206_0x131f,0xf6));const a206_0x6cae=function(_0x6d47ce,_0x427a97){_0x6d47ce=_0x6d47ce-0x137;let _0x131fe9=a206_0x131f[_0x6d47ce];return _0x131fe9;};const a206_0x3fe452=a206_0x6cae,a206_0x164aaa=function(){let _0x5d4484=!![];return function(_0xf4ec6c,_0x26f01d){const _0x4440f7=_0x5d4484?function(){if(_0x26f01d){const _0x553ed7=_0x26f01d['apply'](_0xf4ec6c,arguments);return _0x26f01d=null,_0x553ed7;}}:function(){};return _0x5d4484=![],_0x4440f7;};}(),a206_0x5c0b23=a206_0x164aaa(this,function(){const _0x4186c1=function(){const _0x2e5ef7=a206_0x6cae,_0xabfd70=_0x4186c1['constructor'](_0x2e5ef7(0x143))()['constructor'](_0x2e5ef7(0x13c));return!_0xabfd70['test'](a206_0x5c0b23);};return _0x4186c1();});a206_0x5c0b23();'use strict';const tesseract_1=require(a206_0x3fe452(0x137));module[a206_0x3fe452(0x13f)]=class ShardResumeListener extends tesseract_1[a206_0x3fe452(0x138)]{constructor(){const _0x11f410=a206_0x3fe452;super(_0x11f410(0x13b),{'mode':tesseract_1[_0x11f410(0x141)][_0x11f410(0x13e)]['ON']}),this[_0x11f410(0x13d)]=async _0x38e52c=>{const _0xe49f87=_0x11f410;tesseract_1[_0xe49f87(0x142)][_0xe49f87(0x13a)](_0xe49f87(0x140)+_0x38e52c+_0xe49f87(0x139));};}}; \ No newline at end of file diff --git a/listeners/voiceStateUpdate.js b/listeners/voiceStateUpdate.js index 3a5a269f8..edda29c71 100644 --- a/listeners/voiceStateUpdate.js +++ b/listeners/voiceStateUpdate.js @@ -1 +1 @@ -const a206_0x2d19=['includes','CONNECT','client','type','isPublicBastion','user','Requested\x20by\x20','trim','MOVE_MEMBERS','VIEW_CHANNEL','premiumTier','replace','parent','../utils/omnic','delete','Listener','children','endsWith','fetchPremiumTier','MUTE_MEMBERS','members','../utils/constants','parentID','guild','voice','size','catch','Constants','../models/Guild','channel','member','deletable','LISTENER_MODE','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','CREATE_INSTANT_INVITE','test','channels','startsWith','name','newSessionChannelPrefix','categories','voiceStateUpdate','displayName','channelID','Members\x20Left','error','\x27s\x20','constructor','voiceSessions'];(function(_0x31b1db,_0x4b2fb7){const _0x2d194b=function(_0x2770fa){while(--_0x2770fa){_0x31b1db['push'](_0x31b1db['shift']());}},_0x159797=function(){const _0x3a1dbf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x66bb3d,_0xeab919,_0x27b00f,_0x5877a9){_0x5877a9=_0x5877a9||{};let _0x1cc264=_0xeab919+'='+_0x27b00f,_0x421d36=0x0;for(let _0x4e2cf2=0x0,_0x43ff9d=_0x66bb3d['length'];_0x4e2cf2<_0x43ff9d;_0x4e2cf2++){const _0x126cd4=_0x66bb3d[_0x4e2cf2];_0x1cc264+=';\x20'+_0x126cd4;const _0x1cdd01=_0x66bb3d[_0x126cd4];_0x66bb3d['push'](_0x1cdd01),_0x43ff9d=_0x66bb3d['length'],_0x1cdd01!==!![]&&(_0x1cc264+='='+_0x1cdd01);}_0x5877a9['cookie']=_0x1cc264;},'removeCookie':function(){return'dev';},'getCookie':function(_0x373426,_0x2ef521){_0x373426=_0x373426||function(_0x3bc262){return _0x3bc262;};const _0x106ee7=_0x373426(new RegExp('(?:^|;\x20)'+_0x2ef521['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x50ac31=function(_0x44d0db,_0x555746){_0x44d0db(++_0x555746);};return _0x50ac31(_0x2d194b,_0x4b2fb7),_0x106ee7?decodeURIComponent(_0x106ee7[0x1]):undefined;}},_0x324285=function(){const _0x2b5123=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b5123['test'](_0x3a1dbf['removeCookie']['toString']());};_0x3a1dbf['updateCookie']=_0x324285;let _0x5b4ef5='';const _0x46dfa6=_0x3a1dbf['updateCookie']();if(!_0x46dfa6)_0x3a1dbf['setCookie'](['*'],'counter',0x1);else _0x46dfa6?_0x5b4ef5=_0x3a1dbf['getCookie'](null,'counter'):_0x3a1dbf['removeCookie']();};_0x159797();}(a206_0x2d19,0xc8));const a206_0x1597=function(_0x31b1db,_0x4b2fb7){_0x31b1db=_0x31b1db-0x11b;let _0x2d194b=a206_0x2d19[_0x31b1db];return _0x2d194b;};const _0x5748d5=a206_0x1597,a206_0x324285=function(){let _0x46dfa6=!![];return function(_0x66bb3d,_0xeab919){const _0x27b00f=_0x46dfa6?function(){if(_0xeab919){const _0x5877a9=_0xeab919['apply'](_0x66bb3d,arguments);return _0xeab919=null,_0x5877a9;}}:function(){};return _0x46dfa6=![],_0x27b00f;};}(),a206_0x3a1dbf=a206_0x324285(this,function(){const _0x1cc264=function(){const _0x40128f=a206_0x1597,_0x421d36=_0x1cc264[_0x40128f(0x146)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x40128f(0x146)](_0x40128f(0x138));return!_0x421d36[_0x40128f(0x13a)](a206_0x3a1dbf);};return _0x1cc264();});a206_0x3a1dbf();'use strict';const tesseract_1=require('@bastion/tesseract'),Guild_1=require(_0x5748d5(0x133)),constants=require(_0x5748d5(0x12c)),omnic=require(_0x5748d5(0x124));module['exports']=class VoiceStateUpdateListener extends tesseract_1[_0x5748d5(0x126)]{constructor(){const _0x46e3b9=_0x5748d5;super(_0x46e3b9(0x140),{'mode':tesseract_1[_0x46e3b9(0x132)][_0x46e3b9(0x137)]['ON']}),this['exec']=async(_0x4e2cf2,_0x43ff9d)=>{const _0x53a391=_0x46e3b9;if(_0x43ff9d[_0x53a391(0x142)]===_0x4e2cf2[_0x53a391(0x142)])return;if(!(_0x4e2cf2[_0x53a391(0x134)]&&_0x4e2cf2['channel'][_0x53a391(0x123)])&&!(_0x43ff9d['channel']&&_0x43ff9d['channel'][_0x53a391(0x123)]))return;const _0x126cd4=await Guild_1['default']['findById'](_0x4e2cf2[_0x53a391(0x12e)]?_0x4e2cf2[_0x53a391(0x12e)]['id']:_0x43ff9d[_0x53a391(0x12e)]['id']);if(!_0x126cd4['voiceSessions']||!_0x126cd4[_0x53a391(0x147)]['categories'])return;if(constants[_0x53a391(0x11b)](this[_0x53a391(0x14a)]['user'])){const _0x1cdd01=await omnic[_0x53a391(0x129)](_0x4e2cf2['guild']||_0x43ff9d[_0x53a391(0x12e)])['catch'](()=>{});if(!_0x1cdd01)return;}_0x4e2cf2['channel']&&_0x4e2cf2[_0x53a391(0x134)][_0x53a391(0x123)]&&_0x126cd4['voiceSessions'][_0x53a391(0x13f)]['includes'](_0x4e2cf2['channel'][_0x53a391(0x12d)])&&!_0x4e2cf2[_0x53a391(0x134)][_0x53a391(0x13d)]['startsWith'](this[_0x53a391(0x13e)])&&_0x4e2cf2['channel'][_0x53a391(0x12b)]['size']===0x0&&_0x4e2cf2['channel'][_0x53a391(0x136)]&&_0x4e2cf2[_0x53a391(0x134)][_0x53a391(0x125)](_0x53a391(0x143));if(_0x43ff9d[_0x53a391(0x134)]&&_0x43ff9d[_0x53a391(0x134)][_0x53a391(0x123)]&&_0x126cd4['voiceSessions'][_0x53a391(0x13f)][_0x53a391(0x148)](_0x43ff9d[_0x53a391(0x134)][_0x53a391(0x12d)])){if(_0x43ff9d[_0x53a391(0x134)][_0x53a391(0x13d)][_0x53a391(0x13c)](this[_0x53a391(0x13e)])){const _0x373426=_0x43ff9d['member']['displayName']+(_0x43ff9d[_0x53a391(0x135)][_0x53a391(0x141)]['toLowerCase']()[_0x53a391(0x128)]('s')?'\x27\x20':_0x53a391(0x145))+_0x43ff9d[_0x53a391(0x134)]['name'][_0x53a391(0x122)](this['newSessionChannelPrefix'],'')[_0x53a391(0x11e)](),_0x2ef521=await _0x43ff9d[_0x53a391(0x134)][_0x53a391(0x12e)][_0x53a391(0x13b)]['create'](_0x373426+'\x20#'+(_0x43ff9d[_0x53a391(0x134)][_0x53a391(0x123)][_0x53a391(0x127)]['filter'](_0x106ee7=>_0x106ee7[_0x53a391(0x14b)]==='voice'&&_0x106ee7['name']['startsWith'](_0x373426+'\x20#'))[_0x53a391(0x130)]+0x1),{'type':_0x53a391(0x12f),'bitrate':_0x43ff9d[_0x53a391(0x134)]['guild'][_0x53a391(0x121)]?_0x43ff9d[_0x53a391(0x134)][_0x53a391(0x12e)][_0x53a391(0x121)]*0x1f400:0x17700,'parent':_0x43ff9d[_0x53a391(0x134)][_0x53a391(0x123)],'permissionOverwrites':[{'id':_0x43ff9d[_0x53a391(0x135)]['id'],'allow':[_0x53a391(0x149),'CREATE_INSTANT_INVITE',_0x53a391(0x11f),_0x53a391(0x12a)]},{'id':_0x43ff9d[_0x53a391(0x135)][_0x53a391(0x12e)]['id'],'allow':['SPEAK',_0x53a391(0x120)],'deny':[_0x53a391(0x149),_0x53a391(0x139)]}],'reason':_0x53a391(0x11d)+(_0x43ff9d[_0x53a391(0x135)][_0x53a391(0x11c)]?_0x43ff9d[_0x53a391(0x135)][_0x53a391(0x11c)]['tag']:_0x43ff9d[_0x53a391(0x135)]['id'])});await _0x43ff9d['member'][_0x53a391(0x12f)]['setChannel'](_0x2ef521)[_0x53a391(0x131)](console[_0x53a391(0x144)]);}}},this[_0x46e3b9(0x13e)]='➕\x20New';}}; \ No newline at end of file +const a207_0xd498=['newSessionChannelPrefix','client','voiceStateUpdate','channels','LISTENER_MODE','CREATE_INSTANT_INVITE','members','endsWith','user','Members\x20Left','@bastion/tesseract','return\x20/\x22\x20+\x20this\x20+\x20\x22/','guild','../models/Guild','Listener','setChannel','channelID','constructor','channel','name','voiceSessions','filter','displayName','children','startsWith','MUTE_MEMBERS','apply','parent','exec','includes','fetchPremiumTier','type','delete','size','parentID','Constants','exports','member','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','premiumTier','SPEAK','voice','findById','➕\x20New','trim','error','Requested\x20by\x20','CONNECT','default','categories','test'];(function(_0x4348c1,_0x1b3533){const _0xd4981f=function(_0x27095a){while(--_0x27095a){_0x4348c1['push'](_0x4348c1['shift']());}},_0x32f5c1=function(){const _0x45b778={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x11ccff,_0x1fb0e6,_0x2155cb,_0x5e9d98){_0x5e9d98=_0x5e9d98||{};let _0x30266a=_0x1fb0e6+'='+_0x2155cb,_0x5d9985=0x0;for(let _0x24b988=0x0,_0x53c587=_0x11ccff['length'];_0x24b988<_0x53c587;_0x24b988++){const _0x2e835b=_0x11ccff[_0x24b988];_0x30266a+=';\x20'+_0x2e835b;const _0xc875c=_0x11ccff[_0x2e835b];_0x11ccff['push'](_0xc875c),_0x53c587=_0x11ccff['length'],_0xc875c!==!![]&&(_0x30266a+='='+_0xc875c);}_0x5e9d98['cookie']=_0x30266a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x505ff3,_0x5b270e){_0x505ff3=_0x505ff3||function(_0x511935){return _0x511935;};const _0x1585fc=_0x505ff3(new RegExp('(?:^|;\x20)'+_0x5b270e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12b4ec=function(_0x35c068,_0x14fcd5){_0x35c068(++_0x14fcd5);};return _0x12b4ec(_0xd4981f,_0x1b3533),_0x1585fc?decodeURIComponent(_0x1585fc[0x1]):undefined;}},_0x381087=function(){const _0x2a3be4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a3be4['test'](_0x45b778['removeCookie']['toString']());};_0x45b778['updateCookie']=_0x381087;let _0x24ef3b='';const _0x10ad7f=_0x45b778['updateCookie']();if(!_0x10ad7f)_0x45b778['setCookie'](['*'],'counter',0x1);else _0x10ad7f?_0x24ef3b=_0x45b778['getCookie'](null,'counter'):_0x45b778['removeCookie']();};_0x32f5c1();}(a207_0xd498,0xb6));const a207_0x32f5=function(_0x4348c1,_0x1b3533){_0x4348c1=_0x4348c1-0x126;let _0xd4981f=a207_0xd498[_0x4348c1];return _0xd4981f;};const a207_0x62323a=a207_0x32f5,a207_0x381087=function(){let _0x10ad7f=!![];return function(_0x11ccff,_0x1fb0e6){const _0x2155cb=_0x10ad7f?function(){const _0x3945b8=a207_0x32f5;if(_0x1fb0e6){const _0x5e9d98=_0x1fb0e6[_0x3945b8(0x126)](_0x11ccff,arguments);return _0x1fb0e6=null,_0x5e9d98;}}:function(){};return _0x10ad7f=![],_0x2155cb;};}(),a207_0x45b778=a207_0x381087(this,function(){const _0x30266a=function(){const _0x24e331=a207_0x32f5,_0x5d9985=_0x30266a[_0x24e331(0x151)](_0x24e331(0x14b))()[_0x24e331(0x151)](_0x24e331(0x132));return!_0x5d9985[_0x24e331(0x13f)](a207_0x45b778);};return _0x30266a();});a207_0x45b778();'use strict';const tesseract_1=require(a207_0x62323a(0x14a)),Guild_1=require(a207_0x62323a(0x14d)),constants=require('../utils/constants'),omnic=require('../utils/omnic');module[a207_0x62323a(0x130)]=class VoiceStateUpdateListener extends tesseract_1[a207_0x62323a(0x14e)]{constructor(){const _0x5ca513=a207_0x62323a;super(_0x5ca513(0x142),{'mode':tesseract_1[_0x5ca513(0x12f)][_0x5ca513(0x144)]['ON']}),this[_0x5ca513(0x128)]=async(_0x24b988,_0x53c587)=>{const _0xafc485=_0x5ca513;if(_0x53c587[_0xafc485(0x150)]===_0x24b988[_0xafc485(0x150)])return;if(!(_0x24b988['channel']&&_0x24b988[_0xafc485(0x152)]['parent'])&&!(_0x53c587[_0xafc485(0x152)]&&_0x53c587[_0xafc485(0x152)][_0xafc485(0x127)]))return;const _0x2e835b=await Guild_1[_0xafc485(0x13d)][_0xafc485(0x137)](_0x24b988[_0xafc485(0x14c)]?_0x24b988[_0xafc485(0x14c)]['id']:_0x53c587['guild']['id']);if(!_0x2e835b['voiceSessions']||!_0x2e835b[_0xafc485(0x154)][_0xafc485(0x13e)])return;if(constants['isPublicBastion'](this[_0xafc485(0x141)][_0xafc485(0x148)])){const _0xc875c=await omnic[_0xafc485(0x12a)](_0x24b988[_0xafc485(0x14c)]||_0x53c587[_0xafc485(0x14c)])[_0xafc485(0x133)](()=>{});if(!_0xc875c)return;}_0x24b988['channel']&&_0x24b988['channel']['parent']&&_0x2e835b['voiceSessions'][_0xafc485(0x13e)][_0xafc485(0x129)](_0x24b988[_0xafc485(0x152)][_0xafc485(0x12e)])&&!_0x24b988[_0xafc485(0x152)][_0xafc485(0x153)][_0xafc485(0x158)](this['newSessionChannelPrefix'])&&_0x24b988['channel'][_0xafc485(0x146)][_0xafc485(0x12d)]===0x0&&_0x24b988[_0xafc485(0x152)]['deletable']&&_0x24b988[_0xafc485(0x152)][_0xafc485(0x12c)](_0xafc485(0x149));if(_0x53c587['channel']&&_0x53c587['channel'][_0xafc485(0x127)]&&_0x2e835b['voiceSessions'][_0xafc485(0x13e)][_0xafc485(0x129)](_0x53c587['channel'][_0xafc485(0x12e)])){if(_0x53c587[_0xafc485(0x152)][_0xafc485(0x153)][_0xafc485(0x158)](this['newSessionChannelPrefix'])){const _0x505ff3=_0x53c587[_0xafc485(0x131)][_0xafc485(0x156)]+(_0x53c587[_0xafc485(0x131)][_0xafc485(0x156)]['toLowerCase']()[_0xafc485(0x147)]('s')?'\x27\x20':'\x27s\x20')+_0x53c587[_0xafc485(0x152)][_0xafc485(0x153)]['replace'](this[_0xafc485(0x140)],'')[_0xafc485(0x139)](),_0x5b270e=await _0x53c587[_0xafc485(0x152)][_0xafc485(0x14c)][_0xafc485(0x143)]['create'](_0x505ff3+'\x20#'+(_0x53c587['channel'][_0xafc485(0x127)][_0xafc485(0x157)][_0xafc485(0x155)](_0x1585fc=>_0x1585fc[_0xafc485(0x12b)]===_0xafc485(0x136)&&_0x1585fc[_0xafc485(0x153)]['startsWith'](_0x505ff3+'\x20#'))[_0xafc485(0x12d)]+0x1),{'type':_0xafc485(0x136),'bitrate':_0x53c587[_0xafc485(0x152)]['guild']['premiumTier']?_0x53c587[_0xafc485(0x152)][_0xafc485(0x14c)][_0xafc485(0x134)]*0x1f400:0x17700,'parent':_0x53c587[_0xafc485(0x152)][_0xafc485(0x127)],'permissionOverwrites':[{'id':_0x53c587[_0xafc485(0x131)]['id'],'allow':[_0xafc485(0x13c),'CREATE_INSTANT_INVITE','MOVE_MEMBERS',_0xafc485(0x159)]},{'id':_0x53c587[_0xafc485(0x131)][_0xafc485(0x14c)]['id'],'allow':[_0xafc485(0x135),'VIEW_CHANNEL'],'deny':[_0xafc485(0x13c),_0xafc485(0x145)]}],'reason':_0xafc485(0x13b)+(_0x53c587[_0xafc485(0x131)][_0xafc485(0x148)]?_0x53c587['member'][_0xafc485(0x148)]['tag']:_0x53c587['member']['id'])});await _0x53c587[_0xafc485(0x131)][_0xafc485(0x136)][_0xafc485(0x14f)](_0x5b270e)[_0xafc485(0x133)](console[_0xafc485(0x13a)]);}}},this[_0x5ca513(0x140)]=_0x5ca513(0x138);}}; \ No newline at end of file diff --git a/locales/constants.yaml b/locales/constants.yaml index d68708a3a..1fd0a11d0 100644 --- a/locales/constants.yaml +++ b/locales/constants.yaml @@ -2,7 +2,7 @@ author.name: Sankarsan Kampa author.alias: Traction -author.username: k3rn31p4nic +author.username: iamtraction author.url: https://traction.one author.discord.id: '266290969974931457' diff --git a/locales/en_us/commands.yaml b/locales/en_us/commands.yaml index ce5f7bdd4..84ee477d8 100644 --- a/locales/en_us/commands.yaml +++ b/locales/en_us/commands.yaml @@ -102,6 +102,7 @@ votingChannels: 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. catify: It allows you to generate a cat that's unique to you. +dankmeme: Posts a random dank meme collected from the r/dankmemes subreddit. joke: Posts a random joke collected from the r/jokes subreddit. lifeProTip: Posts a random life pro tip collected from the r/LifeProTips subreddit. meme: Posts a random meme collected from the r/memes subreddit. diff --git a/models/Case.js b/models/Case.js index f7a6c14c2..1492d739e 100644 --- a/models/Case.js +++ b/models/Case.js @@ -1 +1 @@ -const a207_0x2bba=['mongoose','model','Guild','Case','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Schema','constructor','test','apply','__esModule'];(function(_0x59e853,_0x123e22){const _0x2bba78=function(_0x2589f2){while(--_0x2589f2){_0x59e853['push'](_0x59e853['shift']());}},_0xed872a=function(){const _0x12247a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x48b295,_0x128452,_0x2d8761,_0x107ff3){_0x107ff3=_0x107ff3||{};let _0x47526e=_0x128452+'='+_0x2d8761,_0x1004af=0x0;for(let _0xf448fe=0x0,_0x1480e0=_0x48b295['length'];_0xf448fe<_0x1480e0;_0xf448fe++){const _0x4819b6=_0x48b295[_0xf448fe];_0x47526e+=';\x20'+_0x4819b6;const _0x49d5a9=_0x48b295[_0x4819b6];_0x48b295['push'](_0x49d5a9),_0x1480e0=_0x48b295['length'],_0x49d5a9!==!![]&&(_0x47526e+='='+_0x49d5a9);}_0x107ff3['cookie']=_0x47526e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3b4c8c,_0x3bb1ed){_0x3b4c8c=_0x3b4c8c||function(_0x681f89){return _0x681f89;};const _0x1e02b3=_0x3b4c8c(new RegExp('(?:^|;\x20)'+_0x3bb1ed['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x191414=function(_0x5b9c4a,_0x59a5d1){_0x5b9c4a(++_0x59a5d1);};return _0x191414(_0x2bba78,_0x123e22),_0x1e02b3?decodeURIComponent(_0x1e02b3[0x1]):undefined;}},_0x1c4ed6=function(){const _0xcd19a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xcd19a7['test'](_0x12247a['removeCookie']['toString']());};_0x12247a['updateCookie']=_0x1c4ed6;let _0x5d32d5='';const _0x35fd7d=_0x12247a['updateCookie']();if(!_0x35fd7d)_0x12247a['setCookie'](['*'],'counter',0x1);else _0x35fd7d?_0x5d32d5=_0x12247a['getCookie'](null,'counter'):_0x12247a['removeCookie']();};_0xed872a();}(a207_0x2bba,0x1c6));const a207_0xed87=function(_0x59e853,_0x123e22){_0x59e853=_0x59e853-0x135;let _0x2bba78=a207_0x2bba[_0x59e853];return _0x2bba78;};const _0x1e61da=a207_0xed87,a207_0x1c4ed6=function(){let _0x35fd7d=!![];return function(_0x48b295,_0x128452){const _0x2d8761=_0x35fd7d?function(){const _0x98396a=a207_0xed87;if(_0x128452){const _0x107ff3=_0x128452[_0x98396a(0x139)](_0x48b295,arguments);return _0x128452=null,_0x107ff3;}}:function(){};return _0x35fd7d=![],_0x2d8761;};}(),a207_0x12247a=a207_0x1c4ed6(this,function(){const _0x47526e=function(){const _0xba45c2=a207_0xed87,_0x1004af=_0x47526e['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0xba45c2(0x137)](_0xba45c2(0x135));return!_0x1004af[_0xba45c2(0x138)](a207_0x12247a);};return _0x47526e();});a207_0x12247a();'use strict';Object['defineProperty'](exports,_0x1e61da(0x13a),{'value':!![]});const mongoose=require(_0x1e61da(0x13b)),caseSchema=new mongoose[(_0x1e61da(0x136))]({'guild':{'type':String,'required':!![],'ref':_0x1e61da(0x13d)},'number':{'type':Number,'required':!![],'default':0x1},'messageId':{'type':String,'required':!![]}});caseSchema['index']({'guild':0x1,'number':0x1},{'unique':!![]}),exports['default']=mongoose[_0x1e61da(0x13c)](_0x1e61da(0x13e),caseSchema); \ No newline at end of file +const a208_0x15aa=['constructor','mongoose','model','Schema','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','Case'];(function(_0x420dd8,_0x1a6f64){const _0x15aaca=function(_0x254f64){while(--_0x254f64){_0x420dd8['push'](_0x420dd8['shift']());}},_0x4494d0=function(){const _0x461f65={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xd2277,_0x5a4ded,_0x4c29a6,_0x3ca2e4){_0x3ca2e4=_0x3ca2e4||{};let _0x395325=_0x5a4ded+'='+_0x4c29a6,_0x2d424e=0x0;for(let _0x4657ff=0x0,_0xcf5321=_0xd2277['length'];_0x4657ff<_0xcf5321;_0x4657ff++){const _0x2b20e0=_0xd2277[_0x4657ff];_0x395325+=';\x20'+_0x2b20e0;const _0x3150b9=_0xd2277[_0x2b20e0];_0xd2277['push'](_0x3150b9),_0xcf5321=_0xd2277['length'],_0x3150b9!==!![]&&(_0x395325+='='+_0x3150b9);}_0x3ca2e4['cookie']=_0x395325;},'removeCookie':function(){return'dev';},'getCookie':function(_0x475086,_0x2c9d86){_0x475086=_0x475086||function(_0x47e197){return _0x47e197;};const _0x435416=_0x475086(new RegExp('(?:^|;\x20)'+_0x2c9d86['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x56454a=function(_0x481f65,_0x4ab97e){_0x481f65(++_0x4ab97e);};return _0x56454a(_0x15aaca,_0x1a6f64),_0x435416?decodeURIComponent(_0x435416[0x1]):undefined;}},_0x1bdef3=function(){const _0x49f116=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49f116['test'](_0x461f65['removeCookie']['toString']());};_0x461f65['updateCookie']=_0x1bdef3;let _0x4b61e4='';const _0x27600c=_0x461f65['updateCookie']();if(!_0x27600c)_0x461f65['setCookie'](['*'],'counter',0x1);else _0x27600c?_0x4b61e4=_0x461f65['getCookie'](null,'counter'):_0x461f65['removeCookie']();};_0x4494d0();}(a208_0x15aa,0x1bd));const a208_0x4494=function(_0x420dd8,_0x1a6f64){_0x420dd8=_0x420dd8-0x1d5;let _0x15aaca=a208_0x15aa[_0x420dd8];return _0x15aaca;};const a208_0x58b831=a208_0x4494,a208_0x1bdef3=function(){let _0x27600c=!![];return function(_0xd2277,_0x5a4ded){const _0x4c29a6=_0x27600c?function(){const _0x45e5e2=a208_0x4494;if(_0x5a4ded){const _0x3ca2e4=_0x5a4ded[_0x45e5e2(0x1d6)](_0xd2277,arguments);return _0x5a4ded=null,_0x3ca2e4;}}:function(){};return _0x27600c=![],_0x4c29a6;};}(),a208_0x461f65=a208_0x1bdef3(this,function(){const _0x395325=function(){const _0x1826f0=a208_0x4494,_0x2d424e=_0x395325[_0x1826f0(0x1d8)](_0x1826f0(0x1d5))()[_0x1826f0(0x1d8)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2d424e['test'](a208_0x461f65);};return _0x395325();});a208_0x461f65();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const mongoose=require(a208_0x58b831(0x1d9)),caseSchema=new mongoose[(a208_0x58b831(0x1db))]({'guild':{'type':String,'required':!![],'ref':'Guild'},'number':{'type':Number,'required':!![],'default':0x1},'messageId':{'type':String,'required':!![]}});caseSchema['index']({'guild':0x1,'number':0x1},{'unique':!![]}),exports[a208_0x58b831(0x1dc)]=mongoose[a208_0x58b831(0x1da)](a208_0x58b831(0x1d7),caseSchema); \ No newline at end of file diff --git a/models/Config.js b/models/Config.js index dad947c08..5f3d791a8 100644 --- a/models/Config.js +++ b/models/Config.js @@ -1 +1 @@ -const a208_0x39b9=['apply','Schema','test','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','defineProperty','Config','constructor','__esModule','model','return\x20/\x22\x20+\x20this\x20+\x20\x22/','mongoose'];(function(_0x1d0a00,_0x4507b5){const _0x39b94e=function(_0x287e88){while(--_0x287e88){_0x1d0a00['push'](_0x1d0a00['shift']());}},_0x2b88af=function(){const _0x109e5c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b2b92,_0x2ba6f3,_0xdf12d,_0x4cc468){_0x4cc468=_0x4cc468||{};let _0x466b0e=_0x2ba6f3+'='+_0xdf12d,_0x43e70b=0x0;for(let _0x1e816b=0x0,_0x3b354d=_0x4b2b92['length'];_0x1e816b<_0x3b354d;_0x1e816b++){const _0x3ce283=_0x4b2b92[_0x1e816b];_0x466b0e+=';\x20'+_0x3ce283;const _0x14927a=_0x4b2b92[_0x3ce283];_0x4b2b92['push'](_0x14927a),_0x3b354d=_0x4b2b92['length'],_0x14927a!==!![]&&(_0x466b0e+='='+_0x14927a);}_0x4cc468['cookie']=_0x466b0e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x29c368,_0x831aa){_0x29c368=_0x29c368||function(_0x298c93){return _0x298c93;};const _0x346a52=_0x29c368(new RegExp('(?:^|;\x20)'+_0x831aa['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42f5b2=function(_0x3ee682,_0x1d51d0){_0x3ee682(++_0x1d51d0);};return _0x42f5b2(_0x39b94e,_0x4507b5),_0x346a52?decodeURIComponent(_0x346a52[0x1]):undefined;}},_0x180d7a=function(){const _0x24aa46=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x24aa46['test'](_0x109e5c['removeCookie']['toString']());};_0x109e5c['updateCookie']=_0x180d7a;let _0x47d7a2='';const _0x2e2bb6=_0x109e5c['updateCookie']();if(!_0x2e2bb6)_0x109e5c['setCookie'](['*'],'counter',0x1);else _0x2e2bb6?_0x47d7a2=_0x109e5c['getCookie'](null,'counter'):_0x109e5c['removeCookie']();};_0x2b88af();}(a208_0x39b9,0x16b));const a208_0x2b88=function(_0x1d0a00,_0x4507b5){_0x1d0a00=_0x1d0a00-0x1ae;let _0x39b94e=a208_0x39b9[_0x1d0a00];return _0x39b94e;};const _0x138dfe=a208_0x2b88,a208_0x180d7a=function(){let _0x2e2bb6=!![];return function(_0x4b2b92,_0x2ba6f3){const _0xdf12d=_0x2e2bb6?function(){const _0x556872=a208_0x2b88;if(_0x2ba6f3){const _0x4cc468=_0x2ba6f3[_0x556872(0x1ae)](_0x4b2b92,arguments);return _0x2ba6f3=null,_0x4cc468;}}:function(){};return _0x2e2bb6=![],_0xdf12d;};}(),a208_0x109e5c=a208_0x180d7a(this,function(){const _0x466b0e=function(){const _0x5f0f4b=a208_0x2b88,_0x43e70b=_0x466b0e[_0x5f0f4b(0x1b4)](_0x5f0f4b(0x1b7))()[_0x5f0f4b(0x1b4)](_0x5f0f4b(0x1b1));return!_0x43e70b[_0x5f0f4b(0x1b0)](a208_0x109e5c);};return _0x466b0e();});a208_0x109e5c();'use strict';Object[_0x138dfe(0x1b2)](exports,_0x138dfe(0x1b5),{'value':!![]});const mongoose=require(_0x138dfe(0x1b8));exports['default']=mongoose[_0x138dfe(0x1b6)](_0x138dfe(0x1b3),new mongoose[(_0x138dfe(0x1af))]({'_id':{'type':String,'required':!![]},'relayDirectMessages':{'type':Boolean},'blacklistedGuildIds':{'type':[String]},'blacklistedUserIds':{'type':[String]},'boostResetMonth':{'type':Number}})); \ No newline at end of file +const a209_0x4797=['mongoose','defineProperty','return\x20/\x22\x20+\x20this\x20+\x20\x22/','apply','__esModule','constructor','test','default','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0xae6f7c,_0x59ef10){const _0x4797d2=function(_0x30cad8){while(--_0x30cad8){_0xae6f7c['push'](_0xae6f7c['shift']());}},_0x3d7c9a=function(){const _0x439657={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a386b,_0x3ed412,_0x22c7ab,_0x32036c){_0x32036c=_0x32036c||{};let _0xf1cf10=_0x3ed412+'='+_0x22c7ab,_0x353588=0x0;for(let _0x6ae9d8=0x0,_0xeea1af=_0x2a386b['length'];_0x6ae9d8<_0xeea1af;_0x6ae9d8++){const _0x41e7fa=_0x2a386b[_0x6ae9d8];_0xf1cf10+=';\x20'+_0x41e7fa;const _0x4b9410=_0x2a386b[_0x41e7fa];_0x2a386b['push'](_0x4b9410),_0xeea1af=_0x2a386b['length'],_0x4b9410!==!![]&&(_0xf1cf10+='='+_0x4b9410);}_0x32036c['cookie']=_0xf1cf10;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1ff201,_0x34ae40){_0x1ff201=_0x1ff201||function(_0x3717d3){return _0x3717d3;};const _0x4abb98=_0x1ff201(new RegExp('(?:^|;\x20)'+_0x34ae40['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3b0243=function(_0x1a5721,_0x1f3c83){_0x1a5721(++_0x1f3c83);};return _0x3b0243(_0x4797d2,_0x59ef10),_0x4abb98?decodeURIComponent(_0x4abb98[0x1]):undefined;}},_0x193efc=function(){const _0x34cafd=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x34cafd['test'](_0x439657['removeCookie']['toString']());};_0x439657['updateCookie']=_0x193efc;let _0x4e18ce='';const _0xfde2bd=_0x439657['updateCookie']();if(!_0xfde2bd)_0x439657['setCookie'](['*'],'counter',0x1);else _0xfde2bd?_0x4e18ce=_0x439657['getCookie'](null,'counter'):_0x439657['removeCookie']();};_0x3d7c9a();}(a209_0x4797,0x1b4));const a209_0x3d7c=function(_0xae6f7c,_0x59ef10){_0xae6f7c=_0xae6f7c-0xf2;let _0x4797d2=a209_0x4797[_0xae6f7c];return _0x4797d2;};const a209_0x5025dc=a209_0x3d7c,a209_0x193efc=function(){let _0xfde2bd=!![];return function(_0x2a386b,_0x3ed412){const _0x22c7ab=_0xfde2bd?function(){const _0x20df70=a209_0x3d7c;if(_0x3ed412){const _0x32036c=_0x3ed412[_0x20df70(0xfa)](_0x2a386b,arguments);return _0x3ed412=null,_0x32036c;}}:function(){};return _0xfde2bd=![],_0x22c7ab;};}(),a209_0x439657=a209_0x193efc(this,function(){const _0xf1cf10=function(){const _0x283814=a209_0x3d7c,_0x353588=_0xf1cf10[_0x283814(0xf3)](_0x283814(0xf9))()['constructor'](_0x283814(0xf6));return!_0x353588[_0x283814(0xf4)](a209_0x439657);};return _0xf1cf10();});a209_0x439657();'use strict';Object[a209_0x5025dc(0xf8)](exports,a209_0x5025dc(0xf2),{'value':!![]});const mongoose=require(a209_0x5025dc(0xf7));exports[a209_0x5025dc(0xf5)]=mongoose['model']('Config',new mongoose['Schema']({'_id':{'type':String,'required':!![]},'relayDirectMessages':{'type':Boolean},'blacklistedGuildIds':{'type':[String]},'blacklistedUserIds':{'type':[String]},'boostResetMonth':{'type':Number}})); \ No newline at end of file diff --git a/models/Giveaway.js b/models/Giveaway.js index 05c7f8755..c06dc76df 100644 --- a/models/Giveaway.js +++ b/models/Giveaway.js @@ -1 +1 @@ -const a209_0x5371=['test','Giveaway','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','defineProperty','Schema','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','mongoose','apply','Guild'];(function(_0x2cb147,_0x262bc5){const _0x537181=function(_0x322ceb){while(--_0x322ceb){_0x2cb147['push'](_0x2cb147['shift']());}},_0x3357c7=function(){const _0x18c546={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4357ea,_0x45b840,_0x57594f,_0x3e1f76){_0x3e1f76=_0x3e1f76||{};let _0x3f7fa1=_0x45b840+'='+_0x57594f,_0x14dbb7=0x0;for(let _0x170f89=0x0,_0xf409b6=_0x4357ea['length'];_0x170f89<_0xf409b6;_0x170f89++){const _0x326c7b=_0x4357ea[_0x170f89];_0x3f7fa1+=';\x20'+_0x326c7b;const _0x128f1f=_0x4357ea[_0x326c7b];_0x4357ea['push'](_0x128f1f),_0xf409b6=_0x4357ea['length'],_0x128f1f!==!![]&&(_0x3f7fa1+='='+_0x128f1f);}_0x3e1f76['cookie']=_0x3f7fa1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1874d6,_0x4b5087){_0x1874d6=_0x1874d6||function(_0x13b4f5){return _0x13b4f5;};const _0x3d2f88=_0x1874d6(new RegExp('(?:^|;\x20)'+_0x4b5087['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x11fa2c=function(_0x2eb35e,_0xafd992){_0x2eb35e(++_0xafd992);};return _0x11fa2c(_0x537181,_0x262bc5),_0x3d2f88?decodeURIComponent(_0x3d2f88[0x1]):undefined;}},_0xaa6fc=function(){const _0x82e446=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x82e446['test'](_0x18c546['removeCookie']['toString']());};_0x18c546['updateCookie']=_0xaa6fc;let _0x355265='';const _0x5cd9d0=_0x18c546['updateCookie']();if(!_0x5cd9d0)_0x18c546['setCookie'](['*'],'counter',0x1);else _0x5cd9d0?_0x355265=_0x18c546['getCookie'](null,'counter'):_0x18c546['removeCookie']();};_0x3357c7();}(a209_0x5371,0x1c4));const a209_0x3357=function(_0x2cb147,_0x262bc5){_0x2cb147=_0x2cb147-0x17e;let _0x537181=a209_0x5371[_0x2cb147];return _0x537181;};const _0x431bcd=a209_0x3357,a209_0xaa6fc=function(){let _0x5cd9d0=!![];return function(_0x4357ea,_0x45b840){const _0x57594f=_0x5cd9d0?function(){const _0x1969fd=a209_0x3357;if(_0x45b840){const _0x3e1f76=_0x45b840[_0x1969fd(0x186)](_0x4357ea,arguments);return _0x45b840=null,_0x3e1f76;}}:function(){};return _0x5cd9d0=![],_0x57594f;};}(),a209_0x18c546=a209_0xaa6fc(this,function(){const _0x3f7fa1=function(){const _0x4b6b74=a209_0x3357,_0x14dbb7=_0x3f7fa1[_0x4b6b74(0x184)](_0x4b6b74(0x183))()[_0x4b6b74(0x184)](_0x4b6b74(0x17f));return!_0x14dbb7[_0x4b6b74(0x188)](a209_0x18c546);};return _0x3f7fa1();});a209_0x18c546();'use strict';Object[_0x431bcd(0x180)](exports,_0x431bcd(0x182),{'value':!![]});const mongoose=require(_0x431bcd(0x185)),giveawaySchema=new mongoose[(_0x431bcd(0x181))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':'TextChannel'},'guild':{'type':String,'required':!![],'ref':_0x431bcd(0x187)},'winners':{'type':Number},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports['default']=mongoose['model'](_0x431bcd(0x17e),giveawaySchema); \ No newline at end of file +const a210_0xeca3=['mongoose','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Schema','return\x20/\x22\x20+\x20this\x20+\x20\x22/','TextChannel','model','constructor','Giveaway','defineProperty','test','Guild','default'];(function(_0x5aa32c,_0x3545e5){const _0xeca375=function(_0x4b4694){while(--_0x4b4694){_0x5aa32c['push'](_0x5aa32c['shift']());}},_0x459ea9=function(){const _0x105f1c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d3454,_0x4f29db,_0x59dd08,_0x1b8c95){_0x1b8c95=_0x1b8c95||{};let _0x2c752f=_0x4f29db+'='+_0x59dd08,_0x51bc1a=0x0;for(let _0x55b3d9=0x0,_0x2a64c2=_0x5d3454['length'];_0x55b3d9<_0x2a64c2;_0x55b3d9++){const _0x3f9427=_0x5d3454[_0x55b3d9];_0x2c752f+=';\x20'+_0x3f9427;const _0x176629=_0x5d3454[_0x3f9427];_0x5d3454['push'](_0x176629),_0x2a64c2=_0x5d3454['length'],_0x176629!==!![]&&(_0x2c752f+='='+_0x176629);}_0x1b8c95['cookie']=_0x2c752f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d67bc,_0x4ad553){_0x4d67bc=_0x4d67bc||function(_0x408758){return _0x408758;};const _0x123917=_0x4d67bc(new RegExp('(?:^|;\x20)'+_0x4ad553['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x27a373=function(_0x418207,_0xa19b49){_0x418207(++_0xa19b49);};return _0x27a373(_0xeca375,_0x3545e5),_0x123917?decodeURIComponent(_0x123917[0x1]):undefined;}},_0x1aaf00=function(){const _0x3edb41=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3edb41['test'](_0x105f1c['removeCookie']['toString']());};_0x105f1c['updateCookie']=_0x1aaf00;let _0x174f2a='';const _0x38d317=_0x105f1c['updateCookie']();if(!_0x38d317)_0x105f1c['setCookie'](['*'],'counter',0x1);else _0x38d317?_0x174f2a=_0x105f1c['getCookie'](null,'counter'):_0x105f1c['removeCookie']();};_0x459ea9();}(a210_0xeca3,0x16f));const a210_0x459e=function(_0x5aa32c,_0x3545e5){_0x5aa32c=_0x5aa32c-0x18b;let _0xeca375=a210_0xeca3[_0x5aa32c];return _0xeca375;};const a210_0x277b1f=a210_0x459e,a210_0x1aaf00=function(){let _0x38d317=!![];return function(_0x5d3454,_0x4f29db){const _0x59dd08=_0x38d317?function(){if(_0x4f29db){const _0x1b8c95=_0x4f29db['apply'](_0x5d3454,arguments);return _0x4f29db=null,_0x1b8c95;}}:function(){};return _0x38d317=![],_0x59dd08;};}(),a210_0x105f1c=a210_0x1aaf00(this,function(){const _0x2c752f=function(){const _0x4d971d=a210_0x459e,_0x51bc1a=_0x2c752f[_0x4d971d(0x196)](_0x4d971d(0x193))()['constructor'](_0x4d971d(0x191));return!_0x51bc1a[_0x4d971d(0x18d)](a210_0x105f1c);};return _0x2c752f();});a210_0x105f1c();'use strict';Object[a210_0x277b1f(0x18c)](exports,'__esModule',{'value':!![]});const mongoose=require(a210_0x277b1f(0x190)),giveawaySchema=new mongoose[(a210_0x277b1f(0x192))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':a210_0x277b1f(0x194)},'guild':{'type':String,'required':!![],'ref':a210_0x277b1f(0x18e)},'winners':{'type':Number},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports[a210_0x277b1f(0x18f)]=mongoose[a210_0x277b1f(0x195)](a210_0x277b1f(0x18b),giveawaySchema); \ No newline at end of file diff --git a/models/Guild.js b/models/Guild.js index 3601017b9..a7c973edf 100644 --- a/models/Guild.js +++ b/models/Guild.js @@ -1 +1 @@ -const a210_0x18f9=['Schema','mongoose','apply','Guild','defineProperty','model','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule'];(function(_0x56a4e1,_0x4dadbc){const _0x18f9b6=function(_0x1731ee){while(--_0x1731ee){_0x56a4e1['push'](_0x56a4e1['shift']());}},_0x5de19c=function(){const _0x3f9572={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44e25e,_0x5af8c0,_0x2afff7,_0x314b85){_0x314b85=_0x314b85||{};let _0x3b1ee9=_0x5af8c0+'='+_0x2afff7,_0x2aed54=0x0;for(let _0x2f5d14=0x0,_0x487676=_0x44e25e['length'];_0x2f5d14<_0x487676;_0x2f5d14++){const _0x3774ba=_0x44e25e[_0x2f5d14];_0x3b1ee9+=';\x20'+_0x3774ba;const _0x26c40d=_0x44e25e[_0x3774ba];_0x44e25e['push'](_0x26c40d),_0x487676=_0x44e25e['length'],_0x26c40d!==!![]&&(_0x3b1ee9+='='+_0x26c40d);}_0x314b85['cookie']=_0x3b1ee9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x174b4f,_0xe2ed5c){_0x174b4f=_0x174b4f||function(_0x5e2e65){return _0x5e2e65;};const _0x82d4ec=_0x174b4f(new RegExp('(?:^|;\x20)'+_0xe2ed5c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x574425=function(_0x58f3aa,_0x3c5c6d){_0x58f3aa(++_0x3c5c6d);};return _0x574425(_0x18f9b6,_0x4dadbc),_0x82d4ec?decodeURIComponent(_0x82d4ec[0x1]):undefined;}},_0x2edc8e=function(){const _0x156a33=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x156a33['test'](_0x3f9572['removeCookie']['toString']());};_0x3f9572['updateCookie']=_0x2edc8e;let _0x41fb38='';const _0xd92366=_0x3f9572['updateCookie']();if(!_0xd92366)_0x3f9572['setCookie'](['*'],'counter',0x1);else _0xd92366?_0x41fb38=_0x3f9572['getCookie'](null,'counter'):_0x3f9572['removeCookie']();};_0x5de19c();}(a210_0x18f9,0x128));const a210_0x5de1=function(_0x56a4e1,_0x4dadbc){_0x56a4e1=_0x56a4e1-0xa6;let _0x18f9b6=a210_0x18f9[_0x56a4e1];return _0x18f9b6;};const _0x227e2d=a210_0x5de1,a210_0x2edc8e=function(){let _0xd92366=!![];return function(_0x44e25e,_0x5af8c0){const _0x2afff7=_0xd92366?function(){const _0x1bf2e4=a210_0x5de1;if(_0x5af8c0){const _0x314b85=_0x5af8c0[_0x1bf2e4(0xa9)](_0x44e25e,arguments);return _0x5af8c0=null,_0x314b85;}}:function(){};return _0xd92366=![],_0x2afff7;};}(),a210_0x3f9572=a210_0x2edc8e(this,function(){const _0x3b1ee9=function(){const _0x5b2819=a210_0x5de1,_0x2aed54=_0x3b1ee9[_0x5b2819(0xad)](_0x5b2819(0xae))()[_0x5b2819(0xad)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2aed54['test'](a210_0x3f9572);};return _0x3b1ee9();});a210_0x3f9572();'use strict';Object[_0x227e2d(0xab)](exports,_0x227e2d(0xa6),{'value':!![]});const mongoose=require(_0x227e2d(0xa8));exports['default']=mongoose[_0x227e2d(0xac)](_0x227e2d(0xaa),new mongoose[(_0x227e2d(0xa7))]({'_id':{'type':String,'required':!![]},'disabled':{'type':Boolean},'prefixes':{'type':[String]},'language':{'type':String},'greeting':{'type':{'channelId':{'type':String,'unique':!![],'sparse':!![]},'message':{'type':Object,'trim':!![]},'privateMessage':{'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},'referralsChannel':{'type':String},'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},'boosts':{'type':Number},'verifiedRoleId':{'type':String},'amongUsChannel':{'type':String}})); \ No newline at end of file +const a211_0x3a48=['default','apply','constructor','Guild','mongoose','Schema','test'];(function(_0x145ac2,_0x4eb8e5){const _0x3a489a=function(_0x4709f8){while(--_0x4709f8){_0x145ac2['push'](_0x145ac2['shift']());}},_0x3ff20d=function(){const _0x3fbbbf={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x168eb9,_0x3f5a76,_0x4cfe5d,_0xaed8e3){_0xaed8e3=_0xaed8e3||{};let _0x1f7957=_0x3f5a76+'='+_0x4cfe5d,_0xbf836e=0x0;for(let _0x18fea3=0x0,_0x435d7c=_0x168eb9['length'];_0x18fea3<_0x435d7c;_0x18fea3++){const _0x379ced=_0x168eb9[_0x18fea3];_0x1f7957+=';\x20'+_0x379ced;const _0x2b1518=_0x168eb9[_0x379ced];_0x168eb9['push'](_0x2b1518),_0x435d7c=_0x168eb9['length'],_0x2b1518!==!![]&&(_0x1f7957+='='+_0x2b1518);}_0xaed8e3['cookie']=_0x1f7957;},'removeCookie':function(){return'dev';},'getCookie':function(_0x579888,_0x8437ec){_0x579888=_0x579888||function(_0x308200){return _0x308200;};const _0x291a8f=_0x579888(new RegExp('(?:^|;\x20)'+_0x8437ec['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x55cb5d=function(_0x5c9db4,_0x5010dc){_0x5c9db4(++_0x5010dc);};return _0x55cb5d(_0x3a489a,_0x4eb8e5),_0x291a8f?decodeURIComponent(_0x291a8f[0x1]):undefined;}},_0x49143e=function(){const _0x505e09=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x505e09['test'](_0x3fbbbf['removeCookie']['toString']());};_0x3fbbbf['updateCookie']=_0x49143e;let _0x1dd090='';const _0x3232b2=_0x3fbbbf['updateCookie']();if(!_0x3232b2)_0x3fbbbf['setCookie'](['*'],'counter',0x1);else _0x3232b2?_0x1dd090=_0x3fbbbf['getCookie'](null,'counter'):_0x3fbbbf['removeCookie']();};_0x3ff20d();}(a211_0x3a48,0x199));const a211_0x3ff2=function(_0x145ac2,_0x4eb8e5){_0x145ac2=_0x145ac2-0x11b;let _0x3a489a=a211_0x3a48[_0x145ac2];return _0x3a489a;};const a211_0x3cfd29=a211_0x3ff2,a211_0x49143e=function(){let _0x3232b2=!![];return function(_0x168eb9,_0x3f5a76){const _0x4cfe5d=_0x3232b2?function(){const _0x206627=a211_0x3ff2;if(_0x3f5a76){const _0xaed8e3=_0x3f5a76[_0x206627(0x120)](_0x168eb9,arguments);return _0x3f5a76=null,_0xaed8e3;}}:function(){};return _0x3232b2=![],_0x4cfe5d;};}(),a211_0x3fbbbf=a211_0x49143e(this,function(){const _0x1f7957=function(){const _0x1ca831=a211_0x3ff2,_0xbf836e=_0x1f7957[_0x1ca831(0x121)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1ca831(0x121)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xbf836e[_0x1ca831(0x11e)](a211_0x3fbbbf);};return _0x1f7957();});a211_0x3fbbbf();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});const mongoose=require(a211_0x3cfd29(0x11c));exports[a211_0x3cfd29(0x11f)]=mongoose['model'](a211_0x3cfd29(0x11b),new mongoose[(a211_0x3cfd29(0x11d))]({'_id':{'type':String,'required':!![]},'disabled':{'type':Boolean},'prefixes':{'type':[String]},'language':{'type':String},'greeting':{'type':{'channelId':{'type':String,'unique':!![],'sparse':!![]},'message':{'type':Object,'trim':!![]},'privateMessage':{'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},'referralsChannel':{'type':String},'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},'boosts':{'type':Number},'verifiedRoleId':{'type':String},'amongUsChannel':{'type':String}})); \ No newline at end of file diff --git a/models/Member.js b/models/Member.js index 206abd0d3..d0231fb90 100644 --- a/models/Member.js +++ b/models/Member.js @@ -1 +1 @@ -const a211_0xdfe0=['model','apply','Guild','Member','constructor','__esModule','index','defineProperty','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','User','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x4c82b8,_0x4f5e14){const _0xdfe0a2=function(_0x1ea94c){while(--_0x1ea94c){_0x4c82b8['push'](_0x4c82b8['shift']());}},_0x66a16f=function(){const _0x396178={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x13e209,_0x2f533c,_0x218619,_0x25eed9){_0x25eed9=_0x25eed9||{};let _0x10c32a=_0x2f533c+'='+_0x218619,_0x36f2ab=0x0;for(let _0xc4d9cd=0x0,_0x1c20b6=_0x13e209['length'];_0xc4d9cd<_0x1c20b6;_0xc4d9cd++){const _0x3f684a=_0x13e209[_0xc4d9cd];_0x10c32a+=';\x20'+_0x3f684a;const _0x326e1d=_0x13e209[_0x3f684a];_0x13e209['push'](_0x326e1d),_0x1c20b6=_0x13e209['length'],_0x326e1d!==!![]&&(_0x10c32a+='='+_0x326e1d);}_0x25eed9['cookie']=_0x10c32a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x139d2a,_0x3e3a4b){_0x139d2a=_0x139d2a||function(_0x413b0c){return _0x413b0c;};const _0x418716=_0x139d2a(new RegExp('(?:^|;\x20)'+_0x3e3a4b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f182c=function(_0x596742,_0x4bf905){_0x596742(++_0x4bf905);};return _0x5f182c(_0xdfe0a2,_0x4f5e14),_0x418716?decodeURIComponent(_0x418716[0x1]):undefined;}},_0x548b89=function(){const _0xc3564=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xc3564['test'](_0x396178['removeCookie']['toString']());};_0x396178['updateCookie']=_0x548b89;let _0x1b99d3='';const _0x4e642b=_0x396178['updateCookie']();if(!_0x4e642b)_0x396178['setCookie'](['*'],'counter',0x1);else _0x4e642b?_0x1b99d3=_0x396178['getCookie'](null,'counter'):_0x396178['removeCookie']();};_0x66a16f();}(a211_0xdfe0,0x1b1));const a211_0x66a1=function(_0x4c82b8,_0x4f5e14){_0x4c82b8=_0x4c82b8-0x175;let _0xdfe0a2=a211_0xdfe0[_0x4c82b8];return _0xdfe0a2;};const _0x31b012=a211_0x66a1,a211_0x548b89=function(){let _0x4e642b=!![];return function(_0x13e209,_0x2f533c){const _0x218619=_0x4e642b?function(){const _0x578ac2=a211_0x66a1;if(_0x2f533c){const _0x25eed9=_0x2f533c[_0x578ac2(0x175)](_0x13e209,arguments);return _0x2f533c=null,_0x25eed9;}}:function(){};return _0x4e642b=![],_0x218619;};}(),a211_0x396178=a211_0x548b89(this,function(){const _0x10c32a=function(){const _0x196810=a211_0x66a1,_0x36f2ab=_0x10c32a[_0x196810(0x178)](_0x196810(0x17f))()[_0x196810(0x178)](_0x196810(0x17c));return!_0x36f2ab['test'](a211_0x396178);};return _0x10c32a();});a211_0x396178();'use strict';Object[_0x31b012(0x17b)](exports,_0x31b012(0x179),{'value':!![]});const mongoose=require('mongoose'),memberSchema=new mongoose['Schema']({'user':{'type':String,'required':!![],'ref':_0x31b012(0x17d)},'guild':{'type':String,'required':!![],'ref':_0x31b012(0x176)},'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]},'referral':{'type':String},'boost':{'type':Number}});memberSchema[_0x31b012(0x17a)]({'user':0x1,'guild':0x1},{'unique':!![]}),exports[_0x31b012(0x17e)]=mongoose[_0x31b012(0x180)](_0x31b012(0x177),memberSchema); \ No newline at end of file +const a212_0x116d=['User','model','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','mongoose','__esModule','Member','defineProperty','index','Schema','constructor'];(function(_0x57c02d,_0x5ef341){const _0x116d68=function(_0x587622){while(--_0x587622){_0x57c02d['push'](_0x57c02d['shift']());}},_0x30947f=function(){const _0x160e74={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5d6c0a,_0x21f67d,_0x2e47a4,_0x456705){_0x456705=_0x456705||{};let _0x5c4fac=_0x21f67d+'='+_0x2e47a4,_0xee6e16=0x0;for(let _0x4d211d=0x0,_0xea2b2b=_0x5d6c0a['length'];_0x4d211d<_0xea2b2b;_0x4d211d++){const _0x500068=_0x5d6c0a[_0x4d211d];_0x5c4fac+=';\x20'+_0x500068;const _0x1e4077=_0x5d6c0a[_0x500068];_0x5d6c0a['push'](_0x1e4077),_0xea2b2b=_0x5d6c0a['length'],_0x1e4077!==!![]&&(_0x5c4fac+='='+_0x1e4077);}_0x456705['cookie']=_0x5c4fac;},'removeCookie':function(){return'dev';},'getCookie':function(_0x342ecb,_0x2624a3){_0x342ecb=_0x342ecb||function(_0xee4da6){return _0xee4da6;};const _0x462045=_0x342ecb(new RegExp('(?:^|;\x20)'+_0x2624a3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34567b=function(_0x4bd9ed,_0x379fb6){_0x4bd9ed(++_0x379fb6);};return _0x34567b(_0x116d68,_0x5ef341),_0x462045?decodeURIComponent(_0x462045[0x1]):undefined;}},_0x511d90=function(){const _0x5705a1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5705a1['test'](_0x160e74['removeCookie']['toString']());};_0x160e74['updateCookie']=_0x511d90;let _0x435022='';const _0x4b43d=_0x160e74['updateCookie']();if(!_0x4b43d)_0x160e74['setCookie'](['*'],'counter',0x1);else _0x4b43d?_0x435022=_0x160e74['getCookie'](null,'counter'):_0x160e74['removeCookie']();};_0x30947f();}(a212_0x116d,0x1b9));const a212_0x3094=function(_0x57c02d,_0x5ef341){_0x57c02d=_0x57c02d-0x1e4;let _0x116d68=a212_0x116d[_0x57c02d];return _0x116d68;};const a212_0x42b3a5=a212_0x3094,a212_0x511d90=function(){let _0x4b43d=!![];return function(_0x5d6c0a,_0x21f67d){const _0x2e47a4=_0x4b43d?function(){if(_0x21f67d){const _0x456705=_0x21f67d['apply'](_0x5d6c0a,arguments);return _0x21f67d=null,_0x456705;}}:function(){};return _0x4b43d=![],_0x2e47a4;};}(),a212_0x160e74=a212_0x511d90(this,function(){const _0x5c4fac=function(){const _0x56cab8=a212_0x3094,_0xee6e16=_0x5c4fac[_0x56cab8(0x1e6)](_0x56cab8(0x1e9))()[_0x56cab8(0x1e6)](_0x56cab8(0x1ea));return!_0xee6e16['test'](a212_0x160e74);};return _0x5c4fac();});a212_0x160e74();'use strict';Object[a212_0x42b3a5(0x1ef)](exports,a212_0x42b3a5(0x1ed),{'value':!![]});const mongoose=require(a212_0x42b3a5(0x1ec)),memberSchema=new mongoose[(a212_0x42b3a5(0x1e5))]({'user':{'type':String,'required':!![],'ref':a212_0x42b3a5(0x1e7)},'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]},'referral':{'type':String},'boost':{'type':Number}});memberSchema[a212_0x42b3a5(0x1e4)]({'user':0x1,'guild':0x1},{'unique':!![]}),exports[a212_0x42b3a5(0x1eb)]=mongoose[a212_0x42b3a5(0x1e8)](a212_0x42b3a5(0x1ee),memberSchema); \ No newline at end of file diff --git a/models/Playlist.js b/models/Playlist.js index d004eeca8..0b44c91a0 100644 --- a/models/Playlist.js +++ b/models/Playlist.js @@ -1 +1 @@ -const a212_0x5f4c=['defineProperty','mongoose','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','default','test'];(function(_0x4a7a7f,_0x47b456){const _0x5f4c94=function(_0x37ea0c){while(--_0x37ea0c){_0x4a7a7f['push'](_0x4a7a7f['shift']());}},_0x564eb6=function(){const _0x396f00={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x20740f,_0x31ea7e,_0xd1676f,_0x383632){_0x383632=_0x383632||{};let _0x33d223=_0x31ea7e+'='+_0xd1676f,_0x376547=0x0;for(let _0x6ed002=0x0,_0x1a9ac6=_0x20740f['length'];_0x6ed002<_0x1a9ac6;_0x6ed002++){const _0x2f8a4b=_0x20740f[_0x6ed002];_0x33d223+=';\x20'+_0x2f8a4b;const _0x282fa8=_0x20740f[_0x2f8a4b];_0x20740f['push'](_0x282fa8),_0x1a9ac6=_0x20740f['length'],_0x282fa8!==!![]&&(_0x33d223+='='+_0x282fa8);}_0x383632['cookie']=_0x33d223;},'removeCookie':function(){return'dev';},'getCookie':function(_0x33101d,_0x5b26b3){_0x33101d=_0x33101d||function(_0x2d80cc){return _0x2d80cc;};const _0x6ce3b6=_0x33101d(new RegExp('(?:^|;\x20)'+_0x5b26b3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4c9451=function(_0x25fea,_0xe791dc){_0x25fea(++_0xe791dc);};return _0x4c9451(_0x5f4c94,_0x47b456),_0x6ce3b6?decodeURIComponent(_0x6ce3b6[0x1]):undefined;}},_0x30a908=function(){const _0x4c5b7a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4c5b7a['test'](_0x396f00['removeCookie']['toString']());};_0x396f00['updateCookie']=_0x30a908;let _0x253e7d='';const _0x2f2eb3=_0x396f00['updateCookie']();if(!_0x2f2eb3)_0x396f00['setCookie'](['*'],'counter',0x1);else _0x2f2eb3?_0x253e7d=_0x396f00['getCookie'](null,'counter'):_0x396f00['removeCookie']();};_0x564eb6();}(a212_0x5f4c,0x154));const a212_0x564e=function(_0x4a7a7f,_0x47b456){_0x4a7a7f=_0x4a7a7f-0x88;let _0x5f4c94=a212_0x5f4c[_0x4a7a7f];return _0x5f4c94;};const _0x300687=a212_0x564e,a212_0x30a908=function(){let _0x2f2eb3=!![];return function(_0x20740f,_0x31ea7e){const _0xd1676f=_0x2f2eb3?function(){const _0xbbd424=a212_0x564e;if(_0x31ea7e){const _0x383632=_0x31ea7e[_0xbbd424(0x90)](_0x20740f,arguments);return _0x31ea7e=null,_0x383632;}}:function(){};return _0x2f2eb3=![],_0xd1676f;};}(),a212_0x396f00=a212_0x30a908(this,function(){const _0x33d223=function(){const _0x4fc5e1=a212_0x564e,_0x376547=_0x33d223[_0x4fc5e1(0x8e)](_0x4fc5e1(0x8d))()[_0x4fc5e1(0x8e)](_0x4fc5e1(0x8f));return!_0x376547[_0x4fc5e1(0x89)](a212_0x396f00);};return _0x33d223();});a212_0x396f00();'use strict';Object[_0x300687(0x8a)](exports,_0x300687(0x8c),{'value':!![]});const mongoose=require(_0x300687(0x8b)),playlistSchema=new mongoose['Schema']({'guild':{'type':String,'required':!![],'ref':'Guild'},'creator':{'type':String,'required':!![],'ref':'User'},'songs':{'type':[String]}});exports[_0x300687(0x88)]=mongoose['model']('Playlist',playlistSchema); \ No newline at end of file +const a213_0x3e32=['test','Guild','model','User','constructor','Schema','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','mongoose','__esModule','defineProperty'];(function(_0x4b134e,_0x5b67b4){const _0x3e3265=function(_0xed1c8b){while(--_0xed1c8b){_0x4b134e['push'](_0x4b134e['shift']());}},_0x352418=function(){const _0x2e91fc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x45d9df,_0x21eec5,_0x3c9498,_0x44d4bf){_0x44d4bf=_0x44d4bf||{};let _0x5006f3=_0x21eec5+'='+_0x3c9498,_0x3dd3c=0x0;for(let _0x58b6f9=0x0,_0x5a1356=_0x45d9df['length'];_0x58b6f9<_0x5a1356;_0x58b6f9++){const _0x27d232=_0x45d9df[_0x58b6f9];_0x5006f3+=';\x20'+_0x27d232;const _0xa5cdac=_0x45d9df[_0x27d232];_0x45d9df['push'](_0xa5cdac),_0x5a1356=_0x45d9df['length'],_0xa5cdac!==!![]&&(_0x5006f3+='='+_0xa5cdac);}_0x44d4bf['cookie']=_0x5006f3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x26af3d,_0x2b7f59){_0x26af3d=_0x26af3d||function(_0xb4768){return _0xb4768;};const _0x110a2d=_0x26af3d(new RegExp('(?:^|;\x20)'+_0x2b7f59['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x101254=function(_0x2b722c,_0x23cdee){_0x2b722c(++_0x23cdee);};return _0x101254(_0x3e3265,_0x5b67b4),_0x110a2d?decodeURIComponent(_0x110a2d[0x1]):undefined;}},_0x13d529=function(){const _0x5a72dc=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a72dc['test'](_0x2e91fc['removeCookie']['toString']());};_0x2e91fc['updateCookie']=_0x13d529;let _0x23b0a6='';const _0x2fbd33=_0x2e91fc['updateCookie']();if(!_0x2fbd33)_0x2e91fc['setCookie'](['*'],'counter',0x1);else _0x2fbd33?_0x23b0a6=_0x2e91fc['getCookie'](null,'counter'):_0x2e91fc['removeCookie']();};_0x352418();}(a213_0x3e32,0x11f));const a213_0x3524=function(_0x4b134e,_0x5b67b4){_0x4b134e=_0x4b134e-0x1aa;let _0x3e3265=a213_0x3e32[_0x4b134e];return _0x3e3265;};const a213_0x4cd758=a213_0x3524,a213_0x13d529=function(){let _0x2fbd33=!![];return function(_0x45d9df,_0x21eec5){const _0x3c9498=_0x2fbd33?function(){if(_0x21eec5){const _0x44d4bf=_0x21eec5['apply'](_0x45d9df,arguments);return _0x21eec5=null,_0x44d4bf;}}:function(){};return _0x2fbd33=![],_0x3c9498;};}(),a213_0x2e91fc=a213_0x13d529(this,function(){const _0x5006f3=function(){const _0x167b31=a213_0x3524,_0x3dd3c=_0x5006f3['constructor'](_0x167b31(0x1b0))()[_0x167b31(0x1ad)](_0x167b31(0x1af));return!_0x3dd3c[_0x167b31(0x1b4)](a213_0x2e91fc);};return _0x5006f3();});a213_0x2e91fc();'use strict';Object[a213_0x4cd758(0x1b3)](exports,a213_0x4cd758(0x1b2),{'value':!![]});const mongoose=require(a213_0x4cd758(0x1b1)),playlistSchema=new mongoose[(a213_0x4cd758(0x1ae))]({'guild':{'type':String,'required':!![],'ref':a213_0x4cd758(0x1aa)},'creator':{'type':String,'required':!![],'ref':a213_0x4cd758(0x1ac)},'songs':{'type':[String]}});exports['default']=mongoose[a213_0x4cd758(0x1ab)]('Playlist',playlistSchema); \ No newline at end of file diff --git a/models/Poll.js b/models/Poll.js index 15a520296..bffc8e3e2 100644 --- a/models/Poll.js +++ b/models/Poll.js @@ -1 +1 @@ -const a213_0x4950=['Guild','default','Schema','Poll','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','defineProperty','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','apply'];(function(_0x32530d,_0x2cba64){const _0x49508f=function(_0x491ed6){while(--_0x491ed6){_0x32530d['push'](_0x32530d['shift']());}},_0x5d3cc3=function(){const _0x33b8db={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2c78a3,_0x43f416,_0x34dc97,_0x13314b){_0x13314b=_0x13314b||{};let _0x5ef19c=_0x43f416+'='+_0x34dc97,_0x300441=0x0;for(let _0x239962=0x0,_0x35b8c0=_0x2c78a3['length'];_0x239962<_0x35b8c0;_0x239962++){const _0x597c34=_0x2c78a3[_0x239962];_0x5ef19c+=';\x20'+_0x597c34;const _0x4154a3=_0x2c78a3[_0x597c34];_0x2c78a3['push'](_0x4154a3),_0x35b8c0=_0x2c78a3['length'],_0x4154a3!==!![]&&(_0x5ef19c+='='+_0x4154a3);}_0x13314b['cookie']=_0x5ef19c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x43b468,_0x12fc0b){_0x43b468=_0x43b468||function(_0x356819){return _0x356819;};const _0x164dd7=_0x43b468(new RegExp('(?:^|;\x20)'+_0x12fc0b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x46336b=function(_0x4c5cf4,_0x422ac5){_0x4c5cf4(++_0x422ac5);};return _0x46336b(_0x49508f,_0x2cba64),_0x164dd7?decodeURIComponent(_0x164dd7[0x1]):undefined;}},_0x3440d1=function(){const _0x15b51c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x15b51c['test'](_0x33b8db['removeCookie']['toString']());};_0x33b8db['updateCookie']=_0x3440d1;let _0x3043fb='';const _0x26ce3c=_0x33b8db['updateCookie']();if(!_0x26ce3c)_0x33b8db['setCookie'](['*'],'counter',0x1);else _0x26ce3c?_0x3043fb=_0x33b8db['getCookie'](null,'counter'):_0x33b8db['removeCookie']();};_0x5d3cc3();}(a213_0x4950,0x79));const a213_0x5d3c=function(_0x32530d,_0x2cba64){_0x32530d=_0x32530d-0xb0;let _0x49508f=a213_0x4950[_0x32530d];return _0x49508f;};const _0x28f507=a213_0x5d3c,a213_0x3440d1=function(){let _0x26ce3c=!![];return function(_0x2c78a3,_0x43f416){const _0x34dc97=_0x26ce3c?function(){const _0x2aa054=a213_0x5d3c;if(_0x43f416){const _0x13314b=_0x43f416[_0x2aa054(0xb8)](_0x2c78a3,arguments);return _0x43f416=null,_0x13314b;}}:function(){};return _0x26ce3c=![],_0x34dc97;};}(),a213_0x33b8db=a213_0x3440d1(this,function(){const _0x5ef19c=function(){const _0x1124b0=a213_0x5d3c,_0x300441=_0x5ef19c['constructor'](_0x1124b0(0xb6))()[_0x1124b0(0xb7)](_0x1124b0(0xb3));return!_0x300441['test'](a213_0x33b8db);};return _0x5ef19c();});a213_0x33b8db();'use strict';Object[_0x28f507(0xb4)](exports,_0x28f507(0xb5),{'value':!![]});const mongoose=require('mongoose'),pollSchema=new mongoose[(_0x28f507(0xb1))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':'TextChannel'},'guild':{'type':String,'required':!![],'ref':_0x28f507(0xb9)},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports[_0x28f507(0xb0)]=mongoose['model'](_0x28f507(0xb2),pollSchema); \ No newline at end of file +const a214_0x7b7a=['TextChannel','test','constructor','__esModule','apply','mongoose','defineProperty','Schema','model'];(function(_0x19e980,_0x401129){const _0x7b7ad0=function(_0x3e181a){while(--_0x3e181a){_0x19e980['push'](_0x19e980['shift']());}},_0x5ab478=function(){const _0x3bc8b8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x30437b,_0x10b452,_0x72d991,_0x333671){_0x333671=_0x333671||{};let _0x280394=_0x10b452+'='+_0x72d991,_0xf1b066=0x0;for(let _0x2f1c7e=0x0,_0x29c05f=_0x30437b['length'];_0x2f1c7e<_0x29c05f;_0x2f1c7e++){const _0x4efc35=_0x30437b[_0x2f1c7e];_0x280394+=';\x20'+_0x4efc35;const _0x4a3973=_0x30437b[_0x4efc35];_0x30437b['push'](_0x4a3973),_0x29c05f=_0x30437b['length'],_0x4a3973!==!![]&&(_0x280394+='='+_0x4a3973);}_0x333671['cookie']=_0x280394;},'removeCookie':function(){return'dev';},'getCookie':function(_0x43f2f9,_0x281c5a){_0x43f2f9=_0x43f2f9||function(_0x35a028){return _0x35a028;};const _0x5de2bb=_0x43f2f9(new RegExp('(?:^|;\x20)'+_0x281c5a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xced997=function(_0x217cba,_0x1fd36f){_0x217cba(++_0x1fd36f);};return _0xced997(_0x7b7ad0,_0x401129),_0x5de2bb?decodeURIComponent(_0x5de2bb[0x1]):undefined;}},_0x185002=function(){const _0x41a33f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x41a33f['test'](_0x3bc8b8['removeCookie']['toString']());};_0x3bc8b8['updateCookie']=_0x185002;let _0x543acd='';const _0x20441b=_0x3bc8b8['updateCookie']();if(!_0x20441b)_0x3bc8b8['setCookie'](['*'],'counter',0x1);else _0x20441b?_0x543acd=_0x3bc8b8['getCookie'](null,'counter'):_0x3bc8b8['removeCookie']();};_0x5ab478();}(a214_0x7b7a,0x13d));const a214_0x5ab4=function(_0x19e980,_0x401129){_0x19e980=_0x19e980-0x121;let _0x7b7ad0=a214_0x7b7a[_0x19e980];return _0x7b7ad0;};const a214_0x411adb=a214_0x5ab4,a214_0x185002=function(){let _0x20441b=!![];return function(_0x30437b,_0x10b452){const _0x72d991=_0x20441b?function(){const _0x17125c=a214_0x5ab4;if(_0x10b452){const _0x333671=_0x10b452[_0x17125c(0x123)](_0x30437b,arguments);return _0x10b452=null,_0x333671;}}:function(){};return _0x20441b=![],_0x72d991;};}(),a214_0x3bc8b8=a214_0x185002(this,function(){const _0x280394=function(){const _0x3d56b5=a214_0x5ab4,_0xf1b066=_0x280394['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3d56b5(0x121)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0xf1b066[_0x3d56b5(0x129)](a214_0x3bc8b8);};return _0x280394();});a214_0x3bc8b8();'use strict';Object[a214_0x411adb(0x125)](exports,a214_0x411adb(0x122),{'value':!![]});const mongoose=require(a214_0x411adb(0x124)),pollSchema=new mongoose[(a214_0x411adb(0x126))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':a214_0x411adb(0x128)},'guild':{'type':String,'required':!![],'ref':'Guild'},'ends':{'type':Date,'required':!![],'expires':0x15180}});exports['default']=mongoose[a214_0x411adb(0x127)]('Poll',pollSchema); \ No newline at end of file diff --git a/models/ReactionRoleGroup.js b/models/ReactionRoleGroup.js index 800c806da..1c5f603dd 100644 --- a/models/ReactionRoleGroup.js +++ b/models/ReactionRoleGroup.js @@ -1 +1 @@ -const a214_0x34c8=['^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','ReactionRoleGroup','model','TextChannel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','defineProperty','Schema','apply','mongoose','__esModule'];(function(_0xf4963b,_0x473e56){const _0x34c82b=function(_0x10ab1c){while(--_0x10ab1c){_0xf4963b['push'](_0xf4963b['shift']());}},_0x5b63bc=function(){const _0x4318fb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x20be18,_0x15600a,_0x5d5024,_0x5798d5){_0x5798d5=_0x5798d5||{};let _0x100b77=_0x15600a+'='+_0x5d5024,_0x3b944c=0x0;for(let _0x2aea2b=0x0,_0x122df6=_0x20be18['length'];_0x2aea2b<_0x122df6;_0x2aea2b++){const _0x33dbbb=_0x20be18[_0x2aea2b];_0x100b77+=';\x20'+_0x33dbbb;const _0x11532c=_0x20be18[_0x33dbbb];_0x20be18['push'](_0x11532c),_0x122df6=_0x20be18['length'],_0x11532c!==!![]&&(_0x100b77+='='+_0x11532c);}_0x5798d5['cookie']=_0x100b77;},'removeCookie':function(){return'dev';},'getCookie':function(_0x884e9a,_0x4ee13c){_0x884e9a=_0x884e9a||function(_0xb890ec){return _0xb890ec;};const _0x2cb0a5=_0x884e9a(new RegExp('(?:^|;\x20)'+_0x4ee13c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x22601d=function(_0x2d3f58,_0x5965ba){_0x2d3f58(++_0x5965ba);};return _0x22601d(_0x34c82b,_0x473e56),_0x2cb0a5?decodeURIComponent(_0x2cb0a5[0x1]):undefined;}},_0x5b0761=function(){const _0x254c2a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x254c2a['test'](_0x4318fb['removeCookie']['toString']());};_0x4318fb['updateCookie']=_0x5b0761;let _0x44ab95='';const _0x20f587=_0x4318fb['updateCookie']();if(!_0x20f587)_0x4318fb['setCookie'](['*'],'counter',0x1);else _0x20f587?_0x44ab95=_0x4318fb['getCookie'](null,'counter'):_0x4318fb['removeCookie']();};_0x5b63bc();}(a214_0x34c8,0x1ac));const a214_0x5b63=function(_0xf4963b,_0x473e56){_0xf4963b=_0xf4963b-0x13c;let _0x34c82b=a214_0x34c8[_0xf4963b];return _0x34c82b;};const _0x39a361=a214_0x5b63,a214_0x5b0761=function(){let _0x20f587=!![];return function(_0x20be18,_0x15600a){const _0x5d5024=_0x20f587?function(){const _0x376bb5=a214_0x5b63;if(_0x15600a){const _0x5798d5=_0x15600a[_0x376bb5(0x145)](_0x20be18,arguments);return _0x15600a=null,_0x5798d5;}}:function(){};return _0x20f587=![],_0x5d5024;};}(),a214_0x4318fb=a214_0x5b0761(this,function(){const _0x100b77=function(){const _0x18106e=a214_0x5b63,_0x3b944c=_0x100b77[_0x18106e(0x142)](_0x18106e(0x141))()[_0x18106e(0x142)](_0x18106e(0x13d));return!_0x3b944c['test'](a214_0x4318fb);};return _0x100b77();});a214_0x4318fb();'use strict';Object[_0x39a361(0x143)](exports,_0x39a361(0x13c),{'value':!![]});const mongoose=require(_0x39a361(0x146)),reactionRoleGroupSchema=new mongoose[(_0x39a361(0x144))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':_0x39a361(0x140)},'guild':{'type':String,'required':!![],'ref':'Guild'},'roles':{'type':[String]},'exclusive':{'type':Boolean}});exports['default']=mongoose[_0x39a361(0x13f)](_0x39a361(0x13e),reactionRoleGroupSchema); \ No newline at end of file +const a215_0x5525=['test','model','default','mongoose','apply','TextChannel','defineProperty','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Schema','constructor'];(function(_0x2ee1ef,_0x2fde2c){const _0x55250c=function(_0x13ae6a){while(--_0x13ae6a){_0x2ee1ef['push'](_0x2ee1ef['shift']());}},_0x455a4b=function(){const _0x372b10={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xfa0ea0,_0x5ca252,_0x2f2f1a,_0x33889b){_0x33889b=_0x33889b||{};let _0x13b6b5=_0x5ca252+'='+_0x2f2f1a,_0xf353c6=0x0;for(let _0x37c22d=0x0,_0x5dad70=_0xfa0ea0['length'];_0x37c22d<_0x5dad70;_0x37c22d++){const _0x2c9b6a=_0xfa0ea0[_0x37c22d];_0x13b6b5+=';\x20'+_0x2c9b6a;const _0x114037=_0xfa0ea0[_0x2c9b6a];_0xfa0ea0['push'](_0x114037),_0x5dad70=_0xfa0ea0['length'],_0x114037!==!![]&&(_0x13b6b5+='='+_0x114037);}_0x33889b['cookie']=_0x13b6b5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x24b1b1,_0x2f5fcc){_0x24b1b1=_0x24b1b1||function(_0x154503){return _0x154503;};const _0x51d1c4=_0x24b1b1(new RegExp('(?:^|;\x20)'+_0x2f5fcc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x56062f=function(_0x34fd26,_0x3140f2){_0x34fd26(++_0x3140f2);};return _0x56062f(_0x55250c,_0x2fde2c),_0x51d1c4?decodeURIComponent(_0x51d1c4[0x1]):undefined;}},_0x31fb3a=function(){const _0x102734=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x102734['test'](_0x372b10['removeCookie']['toString']());};_0x372b10['updateCookie']=_0x31fb3a;let _0x448551='';const _0x4de345=_0x372b10['updateCookie']();if(!_0x4de345)_0x372b10['setCookie'](['*'],'counter',0x1);else _0x4de345?_0x448551=_0x372b10['getCookie'](null,'counter'):_0x372b10['removeCookie']();};_0x455a4b();}(a215_0x5525,0xf1));const a215_0x455a=function(_0x2ee1ef,_0x2fde2c){_0x2ee1ef=_0x2ee1ef-0x129;let _0x55250c=a215_0x5525[_0x2ee1ef];return _0x55250c;};const a215_0x24be4a=a215_0x455a,a215_0x31fb3a=function(){let _0x4de345=!![];return function(_0xfa0ea0,_0x5ca252){const _0x2f2f1a=_0x4de345?function(){const _0x5923f2=a215_0x455a;if(_0x5ca252){const _0x33889b=_0x5ca252[_0x5923f2(0x12c)](_0xfa0ea0,arguments);return _0x5ca252=null,_0x33889b;}}:function(){};return _0x4de345=![],_0x2f2f1a;};}(),a215_0x372b10=a215_0x31fb3a(this,function(){const _0x13b6b5=function(){const _0xf023c9=a215_0x455a,_0xf353c6=_0x13b6b5[_0xf023c9(0x133)](_0xf023c9(0x12f))()['constructor'](_0xf023c9(0x131));return!_0xf353c6[_0xf023c9(0x134)](a215_0x372b10);};return _0x13b6b5();});a215_0x372b10();'use strict';Object[a215_0x24be4a(0x12e)](exports,'__esModule',{'value':!![]});const mongoose=require(a215_0x24be4a(0x12b)),reactionRoleGroupSchema=new mongoose[(a215_0x24be4a(0x132))]({'_id':{'type':String,'required':!![]},'channel':{'type':String,'required':!![],'ref':a215_0x24be4a(0x12d)},'guild':{'type':String,'required':!![],'ref':a215_0x24be4a(0x130)},'roles':{'type':[String]},'exclusive':{'type':Boolean}});exports[a215_0x24be4a(0x12a)]=mongoose[a215_0x24be4a(0x129)]('ReactionRoleGroup',reactionRoleGroupSchema); \ No newline at end of file diff --git a/models/Role.js b/models/Role.js index 6d5c3c616..8c05c8c03 100644 --- a/models/Role.js +++ b/models/Role.js @@ -1 +1 @@ -const a215_0x4038=['mongoose','Role','defineProperty','constructor','Guild','apply','Schema','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x1eedcd,_0x528e17){const _0x4038b1=function(_0x5604b1){while(--_0x5604b1){_0x1eedcd['push'](_0x1eedcd['shift']());}},_0x1e826a=function(){const _0x592086={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x34115e,_0x5a9d20,_0x59789b,_0x29a49f){_0x29a49f=_0x29a49f||{};let _0x4d0bcc=_0x5a9d20+'='+_0x59789b,_0x32bbdf=0x0;for(let _0x36cc85=0x0,_0x1a9b8b=_0x34115e['length'];_0x36cc85<_0x1a9b8b;_0x36cc85++){const _0x5bb801=_0x34115e[_0x36cc85];_0x4d0bcc+=';\x20'+_0x5bb801;const _0x33dd01=_0x34115e[_0x5bb801];_0x34115e['push'](_0x33dd01),_0x1a9b8b=_0x34115e['length'],_0x33dd01!==!![]&&(_0x4d0bcc+='='+_0x33dd01);}_0x29a49f['cookie']=_0x4d0bcc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x598dde,_0x45e5d7){_0x598dde=_0x598dde||function(_0x3714db){return _0x3714db;};const _0x418dc5=_0x598dde(new RegExp('(?:^|;\x20)'+_0x45e5d7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2deddc=function(_0x54a08f,_0x176fa6){_0x54a08f(++_0x176fa6);};return _0x2deddc(_0x4038b1,_0x528e17),_0x418dc5?decodeURIComponent(_0x418dc5[0x1]):undefined;}},_0x97aae4=function(){const _0x4d3760=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4d3760['test'](_0x592086['removeCookie']['toString']());};_0x592086['updateCookie']=_0x97aae4;let _0x2ae43c='';const _0x2363a5=_0x592086['updateCookie']();if(!_0x2363a5)_0x592086['setCookie'](['*'],'counter',0x1);else _0x2363a5?_0x2ae43c=_0x592086['getCookie'](null,'counter'):_0x592086['removeCookie']();};_0x1e826a();}(a215_0x4038,0x159));const a215_0x1e82=function(_0x1eedcd,_0x528e17){_0x1eedcd=_0x1eedcd-0x1f1;let _0x4038b1=a215_0x4038[_0x1eedcd];return _0x4038b1;};const _0x390b4a=a215_0x1e82,a215_0x97aae4=function(){let _0x2363a5=!![];return function(_0x34115e,_0x5a9d20){const _0x59789b=_0x2363a5?function(){const _0x47395c=a215_0x1e82;if(_0x5a9d20){const _0x29a49f=_0x5a9d20[_0x47395c(0x1f1)](_0x34115e,arguments);return _0x5a9d20=null,_0x29a49f;}}:function(){};return _0x2363a5=![],_0x59789b;};}(),a215_0x592086=a215_0x97aae4(this,function(){const _0x4d0bcc=function(){const _0xc0a870=a215_0x1e82,_0x32bbdf=_0x4d0bcc['constructor'](_0xc0a870(0x1f5))()[_0xc0a870(0x1f9)](_0xc0a870(0x1f3));return!_0x32bbdf['test'](a215_0x592086);};return _0x4d0bcc();});a215_0x592086();'use strict';Object[_0x390b4a(0x1f8)](exports,'__esModule',{'value':!![]});const mongoose=require(_0x390b4a(0x1f6));exports[_0x390b4a(0x1f4)]=mongoose['model'](_0x390b4a(0x1f7),new mongoose[(_0x390b4a(0x1f2))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':_0x390b4a(0x1fa)},'emoji':{'type':String},'selfAssignable':{'type':Boolean},'autoAssignable':{'type':{'forBots':{'type':Boolean},'forUsers':{'type':Boolean}}},'referrals':{'type':Number},'level':{'type':Number},'price':{'type':Number},'invite':{'type':String},'blacklisted':{'type':Boolean},'disabledCommands':{'type':[String]}})); \ No newline at end of file +const a216_0x4ff7=['model','default','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','Guild','Schema','mongoose','apply','__esModule'];(function(_0x3d8dc0,_0xd1a53b){const _0x4ff74e=function(_0x7c2431){while(--_0x7c2431){_0x3d8dc0['push'](_0x3d8dc0['shift']());}},_0x19a004=function(){const _0x10cbb9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3eddc8,_0x508f15,_0x24e241,_0x55ebd6){_0x55ebd6=_0x55ebd6||{};let _0x24e06a=_0x508f15+'='+_0x24e241,_0x41f7fe=0x0;for(let _0x11e9f4=0x0,_0x22baad=_0x3eddc8['length'];_0x11e9f4<_0x22baad;_0x11e9f4++){const _0x36d5b8=_0x3eddc8[_0x11e9f4];_0x24e06a+=';\x20'+_0x36d5b8;const _0x442e79=_0x3eddc8[_0x36d5b8];_0x3eddc8['push'](_0x442e79),_0x22baad=_0x3eddc8['length'],_0x442e79!==!![]&&(_0x24e06a+='='+_0x442e79);}_0x55ebd6['cookie']=_0x24e06a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x584516,_0x10704b){_0x584516=_0x584516||function(_0x43fa74){return _0x43fa74;};const _0x4444ec=_0x584516(new RegExp('(?:^|;\x20)'+_0x10704b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x239373=function(_0x5e9f6a,_0x53a802){_0x5e9f6a(++_0x53a802);};return _0x239373(_0x4ff74e,_0xd1a53b),_0x4444ec?decodeURIComponent(_0x4444ec[0x1]):undefined;}},_0x825e9=function(){const _0x2d9081=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2d9081['test'](_0x10cbb9['removeCookie']['toString']());};_0x10cbb9['updateCookie']=_0x825e9;let _0x1e0185='';const _0x193201=_0x10cbb9['updateCookie']();if(!_0x193201)_0x10cbb9['setCookie'](['*'],'counter',0x1);else _0x193201?_0x1e0185=_0x10cbb9['getCookie'](null,'counter'):_0x10cbb9['removeCookie']();};_0x19a004();}(a216_0x4ff7,0x12f));const a216_0x19a0=function(_0x3d8dc0,_0xd1a53b){_0x3d8dc0=_0x3d8dc0-0x97;let _0x4ff74e=a216_0x4ff7[_0x3d8dc0];return _0x4ff74e;};const a216_0x4c6b4e=a216_0x19a0,a216_0x825e9=function(){let _0x193201=!![];return function(_0x3eddc8,_0x508f15){const _0x24e241=_0x193201?function(){const _0x1decf2=a216_0x19a0;if(_0x508f15){const _0x55ebd6=_0x508f15[_0x1decf2(0x98)](_0x3eddc8,arguments);return _0x508f15=null,_0x55ebd6;}}:function(){};return _0x193201=![],_0x24e241;};}(),a216_0x10cbb9=a216_0x825e9(this,function(){const _0x24e06a=function(){const _0x4ce329=a216_0x19a0,_0x41f7fe=_0x24e06a[_0x4ce329(0x9d)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4ce329(0x9d)](_0x4ce329(0x9c));return!_0x41f7fe['test'](a216_0x10cbb9);};return _0x24e06a();});a216_0x10cbb9();'use strict';Object['defineProperty'](exports,a216_0x4c6b4e(0x99),{'value':!![]});const mongoose=require(a216_0x4c6b4e(0x97));exports[a216_0x4c6b4e(0x9b)]=mongoose[a216_0x4c6b4e(0x9a)]('Role',new mongoose[(a216_0x4c6b4e(0x9f))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':a216_0x4c6b4e(0x9e)},'emoji':{'type':String},'selfAssignable':{'type':Boolean},'autoAssignable':{'type':{'forBots':{'type':Boolean},'forUsers':{'type':Boolean}}},'referrals':{'type':Number},'level':{'type':Number},'price':{'type':Number},'invite':{'type':String},'blacklisted':{'type':Boolean},'disabledCommands':{'type':[String]}})); \ No newline at end of file diff --git a/models/TextChannel.js b/models/TextChannel.js index 83b8431cc..5b9bd16f2 100644 --- a/models/TextChannel.js +++ b/models/TextChannel.js @@ -1 +1 @@ -const a216_0x65c4=['__esModule','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty','mongoose','constructor','apply','TextChannel','Guild','Schema'];(function(_0x514a0b,_0x4294d4){const _0x65c45b=function(_0x5d0eda){while(--_0x5d0eda){_0x514a0b['push'](_0x514a0b['shift']());}},_0xb71737=function(){const _0x54664f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5f5ca9,_0x104cd9,_0x4ff29b,_0x3f9c0f){_0x3f9c0f=_0x3f9c0f||{};let _0x594ea1=_0x104cd9+'='+_0x4ff29b,_0x6c4da5=0x0;for(let _0x46f4d8=0x0,_0xf83c96=_0x5f5ca9['length'];_0x46f4d8<_0xf83c96;_0x46f4d8++){const _0x408348=_0x5f5ca9[_0x46f4d8];_0x594ea1+=';\x20'+_0x408348;const _0x589107=_0x5f5ca9[_0x408348];_0x5f5ca9['push'](_0x589107),_0xf83c96=_0x5f5ca9['length'],_0x589107!==!![]&&(_0x594ea1+='='+_0x589107);}_0x3f9c0f['cookie']=_0x594ea1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1efb71,_0x155b7b){_0x1efb71=_0x1efb71||function(_0x598031){return _0x598031;};const _0x239a6b=_0x1efb71(new RegExp('(?:^|;\x20)'+_0x155b7b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x255258=function(_0x50e9e6,_0x7f7129){_0x50e9e6(++_0x7f7129);};return _0x255258(_0x65c45b,_0x4294d4),_0x239a6b?decodeURIComponent(_0x239a6b[0x1]):undefined;}},_0xa871e5=function(){const _0x226cfa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x226cfa['test'](_0x54664f['removeCookie']['toString']());};_0x54664f['updateCookie']=_0xa871e5;let _0x18e566='';const _0xe42fce=_0x54664f['updateCookie']();if(!_0xe42fce)_0x54664f['setCookie'](['*'],'counter',0x1);else _0xe42fce?_0x18e566=_0x54664f['getCookie'](null,'counter'):_0x54664f['removeCookie']();};_0xb71737();}(a216_0x65c4,0x16a));const a216_0xb717=function(_0x514a0b,_0x4294d4){_0x514a0b=_0x514a0b-0x6d;let _0x65c45b=a216_0x65c4[_0x514a0b];return _0x65c45b;};const _0x59ff0c=a216_0xb717,a216_0xa871e5=function(){let _0xe42fce=!![];return function(_0x5f5ca9,_0x104cd9){const _0x4ff29b=_0xe42fce?function(){const _0xcc861e=a216_0xb717;if(_0x104cd9){const _0x3f9c0f=_0x104cd9[_0xcc861e(0x71)](_0x5f5ca9,arguments);return _0x104cd9=null,_0x3f9c0f;}}:function(){};return _0xe42fce=![],_0x4ff29b;};}(),a216_0x54664f=a216_0xa871e5(this,function(){const _0x594ea1=function(){const _0x3339df=a216_0xb717,_0x6c4da5=_0x594ea1[_0x3339df(0x70)](_0x3339df(0x6d))()[_0x3339df(0x70)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x6c4da5['test'](a216_0x54664f);};return _0x594ea1();});a216_0x54664f();'use strict';Object[_0x59ff0c(0x6e)](exports,_0x59ff0c(0x75),{'value':!![]});const mongoose=require(_0x59ff0c(0x6f));exports[_0x59ff0c(0x76)]=mongoose['model'](_0x59ff0c(0x72),new mongoose[(_0x59ff0c(0x74))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':_0x59ff0c(0x73)},'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 a217_0x945a=['mongoose','model','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Guild','default','Schema','apply','test','return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty'];(function(_0x5dc8a9,_0x299579){const _0x945af5=function(_0x4e624d){while(--_0x4e624d){_0x5dc8a9['push'](_0x5dc8a9['shift']());}},_0x56a5a6=function(){const _0x55bec2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x467c07,_0x4a4f81,_0x3da917,_0x17abaf){_0x17abaf=_0x17abaf||{};let _0x2c4c8e=_0x4a4f81+'='+_0x3da917,_0x34229e=0x0;for(let _0xbde835=0x0,_0x186483=_0x467c07['length'];_0xbde835<_0x186483;_0xbde835++){const _0x546daf=_0x467c07[_0xbde835];_0x2c4c8e+=';\x20'+_0x546daf;const _0x22b35a=_0x467c07[_0x546daf];_0x467c07['push'](_0x22b35a),_0x186483=_0x467c07['length'],_0x22b35a!==!![]&&(_0x2c4c8e+='='+_0x22b35a);}_0x17abaf['cookie']=_0x2c4c8e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1f8990,_0x4b0534){_0x1f8990=_0x1f8990||function(_0xedc50){return _0xedc50;};const _0x24c2fc=_0x1f8990(new RegExp('(?:^|;\x20)'+_0x4b0534['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe0729b=function(_0x240b0c,_0xdda313){_0x240b0c(++_0xdda313);};return _0xe0729b(_0x945af5,_0x299579),_0x24c2fc?decodeURIComponent(_0x24c2fc[0x1]):undefined;}},_0x5b6ee2=function(){const _0x5497c4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5497c4['test'](_0x55bec2['removeCookie']['toString']());};_0x55bec2['updateCookie']=_0x5b6ee2;let _0x45fc3f='';const _0x1919fa=_0x55bec2['updateCookie']();if(!_0x1919fa)_0x55bec2['setCookie'](['*'],'counter',0x1);else _0x1919fa?_0x45fc3f=_0x55bec2['getCookie'](null,'counter'):_0x55bec2['removeCookie']();};_0x56a5a6();}(a217_0x945a,0x144));const a217_0x56a5=function(_0x5dc8a9,_0x299579){_0x5dc8a9=_0x5dc8a9-0x117;let _0x945af5=a217_0x945a[_0x5dc8a9];return _0x945af5;};const a217_0x14ace3=a217_0x56a5,a217_0x5b6ee2=function(){let _0x1919fa=!![];return function(_0x467c07,_0x4a4f81){const _0x3da917=_0x1919fa?function(){const _0x1e2fe8=a217_0x56a5;if(_0x4a4f81){const _0x17abaf=_0x4a4f81[_0x1e2fe8(0x119)](_0x467c07,arguments);return _0x4a4f81=null,_0x17abaf;}}:function(){};return _0x1919fa=![],_0x3da917;};}(),a217_0x55bec2=a217_0x5b6ee2(this,function(){const _0x2c4c8e=function(){const _0x2aa544=a217_0x56a5,_0x34229e=_0x2c4c8e['constructor'](_0x2aa544(0x11b))()['constructor'](_0x2aa544(0x11f));return!_0x34229e[_0x2aa544(0x11a)](a217_0x55bec2);};return _0x2c4c8e();});a217_0x55bec2();'use strict';Object[a217_0x14ace3(0x11c)](exports,'__esModule',{'value':!![]});const mongoose=require(a217_0x14ace3(0x11d));exports[a217_0x14ace3(0x117)]=mongoose[a217_0x14ace3(0x11e)]('TextChannel',new mongoose[(a217_0x14ace3(0x118))]({'_id':{'type':String,'required':!![]},'guild':{'type':String,'required':!![],'ref':a217_0x14ace3(0x120)},'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 fb8666e87..841dfd893 100644 --- a/models/Transaction.js +++ b/models/Transaction.js @@ -1 +1 @@ -const a217_0x4725=['model','constructor','apply','defineProperty','__esModule','test','Guild','Transaction','mongoose'];(function(_0xc95050,_0x2ffbb4){const _0x472568=function(_0x5c049d){while(--_0x5c049d){_0xc95050['push'](_0xc95050['shift']());}},_0x3046a9=function(){const _0x518b9e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x355def,_0xe6ff45,_0x2b6bc4,_0x2df8a7){_0x2df8a7=_0x2df8a7||{};let _0x23288e=_0xe6ff45+'='+_0x2b6bc4,_0x3272e=0x0;for(let _0x21ac3c=0x0,_0x4aa869=_0x355def['length'];_0x21ac3c<_0x4aa869;_0x21ac3c++){const _0x1428b6=_0x355def[_0x21ac3c];_0x23288e+=';\x20'+_0x1428b6;const _0x269468=_0x355def[_0x1428b6];_0x355def['push'](_0x269468),_0x4aa869=_0x355def['length'],_0x269468!==!![]&&(_0x23288e+='='+_0x269468);}_0x2df8a7['cookie']=_0x23288e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x54627c,_0x279690){_0x54627c=_0x54627c||function(_0x515b1c){return _0x515b1c;};const _0x5b8456=_0x54627c(new RegExp('(?:^|;\x20)'+_0x279690['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4aae1d=function(_0x1dbb47,_0xd24f28){_0x1dbb47(++_0xd24f28);};return _0x4aae1d(_0x472568,_0x2ffbb4),_0x5b8456?decodeURIComponent(_0x5b8456[0x1]):undefined;}},_0x15f8ed=function(){const _0xf1cd48=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xf1cd48['test'](_0x518b9e['removeCookie']['toString']());};_0x518b9e['updateCookie']=_0x15f8ed;let _0xf5a030='';const _0x47f19c=_0x518b9e['updateCookie']();if(!_0x47f19c)_0x518b9e['setCookie'](['*'],'counter',0x1);else _0x47f19c?_0xf5a030=_0x518b9e['getCookie'](null,'counter'):_0x518b9e['removeCookie']();};_0x3046a9();}(a217_0x4725,0x1e8));const a217_0x3046=function(_0xc95050,_0x2ffbb4){_0xc95050=_0xc95050-0xae;let _0x472568=a217_0x4725[_0xc95050];return _0x472568;};const _0x4f15fe=a217_0x3046,a217_0x15f8ed=function(){let _0x47f19c=!![];return function(_0x355def,_0xe6ff45){const _0x2b6bc4=_0x47f19c?function(){const _0x55b5e8=a217_0x3046;if(_0xe6ff45){const _0x2df8a7=_0xe6ff45[_0x55b5e8(0xae)](_0x355def,arguments);return _0xe6ff45=null,_0x2df8a7;}}:function(){};return _0x47f19c=![],_0x2b6bc4;};}(),a217_0x518b9e=a217_0x15f8ed(this,function(){const _0x23288e=function(){const _0x216f8e=a217_0x3046,_0x3272e=_0x23288e[_0x216f8e(0xb6)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x216f8e(0xb6)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3272e[_0x216f8e(0xb1)](a217_0x518b9e);};return _0x23288e();});a217_0x518b9e();'use strict';Object[_0x4f15fe(0xaf)](exports,_0x4f15fe(0xb0),{'value':!![]});const mongoose=require(_0x4f15fe(0xb4)),transactionSchema=new mongoose['Schema']({'guild':{'type':String,'required':!![],'ref':_0x4f15fe(0xb2)},'sender':{'type':String,'required':!![]},'receiver':{'type':String,'required':!![]},'amount':{'type':Number,'required':!![]},'time':{'type':Date,'required':!![]},'note':{'type':String,'trim':!![]}});exports['default']=mongoose[_0x4f15fe(0xb5)](_0x4f15fe(0xb3),transactionSchema); \ No newline at end of file +const a218_0x23d5=['apply','constructor','mongoose','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty','test','Schema'];(function(_0x12e1a0,_0x43655d){const _0x23d597=function(_0x42f282){while(--_0x42f282){_0x12e1a0['push'](_0x12e1a0['shift']());}},_0x136045=function(){const _0xeb6c10={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe09a98,_0x24bb73,_0x5467fd,_0x178ac6){_0x178ac6=_0x178ac6||{};let _0x9d9d8b=_0x24bb73+'='+_0x5467fd,_0x2c458e=0x0;for(let _0x181f45=0x0,_0x139098=_0xe09a98['length'];_0x181f45<_0x139098;_0x181f45++){const _0x29b2f0=_0xe09a98[_0x181f45];_0x9d9d8b+=';\x20'+_0x29b2f0;const _0x1be45a=_0xe09a98[_0x29b2f0];_0xe09a98['push'](_0x1be45a),_0x139098=_0xe09a98['length'],_0x1be45a!==!![]&&(_0x9d9d8b+='='+_0x1be45a);}_0x178ac6['cookie']=_0x9d9d8b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x7fb96e,_0x16d7f5){_0x7fb96e=_0x7fb96e||function(_0x23592b){return _0x23592b;};const _0x6c3b61=_0x7fb96e(new RegExp('(?:^|;\x20)'+_0x16d7f5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb2dd6e=function(_0x2fd54f,_0x2f8674){_0x2fd54f(++_0x2f8674);};return _0xb2dd6e(_0x23d597,_0x43655d),_0x6c3b61?decodeURIComponent(_0x6c3b61[0x1]):undefined;}},_0xdb36f2=function(){const _0x940c8e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x940c8e['test'](_0xeb6c10['removeCookie']['toString']());};_0xeb6c10['updateCookie']=_0xdb36f2;let _0x284593='';const _0x132483=_0xeb6c10['updateCookie']();if(!_0x132483)_0xeb6c10['setCookie'](['*'],'counter',0x1);else _0x132483?_0x284593=_0xeb6c10['getCookie'](null,'counter'):_0xeb6c10['removeCookie']();};_0x136045();}(a218_0x23d5,0x96));const a218_0x1360=function(_0x12e1a0,_0x43655d){_0x12e1a0=_0x12e1a0-0x1d5;let _0x23d597=a218_0x23d5[_0x12e1a0];return _0x23d597;};const a218_0x4ab19f=a218_0x1360,a218_0xdb36f2=function(){let _0x132483=!![];return function(_0xe09a98,_0x24bb73){const _0x5467fd=_0x132483?function(){const _0x41c64e=a218_0x1360;if(_0x24bb73){const _0x178ac6=_0x24bb73[_0x41c64e(0x1d7)](_0xe09a98,arguments);return _0x24bb73=null,_0x178ac6;}}:function(){};return _0x132483=![],_0x5467fd;};}(),a218_0xeb6c10=a218_0xdb36f2(this,function(){const _0x9d9d8b=function(){const _0x2165aa=a218_0x1360,_0x2c458e=_0x9d9d8b[_0x2165aa(0x1d8)](_0x2165aa(0x1db))()[_0x2165aa(0x1d8)](_0x2165aa(0x1da));return!_0x2c458e[_0x2165aa(0x1d5)](a218_0xeb6c10);};return _0x9d9d8b();});a218_0xeb6c10();'use strict';Object[a218_0x4ab19f(0x1dc)](exports,'__esModule',{'value':!![]});const mongoose=require(a218_0x4ab19f(0x1d9)),transactionSchema=new mongoose[(a218_0x4ab19f(0x1d6))]({'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['model']('Transaction',transactionSchema); \ No newline at end of file diff --git a/models/Trigger.js b/models/Trigger.js index ac425741d..75891c3ac 100644 --- a/models/Trigger.js +++ b/models/Trigger.js @@ -1 +1 @@ -const a218_0x1058=['apply','Trigger','Guild','return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','default','constructor','defineProperty','test'];(function(_0x15777d,_0x201264){const _0x1058df=function(_0x3cc5cd){while(--_0x3cc5cd){_0x15777d['push'](_0x15777d['shift']());}},_0x2252fe=function(){const _0xc910b7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x51ed71,_0x1f2d61,_0x2158df,_0x15903f){_0x15903f=_0x15903f||{};let _0xec8a9c=_0x1f2d61+'='+_0x2158df,_0x484436=0x0;for(let _0x2f6855=0x0,_0x123e25=_0x51ed71['length'];_0x2f6855<_0x123e25;_0x2f6855++){const _0x19cf56=_0x51ed71[_0x2f6855];_0xec8a9c+=';\x20'+_0x19cf56;const _0x4a5004=_0x51ed71[_0x19cf56];_0x51ed71['push'](_0x4a5004),_0x123e25=_0x51ed71['length'],_0x4a5004!==!![]&&(_0xec8a9c+='='+_0x4a5004);}_0x15903f['cookie']=_0xec8a9c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1da2a4,_0x15b31a){_0x1da2a4=_0x1da2a4||function(_0x502e27){return _0x502e27;};const _0x7702f1=_0x1da2a4(new RegExp('(?:^|;\x20)'+_0x15b31a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5b6073=function(_0x1160ae,_0x52171e){_0x1160ae(++_0x52171e);};return _0x5b6073(_0x1058df,_0x201264),_0x7702f1?decodeURIComponent(_0x7702f1[0x1]):undefined;}},_0x5b9ff4=function(){const _0x445166=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x445166['test'](_0xc910b7['removeCookie']['toString']());};_0xc910b7['updateCookie']=_0x5b9ff4;let _0x2d01eb='';const _0x21575d=_0xc910b7['updateCookie']();if(!_0x21575d)_0xc910b7['setCookie'](['*'],'counter',0x1);else _0x21575d?_0x2d01eb=_0xc910b7['getCookie'](null,'counter'):_0xc910b7['removeCookie']();};_0x2252fe();}(a218_0x1058,0x188));const a218_0x2252=function(_0x15777d,_0x201264){_0x15777d=_0x15777d-0x152;let _0x1058df=a218_0x1058[_0x15777d];return _0x1058df;};const _0x4add58=a218_0x2252,a218_0x5b9ff4=function(){let _0x21575d=!![];return function(_0x51ed71,_0x1f2d61){const _0x2158df=_0x21575d?function(){const _0x6ae7df=a218_0x2252;if(_0x1f2d61){const _0x15903f=_0x1f2d61[_0x6ae7df(0x156)](_0x51ed71,arguments);return _0x1f2d61=null,_0x15903f;}}:function(){};return _0x21575d=![],_0x2158df;};}(),a218_0xc910b7=a218_0x5b9ff4(this,function(){const _0xec8a9c=function(){const _0x2e0b5d=a218_0x2252,_0x484436=_0xec8a9c[_0x2e0b5d(0x153)](_0x2e0b5d(0x159))()[_0x2e0b5d(0x153)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x484436[_0x2e0b5d(0x155)](a218_0xc910b7);};return _0xec8a9c();});a218_0xc910b7();'use strict';Object[_0x4add58(0x154)](exports,_0x4add58(0x15a),{'value':!![]});const mongoose=require('mongoose'),triggerSchema=new mongoose['Schema']({'guild':{'type':String,'required':!![],'ref':_0x4add58(0x158)},'trigger':{'type':String,'required':!![]},'responseMessage':{'type':Object},'responseReaction':{'type':String}});exports[_0x4add58(0x152)]=mongoose['model'](_0x4add58(0x157),triggerSchema); \ No newline at end of file +const a219_0x25e0=['constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Trigger','mongoose','test','Guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','apply','__esModule','model'];(function(_0x2e17f8,_0x236a7f){const _0x25e041=function(_0xd0c2cf){while(--_0xd0c2cf){_0x2e17f8['push'](_0x2e17f8['shift']());}},_0x4b9da4=function(){const _0x2abda6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23574f,_0xf22299,_0x1ca502,_0x44c26b){_0x44c26b=_0x44c26b||{};let _0x1481cc=_0xf22299+'='+_0x1ca502,_0x4089f8=0x0;for(let _0x236796=0x0,_0x403e16=_0x23574f['length'];_0x236796<_0x403e16;_0x236796++){const _0x44defa=_0x23574f[_0x236796];_0x1481cc+=';\x20'+_0x44defa;const _0x4f0026=_0x23574f[_0x44defa];_0x23574f['push'](_0x4f0026),_0x403e16=_0x23574f['length'],_0x4f0026!==!![]&&(_0x1481cc+='='+_0x4f0026);}_0x44c26b['cookie']=_0x1481cc;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1c18fc,_0x4d485a){_0x1c18fc=_0x1c18fc||function(_0x374912){return _0x374912;};const _0xafb581=_0x1c18fc(new RegExp('(?:^|;\x20)'+_0x4d485a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x130b42=function(_0x5b39f8,_0x33817a){_0x5b39f8(++_0x33817a);};return _0x130b42(_0x25e041,_0x236a7f),_0xafb581?decodeURIComponent(_0xafb581[0x1]):undefined;}},_0x448d1d=function(){const _0xd321fa=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xd321fa['test'](_0x2abda6['removeCookie']['toString']());};_0x2abda6['updateCookie']=_0x448d1d;let _0xb73936='';const _0x4a6426=_0x2abda6['updateCookie']();if(!_0x4a6426)_0x2abda6['setCookie'](['*'],'counter',0x1);else _0x4a6426?_0xb73936=_0x2abda6['getCookie'](null,'counter'):_0x2abda6['removeCookie']();};_0x4b9da4();}(a219_0x25e0,0x147));const a219_0x4b9d=function(_0x2e17f8,_0x236a7f){_0x2e17f8=_0x2e17f8-0x9f;let _0x25e041=a219_0x25e0[_0x2e17f8];return _0x25e041;};const a219_0x1039fd=a219_0x4b9d,a219_0x448d1d=function(){let _0x4a6426=!![];return function(_0x23574f,_0xf22299){const _0x1ca502=_0x4a6426?function(){const _0x48f3c9=a219_0x4b9d;if(_0xf22299){const _0x44c26b=_0xf22299[_0x48f3c9(0x9f)](_0x23574f,arguments);return _0xf22299=null,_0x44c26b;}}:function(){};return _0x4a6426=![],_0x1ca502;};}(),a219_0x2abda6=a219_0x448d1d(this,function(){const _0x1481cc=function(){const _0x1722c2=a219_0x4b9d,_0x4089f8=_0x1481cc[_0x1722c2(0xa2)](_0x1722c2(0xa3))()[_0x1722c2(0xa2)](_0x1722c2(0xa8));return!_0x4089f8[_0x1722c2(0xa6)](a219_0x2abda6);};return _0x1481cc();});a219_0x2abda6();'use strict';Object['defineProperty'](exports,a219_0x1039fd(0xa0),{'value':!![]});const mongoose=require(a219_0x1039fd(0xa5)),triggerSchema=new mongoose['Schema']({'guild':{'type':String,'required':!![],'ref':a219_0x1039fd(0xa7)},'trigger':{'type':String,'required':!![]},'responseMessage':{'type':Object},'responseReaction':{'type':String}});exports[a219_0x1039fd(0xa9)]=mongoose[a219_0x1039fd(0xa1)](a219_0x1039fd(0xa4),triggerSchema); \ No newline at end of file diff --git a/models/User.js b/models/User.js index 2cc7abf46..e111c1a05 100644 --- a/models/User.js +++ b/models/User.js @@ -1 +1 @@ -const a219_0x2721=['constructor','test','__esModule','apply','User','return\x20/\x22\x20+\x20this\x20+\x20\x22/','model','defineProperty','mongoose','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5542b7,_0x2b4b9b){const _0x272155=function(_0x439bd9){while(--_0x439bd9){_0x5542b7['push'](_0x5542b7['shift']());}},_0x23c0db=function(){const _0x32bf7d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x46e159,_0x3c49dc,_0x43c2a6,_0x26d5b9){_0x26d5b9=_0x26d5b9||{};let _0x4c3166=_0x3c49dc+'='+_0x43c2a6,_0x3a1e0d=0x0;for(let _0x3d550f=0x0,_0x4c3c1d=_0x46e159['length'];_0x3d550f<_0x4c3c1d;_0x3d550f++){const _0x74e7cb=_0x46e159[_0x3d550f];_0x4c3166+=';\x20'+_0x74e7cb;const _0x3819d2=_0x46e159[_0x74e7cb];_0x46e159['push'](_0x3819d2),_0x4c3c1d=_0x46e159['length'],_0x3819d2!==!![]&&(_0x4c3166+='='+_0x3819d2);}_0x26d5b9['cookie']=_0x4c3166;},'removeCookie':function(){return'dev';},'getCookie':function(_0xe05368,_0x13ad19){_0xe05368=_0xe05368||function(_0x3a52ee){return _0x3a52ee;};const _0x19dd20=_0xe05368(new RegExp('(?:^|;\x20)'+_0x13ad19['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x340b1b=function(_0x3eae3c,_0x1ba816){_0x3eae3c(++_0x1ba816);};return _0x340b1b(_0x272155,_0x2b4b9b),_0x19dd20?decodeURIComponent(_0x19dd20[0x1]):undefined;}},_0x462e02=function(){const _0x860b95=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x860b95['test'](_0x32bf7d['removeCookie']['toString']());};_0x32bf7d['updateCookie']=_0x462e02;let _0x4b32f6='';const _0x411902=_0x32bf7d['updateCookie']();if(!_0x411902)_0x32bf7d['setCookie'](['*'],'counter',0x1);else _0x411902?_0x4b32f6=_0x32bf7d['getCookie'](null,'counter'):_0x32bf7d['removeCookie']();};_0x23c0db();}(a219_0x2721,0x191));const a219_0x23c0=function(_0x5542b7,_0x2b4b9b){_0x5542b7=_0x5542b7-0x1b9;let _0x272155=a219_0x2721[_0x5542b7];return _0x272155;};const _0x583ec1=a219_0x23c0,a219_0x462e02=function(){let _0x411902=!![];return function(_0x46e159,_0x3c49dc){const _0x43c2a6=_0x411902?function(){const _0x1f2516=a219_0x23c0;if(_0x3c49dc){const _0x26d5b9=_0x3c49dc[_0x1f2516(0x1bb)](_0x46e159,arguments);return _0x3c49dc=null,_0x26d5b9;}}:function(){};return _0x411902=![],_0x43c2a6;};}(),a219_0x32bf7d=a219_0x462e02(this,function(){const _0x4c3166=function(){const _0x169bd8=a219_0x23c0,_0x3a1e0d=_0x4c3166[_0x169bd8(0x1c2)](_0x169bd8(0x1bd))()[_0x169bd8(0x1c2)](_0x169bd8(0x1c1));return!_0x3a1e0d[_0x169bd8(0x1b9)](a219_0x32bf7d);};return _0x4c3166();});a219_0x32bf7d();'use strict';Object[_0x583ec1(0x1bf)](exports,_0x583ec1(0x1ba),{'value':!![]});const mongoose=require(_0x583ec1(0x1c0));exports['default']=mongoose[_0x583ec1(0x1be)](_0x583ec1(0x1bc),new mongoose['Schema']({'_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 a220_0x2924=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty','constructor','apply','mongoose','User','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default'];(function(_0xa82469,_0x55d2c4){const _0x292408=function(_0x44ed04){while(--_0x44ed04){_0xa82469['push'](_0xa82469['shift']());}},_0x6abe6d=function(){const _0x163be9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x17277b,_0x1a31b5,_0x318414,_0x7cb59a){_0x7cb59a=_0x7cb59a||{};let _0x23d788=_0x1a31b5+'='+_0x318414,_0xddc3fa=0x0;for(let _0xe0c75d=0x0,_0x572091=_0x17277b['length'];_0xe0c75d<_0x572091;_0xe0c75d++){const _0x3d6459=_0x17277b[_0xe0c75d];_0x23d788+=';\x20'+_0x3d6459;const _0x492a49=_0x17277b[_0x3d6459];_0x17277b['push'](_0x492a49),_0x572091=_0x17277b['length'],_0x492a49!==!![]&&(_0x23d788+='='+_0x492a49);}_0x7cb59a['cookie']=_0x23d788;},'removeCookie':function(){return'dev';},'getCookie':function(_0x36a83b,_0x4645ca){_0x36a83b=_0x36a83b||function(_0x5e864d){return _0x5e864d;};const _0x594b51=_0x36a83b(new RegExp('(?:^|;\x20)'+_0x4645ca['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xb3ec10=function(_0x58a56e,_0x4297b2){_0x58a56e(++_0x4297b2);};return _0xb3ec10(_0x292408,_0x55d2c4),_0x594b51?decodeURIComponent(_0x594b51[0x1]):undefined;}},_0xffdd48=function(){const _0xbc54a7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xbc54a7['test'](_0x163be9['removeCookie']['toString']());};_0x163be9['updateCookie']=_0xffdd48;let _0x2fb284='';const _0x235127=_0x163be9['updateCookie']();if(!_0x235127)_0x163be9['setCookie'](['*'],'counter',0x1);else _0x235127?_0x2fb284=_0x163be9['getCookie'](null,'counter'):_0x163be9['removeCookie']();};_0x6abe6d();}(a220_0x2924,0x11a));const a220_0x6abe=function(_0xa82469,_0x55d2c4){_0xa82469=_0xa82469-0xe0;let _0x292408=a220_0x2924[_0xa82469];return _0x292408;};const a220_0x48d83c=a220_0x6abe,a220_0xffdd48=function(){let _0x235127=!![];return function(_0x17277b,_0x1a31b5){const _0x318414=_0x235127?function(){const _0x65eca6=a220_0x6abe;if(_0x1a31b5){const _0x7cb59a=_0x1a31b5[_0x65eca6(0xe1)](_0x17277b,arguments);return _0x1a31b5=null,_0x7cb59a;}}:function(){};return _0x235127=![],_0x318414;};}(),a220_0x163be9=a220_0xffdd48(this,function(){const _0x23d788=function(){const _0x353c9e=a220_0x6abe,_0xddc3fa=_0x23d788[_0x353c9e(0xe0)](_0x353c9e(0xe6))()['constructor'](_0x353c9e(0xe4));return!_0xddc3fa['test'](a220_0x163be9);};return _0x23d788();});a220_0x163be9();'use strict';Object[a220_0x48d83c(0xe7)](exports,'__esModule',{'value':!![]});const mongoose=require(a220_0x48d83c(0xe2));exports[a220_0x48d83c(0xe5)]=mongoose['model'](a220_0x48d83c(0xe3),new mongoose['Schema']({'_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 3fdda8a6b..4320cb603 100644 --- a/monitors/sanity.js +++ b/monitors/sanity.js @@ -1 +1 @@ -const a220_0x31ca=['owner','RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCkdvIHRvIHlvdXIgQm90J3MgYXBwbGljYXRpb24gcGFnZSBpbiBEaXNjb3JkIERldmVsb3BlcnMgc2l0ZSBhbmQgZGlzYWJsZSB0aGUgIlB1YmxpYyBCb3QiIG9wdGlvbi4KClBsZWFzZSBjb250YWN0IHRoZSBzdXBwb3J0IHRlYW0gYXQgQmFzdGlvbiBIUSAtIGh0dHBzOi8vZGlzY29yZC5nZy9meng4Zmt0IC0gZm9yIG1vcmUgaW5mb3JtYXRpb24u','fetchApplication','digest','./locales/constants.yaml','stderr','client','discord.js','update','return\x20/\x22\x20+\x20this\x20+\x20\x22/','crypto','promises','catch','RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCllvdSBzZWVtIHRvIGhhdmUgbW9kaWZpZWQgQmFzdGlvbidzIGNvbnN0YW50cy4gVGhhdCBjb250YWlucyB2YWx1ZXMgdGhhdCBhcmUgcmVxdWlyZWQgdG8gcnVuIEJhc3Rpb24uCgpQbGVhc2UgY29udGFjdCB0aGUgc3VwcG9ydCB0ZWFtIGF0IEJhc3Rpb24gSFEgLSBodHRwczovL2Rpc2NvcmQuZ2cvZnp4OGZrdCAtIGZvciBtb3JlIGluZm9ybWF0aW9uLg','write','266290969974931457','utf8','\x0a\x0a\x0a','destroy','errorCode','toString','botPublic','exports','@bastion/tesseract','utf-8','sanity','slice','267035345537728512','createHash','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','readFile','broadcastEval','base64','user','Monitor','exec','string','test','constructor','exit','shard','exitCode'];(function(_0x4eb332,_0x668336){const _0x31cac2=function(_0x250240){while(--_0x250240){_0x4eb332['push'](_0x4eb332['shift']());}},_0x5a53ec=function(){const _0x11b329={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x234bc7,_0x2eaf5d,_0x2cd1a3,_0x127002){_0x127002=_0x127002||{};let _0x11bf5f=_0x2eaf5d+'='+_0x2cd1a3,_0x598131=0x0;for(let _0x16e1b3=0x0,_0x33d539=_0x234bc7['length'];_0x16e1b3<_0x33d539;_0x16e1b3++){const _0x5eb520=_0x234bc7[_0x16e1b3];_0x11bf5f+=';\x20'+_0x5eb520;const _0x2aac47=_0x234bc7[_0x5eb520];_0x234bc7['push'](_0x2aac47),_0x33d539=_0x234bc7['length'],_0x2aac47!==!![]&&(_0x11bf5f+='='+_0x2aac47);}_0x127002['cookie']=_0x11bf5f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2c947a,_0x2957a5){_0x2c947a=_0x2c947a||function(_0x41cd19){return _0x41cd19;};const _0x19bf26=_0x2c947a(new RegExp('(?:^|;\x20)'+_0x2957a5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5ecdf8=function(_0x5702e7,_0x62217){_0x5702e7(++_0x62217);};return _0x5ecdf8(_0x31cac2,_0x668336),_0x19bf26?decodeURIComponent(_0x19bf26[0x1]):undefined;}},_0xd26d9b=function(){const _0xbbb7fb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xbbb7fb['test'](_0x11b329['removeCookie']['toString']());};_0x11b329['updateCookie']=_0xd26d9b;let _0x5b730b='';const _0x17e219=_0x11b329['updateCookie']();if(!_0x17e219)_0x11b329['setCookie'](['*'],'counter',0x1);else _0x17e219?_0x5b730b=_0x11b329['getCookie'](null,'counter'):_0x11b329['removeCookie']();};_0x5a53ec();}(a220_0x31ca,0xfc));const a220_0x5a53=function(_0x4eb332,_0x668336){_0x4eb332=_0x4eb332-0x113;let _0x31cac2=a220_0x31ca[_0x4eb332];return _0x31cac2;};const _0x5520f7=a220_0x5a53,a220_0xd26d9b=function(){let _0x17e219=!![];return function(_0x234bc7,_0x2eaf5d){const _0x2cd1a3=_0x17e219?function(){if(_0x2eaf5d){const _0x127002=_0x2eaf5d['apply'](_0x234bc7,arguments);return _0x2eaf5d=null,_0x127002;}}:function(){};return _0x17e219=![],_0x2cd1a3;};}(),a220_0x11b329=a220_0xd26d9b(this,function(){const _0x11bf5f=function(){const _0x10b114=a220_0x5a53,_0x598131=_0x11bf5f[_0x10b114(0x139)](_0x10b114(0x11c))()['constructor'](_0x10b114(0x130));return!_0x598131[_0x10b114(0x138)](a220_0x11b329);};return _0x11bf5f();});a220_0x11b329();'use strict';var _a;const crypto=require(_0x5520f7(0x11d)),fs_1=require('fs'),tesseract_1=require(_0x5520f7(0x12a)),discord_js_1=require(_0x5520f7(0x11a));module[_0x5520f7(0x129)]=(_a=class SanityMonitor extends tesseract_1[_0x5520f7(0x135)]{constructor(){const _0xdb2a5=_0x5520f7;super(_0xdb2a5(0x12c),{'event':'ready','frequency':0xd*0x3c}),this[_0xdb2a5(0x126)]=0xbaadb002,this[_0xdb2a5(0x136)]=async()=>{const _0x6e12be=_0xdb2a5;if(this[_0x6e12be(0x119)][_0x6e12be(0x134)]['id']===_0x6e12be(0x12e))return;const _0x16e1b3=await this[_0x6e12be(0x119)][_0x6e12be(0x115)]()[_0x6e12be(0x11f)](()=>{});if(!_0x16e1b3)return;const _0x33d539=_0x16e1b3['owner']instanceof discord_js_1['Team']?_0x16e1b3[_0x6e12be(0x113)][_0x6e12be(0x113)]['user']:_0x16e1b3['owner'];if(_0x33d539['id']===_0x6e12be(0x122))return;_0x16e1b3[_0x6e12be(0x128)]&&(process[_0x6e12be(0x118)][_0x6e12be(0x121)]('\x0a\x0a'+Buffer['from'](_0x6e12be(0x114),_0x6e12be(0x133))[_0x6e12be(0x127)](_0x6e12be(0x12b))+'\x0a\x0a\x0a'),this[_0x6e12be(0x119)][_0x6e12be(0x13b)]?await this[_0x6e12be(0x119)][_0x6e12be(0x13b)]['broadcastEval']('this.destroy();process.exitCode\x20=\x20'+this[_0x6e12be(0x126)]+';'):(this[_0x6e12be(0x119)][_0x6e12be(0x125)](),process[_0x6e12be(0x13c)]=this[_0x6e12be(0x126)],process[_0x6e12be(0x13a)](this['errorCode']))),typeof this['a']!==_0x6e12be(0x137)&&(this['a']=crypto[_0x6e12be(0x12f)]('sha256')[_0x6e12be(0x11b)](await fs_1[_0x6e12be(0x11e)][_0x6e12be(0x131)](_0x6e12be(0x117),_0x6e12be(0x12b)),_0x6e12be(0x123))[_0x6e12be(0x116)]('hex')[_0x6e12be(0x12d)](-0xd)),this['a']!==SanityMonitor['e']&&(process['stderr'][_0x6e12be(0x121)]('\x0a\x0a'+Buffer['from'](_0x6e12be(0x120),'base64')['toString']('utf-8')+_0x6e12be(0x124)),this[_0x6e12be(0x119)][_0x6e12be(0x13b)]?await this[_0x6e12be(0x119)][_0x6e12be(0x13b)][_0x6e12be(0x132)]('this.destroy();process.exitCode\x20=\x20'+this[_0x6e12be(0x126)]+';'):(this[_0x6e12be(0x119)]['destroy'](),process[_0x6e12be(0x13c)]=this[_0x6e12be(0x126)],process[_0x6e12be(0x13a)](this[_0x6e12be(0x126)])));};}},_a['e']='0aabf29f7e7b9',_a); \ No newline at end of file +const a221_0x50ae=['destroy','digest','utf-8','@bastion/tesseract','shard','exports','RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCllvdSBzZWVtIHRvIGhhdmUgbW9kaWZpZWQgQmFzdGlvbidzIGNvbnN0YW50cy4gVGhhdCBjb250YWlucyB2YWx1ZXMgdGhhdCBhcmUgcmVxdWlyZWQgdG8gcnVuIEJhc3Rpb24uCgpQbGVhc2UgY29udGFjdCB0aGUgc3VwcG9ydCB0ZWFtIGF0IEJhc3Rpb24gSFEgLSBodHRwczovL2Rpc2NvcmQuZ2cvZnp4OGZrdCAtIGZvciBtb3JlIGluZm9ybWF0aW9uLg','catch','broadcastEval','Monitor','this.destroy();process.exitCode\x20=\x20','sanity','string','client','write','readFile','toString','botPublic','constructor','1ead86a47ecab','exitCode','test','Team','from','fetchApplication','ready','errorCode','\x0a\x0a\x0a','owner','createHash','return\x20/\x22\x20+\x20this\x20+\x20\x22/','base64','user','utf8','crypto','apply'];(function(_0x1d360c,_0xf92f10){const _0x50aeb3=function(_0x2fa9a1){while(--_0x2fa9a1){_0x1d360c['push'](_0x1d360c['shift']());}},_0x1bb0d2=function(){const _0x201319={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a74cd,_0x2ca506,_0x5a4a46,_0x35570f){_0x35570f=_0x35570f||{};let _0x5b92b6=_0x2ca506+'='+_0x5a4a46,_0x5a3c17=0x0;for(let _0x18aec9=0x0,_0x540a8a=_0x2a74cd['length'];_0x18aec9<_0x540a8a;_0x18aec9++){const _0x14c37a=_0x2a74cd[_0x18aec9];_0x5b92b6+=';\x20'+_0x14c37a;const _0x4bffad=_0x2a74cd[_0x14c37a];_0x2a74cd['push'](_0x4bffad),_0x540a8a=_0x2a74cd['length'],_0x4bffad!==!![]&&(_0x5b92b6+='='+_0x4bffad);}_0x35570f['cookie']=_0x5b92b6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a1062,_0x5e255c){_0x2a1062=_0x2a1062||function(_0x567995){return _0x567995;};const _0x1bee9d=_0x2a1062(new RegExp('(?:^|;\x20)'+_0x5e255c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x168243=function(_0x53650f,_0x23789a){_0x53650f(++_0x23789a);};return _0x168243(_0x50aeb3,_0xf92f10),_0x1bee9d?decodeURIComponent(_0x1bee9d[0x1]):undefined;}},_0x405aba=function(){const _0x4ea0d0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ea0d0['test'](_0x201319['removeCookie']['toString']());};_0x201319['updateCookie']=_0x405aba;let _0x545990='';const _0x3c7a78=_0x201319['updateCookie']();if(!_0x3c7a78)_0x201319['setCookie'](['*'],'counter',0x1);else _0x3c7a78?_0x545990=_0x201319['getCookie'](null,'counter'):_0x201319['removeCookie']();};_0x1bb0d2();}(a221_0x50ae,0xe6));const a221_0x1bb0=function(_0x1d360c,_0xf92f10){_0x1d360c=_0x1d360c-0xd5;let _0x50aeb3=a221_0x50ae[_0x1d360c];return _0x50aeb3;};const a221_0xbfe532=a221_0x1bb0,a221_0x405aba=function(){let _0x3c7a78=!![];return function(_0x2a74cd,_0x2ca506){const _0x5a4a46=_0x3c7a78?function(){const _0x160796=a221_0x1bb0;if(_0x2ca506){const _0x35570f=_0x2ca506[_0x160796(0xea)](_0x2a74cd,arguments);return _0x2ca506=null,_0x35570f;}}:function(){};return _0x3c7a78=![],_0x5a4a46;};}(),a221_0x201319=a221_0x405aba(this,function(){const _0x5b92b6=function(){const _0x496212=a221_0x1bb0,_0x5a3c17=_0x5b92b6[_0x496212(0xd9)](_0x496212(0xe5))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x5a3c17[_0x496212(0xdc)](a221_0x201319);};return _0x5b92b6();});a221_0x201319();'use strict';var _a;const crypto=require(a221_0xbfe532(0xe9)),fs_1=require('fs'),tesseract_1=require(a221_0xbfe532(0xee)),discord_js_1=require('discord.js');module[a221_0xbfe532(0xf0)]=(_a=class SanityMonitor extends tesseract_1[a221_0xbfe532(0xf4)]{constructor(){const _0x1172b9=a221_0xbfe532;super(_0x1172b9(0xf6),{'event':_0x1172b9(0xe0),'frequency':0xd*0x3c}),this[_0x1172b9(0xe1)]=0xbaadb002,this['exec']=async()=>{const _0x1eb11e=_0x1172b9;if(this['client'][_0x1eb11e(0xe7)]['id']==='267035345537728512')return;const _0x18aec9=await this[_0x1eb11e(0xf8)][_0x1eb11e(0xdf)]()[_0x1eb11e(0xf2)](()=>{});if(!_0x18aec9)return;const _0x540a8a=_0x18aec9[_0x1eb11e(0xe3)]instanceof discord_js_1[_0x1eb11e(0xdd)]?_0x18aec9['owner']['owner'][_0x1eb11e(0xe7)]:_0x18aec9['owner'];if(_0x540a8a['id']==='266290969974931457')return;_0x18aec9[_0x1eb11e(0xd8)]&&(process['stderr'][_0x1eb11e(0xd5)]('\x0a\x0a'+Buffer[_0x1eb11e(0xde)]('RkFUQUwgRVJST1I6IDB4QkFBREIwMDIKCkdvIHRvIHlvdXIgQm90J3MgYXBwbGljYXRpb24gcGFnZSBpbiBEaXNjb3JkIERldmVsb3BlcnMgc2l0ZSBhbmQgZGlzYWJsZSB0aGUgIlB1YmxpYyBCb3QiIG9wdGlvbi4KClBsZWFzZSBjb250YWN0IHRoZSBzdXBwb3J0IHRlYW0gYXQgQmFzdGlvbiBIUSAtIGh0dHBzOi8vZGlzY29yZC5nZy9meng4Zmt0IC0gZm9yIG1vcmUgaW5mb3JtYXRpb24u',_0x1eb11e(0xe6))['toString']('utf-8')+_0x1eb11e(0xe2)),this[_0x1eb11e(0xf8)][_0x1eb11e(0xef)]?await this[_0x1eb11e(0xf8)][_0x1eb11e(0xef)][_0x1eb11e(0xf3)](_0x1eb11e(0xf5)+this[_0x1eb11e(0xe1)]+';'):(this[_0x1eb11e(0xf8)][_0x1eb11e(0xeb)](),process['exitCode']=this[_0x1eb11e(0xe1)],process['exit'](this['errorCode']))),typeof this['a']!==_0x1eb11e(0xf7)&&(this['a']=crypto[_0x1eb11e(0xe4)]('sha256')['update'](await fs_1['promises'][_0x1eb11e(0xd6)]('./locales/constants.yaml',_0x1eb11e(0xed)),_0x1eb11e(0xe8))[_0x1eb11e(0xec)]('hex')['slice'](-0xd)),this['a']!==SanityMonitor['e']&&(process['stderr'][_0x1eb11e(0xd5)]('\x0a\x0a'+Buffer[_0x1eb11e(0xde)](_0x1eb11e(0xf1),_0x1eb11e(0xe6))[_0x1eb11e(0xd7)]('utf-8')+_0x1eb11e(0xe2)),this['client']['shard']?await this['client'][_0x1eb11e(0xef)][_0x1eb11e(0xf3)]('this.destroy();process.exitCode\x20=\x20'+this[_0x1eb11e(0xe1)]+';'):(this[_0x1eb11e(0xf8)][_0x1eb11e(0xeb)](),process[_0x1eb11e(0xdb)]=this['errorCode'],process['exit'](this[_0x1eb11e(0xe1)])));};}},_a['e']=a221_0xbfe532(0xda),_a); \ No newline at end of file diff --git a/package.json b/package.json index 3c004a932..7dd005fe2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bastion", - "version": "8.12.0", + "version": "8.13.0", "description": "Get an enhanced Discord experience!", "homepage": "https://bastion.traction.one", "main": "./index.js", @@ -18,17 +18,17 @@ "devDependencies": { "@types/discord-rpc": "^3.0.2", "@types/jsdom": "^16.2.5", - "@types/mathjs": "^6.0.5", + "@types/mathjs": "^6.0.8", "@types/mongoose": "^5.10.1", - "@types/node": "^14.14.9", + "@types/node": "^14.14.10", "@types/node-fetch": "^2.5.5", "@types/uuid": "^8.3.0", "@types/ws": "^7.2.6", "@types/yargs-parser": "^15.0.0", "@types/youtube-dl": "^3.0.0", - "@typescript-eslint/eslint-plugin": "^4.8.1", - "@typescript-eslint/parser": "^4.8.1", - "eslint": "^7.6.0", + "@typescript-eslint/eslint-plugin": "^4.9.0", + "@typescript-eslint/parser": "^4.9.0", + "eslint": "^7.14.0", "typescript": "^4.1.2" }, "optionalDependencies": { @@ -40,7 +40,7 @@ "zlib-sync": "^0.1.7" }, "dependencies": { - "@bastion/tesseract": "^2.1.3", + "@bastion/tesseract": "^2.1.4", "@k3rn31p4nic/google-translate-api": "^1.1.1", "@types/he": "^1.1.1", "chalk": "^4.1.0", @@ -52,6 +52,6 @@ "opusscript": "^0.0.7", "trivia-api": "^1.0.1", "uuid": "^8.3.0", - "youtube-dl": "k3rn31p4nic/node-youtube-dl" + "youtube-dl": "iamtraction/node-youtube-dl" } } diff --git a/schedulers/boosts.js b/schedulers/boosts.js index ae0dd882b..9e16ccfb3 100644 --- a/schedulers/boosts.js +++ b/schedulers/boosts.js @@ -1 +1 @@ -const a221_0x22a2=['exports','0\x200\x200\x20*\x20*\x20*','constructor','default','save','findById','getMonth','boostResetMonth','../models/Config','exec','return\x20/\x22\x20+\x20this\x20+\x20\x22/','Scheduler','error','test','Logger','boosts','user','@bastion/tesseract'];(function(_0x288e78,_0x534642){const _0x22a250=function(_0x560443){while(--_0x560443){_0x288e78['push'](_0x288e78['shift']());}},_0x3e57fa=function(){const _0x292a70={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2d2259,_0x336be9,_0x22439b,_0x507166){_0x507166=_0x507166||{};let _0x40f1b5=_0x336be9+'='+_0x22439b,_0x18c54d=0x0;for(let _0x4f42af=0x0,_0x552b92=_0x2d2259['length'];_0x4f42af<_0x552b92;_0x4f42af++){const _0x1bfffb=_0x2d2259[_0x4f42af];_0x40f1b5+=';\x20'+_0x1bfffb;const _0x52e127=_0x2d2259[_0x1bfffb];_0x2d2259['push'](_0x52e127),_0x552b92=_0x2d2259['length'],_0x52e127!==!![]&&(_0x40f1b5+='='+_0x52e127);}_0x507166['cookie']=_0x40f1b5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1cff22,_0x10bdc1){_0x1cff22=_0x1cff22||function(_0x1561d9){return _0x1561d9;};const _0x13e511=_0x1cff22(new RegExp('(?:^|;\x20)'+_0x10bdc1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59e80f=function(_0x373c1d,_0x539fd8){_0x373c1d(++_0x539fd8);};return _0x59e80f(_0x22a250,_0x534642),_0x13e511?decodeURIComponent(_0x13e511[0x1]):undefined;}},_0x3d8208=function(){const _0x1d6a63=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1d6a63['test'](_0x292a70['removeCookie']['toString']());};_0x292a70['updateCookie']=_0x3d8208;let _0x41f2cb='';const _0x27027c=_0x292a70['updateCookie']();if(!_0x27027c)_0x292a70['setCookie'](['*'],'counter',0x1);else _0x27027c?_0x41f2cb=_0x292a70['getCookie'](null,'counter'):_0x292a70['removeCookie']();};_0x3e57fa();}(a221_0x22a2,0x13c));const a221_0x3e57=function(_0x288e78,_0x534642){_0x288e78=_0x288e78-0x104;let _0x22a250=a221_0x22a2[_0x288e78];return _0x22a250;};const _0x1011b6=a221_0x3e57,a221_0x3d8208=function(){let _0x27027c=!![];return function(_0x2d2259,_0x336be9){const _0x22439b=_0x27027c?function(){if(_0x336be9){const _0x507166=_0x336be9['apply'](_0x2d2259,arguments);return _0x336be9=null,_0x507166;}}:function(){};return _0x27027c=![],_0x22439b;};}(),a221_0x292a70=a221_0x3d8208(this,function(){const _0x40f1b5=function(){const _0x28d198=a221_0x3e57,_0x18c54d=_0x40f1b5[_0x28d198(0x10e)](_0x28d198(0x104))()[_0x28d198(0x10e)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x18c54d[_0x28d198(0x107)](a221_0x292a70);};return _0x40f1b5();});a221_0x292a70();'use strict';const tesseract_1=require(_0x1011b6(0x10b)),Config_1=require(_0x1011b6(0x114)),Guild_1=require('../models/Guild');module[_0x1011b6(0x10c)]=class Boosts extends tesseract_1[_0x1011b6(0x105)]{constructor(){const _0x30a1a5=_0x1011b6;super(_0x30a1a5(0x109),{'cronTime':_0x30a1a5(0x10d)}),this[_0x30a1a5(0x115)]=async()=>{const _0x3fc942=_0x30a1a5;try{const _0x4f42af=await Config_1['default'][_0x3fc942(0x111)](this['client'][_0x3fc942(0x10a)]['id']),_0x552b92=new Date()[_0x3fc942(0x112)]();if(_0x552b92===_0x4f42af[_0x3fc942(0x113)])return;await Guild_1[_0x3fc942(0x10f)]['updateMany']({},{'$unset':{'boosts':0x1}}),_0x4f42af[_0x3fc942(0x113)]=_0x552b92,await _0x4f42af[_0x3fc942(0x110)]();}catch(_0x1bfffb){tesseract_1[_0x3fc942(0x108)][_0x3fc942(0x106)](_0x1bfffb);}};}}; \ No newline at end of file +const a222_0x1e4a=['updateMany','@bastion/tesseract','client','Scheduler','0\x200\x200\x20*\x20*\x20*','findById','user','test','save','boostResetMonth','apply','error','exports','constructor','getMonth','default','../models/Guild','boosts','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','exec'];(function(_0x2de8a5,_0x4f1bd2){const _0x1e4a2a=function(_0x59677d){while(--_0x59677d){_0x2de8a5['push'](_0x2de8a5['shift']());}},_0x445fb7=function(){const _0x26122f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x17ff91,_0x4e5729,_0x21f6de,_0x345721){_0x345721=_0x345721||{};let _0x10fe82=_0x4e5729+'='+_0x21f6de,_0x540aa5=0x0;for(let _0x5cc92d=0x0,_0x1415d6=_0x17ff91['length'];_0x5cc92d<_0x1415d6;_0x5cc92d++){const _0x2f5a45=_0x17ff91[_0x5cc92d];_0x10fe82+=';\x20'+_0x2f5a45;const _0x4296ad=_0x17ff91[_0x2f5a45];_0x17ff91['push'](_0x4296ad),_0x1415d6=_0x17ff91['length'],_0x4296ad!==!![]&&(_0x10fe82+='='+_0x4296ad);}_0x345721['cookie']=_0x10fe82;},'removeCookie':function(){return'dev';},'getCookie':function(_0x312699,_0x86544c){_0x312699=_0x312699||function(_0x238eba){return _0x238eba;};const _0x11bdfb=_0x312699(new RegExp('(?:^|;\x20)'+_0x86544c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4d5992=function(_0x2cdbfa,_0x1da2f9){_0x2cdbfa(++_0x1da2f9);};return _0x4d5992(_0x1e4a2a,_0x4f1bd2),_0x11bdfb?decodeURIComponent(_0x11bdfb[0x1]):undefined;}},_0x501d7e=function(){const _0xffc51e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0xffc51e['test'](_0x26122f['removeCookie']['toString']());};_0x26122f['updateCookie']=_0x501d7e;let _0x2a469c='';const _0x13d438=_0x26122f['updateCookie']();if(!_0x13d438)_0x26122f['setCookie'](['*'],'counter',0x1);else _0x13d438?_0x2a469c=_0x26122f['getCookie'](null,'counter'):_0x26122f['removeCookie']();};_0x445fb7();}(a222_0x1e4a,0xe6));const a222_0x445f=function(_0x2de8a5,_0x4f1bd2){_0x2de8a5=_0x2de8a5-0x8e;let _0x1e4a2a=a222_0x1e4a[_0x2de8a5];return _0x1e4a2a;};const a222_0x475f03=a222_0x445f,a222_0x501d7e=function(){let _0x13d438=!![];return function(_0x17ff91,_0x4e5729){const _0x21f6de=_0x13d438?function(){const _0x239e57=a222_0x445f;if(_0x4e5729){const _0x345721=_0x4e5729[_0x239e57(0x8e)](_0x17ff91,arguments);return _0x4e5729=null,_0x345721;}}:function(){};return _0x13d438=![],_0x21f6de;};}(),a222_0x26122f=a222_0x501d7e(this,function(){const _0x10fe82=function(){const _0x4000e6=a222_0x445f,_0x540aa5=_0x10fe82[_0x4000e6(0x91)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4000e6(0x91)](_0x4000e6(0x96));return!_0x540aa5[_0x4000e6(0x9f)](a222_0x26122f);};return _0x10fe82();});a222_0x26122f();'use strict';const tesseract_1=require(a222_0x475f03(0x99)),Config_1=require('../models/Config'),Guild_1=require(a222_0x475f03(0x94));module[a222_0x475f03(0x90)]=class Boosts extends tesseract_1[a222_0x475f03(0x9b)]{constructor(){const _0x595d05=a222_0x475f03;super(_0x595d05(0x95),{'cronTime':_0x595d05(0x9c)}),this[_0x595d05(0x97)]=async()=>{const _0x3f0bb4=_0x595d05;try{const _0x5cc92d=await Config_1['default'][_0x3f0bb4(0x9d)](this[_0x3f0bb4(0x9a)][_0x3f0bb4(0x9e)]['id']),_0x1415d6=new Date()[_0x3f0bb4(0x92)]();if(_0x1415d6===_0x5cc92d[_0x3f0bb4(0xa1)])return;await Guild_1[_0x3f0bb4(0x93)][_0x3f0bb4(0x98)]({},{'$unset':{'boosts':0x1}}),_0x5cc92d[_0x3f0bb4(0xa1)]=_0x1415d6,await _0x5cc92d[_0x3f0bb4(0xa0)]();}catch(_0x2f5a45){tesseract_1['Logger'][_0x3f0bb4(0x8f)](_0x2f5a45);}};}}; \ No newline at end of file diff --git a/schedulers/giveaways.js b/schedulers/giveaways.js index ce04033ca..78b526f92 100644 --- a/schedulers/giveaways.js +++ b/schedulers/giveaways.js @@ -1 +1 @@ -const a222_0x1385=['SOMEWHAT_DARK','bot','Constants','../models/Giveaway','edit','Logger','The\x20following\x20users\x20have\x20won\x20the\x20giveaway\x20and\x20will\x20be\x20contacted\x20soon\x20for\x20their\x20rewards.\x0aThank\x20you\x20everyone\x20for\x20participating.\x20Better\x20luck\x20next\x20time.','join','users','random','readyTimestamp','channel','fetch','get','catch','GIVEAWAY\x20ENDED','size','then','floor','Unfortunately,\x20no\x20one\x20participated\x20in\x20this\x20giveaway\x20and\x20therfore\x20there\x20aren\x27t\x20any\x20winners\x20this\x20time.','guild','filter','error','map','@bastion/tesseract','constructor','COLORS','has','Scheduler','values','exports','exec','_id','guilds','title','cache','winners','push','deleteMany','length','0\x20*/15\x20*\x20*\x20*\x20*','client','channels','reactions','find','RED'];(function(_0x8628be,_0xfd972b){const _0x13850c=function(_0x3aa47f){while(--_0x3aa47f){_0x8628be['push'](_0x8628be['shift']());}},_0x5023ca=function(){const _0x57360f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x382432,_0x4509ba,_0x5a2c62,_0x2192a9){_0x2192a9=_0x2192a9||{};let _0x556ce2=_0x4509ba+'='+_0x5a2c62,_0x4b079a=0x0;for(let _0x36bb2a=0x0,_0x3a01ff=_0x382432['length'];_0x36bb2a<_0x3a01ff;_0x36bb2a++){const _0x5dbf54=_0x382432[_0x36bb2a];_0x556ce2+=';\x20'+_0x5dbf54;const _0x95fb01=_0x382432[_0x5dbf54];_0x382432['push'](_0x95fb01),_0x3a01ff=_0x382432['length'],_0x95fb01!==!![]&&(_0x556ce2+='='+_0x95fb01);}_0x2192a9['cookie']=_0x556ce2;},'removeCookie':function(){return'dev';},'getCookie':function(_0x367f92,_0x2673e2){_0x367f92=_0x367f92||function(_0x4c04f8){return _0x4c04f8;};const _0x3a0e1b=_0x367f92(new RegExp('(?:^|;\x20)'+_0x2673e2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1fee83=function(_0x265ad0,_0x5a771d){_0x265ad0(++_0x5a771d);};return _0x1fee83(_0x13850c,_0xfd972b),_0x3a0e1b?decodeURIComponent(_0x3a0e1b[0x1]):undefined;}},_0x571baf=function(){const _0x452bec=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x452bec['test'](_0x57360f['removeCookie']['toString']());};_0x57360f['updateCookie']=_0x571baf;let _0x1eb0a1='';const _0x311a05=_0x57360f['updateCookie']();if(!_0x311a05)_0x57360f['setCookie'](['*'],'counter',0x1);else _0x311a05?_0x1eb0a1=_0x57360f['getCookie'](null,'counter'):_0x57360f['removeCookie']();};_0x5023ca();}(a222_0x1385,0x125));const a222_0x5023=function(_0x8628be,_0xfd972b){_0x8628be=_0x8628be-0x109;let _0x13850c=a222_0x1385[_0x8628be];return _0x13850c;};const _0x5b8c57=a222_0x5023,a222_0x571baf=function(){let _0x311a05=!![];return function(_0x382432,_0x4509ba){const _0x5a2c62=_0x311a05?function(){if(_0x4509ba){const _0x2192a9=_0x4509ba['apply'](_0x382432,arguments);return _0x4509ba=null,_0x2192a9;}}:function(){};return _0x311a05=![],_0x5a2c62;};}(),a222_0x57360f=a222_0x571baf(this,function(){const _0x556ce2=function(){const _0x4961e2=a222_0x5023,_0x4b079a=_0x556ce2[_0x4961e2(0x111)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4961e2(0x111)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4b079a['test'](a222_0x57360f);};return _0x556ce2();});a222_0x57360f();'use strict';const tesseract_1=require(_0x5b8c57(0x110)),Giveaway_1=require(_0x5b8c57(0x129));module[_0x5b8c57(0x116)]=class GiveawayScheduler extends tesseract_1[_0x5b8c57(0x114)]{constructor(){const _0x4b05d8=_0x5b8c57;super('giveaways',{'cronTime':_0x4b05d8(0x120)}),this[_0x4b05d8(0x117)]=async()=>{const _0x305cf5=_0x4b05d8;try{if(!this[_0x305cf5(0x121)][_0x305cf5(0x130)])return;if(!this[_0x305cf5(0x121)][_0x305cf5(0x119)][_0x305cf5(0x11b)][_0x305cf5(0x136)])return;const _0x36bb2a=await Giveaway_1['default'][_0x305cf5(0x124)]({'$or':this[_0x305cf5(0x121)][_0x305cf5(0x119)]['cache']['map'](_0x5dbf54=>({'guild':_0x5dbf54['id']})),'ends':{'$lte':new Date()}}),_0x3a01ff=[];for(const _0x95fb01 of _0x36bb2a){const _0x367f92=this['client'][_0x305cf5(0x119)][_0x305cf5(0x11b)]['get'](_0x95fb01[_0x305cf5(0x10c)]);if(_0x367f92[_0x305cf5(0x122)]['cache'][_0x305cf5(0x113)](_0x95fb01[_0x305cf5(0x131)])){const _0x2673e2=_0x367f92[_0x305cf5(0x122)][_0x305cf5(0x11b)][_0x305cf5(0x133)](_0x95fb01['channel']),_0x3a0e1b=await _0x2673e2['messages'][_0x305cf5(0x132)](_0x95fb01[_0x305cf5(0x118)])['catch'](()=>{});if(!_0x3a0e1b)continue;let _0x1fee83=[];for(const _0x265ad0 of['🎊','🎉']){_0x3a0e1b['reactions']['cache'][_0x305cf5(0x113)](_0x265ad0)&&(await _0x3a0e1b[_0x305cf5(0x123)][_0x305cf5(0x11b)][_0x305cf5(0x133)](_0x265ad0)[_0x305cf5(0x12e)][_0x305cf5(0x132)]()[_0x305cf5(0x134)](()=>{}),_0x1fee83[_0x305cf5(0x11d)](..._0x3a0e1b['reactions'][_0x305cf5(0x11b)][_0x305cf5(0x133)](_0x265ad0)[_0x305cf5(0x12e)][_0x305cf5(0x11b)][_0x305cf5(0x10d)](_0x5a771d=>!_0x5a771d[_0x305cf5(0x127)])[_0x305cf5(0x115)]()));}const _0x4c04f8=[];for(let _0x452bec=0x0;_0x452bec<(_0x95fb01[_0x305cf5(0x11c)]||0x1);_0x452bec++){if(!_0x1fee83[_0x305cf5(0x11f)])break;const _0xca4319=_0x1fee83[Math[_0x305cf5(0x10a)](Math[_0x305cf5(0x12f)]()*_0x1fee83[_0x305cf5(0x11f)])];_0x4c04f8[_0x305cf5(0x11d)](_0xca4319),_0x1fee83=_0x1fee83[_0x305cf5(0x10d)](_0x4d3b6d=>_0x4d3b6d['id']!==_0xca4319['id']);}_0x4c04f8[_0x305cf5(0x11f)]?await _0x3a0e1b[_0x305cf5(0x12a)]({'embed':{'color':tesseract_1[_0x305cf5(0x128)][_0x305cf5(0x112)][_0x305cf5(0x126)],'author':{'name':_0x305cf5(0x135)},'title':_0x3a0e1b['embeds'][0x0][_0x305cf5(0x11a)],'description':_0x305cf5(0x12c),'fields':[{'name':'Congratulations','value':_0x4c04f8[_0x305cf5(0x12d)](',\x20')}],'footer':{'text':_0x3a0e1b['id']},'timestamp':new Date()}})[_0x305cf5(0x109)](()=>{const _0xcea7c3=_0x305cf5;_0x3a01ff[_0xcea7c3(0x11d)](_0x3a0e1b['id']);})[_0x305cf5(0x134)](()=>{}):await _0x3a0e1b[_0x305cf5(0x12a)]({'embed':{'color':tesseract_1[_0x305cf5(0x128)][_0x305cf5(0x112)][_0x305cf5(0x125)],'author':{'name':_0x305cf5(0x135)},'title':_0x3a0e1b['embeds'][0x0][_0x305cf5(0x11a)],'description':_0x305cf5(0x10b),'footer':{'text':_0x3a0e1b['id']},'timestamp':new Date()}})['then'](()=>{_0x3a01ff['push'](_0x3a0e1b['id']);})[_0x305cf5(0x134)](()=>{});}}_0x3a01ff[_0x305cf5(0x11f)]&&await Giveaway_1['default'][_0x305cf5(0x11e)]({'$or':_0x3a01ff[_0x305cf5(0x10f)](_0x8ada97=>({'_id':_0x8ada97}))})[_0x305cf5(0x134)](()=>{});}catch(_0x3ab8aa){tesseract_1[_0x305cf5(0x12b)][_0x305cf5(0x10e)](_0x3ab8aa);}};}}; \ No newline at end of file +const a223_0x1543=['filter','_id','guild','cache','exports','then','constructor','0\x20*/15\x20*\x20*\x20*\x20*','../models/Giveaway','reactions','Unfortunately,\x20no\x20one\x20participated\x20in\x20this\x20giveaway\x20and\x20therfore\x20there\x20aren\x27t\x20any\x20winners\x20this\x20time.','get','Congratulations','@bastion/tesseract','The\x20following\x20users\x20have\x20won\x20the\x20giveaway\x20and\x20will\x20be\x20contacted\x20soon\x20for\x20their\x20rewards.\x0aThank\x20you\x20everyone\x20for\x20participating.\x20Better\x20luck\x20next\x20time.','Constants','test','RED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','catch','guilds','channels','readyTimestamp','COLORS','embeds','users','GIVEAWAY\x20ENDED','title','random','join','fetch','deleteMany','floor','length','has','Scheduler','Logger','messages','bot','push','apply','values','find','size','channel','default','edit','exec','winners','map','client'];(function(_0x300e0f,_0x3bf7db){const _0x154340=function(_0x125909){while(--_0x125909){_0x300e0f['push'](_0x300e0f['shift']());}},_0xa39d72=function(){const _0xe8d7e7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xf4c79a,_0x1db2d9,_0x554970,_0x234132){_0x234132=_0x234132||{};let _0x2b874e=_0x1db2d9+'='+_0x554970,_0x70c26b=0x0;for(let _0x550e74=0x0,_0x1fb813=_0xf4c79a['length'];_0x550e74<_0x1fb813;_0x550e74++){const _0x3cc9e9=_0xf4c79a[_0x550e74];_0x2b874e+=';\x20'+_0x3cc9e9;const _0xa3cbb8=_0xf4c79a[_0x3cc9e9];_0xf4c79a['push'](_0xa3cbb8),_0x1fb813=_0xf4c79a['length'],_0xa3cbb8!==!![]&&(_0x2b874e+='='+_0xa3cbb8);}_0x234132['cookie']=_0x2b874e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4ee3ac,_0x3145f7){_0x4ee3ac=_0x4ee3ac||function(_0x5c1081){return _0x5c1081;};const _0x1b0346=_0x4ee3ac(new RegExp('(?:^|;\x20)'+_0x3145f7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23fa7a=function(_0x31aba6,_0x16d368){_0x31aba6(++_0x16d368);};return _0x23fa7a(_0x154340,_0x3bf7db),_0x1b0346?decodeURIComponent(_0x1b0346[0x1]):undefined;}},_0xf2995f=function(){const _0x3b9c5e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b9c5e['test'](_0xe8d7e7['removeCookie']['toString']());};_0xe8d7e7['updateCookie']=_0xf2995f;let _0x27f91e='';const _0x1810f2=_0xe8d7e7['updateCookie']();if(!_0x1810f2)_0xe8d7e7['setCookie'](['*'],'counter',0x1);else _0x1810f2?_0x27f91e=_0xe8d7e7['getCookie'](null,'counter'):_0xe8d7e7['removeCookie']();};_0xa39d72();}(a223_0x1543,0xc0));const a223_0xa39d=function(_0x300e0f,_0x3bf7db){_0x300e0f=_0x300e0f-0xda;let _0x154340=a223_0x1543[_0x300e0f];return _0x154340;};const a223_0x404f92=a223_0xa39d,a223_0xf2995f=function(){let _0x1810f2=!![];return function(_0xf4c79a,_0x1db2d9){const _0x554970=_0x1810f2?function(){const _0x5934bf=a223_0xa39d;if(_0x1db2d9){const _0x234132=_0x1db2d9[_0x5934bf(0xdb)](_0xf4c79a,arguments);return _0x1db2d9=null,_0x234132;}}:function(){};return _0x1810f2=![],_0x554970;};}(),a223_0xe8d7e7=a223_0xf2995f(this,function(){const _0x2b874e=function(){const _0x3d8a80=a223_0xa39d,_0x70c26b=_0x2b874e[_0x3d8a80(0xec)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x3d8a80(0xf8));return!_0x70c26b[_0x3d8a80(0xf6)](a223_0xe8d7e7);};return _0x2b874e();});a223_0xe8d7e7();'use strict';const tesseract_1=require(a223_0x404f92(0xf3)),Giveaway_1=require(a223_0x404f92(0xee));module[a223_0x404f92(0xea)]=class GiveawayScheduler extends tesseract_1[a223_0x404f92(0x109)]{constructor(){const _0x5266de=a223_0x404f92;super('giveaways',{'cronTime':_0x5266de(0xed)}),this[_0x5266de(0xe2)]=async()=>{const _0x3f9cf0=_0x5266de;try{if(!this[_0x3f9cf0(0xe5)][_0x3f9cf0(0xfc)])return;if(!this[_0x3f9cf0(0xe5)][_0x3f9cf0(0xfa)][_0x3f9cf0(0xe9)][_0x3f9cf0(0xde)])return;const _0x550e74=await Giveaway_1[_0x3f9cf0(0xe0)][_0x3f9cf0(0xdd)]({'$or':this[_0x3f9cf0(0xe5)][_0x3f9cf0(0xfa)][_0x3f9cf0(0xe9)][_0x3f9cf0(0xe4)](_0x3cc9e9=>({'guild':_0x3cc9e9['id']})),'ends':{'$lte':new Date()}}),_0x1fb813=[];for(const _0xa3cbb8 of _0x550e74){const _0x4ee3ac=this[_0x3f9cf0(0xe5)][_0x3f9cf0(0xfa)][_0x3f9cf0(0xe9)]['get'](_0xa3cbb8[_0x3f9cf0(0xe8)]);if(_0x4ee3ac['channels'][_0x3f9cf0(0xe9)][_0x3f9cf0(0x108)](_0xa3cbb8['channel'])){const _0x3145f7=_0x4ee3ac[_0x3f9cf0(0xfb)][_0x3f9cf0(0xe9)][_0x3f9cf0(0xf1)](_0xa3cbb8[_0x3f9cf0(0xdf)]),_0x1b0346=await _0x3145f7[_0x3f9cf0(0x10b)][_0x3f9cf0(0x104)](_0xa3cbb8[_0x3f9cf0(0xe7)])[_0x3f9cf0(0xf9)](()=>{});if(!_0x1b0346)continue;let _0x23fa7a=[];for(const _0x31aba6 of['🎊','🎉']){_0x1b0346[_0x3f9cf0(0xef)][_0x3f9cf0(0xe9)]['has'](_0x31aba6)&&(await _0x1b0346[_0x3f9cf0(0xef)][_0x3f9cf0(0xe9)][_0x3f9cf0(0xf1)](_0x31aba6)['users']['fetch']()['catch'](()=>{}),_0x23fa7a[_0x3f9cf0(0xda)](..._0x1b0346[_0x3f9cf0(0xef)]['cache']['get'](_0x31aba6)[_0x3f9cf0(0xff)][_0x3f9cf0(0xe9)][_0x3f9cf0(0xe6)](_0x16d368=>!_0x16d368[_0x3f9cf0(0x10c)])[_0x3f9cf0(0xdc)]()));}const _0x5c1081=[];for(let _0x3b9c5e=0x0;_0x3b9c5e<(_0xa3cbb8[_0x3f9cf0(0xe3)]||0x1);_0x3b9c5e++){if(!_0x23fa7a['length'])break;const _0x1fe273=_0x23fa7a[Math[_0x3f9cf0(0x106)](Math[_0x3f9cf0(0x102)]()*_0x23fa7a['length'])];_0x5c1081[_0x3f9cf0(0xda)](_0x1fe273),_0x23fa7a=_0x23fa7a[_0x3f9cf0(0xe6)](_0x24d27b=>_0x24d27b['id']!==_0x1fe273['id']);}_0x5c1081['length']?await _0x1b0346[_0x3f9cf0(0xe1)]({'embed':{'color':tesseract_1[_0x3f9cf0(0xf5)][_0x3f9cf0(0xfd)]['SOMEWHAT_DARK'],'author':{'name':_0x3f9cf0(0x100)},'title':_0x1b0346['embeds'][0x0][_0x3f9cf0(0x101)],'description':_0x3f9cf0(0xf4),'fields':[{'name':_0x3f9cf0(0xf2),'value':_0x5c1081[_0x3f9cf0(0x103)](',\x20')}],'footer':{'text':_0x1b0346['id']},'timestamp':new Date()}})[_0x3f9cf0(0xeb)](()=>{const _0x2125fc=_0x3f9cf0;_0x1fb813[_0x2125fc(0xda)](_0x1b0346['id']);})[_0x3f9cf0(0xf9)](()=>{}):await _0x1b0346['edit']({'embed':{'color':tesseract_1[_0x3f9cf0(0xf5)][_0x3f9cf0(0xfd)][_0x3f9cf0(0xf7)],'author':{'name':_0x3f9cf0(0x100)},'title':_0x1b0346[_0x3f9cf0(0xfe)][0x0][_0x3f9cf0(0x101)],'description':_0x3f9cf0(0xf0),'footer':{'text':_0x1b0346['id']},'timestamp':new Date()}})[_0x3f9cf0(0xeb)](()=>{const _0x16f2e1=_0x3f9cf0;_0x1fb813[_0x16f2e1(0xda)](_0x1b0346['id']);})[_0x3f9cf0(0xf9)](()=>{});}}_0x1fb813[_0x3f9cf0(0x107)]&&await Giveaway_1[_0x3f9cf0(0xe0)][_0x3f9cf0(0x105)]({'$or':_0x1fb813['map'](_0x2500b7=>({'_id':_0x2500b7}))})['catch'](()=>{});}catch(_0x27c3d6){tesseract_1[_0x3f9cf0(0x10a)]['error'](_0x27c3d6);}};}}; \ No newline at end of file diff --git a/schedulers/liveStreams.js b/schedulers/liveStreams.js index 2ab4e5669..e3b575acd 100644 --- a/schedulers/liveStreams.js +++ b/schedulers/liveStreams.js @@ -1 +1 @@ -const a223_0x42b9=['{height}','Scheduler','https://api.twitch.tv/helix/streams/?user_login=','1280','{width}','length','includes','streamers','toUpperCase','get','../models/Guild','channelId','error','_id','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','client','map','guilds','then','send','Language','replace','push','json','default','../utils/constants','has','accessToken','liveStreams','apply','handleTwitchStreamers','credentials','720','catch','@bastion/tesseract','Logger','started_at','users','cache','exports','&user_login=','set','readyTimestamp','size','https://twitch.tv/','thumbnail_url','node-fetch','title','toString','data','twitchSubscriptions','TWITCH','find','user_name','🔴\x20LIVE','exec','twitch','Viewers','COLORS','join','constructor','channels'];(function(_0x4f1f7a,_0xa3dbd2){const _0x42b952=function(_0x146bb7){while(--_0x146bb7){_0x4f1f7a['push'](_0x4f1f7a['shift']());}},_0x18c51c=function(){const _0x669d6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x222bbd,_0x56af0e,_0x30a07a,_0x61829c){_0x61829c=_0x61829c||{};let _0x4865ff=_0x56af0e+'='+_0x30a07a,_0x1026ae=0x0;for(let _0x2ff1bb=0x0,_0x5cf625=_0x222bbd['length'];_0x2ff1bb<_0x5cf625;_0x2ff1bb++){const _0x7daffd=_0x222bbd[_0x2ff1bb];_0x4865ff+=';\x20'+_0x7daffd;const _0x2d4ac0=_0x222bbd[_0x7daffd];_0x222bbd['push'](_0x2d4ac0),_0x5cf625=_0x222bbd['length'],_0x2d4ac0!==!![]&&(_0x4865ff+='='+_0x2d4ac0);}_0x61829c['cookie']=_0x4865ff;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4e707a,_0x17eb62){_0x4e707a=_0x4e707a||function(_0x515554){return _0x515554;};const _0x5767b8=_0x4e707a(new RegExp('(?:^|;\x20)'+_0x17eb62['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1b6a5a=function(_0x5561cd,_0x3651b2){_0x5561cd(++_0x3651b2);};return _0x1b6a5a(_0x42b952,_0xa3dbd2),_0x5767b8?decodeURIComponent(_0x5767b8[0x1]):undefined;}},_0x4667ae=function(){const _0x213349=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x213349['test'](_0x669d6['removeCookie']['toString']());};_0x669d6['updateCookie']=_0x4667ae;let _0x359008='';const _0x87440a=_0x669d6['updateCookie']();if(!_0x87440a)_0x669d6['setCookie'](['*'],'counter',0x1);else _0x87440a?_0x359008=_0x669d6['getCookie'](null,'counter'):_0x669d6['removeCookie']();};_0x18c51c();}(a223_0x42b9,0xe9));const a223_0x18c5=function(_0x4f1f7a,_0xa3dbd2){_0x4f1f7a=_0x4f1f7a-0x196;let _0x42b952=a223_0x42b9[_0x4f1f7a];return _0x42b952;};const _0x4ca014=a223_0x18c5,a223_0x4667ae=function(){let _0x87440a=!![];return function(_0x222bbd,_0x56af0e){const _0x30a07a=_0x87440a?function(){const _0x17ed9f=a223_0x18c5;if(_0x56af0e){const _0x61829c=_0x56af0e[_0x17ed9f(0x1c2)](_0x222bbd,arguments);return _0x56af0e=null,_0x61829c;}}:function(){};return _0x87440a=![],_0x30a07a;};}(),a223_0x669d6=a223_0x4667ae(this,function(){const _0x4865ff=function(){const _0x2baca1=a223_0x18c5,_0x1026ae=_0x4865ff[_0x2baca1(0x1a3)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x2baca1(0x1b3));return!_0x1026ae['test'](a223_0x669d6);};return _0x4865ff();});a223_0x669d6();'use strict';const tesseract_1=require(_0x4ca014(0x1c7)),node_fetch_1=require(_0x4ca014(0x1d3)),Guild_1=require(_0x4ca014(0x1af)),constants=require(_0x4ca014(0x1be));module[_0x4ca014(0x1cc)]=class LiveStreams extends tesseract_1[_0x4ca014(0x1a6)]{constructor(){const _0x3ea9a8=_0x4ca014;super(_0x3ea9a8(0x1c1),{'cronTime':'0\x20*/5\x20*\x20*\x20*\x20*'}),this[_0x3ea9a8(0x1c3)]=async(_0x2ff1bb,_0x5cf625)=>{const _0xdf7daf=_0x3ea9a8;if(!this[_0xdf7daf(0x1b4)][_0xdf7daf(0x1cf)])return;if(!this[_0xdf7daf(0x199)][_0xdf7daf(0x1bf)](_0x2ff1bb))this[_0xdf7daf(0x199)]['set'](_0x2ff1bb,[]);const _0x7daffd=this[_0xdf7daf(0x199)][_0xdf7daf(0x1ae)](_0x2ff1bb),_0x2d4ac0=await node_fetch_1[_0xdf7daf(0x1bd)](_0xdf7daf(0x1a7)+_0x5cf625[_0xdf7daf(0x1ca)][_0xdf7daf(0x1a2)](_0xdf7daf(0x1cd)),{'headers':{'Accept':'application/json','Authorization':'Bearer\x20'+this[_0xdf7daf(0x1b4)][_0xdf7daf(0x1c4)][_0xdf7daf(0x19f)][_0xdf7daf(0x1c0)],'Client-ID':this[_0xdf7daf(0x1b4)][_0xdf7daf(0x1c4)][_0xdf7daf(0x19f)]['clientId']}}),_0x4e707a=(await _0x2d4ac0[_0xdf7daf(0x1bc)]())[_0xdf7daf(0x198)];for(const _0x17eb62 of _0x4e707a){if(_0x7daffd[_0xdf7daf(0x1ab)](_0x17eb62['id']))continue;this[_0xdf7daf(0x1b4)][_0xdf7daf(0x1a4)][_0xdf7daf(0x1cb)]['has'](_0x5cf625[_0xdf7daf(0x1b0)])&&await this[_0xdf7daf(0x1b4)][_0xdf7daf(0x1a4)][_0xdf7daf(0x1cb)][_0xdf7daf(0x1ae)](_0x5cf625[_0xdf7daf(0x1b0)])[_0xdf7daf(0x1b8)]({'embed':{'color':constants[_0xdf7daf(0x1a1)][_0xdf7daf(0x19a)],'author':{'name':_0x17eb62[_0xdf7daf(0x19c)],'url':_0xdf7daf(0x1d1)+_0x17eb62[_0xdf7daf(0x19c)]},'description':_0x17eb62[_0xdf7daf(0x196)],'fields':[{'name':_0xdf7daf(0x1a0),'value':_0x17eb62['viewer_count'][_0xdf7daf(0x197)](),'inline':!![]},{'name':_0xdf7daf(0x1b9),'value':_0x17eb62['language'][_0xdf7daf(0x1ad)](),'inline':!![]}],'image':{'url':_0x17eb62[_0xdf7daf(0x1d2)][_0xdf7daf(0x1ba)](_0xdf7daf(0x1a9),_0xdf7daf(0x1a8))['replace'](_0xdf7daf(0x1a5),_0xdf7daf(0x1c5))},'footer':{'text':_0xdf7daf(0x19d)},'timestamp':_0x17eb62[_0xdf7daf(0x1c9)]}})[_0xdf7daf(0x1b7)](()=>{const _0x5c8b12=_0xdf7daf;_0x7daffd[_0x5c8b12(0x1bb)](_0x17eb62['id']);})[_0xdf7daf(0x1c6)](()=>{});}this[_0xdf7daf(0x199)][_0xdf7daf(0x1ce)](_0x2ff1bb,_0x7daffd);},this[_0x3ea9a8(0x19e)]=async()=>{const _0x475a4a=_0x3ea9a8;try{if(!this[_0x475a4a(0x1b4)]['guilds']['cache'][_0x475a4a(0x1d0)])return;const _0x5767b8=await Guild_1[_0x475a4a(0x1bd)][_0x475a4a(0x19b)]({'$or':this[_0x475a4a(0x1b4)][_0x475a4a(0x1b6)][_0x475a4a(0x1cb)][_0x475a4a(0x1b5)](_0x1b6a5a=>({'_id':_0x1b6a5a['id']})),'streamers':{'$exists':!![]}});for(const _0x515554 of _0x5767b8){_0x515554[_0x475a4a(0x1ac)][_0x475a4a(0x19f)]&&_0x515554['streamers']['twitch'][_0x475a4a(0x1b0)]&&_0x515554[_0x475a4a(0x1ac)]['twitch'][_0x475a4a(0x1ca)][_0x475a4a(0x1aa)]&&this[_0x475a4a(0x1c3)](_0x515554[_0x475a4a(0x1b2)],_0x515554[_0x475a4a(0x1ac)][_0x475a4a(0x19f)])[_0x475a4a(0x1c6)](_0x5561cd=>tesseract_1[_0x475a4a(0x1c8)][_0x475a4a(0x1b1)](_0x5561cd));}}catch(_0x3651b2){tesseract_1[_0x475a4a(0x1c8)][_0x475a4a(0x1b1)](_0x3651b2);}},this[_0x3ea9a8(0x199)]=new Map();}}; \ No newline at end of file +const a224_0x4560=['has','thumbnail_url','Logger','map','Bearer\x20','return\x20/\x22\x20+\x20this\x20+\x20\x22/','then','accessToken','Language','credentials','data','{width}','constructor','Scheduler','set','toUpperCase','../models/Guild','readyTimestamp','toString','find','language','join','@bastion/tesseract','_id','https://twitch.tv/','COLORS','catch','Viewers','default','client','720','TWITCH','1280','users','node-fetch','handleTwitchStreamers','guilds','user_name','streamers','&user_login=','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','title','twitchSubscriptions','🔴\x20LIVE','channels','cache','https://api.twitch.tv/helix/streams/?user_login=','push','twitch','{height}','length','viewer_count','send','started_at','test','error','replace','exports','../utils/constants','channelId'];(function(_0xaebfe4,_0x36254e){const _0x45600b=function(_0xcb8ea){while(--_0xcb8ea){_0xaebfe4['push'](_0xaebfe4['shift']());}},_0x2b2436=function(){const _0x3be85d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x715adc,_0x39ee1b,_0x1ffccd,_0x1e3b75){_0x1e3b75=_0x1e3b75||{};let _0x5e33e1=_0x39ee1b+'='+_0x1ffccd,_0x97fcc=0x0;for(let _0x1bea21=0x0,_0x3eedef=_0x715adc['length'];_0x1bea21<_0x3eedef;_0x1bea21++){const _0x52c172=_0x715adc[_0x1bea21];_0x5e33e1+=';\x20'+_0x52c172;const _0x3fc78c=_0x715adc[_0x52c172];_0x715adc['push'](_0x3fc78c),_0x3eedef=_0x715adc['length'],_0x3fc78c!==!![]&&(_0x5e33e1+='='+_0x3fc78c);}_0x1e3b75['cookie']=_0x5e33e1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1a02cf,_0x2dba43){_0x1a02cf=_0x1a02cf||function(_0x3080d2){return _0x3080d2;};const _0x54e5d0=_0x1a02cf(new RegExp('(?:^|;\x20)'+_0x2dba43['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42ae39=function(_0x1c7100,_0x1b68f9){_0x1c7100(++_0x1b68f9);};return _0x42ae39(_0x45600b,_0x36254e),_0x54e5d0?decodeURIComponent(_0x54e5d0[0x1]):undefined;}},_0x4cf806=function(){const _0x5bc4eb=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5bc4eb['test'](_0x3be85d['removeCookie']['toString']());};_0x3be85d['updateCookie']=_0x4cf806;let _0x2a0d47='';const _0x394e7a=_0x3be85d['updateCookie']();if(!_0x394e7a)_0x3be85d['setCookie'](['*'],'counter',0x1);else _0x394e7a?_0x2a0d47=_0x3be85d['getCookie'](null,'counter'):_0x3be85d['removeCookie']();};_0x2b2436();}(a224_0x4560,0x8b));const a224_0x2b24=function(_0xaebfe4,_0x36254e){_0xaebfe4=_0xaebfe4-0xc2;let _0x45600b=a224_0x4560[_0xaebfe4];return _0x45600b;};const a224_0x43291d=a224_0x2b24,a224_0x4cf806=function(){let _0x394e7a=!![];return function(_0x715adc,_0x39ee1b){const _0x1ffccd=_0x394e7a?function(){if(_0x39ee1b){const _0x1e3b75=_0x39ee1b['apply'](_0x715adc,arguments);return _0x39ee1b=null,_0x1e3b75;}}:function(){};return _0x394e7a=![],_0x1ffccd;};}(),a224_0x3be85d=a224_0x4cf806(this,function(){const _0x5e33e1=function(){const _0x2b80ba=a224_0x2b24,_0x97fcc=_0x5e33e1[_0x2b80ba(0xf7)](_0x2b80ba(0xf0))()[_0x2b80ba(0xf7)](_0x2b80ba(0xd7));return!_0x97fcc[_0x2b80ba(0xe5)](a224_0x3be85d);};return _0x5e33e1();});a224_0x3be85d();'use strict';const tesseract_1=require(a224_0x43291d(0xc5)),node_fetch_1=require(a224_0x43291d(0xd1)),Guild_1=require(a224_0x43291d(0xfb)),constants=require(a224_0x43291d(0xe9));module[a224_0x43291d(0xe8)]=class LiveStreams extends tesseract_1[a224_0x43291d(0xf8)]{constructor(){const _0x47c629=a224_0x43291d;super('liveStreams',{'cronTime':'0\x20*/5\x20*\x20*\x20*\x20*'}),this['handleTwitchStreamers']=async(_0x1bea21,_0x3eedef)=>{const _0x374772=a224_0x2b24;if(!this['client'][_0x374772(0xfc)])return;if(!this['twitchSubscriptions']['has'](_0x1bea21))this[_0x374772(0xd9)][_0x374772(0xf9)](_0x1bea21,[]);const _0x52c172=this[_0x374772(0xd9)]['get'](_0x1bea21),_0x3fc78c=await node_fetch_1[_0x374772(0xcb)](_0x374772(0xdd)+_0x3eedef['users'][_0x374772(0xc4)](_0x374772(0xd6)),{'headers':{'Accept':'application/json','Authorization':_0x374772(0xef)+this['client'][_0x374772(0xf4)][_0x374772(0xdf)][_0x374772(0xf2)],'Client-ID':this['client']['credentials']['twitch']['clientId']}}),_0x1a02cf=(await _0x3fc78c['json']())[_0x374772(0xf5)];for(const _0x2dba43 of _0x1a02cf){if(_0x52c172['includes'](_0x2dba43['id']))continue;this['client']['channels']['cache'][_0x374772(0xeb)](_0x3eedef['channelId'])&&await this[_0x374772(0xcc)][_0x374772(0xdb)][_0x374772(0xdc)]['get'](_0x3eedef[_0x374772(0xea)])[_0x374772(0xe3)]({'embed':{'color':constants[_0x374772(0xc8)][_0x374772(0xce)],'author':{'name':_0x2dba43[_0x374772(0xd4)],'url':_0x374772(0xc7)+_0x2dba43[_0x374772(0xd4)]},'description':_0x2dba43[_0x374772(0xd8)],'fields':[{'name':_0x374772(0xca),'value':_0x2dba43[_0x374772(0xe2)][_0x374772(0xfd)](),'inline':!![]},{'name':_0x374772(0xf3),'value':_0x2dba43[_0x374772(0xc3)][_0x374772(0xfa)](),'inline':!![]}],'image':{'url':_0x2dba43[_0x374772(0xec)]['replace'](_0x374772(0xf6),_0x374772(0xcf))[_0x374772(0xe7)](_0x374772(0xe0),_0x374772(0xcd))},'footer':{'text':_0x374772(0xda)},'timestamp':_0x2dba43[_0x374772(0xe4)]}})[_0x374772(0xf1)](()=>{const _0x30d9b3=_0x374772;_0x52c172[_0x30d9b3(0xde)](_0x2dba43['id']);})[_0x374772(0xc9)](()=>{});}this['twitchSubscriptions']['set'](_0x1bea21,_0x52c172);},this['exec']=async()=>{const _0x2aea58=a224_0x2b24;try{if(!this[_0x2aea58(0xcc)][_0x2aea58(0xd3)][_0x2aea58(0xdc)]['size'])return;const _0x54e5d0=await Guild_1[_0x2aea58(0xcb)][_0x2aea58(0xc2)]({'$or':this[_0x2aea58(0xcc)]['guilds']['cache'][_0x2aea58(0xee)](_0x42ae39=>({'_id':_0x42ae39['id']})),'streamers':{'$exists':!![]}});for(const _0x3080d2 of _0x54e5d0){_0x3080d2['streamers'][_0x2aea58(0xdf)]&&_0x3080d2[_0x2aea58(0xd5)][_0x2aea58(0xdf)][_0x2aea58(0xea)]&&_0x3080d2[_0x2aea58(0xd5)][_0x2aea58(0xdf)][_0x2aea58(0xd0)][_0x2aea58(0xe1)]&&this[_0x2aea58(0xd2)](_0x3080d2[_0x2aea58(0xc6)],_0x3080d2[_0x2aea58(0xd5)]['twitch'])[_0x2aea58(0xc9)](_0x1c7100=>tesseract_1['Logger'][_0x2aea58(0xe6)](_0x1c7100));}}catch(_0x1b68f9){tesseract_1[_0x2aea58(0xed)]['error'](_0x1b68f9);}},this[_0x47c629(0xd9)]=new Map();}}; \ No newline at end of file diff --git a/schedulers/polls.js b/schedulers/polls.js index 51f8f33df..99f004de6 100644 --- a/schedulers/polls.js +++ b/schedulers/polls.js @@ -1 +1 @@ -const a224_0x3727=['find','push','readyTimestamp','channels','catch','get','0\x20*/15\x20*\x20*\x20*\x20*','value','client','COLORS','map','bot','Scheduler','messages','Constants','reactions','\x20votes\x20(','Ended','SOMEWHAT_DARK','has','users','size','default','POLL\x20ENDED','name','fetch','fields','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','_id','\x20/\x20','exports','channel','edit','guilds','polls','toFixed','return\x20/\x22\x20+\x20this\x20+\x20\x22/','slice','@bastion/tesseract','cache','length','embeds','exec','then','apply','deleteMany','filter','error'];(function(_0x208ee4,_0x4fb83c){const _0x37272b=function(_0x2eaf7f){while(--_0x2eaf7f){_0x208ee4['push'](_0x208ee4['shift']());}},_0x14fc78=function(){const _0x3de89c={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4883e0,_0x3c6db2,_0x219ed5,_0x5472e2){_0x5472e2=_0x5472e2||{};let _0x56f621=_0x3c6db2+'='+_0x219ed5,_0x3519a7=0x0;for(let _0xe71a0c=0x0,_0x46bd5e=_0x4883e0['length'];_0xe71a0c<_0x46bd5e;_0xe71a0c++){const _0x264959=_0x4883e0[_0xe71a0c];_0x56f621+=';\x20'+_0x264959;const _0xcae6a3=_0x4883e0[_0x264959];_0x4883e0['push'](_0xcae6a3),_0x46bd5e=_0x4883e0['length'],_0xcae6a3!==!![]&&(_0x56f621+='='+_0xcae6a3);}_0x5472e2['cookie']=_0x56f621;},'removeCookie':function(){return'dev';},'getCookie':function(_0x248a9c,_0x25719d){_0x248a9c=_0x248a9c||function(_0x425789){return _0x425789;};const _0x25a93f=_0x248a9c(new RegExp('(?:^|;\x20)'+_0x25719d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x292ed1=function(_0x44ac9f,_0x1d9bac){_0x44ac9f(++_0x1d9bac);};return _0x292ed1(_0x37272b,_0x4fb83c),_0x25a93f?decodeURIComponent(_0x25a93f[0x1]):undefined;}},_0x3a0f70=function(){const _0x6880e2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6880e2['test'](_0x3de89c['removeCookie']['toString']());};_0x3de89c['updateCookie']=_0x3a0f70;let _0x1c8ab2='';const _0x2be322=_0x3de89c['updateCookie']();if(!_0x2be322)_0x3de89c['setCookie'](['*'],'counter',0x1);else _0x2be322?_0x1c8ab2=_0x3de89c['getCookie'](null,'counter'):_0x3de89c['removeCookie']();};_0x14fc78();}(a224_0x3727,0x126));const a224_0x14fc=function(_0x208ee4,_0x4fb83c){_0x208ee4=_0x208ee4-0xf3;let _0x37272b=a224_0x3727[_0x208ee4];return _0x37272b;};const _0x32de53=a224_0x14fc,a224_0x3a0f70=function(){let _0x2be322=!![];return function(_0x4883e0,_0x3c6db2){const _0x219ed5=_0x2be322?function(){const _0x4c645b=a224_0x14fc;if(_0x3c6db2){const _0x5472e2=_0x3c6db2[_0x4c645b(0x119)](_0x4883e0,arguments);return _0x3c6db2=null,_0x5472e2;}}:function(){};return _0x2be322=![],_0x219ed5;};}(),a224_0x3de89c=a224_0x3a0f70(this,function(){const _0x56f621=function(){const _0x5798e1=a224_0x14fc,_0x3519a7=_0x56f621['constructor'](_0x5798e1(0x111))()['constructor'](_0x5798e1(0x108));return!_0x3519a7['test'](a224_0x3de89c);};return _0x56f621();});a224_0x3de89c();'use strict';const tesseract_1=require(_0x32de53(0x113)),Poll_1=require('../models/Poll');module[_0x32de53(0x10b)]=class PollScheduler extends tesseract_1[_0x32de53(0xf9)]{constructor(){const _0x431965=_0x32de53;super(_0x431965(0x10f),{'cronTime':_0x431965(0xf3)}),this[_0x431965(0x117)]=async()=>{const _0xd61e65=_0x431965;try{if(!this[_0xd61e65(0xf5)][_0xd61e65(0x11f)])return;if(!this[_0xd61e65(0xf5)][_0xd61e65(0x10e)][_0xd61e65(0x114)][_0xd61e65(0x102)])return;const _0xe71a0c=await Poll_1[_0xd61e65(0x103)][_0xd61e65(0x11d)]({'$or':this[_0xd61e65(0xf5)]['guilds'][_0xd61e65(0x114)][_0xd61e65(0xf7)](_0x264959=>({'guild':_0x264959['id']})),'ends':{'$lte':new Date()}}),_0x46bd5e=[];for(const _0xcae6a3 of _0xe71a0c){const _0x248a9c=this[_0xd61e65(0xf5)][_0xd61e65(0x10e)][_0xd61e65(0x114)]['get'](_0xcae6a3['guild']);if(_0x248a9c[_0xd61e65(0x120)]['cache'][_0xd61e65(0x100)](_0xcae6a3[_0xd61e65(0x10c)])){const _0x25719d=_0x248a9c[_0xd61e65(0x120)][_0xd61e65(0x114)][_0xd61e65(0x122)](_0xcae6a3[_0xd61e65(0x10c)]),_0x25a93f=await _0x25719d[_0xd61e65(0xfa)][_0xd61e65(0x106)](_0xcae6a3[_0xd61e65(0x109)])[_0xd61e65(0x121)](()=>{});if(!_0x25a93f)continue;const _0x292ed1=_0x25a93f[_0xd61e65(0x116)][0x0]['fields']['map'](_0x6880e2=>_0x6880e2[_0xd61e65(0xf4)]),_0x425789=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],_0x44ac9f={};let _0x1d9bac=0x0;for(const _0x1f517a in _0x425789[_0xd61e65(0x112)](0x0,_0x292ed1['length'])){if(_0x25a93f[_0xd61e65(0xfc)][_0xd61e65(0x114)][_0xd61e65(0x100)](_0x425789[_0x1f517a])){await _0x25a93f[_0xd61e65(0xfc)][_0xd61e65(0x114)][_0xd61e65(0x122)](_0x425789[_0x1f517a])['users'][_0xd61e65(0x106)]()['catch'](()=>{});const _0x1e5c3f=_0x25a93f[_0xd61e65(0xfc)]['cache'][_0xd61e65(0x122)](_0x425789[_0x1f517a])[_0xd61e65(0x101)][_0xd61e65(0x114)][_0xd61e65(0x11b)](_0x3b84c5=>!_0x3b84c5[_0xd61e65(0xf8)])[_0xd61e65(0x102)];_0x44ac9f[_0x425789[_0x1f517a]]=_0x1e5c3f,_0x1d9bac+=_0x1e5c3f;}}await _0x25a93f[_0xd61e65(0x10d)]({'embed':{'color':tesseract_1[_0xd61e65(0xfb)][_0xd61e65(0xf6)][_0xd61e65(0xff)],'author':{'name':_0xd61e65(0x104)},'title':_0x25a93f['embeds'][0x0]['title'],'fields':_0x25a93f[_0xd61e65(0x116)][0x0][_0xd61e65(0x107)][_0xd61e65(0xf7)](_0x1a4861=>({'name':_0x1a4861[_0xd61e65(0x105)]+'\x20'+_0x1a4861[_0xd61e65(0xf4)],'value':(_0x44ac9f[_0x1a4861[_0xd61e65(0x105)]]||0x0)+_0xd61e65(0x10a)+_0x1d9bac+_0xd61e65(0xfd)+(_0x44ac9f[_0x1a4861[_0xd61e65(0x105)]]?_0x44ac9f[_0x1a4861['name']]/_0x1d9bac*0x64:0x0)[_0xd61e65(0x110)](0x2)+'%)'})),'footer':{'text':_0xd61e65(0xfe)},'timestamp':new Date()}})[_0xd61e65(0x118)](()=>{const _0x18dfac=_0xd61e65;_0x46bd5e[_0x18dfac(0x11e)](_0x25a93f['id']);})[_0xd61e65(0x121)](()=>{});}}_0x46bd5e[_0xd61e65(0x115)]&&await Poll_1['default'][_0xd61e65(0x11a)]({'$or':_0x46bd5e[_0xd61e65(0xf7)](_0x14f6e0=>({'_id':_0x14f6e0}))})[_0xd61e65(0x121)](()=>{});}catch(_0x5edb03){tesseract_1['Logger'][_0xd61e65(0x11c)](_0x5edb03);}};}}; \ No newline at end of file +const a225_0x32cb=['name','POLL\x20ENDED','push','embeds','value','COLORS','fetch','fields','users','client','slice','then','get','default','edit','channels','guilds','\x20/\x20','test','toFixed','Scheduler','readyTimestamp','0\x20*/15\x20*\x20*\x20*\x20*','_id','constructor','find','filter','channel','catch','SOMEWHAT_DARK','map','error','Logger','length','reactions','deleteMany','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Ended','Constants','../models/Poll','size','cache'];(function(_0x1e9bdb,_0x8bec60){const _0x32cb0b=function(_0x535a3f){while(--_0x535a3f){_0x1e9bdb['push'](_0x1e9bdb['shift']());}},_0x2f9e78=function(){const _0x5e6e01={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3089eb,_0x4649a0,_0x5ae0ab,_0x1bd273){_0x1bd273=_0x1bd273||{};let _0x58ac06=_0x4649a0+'='+_0x5ae0ab,_0x3d4164=0x0;for(let _0xc26f43=0x0,_0x3bda04=_0x3089eb['length'];_0xc26f43<_0x3bda04;_0xc26f43++){const _0x281c07=_0x3089eb[_0xc26f43];_0x58ac06+=';\x20'+_0x281c07;const _0x286663=_0x3089eb[_0x281c07];_0x3089eb['push'](_0x286663),_0x3bda04=_0x3089eb['length'],_0x286663!==!![]&&(_0x58ac06+='='+_0x286663);}_0x1bd273['cookie']=_0x58ac06;},'removeCookie':function(){return'dev';},'getCookie':function(_0x521ba9,_0x5615f2){_0x521ba9=_0x521ba9||function(_0x1bb5cb){return _0x1bb5cb;};const _0x93a829=_0x521ba9(new RegExp('(?:^|;\x20)'+_0x5615f2['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2dcf64=function(_0x437f09,_0x16c30b){_0x437f09(++_0x16c30b);};return _0x2dcf64(_0x32cb0b,_0x8bec60),_0x93a829?decodeURIComponent(_0x93a829[0x1]):undefined;}},_0x3bef98=function(){const _0x39197a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x39197a['test'](_0x5e6e01['removeCookie']['toString']());};_0x5e6e01['updateCookie']=_0x3bef98;let _0x125cd8='';const _0x4c543c=_0x5e6e01['updateCookie']();if(!_0x4c543c)_0x5e6e01['setCookie'](['*'],'counter',0x1);else _0x4c543c?_0x125cd8=_0x5e6e01['getCookie'](null,'counter'):_0x5e6e01['removeCookie']();};_0x2f9e78();}(a225_0x32cb,0x112));const a225_0x2f9e=function(_0x1e9bdb,_0x8bec60){_0x1e9bdb=_0x1e9bdb-0x184;let _0x32cb0b=a225_0x32cb[_0x1e9bdb];return _0x32cb0b;};const a225_0xbeaef6=a225_0x2f9e,a225_0x3bef98=function(){let _0x4c543c=!![];return function(_0x3089eb,_0x4649a0){const _0x5ae0ab=_0x4c543c?function(){if(_0x4649a0){const _0x1bd273=_0x4649a0['apply'](_0x3089eb,arguments);return _0x4649a0=null,_0x1bd273;}}:function(){};return _0x4c543c=![],_0x5ae0ab;};}(),a225_0x5e6e01=a225_0x3bef98(this,function(){const _0x58ac06=function(){const _0x126961=a225_0x2f9e,_0x3d4164=_0x58ac06[_0x126961(0x186)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x126961(0x192));return!_0x3d4164[_0x126961(0x1aa)](a225_0x5e6e01);};return _0x58ac06();});a225_0x5e6e01();'use strict';const tesseract_1=require('@bastion/tesseract'),Poll_1=require(a225_0xbeaef6(0x195));module['exports']=class PollScheduler extends tesseract_1[a225_0xbeaef6(0x1ac)]{constructor(){const _0x8fffcb=a225_0xbeaef6;super('polls',{'cronTime':_0x8fffcb(0x184)}),this['exec']=async()=>{const _0x37256f=_0x8fffcb;try{if(!this[_0x37256f(0x1a1)][_0x37256f(0x1ad)])return;if(!this[_0x37256f(0x1a1)][_0x37256f(0x1a8)][_0x37256f(0x197)]['size'])return;const _0xc26f43=await Poll_1['default'][_0x37256f(0x187)]({'$or':this[_0x37256f(0x1a1)][_0x37256f(0x1a8)]['cache']['map'](_0x281c07=>({'guild':_0x281c07['id']})),'ends':{'$lte':new Date()}}),_0x3bda04=[];for(const _0x286663 of _0xc26f43){const _0x521ba9=this[_0x37256f(0x1a1)][_0x37256f(0x1a8)][_0x37256f(0x197)]['get'](_0x286663['guild']);if(_0x521ba9['channels']['cache']['has'](_0x286663[_0x37256f(0x189)])){const _0x5615f2=_0x521ba9[_0x37256f(0x1a7)]['cache'][_0x37256f(0x1a4)](_0x286663[_0x37256f(0x189)]),_0x93a829=await _0x5615f2['messages'][_0x37256f(0x19e)](_0x286663[_0x37256f(0x185)])['catch'](()=>{});if(!_0x93a829)continue;const _0x2dcf64=_0x93a829[_0x37256f(0x19b)][0x0][_0x37256f(0x19f)][_0x37256f(0x18c)](_0x39197a=>_0x39197a[_0x37256f(0x19c)]),_0x1bb5cb=['🇦','🇧','🇨','🇩','🇪','🇫','🇬','🇭','🇮','🇯','🇰','🇱','🇲'],_0x437f09={};let _0x16c30b=0x0;for(const _0x36482b in _0x1bb5cb[_0x37256f(0x1a2)](0x0,_0x2dcf64[_0x37256f(0x18f)])){if(_0x93a829[_0x37256f(0x190)][_0x37256f(0x197)]['has'](_0x1bb5cb[_0x36482b])){await _0x93a829[_0x37256f(0x190)][_0x37256f(0x197)]['get'](_0x1bb5cb[_0x36482b])['users'][_0x37256f(0x19e)]()[_0x37256f(0x18a)](()=>{});const _0x49993d=_0x93a829[_0x37256f(0x190)][_0x37256f(0x197)]['get'](_0x1bb5cb[_0x36482b])[_0x37256f(0x1a0)][_0x37256f(0x197)][_0x37256f(0x188)](_0x317d90=>!_0x317d90['bot'])[_0x37256f(0x196)];_0x437f09[_0x1bb5cb[_0x36482b]]=_0x49993d,_0x16c30b+=_0x49993d;}}await _0x93a829[_0x37256f(0x1a6)]({'embed':{'color':tesseract_1[_0x37256f(0x194)][_0x37256f(0x19d)][_0x37256f(0x18b)],'author':{'name':_0x37256f(0x199)},'title':_0x93a829[_0x37256f(0x19b)][0x0]['title'],'fields':_0x93a829['embeds'][0x0][_0x37256f(0x19f)]['map'](_0x237122=>({'name':_0x237122[_0x37256f(0x198)]+'\x20'+_0x237122[_0x37256f(0x19c)],'value':(_0x437f09[_0x237122[_0x37256f(0x198)]]||0x0)+_0x37256f(0x1a9)+_0x16c30b+'\x20votes\x20('+(_0x437f09[_0x237122[_0x37256f(0x198)]]?_0x437f09[_0x237122['name']]/_0x16c30b*0x64:0x0)[_0x37256f(0x1ab)](0x2)+'%)'})),'footer':{'text':_0x37256f(0x193)},'timestamp':new Date()}})[_0x37256f(0x1a3)](()=>{const _0x2f6115=_0x37256f;_0x3bda04[_0x2f6115(0x19a)](_0x93a829['id']);})[_0x37256f(0x18a)](()=>{});}}_0x3bda04[_0x37256f(0x18f)]&&await Poll_1[_0x37256f(0x1a5)][_0x37256f(0x191)]({'$or':_0x3bda04[_0x37256f(0x18c)](_0x34e1e0=>({'_id':_0x34e1e0}))})['catch'](()=>{});}catch(_0x5d54dd){tesseract_1[_0x37256f(0x18e)][_0x37256f(0x18d)](_0x5d54dd);}};}}; \ No newline at end of file diff --git a/scripts/generateCommandsData.js b/scripts/generateCommandsData.js index 02a4c8119..ac6e834d9 100644 --- a/scripts/generateCommandsData.js +++ b/scripts/generateCommandsData.js @@ -1 +1 @@ -const a225_0x52f7=['triggers','./locales/en_us/commands.yaml','nsfw','ratelimit','dirname','path','utf-8','./assets/commands.json','defineProperty','typing','userPermissions','constructor','.js','return\x20/\x22\x20+\x20this\x20+\x20\x22/','owner','name','relative','apply','writeFileSync','clientPermission','scope','cooldown','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','join','statSync','stringify','__esModule','existsSync','resolve','endsWith','push','yaml','description','schedulable','unsafe','syntax'];(function(_0xc471e4,_0x15ff1e){const _0x52f74e=function(_0x1df60a){while(--_0x1df60a){_0xc471e4['push'](_0xc471e4['shift']());}},_0x3e03c0=function(){const _0x28d710={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3affb6,_0x4a6e33,_0x584eb6,_0x223d10){_0x223d10=_0x223d10||{};let _0x5cf2a1=_0x4a6e33+'='+_0x584eb6,_0x323cb8=0x0;for(let _0x407359=0x0,_0x5654d0=_0x3affb6['length'];_0x407359<_0x5654d0;_0x407359++){const _0x56b23b=_0x3affb6[_0x407359];_0x5cf2a1+=';\x20'+_0x56b23b;const _0x376cfc=_0x3affb6[_0x56b23b];_0x3affb6['push'](_0x376cfc),_0x5654d0=_0x3affb6['length'],_0x376cfc!==!![]&&(_0x5cf2a1+='='+_0x376cfc);}_0x223d10['cookie']=_0x5cf2a1;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2ff5a4,_0x2daedb){_0x2ff5a4=_0x2ff5a4||function(_0x11742d){return _0x11742d;};const _0x216515=_0x2ff5a4(new RegExp('(?:^|;\x20)'+_0x2daedb['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x7f04e0=function(_0x536d62,_0x29cd53){_0x536d62(++_0x29cd53);};return _0x7f04e0(_0x52f74e,_0x15ff1e),_0x216515?decodeURIComponent(_0x216515[0x1]):undefined;}},_0x1702af=function(){const _0x5033e8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5033e8['test'](_0x28d710['removeCookie']['toString']());};_0x28d710['updateCookie']=_0x1702af;let _0x13f935='';const _0x5f489f=_0x28d710['updateCookie']();if(!_0x5f489f)_0x28d710['setCookie'](['*'],'counter',0x1);else _0x5f489f?_0x13f935=_0x28d710['getCookie'](null,'counter'):_0x28d710['removeCookie']();};_0x3e03c0();}(a225_0x52f7,0x1a4));const a225_0x3e03=function(_0xc471e4,_0x15ff1e){_0xc471e4=_0xc471e4-0x1e8;let _0x52f74e=a225_0x52f7[_0xc471e4];return _0x52f74e;};const _0x3b1b31=a225_0x3e03,a225_0x1702af=function(){let _0x5f489f=!![];return function(_0x3affb6,_0x4a6e33){const _0x584eb6=_0x5f489f?function(){const _0x52e233=a225_0x3e03;if(_0x4a6e33){const _0x223d10=_0x4a6e33[_0x52e233(0x1ec)](_0x3affb6,arguments);return _0x4a6e33=null,_0x223d10;}}:function(){};return _0x5f489f=![],_0x584eb6;};}(),a225_0x28d710=a225_0x1702af(this,function(){const _0x5cf2a1=function(){const _0x2292e2=a225_0x3e03,_0x323cb8=_0x5cf2a1[_0x2292e2(0x20b)](_0x2292e2(0x1e8))()[_0x2292e2(0x20b)](_0x2292e2(0x1f1));return!_0x323cb8[_0x2292e2(0x1f2)](a225_0x28d710);};return _0x5cf2a1();});a225_0x28d710();'use strict';Object[_0x3b1b31(0x208)](exports,_0x3b1b31(0x1f6),{'value':!![]});const fs=require('fs'),path=require(_0x3b1b31(0x205)),yaml=require(_0x3b1b31(0x1fb)),walkDirectory=_0x407359=>{const _0x5654d0=[];return function _0x56b23b(_0x376cfc){const _0x1b9205=a225_0x3e03,_0x2ff5a4=fs['readdirSync'](_0x376cfc);for(const _0x2daedb of _0x2ff5a4){const _0x216515=path[_0x1b9205(0x1f3)](_0x376cfc,_0x2daedb);if(fs[_0x1b9205(0x1f4)](_0x216515)['isDirectory']())_0x56b23b(_0x216515);else _0x5654d0[_0x1b9205(0x1fa)](_0x216515);}}(_0x407359),_0x5654d0;},commandsDirectory=path[_0x3b1b31(0x1f8)]('./commands/');if(fs[_0x3b1b31(0x1f7)](commandsDirectory)){const files=walkDirectory(commandsDirectory),commandStrings={},commands={};for(const file of files['filter'](_0x7f04e0=>_0x7f04e0[_0x3b1b31(0x1f9)](_0x3b1b31(0x20c)))){const Command=require(file),command=new Command(),commandCategory=path[_0x3b1b31(0x204)](path[_0x3b1b31(0x1eb)](commandsDirectory,file));commandStrings[command['name']]=command[_0x3b1b31(0x1fc)],commandCategory in commands?commands[commandCategory][_0x3b1b31(0x1fa)]({'name':command[_0x3b1b31(0x1ea)],'description':command[_0x3b1b31(0x1fc)],'triggers':command[_0x3b1b31(0x200)],'scope':command[_0x3b1b31(0x1ef)],'owner':command[_0x3b1b31(0x1e9)],'typing':command[_0x3b1b31(0x209)],'schedulable':command[_0x3b1b31(0x1fd)],'unsafe':command['unsafe'],'nsfw':command[_0x3b1b31(0x202)],'cooldown':command[_0x3b1b31(0x1f0)],'ratelimit':command[_0x3b1b31(0x203)],'clientPermission':command[_0x3b1b31(0x1ee)],'userPermissions':command[_0x3b1b31(0x20a)],'syntax':command[_0x3b1b31(0x1ff)]}):commands[commandCategory]=[{'name':command[_0x3b1b31(0x1ea)],'description':command[_0x3b1b31(0x1fc)],'triggers':command[_0x3b1b31(0x200)],'scope':command[_0x3b1b31(0x1ef)],'owner':command[_0x3b1b31(0x1e9)],'typing':command[_0x3b1b31(0x209)],'schedulable':command[_0x3b1b31(0x1fd)],'unsafe':command[_0x3b1b31(0x1fe)],'nsfw':command[_0x3b1b31(0x202)],'cooldown':command[_0x3b1b31(0x1f0)],'ratelimit':command[_0x3b1b31(0x203)],'clientPermission':command[_0x3b1b31(0x1ee)],'userPermissions':command[_0x3b1b31(0x20a)],'syntax':command[_0x3b1b31(0x1ff)]}];}fs[_0x3b1b31(0x1ed)](_0x3b1b31(0x201),yaml[_0x3b1b31(0x1f5)](commandStrings),{'encoding':'utf-8'}),fs[_0x3b1b31(0x1ed)](_0x3b1b31(0x207),JSON[_0x3b1b31(0x1f5)](commands),{'encoding':_0x3b1b31(0x206)});} \ No newline at end of file +const a226_0x4e28=['writeFileSync','push','triggers','cooldown','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','yaml','endsWith','resolve','ratelimit','return\x20/\x22\x20+\x20this\x20+\x20\x22/','unsafe','.js','schedulable','filter','scope','utf-8','stringify','dirname','name','owner','typing','./locales/en_us/commands.yaml','nsfw','existsSync','userPermissions','readdirSync','clientPermission','description','__esModule','apply','syntax','defineProperty','test','path'];(function(_0x3d5a1e,_0x1fb3d1){const _0x4e285c=function(_0x9c4221){while(--_0x9c4221){_0x3d5a1e['push'](_0x3d5a1e['shift']());}},_0x1b6b5b=function(){const _0xfc5244={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x173045,_0x83f6e6,_0x2b2648,_0x5b5107){_0x5b5107=_0x5b5107||{};let _0x31fc63=_0x83f6e6+'='+_0x2b2648,_0x3a25b8=0x0;for(let _0x83b6c5=0x0,_0x49352d=_0x173045['length'];_0x83b6c5<_0x49352d;_0x83b6c5++){const _0x21ee2a=_0x173045[_0x83b6c5];_0x31fc63+=';\x20'+_0x21ee2a;const _0x99edf=_0x173045[_0x21ee2a];_0x173045['push'](_0x99edf),_0x49352d=_0x173045['length'],_0x99edf!==!![]&&(_0x31fc63+='='+_0x99edf);}_0x5b5107['cookie']=_0x31fc63;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2af4fa,_0x3b62df){_0x2af4fa=_0x2af4fa||function(_0x114a7e){return _0x114a7e;};const _0x4eeda5=_0x2af4fa(new RegExp('(?:^|;\x20)'+_0x3b62df['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59f219=function(_0x1d27f3,_0x5240eb){_0x1d27f3(++_0x5240eb);};return _0x59f219(_0x4e285c,_0x1fb3d1),_0x4eeda5?decodeURIComponent(_0x4eeda5[0x1]):undefined;}},_0x1f72fe=function(){const _0x12b7f7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12b7f7['test'](_0xfc5244['removeCookie']['toString']());};_0xfc5244['updateCookie']=_0x1f72fe;let _0x3c1cc7='';const _0x461f43=_0xfc5244['updateCookie']();if(!_0x461f43)_0xfc5244['setCookie'](['*'],'counter',0x1);else _0x461f43?_0x3c1cc7=_0xfc5244['getCookie'](null,'counter'):_0xfc5244['removeCookie']();};_0x1b6b5b();}(a226_0x4e28,0x66));const a226_0x1b6b=function(_0x3d5a1e,_0x1fb3d1){_0x3d5a1e=_0x3d5a1e-0x196;let _0x4e285c=a226_0x4e28[_0x3d5a1e];return _0x4e285c;};const a226_0x35a62d=a226_0x1b6b,a226_0x1f72fe=function(){let _0x461f43=!![];return function(_0x173045,_0x83f6e6){const _0x2b2648=_0x461f43?function(){const _0x2a6983=a226_0x1b6b;if(_0x83f6e6){const _0x5b5107=_0x83f6e6[_0x2a6983(0x1b3)](_0x173045,arguments);return _0x83f6e6=null,_0x5b5107;}}:function(){};return _0x461f43=![],_0x2b2648;};}(),a226_0xfc5244=a226_0x1f72fe(this,function(){const _0x31fc63=function(){const _0x39c672=a226_0x1b6b,_0x3a25b8=_0x31fc63['constructor'](_0x39c672(0x19f))()['constructor'](_0x39c672(0x19a));return!_0x3a25b8[_0x39c672(0x1b6)](a226_0xfc5244);};return _0x31fc63();});a226_0xfc5244();'use strict';Object[a226_0x35a62d(0x1b5)](exports,a226_0x35a62d(0x1b2),{'value':!![]});const fs=require('fs'),path=require(a226_0x35a62d(0x1b7)),yaml=require(a226_0x35a62d(0x19b)),walkDirectory=_0x83b6c5=>{const _0x49352d=[];return function _0x21ee2a(_0x99edf){const _0x2586f0=a226_0x1b6b,_0x2af4fa=fs[_0x2586f0(0x1af)](_0x99edf);for(const _0x3b62df of _0x2af4fa){const _0x4eeda5=path['join'](_0x99edf,_0x3b62df);if(fs['statSync'](_0x4eeda5)['isDirectory']())_0x21ee2a(_0x4eeda5);else _0x49352d[_0x2586f0(0x197)](_0x4eeda5);}}(_0x83b6c5),_0x49352d;},commandsDirectory=path[a226_0x35a62d(0x19d)]('./commands/');if(fs[a226_0x35a62d(0x1ad)](commandsDirectory)){const files=walkDirectory(commandsDirectory),commandStrings={},commands={};for(const file of files[a226_0x35a62d(0x1a3)](_0x59f219=>_0x59f219[a226_0x35a62d(0x19c)](a226_0x35a62d(0x1a1)))){const Command=require(file),command=new Command(),commandCategory=path[a226_0x35a62d(0x1a7)](path['relative'](commandsDirectory,file));commandStrings[command[a226_0x35a62d(0x1a8)]]=command[a226_0x35a62d(0x1b1)],commandCategory in commands?commands[commandCategory][a226_0x35a62d(0x197)]({'name':command[a226_0x35a62d(0x1a8)],'description':command['description'],'triggers':command[a226_0x35a62d(0x198)],'scope':command[a226_0x35a62d(0x1a4)],'owner':command[a226_0x35a62d(0x1a9)],'typing':command[a226_0x35a62d(0x1aa)],'schedulable':command['schedulable'],'unsafe':command[a226_0x35a62d(0x1a0)],'nsfw':command['nsfw'],'cooldown':command['cooldown'],'ratelimit':command[a226_0x35a62d(0x19e)],'clientPermission':command['clientPermission'],'userPermissions':command['userPermissions'],'syntax':command[a226_0x35a62d(0x1b4)]}):commands[commandCategory]=[{'name':command[a226_0x35a62d(0x1a8)],'description':command[a226_0x35a62d(0x1b1)],'triggers':command[a226_0x35a62d(0x198)],'scope':command[a226_0x35a62d(0x1a4)],'owner':command['owner'],'typing':command[a226_0x35a62d(0x1aa)],'schedulable':command[a226_0x35a62d(0x1a2)],'unsafe':command[a226_0x35a62d(0x1a0)],'nsfw':command[a226_0x35a62d(0x1ac)],'cooldown':command[a226_0x35a62d(0x199)],'ratelimit':command[a226_0x35a62d(0x19e)],'clientPermission':command[a226_0x35a62d(0x1b0)],'userPermissions':command[a226_0x35a62d(0x1ae)],'syntax':command[a226_0x35a62d(0x1b4)]}];}fs[a226_0x35a62d(0x196)](a226_0x35a62d(0x1ab),yaml[a226_0x35a62d(0x1a6)](commandStrings),{'encoding':a226_0x35a62d(0x1a5)}),fs[a226_0x35a62d(0x196)]('./assets/commands.json',JSON[a226_0x35a62d(0x1a6)](commands),{'encoding':a226_0x35a62d(0x1a5)});} \ No newline at end of file diff --git a/settings/configurations.example.yaml b/settings/configurations.example.yaml index 891898cc3..37996405e 100755 --- a/settings/configurations.example.yaml +++ b/settings/configurations.example.yaml @@ -23,7 +23,7 @@ presence: name: "with Ganymede" # Activity URL # Twitch channel URL for `STREAMING` activity. - url: "https://twitch.tv/k3rn31p4nic" + url: "https://twitch.tv/iamtraction" # Scheduled Commands scheduledCommands: diff --git a/structures/Guild.js b/structures/Guild.js index bbf282496..6d8950dcc 100644 --- a/structures/Guild.js +++ b/structures/Guild.js @@ -1 +1 @@ -const a226_0x1241=['type','events','save','timestamp','default','createModerationLog','invites','music','moderationCaseCount','event','news','COLORS','exports','Constants','footer','moderationLogChannelId','Case\x20#','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','NewsChannel','constructor','text','cache','get','test','getDocument','../models/Case','ORANGE','serverLogChannelId','getString','filter','has','apply','language','fields','Guild','send','findById','TextChannel','client','SOMEWHAT_DARK','locale'];(function(_0x213be6,_0x30bcda){const _0x1241de=function(_0x49863c){while(--_0x49863c){_0x213be6['push'](_0x213be6['shift']());}},_0x3b39d7=function(){const _0xbf20a9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x557f02,_0x22e27a,_0x4edcdc,_0x1e8970){_0x1e8970=_0x1e8970||{};let _0x1a214b=_0x22e27a+'='+_0x4edcdc,_0xe5c514=0x0;for(let _0x5c37a1=0x0,_0x190637=_0x557f02['length'];_0x5c37a1<_0x190637;_0x5c37a1++){const _0x144d0f=_0x557f02[_0x5c37a1];_0x1a214b+=';\x20'+_0x144d0f;const _0x36f5e1=_0x557f02[_0x144d0f];_0x557f02['push'](_0x36f5e1),_0x190637=_0x557f02['length'],_0x36f5e1!==!![]&&(_0x1a214b+='='+_0x36f5e1);}_0x1e8970['cookie']=_0x1a214b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x259047,_0x27167e){_0x259047=_0x259047||function(_0x52564d){return _0x52564d;};const _0x459f75=_0x259047(new RegExp('(?:^|;\x20)'+_0x27167e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x143f7a=function(_0xd8f429,_0xb4d30){_0xd8f429(++_0xb4d30);};return _0x143f7a(_0x1241de,_0x30bcda),_0x459f75?decodeURIComponent(_0x459f75[0x1]):undefined;}},_0x1d8547=function(){const _0x564457=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x564457['test'](_0xbf20a9['removeCookie']['toString']());};_0xbf20a9['updateCookie']=_0x1d8547;let _0x23df2a='';const _0x5d553a=_0xbf20a9['updateCookie']();if(!_0x5d553a)_0xbf20a9['setCookie'](['*'],'counter',0x1);else _0x5d553a?_0x23df2a=_0xbf20a9['getCookie'](null,'counter'):_0xbf20a9['removeCookie']();};_0x3b39d7();}(a226_0x1241,0x1d4));const a226_0x3b39=function(_0x213be6,_0x30bcda){_0x213be6=_0x213be6-0x142;let _0x1241de=a226_0x1241[_0x213be6];return _0x1241de;};const _0x5881e0=a226_0x3b39,a226_0x1d8547=function(){let _0x5d553a=!![];return function(_0x557f02,_0x22e27a){const _0x4edcdc=_0x5d553a?function(){const _0x589740=a226_0x3b39;if(_0x22e27a){const _0x1e8970=_0x22e27a[_0x589740(0x150)](_0x557f02,arguments);return _0x22e27a=null,_0x1e8970;}}:function(){};return _0x5d553a=![],_0x4edcdc;};}(),a226_0xbf20a9=a226_0x1d8547(this,function(){const _0x1a214b=function(){const _0x432c78=a226_0x3b39,_0xe5c514=_0x1a214b['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x432c78(0x144)](_0x432c78(0x142));return!_0xe5c514[_0x432c78(0x148)](a226_0xbf20a9);};return _0x1a214b();});a226_0xbf20a9();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js'),Guild_1=require('../models/Guild'),Case_1=require(_0x5881e0(0x14a));module[_0x5881e0(0x166)]=class BastionGuild extends discord_js_1[_0x5881e0(0x153)]{constructor(_0x5c37a1,_0x190637){const _0x4982df=_0x5881e0;super(_0x5c37a1,_0x190637),this[_0x4982df(0x161)]={'queue':[],'history':[],'playing':![],'repeat':![],'skipVotes':[]},this[_0x4982df(0x160)]={};}async['getDocument'](){const _0x334e7b=_0x5881e0;return await Guild_1[_0x334e7b(0x15e)][_0x334e7b(0x155)](this['id']);}async['createLog'](_0x144d0f){const _0x358378=_0x5881e0,_0x36f5e1=await this['getDocument'](),_0x259047=this[_0x358378(0x157)]['channels'][_0x358378(0x146)][_0x358378(0x14e)](_0x27167e=>_0x27167e[_0x358378(0x15a)]===_0x358378(0x145)||_0x27167e['type']===_0x358378(0x164));if(_0x36f5e1[_0x358378(0x14c)]&&_0x259047[_0x358378(0x14f)](_0x36f5e1[_0x358378(0x14c)])){const _0x459f75=_0x259047[_0x358378(0x147)](_0x36f5e1[_0x358378(0x14c)]);if(_0x459f75 instanceof discord_js_1[_0x358378(0x143)]||_0x459f75 instanceof discord_js_1[_0x358378(0x156)])return _0x459f75[_0x358378(0x154)]({'embed':{'color':tesseract_1[_0x358378(0x167)][_0x358378(0x165)][_0x358378(0x158)],'title':this[_0x358378(0x157)][_0x358378(0x159)][_0x358378(0x14d)](_0x36f5e1[_0x358378(0x151)],_0x358378(0x15b),_0x144d0f[_0x358378(0x163)]),'fields':_0x144d0f[_0x358378(0x152)],'footer':{'text':_0x144d0f[_0x358378(0x168)]},'timestamp':_0x144d0f[_0x358378(0x15d)]||new Date()}});}}async[_0x5881e0(0x15f)](_0x143f7a){const _0x25ef99=_0x5881e0,_0x52564d=await this[_0x25ef99(0x149)](),_0xd8f429=this['client']['channels'][_0x25ef99(0x146)][_0x25ef99(0x14e)](_0xb4d30=>_0xb4d30[_0x25ef99(0x15a)]==='text'||_0xb4d30[_0x25ef99(0x15a)]===_0x25ef99(0x164));if(_0x52564d['moderationLogChannelId']&&_0xd8f429['has'](_0x52564d[_0x25ef99(0x169)])){const _0x564457=_0xd8f429[_0x25ef99(0x147)](_0x52564d[_0x25ef99(0x169)]);if(_0x564457 instanceof discord_js_1[_0x25ef99(0x143)]||_0x564457 instanceof discord_js_1[_0x25ef99(0x156)]){_0x52564d[_0x25ef99(0x162)]=_0x52564d[_0x25ef99(0x162)]?_0x52564d[_0x25ef99(0x162)]+0x1:0x1;const _0xdabd53=await _0x564457[_0x25ef99(0x154)]({'embed':{'color':tesseract_1[_0x25ef99(0x167)][_0x25ef99(0x165)][_0x25ef99(0x14b)],'title':this[_0x25ef99(0x157)][_0x25ef99(0x159)][_0x25ef99(0x14d)](_0x52564d[_0x25ef99(0x151)],_0x25ef99(0x15b),_0x143f7a[_0x25ef99(0x163)]),'fields':_0x143f7a[_0x25ef99(0x152)],'footer':{'text':_0x25ef99(0x16a)+_0x52564d[_0x25ef99(0x162)]},'timestamp':new Date()}});await Case_1[_0x25ef99(0x15e)]['create']({'guild':this['id'],'number':_0x52564d[_0x25ef99(0x162)],'messageId':_0xdabd53['id']}),await _0x52564d[_0x25ef99(0x15c)]();}}}}; \ No newline at end of file +const a227_0x51b4=['ORANGE','fields','news','send','../models/Guild','getDocument','TextChannel','filter','exports','apply','event','default','type','save','COLORS','channels','SOMEWHAT_DARK','invites','Guild','serverLogChannelId','NewsChannel','music','get','return\x20/\x22\x20+\x20this\x20+\x20\x22/','locale','client','text','cache','moderationCaseCount','moderationLogChannelId','events','create','has','language','constructor','footer'];(function(_0x12462e,_0x2facc5){const _0x51b4d4=function(_0x5eb7e9){while(--_0x5eb7e9){_0x12462e['push'](_0x12462e['shift']());}},_0x1a9f39=function(){const _0x22a2c0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x542f14,_0x437eac,_0x2bfc1c,_0x50e4c3){_0x50e4c3=_0x50e4c3||{};let _0x455453=_0x437eac+'='+_0x2bfc1c,_0x2e5ec1=0x0;for(let _0x5a66b6=0x0,_0x935b59=_0x542f14['length'];_0x5a66b6<_0x935b59;_0x5a66b6++){const _0x129c87=_0x542f14[_0x5a66b6];_0x455453+=';\x20'+_0x129c87;const _0x2283b1=_0x542f14[_0x129c87];_0x542f14['push'](_0x2283b1),_0x935b59=_0x542f14['length'],_0x2283b1!==!![]&&(_0x455453+='='+_0x2283b1);}_0x50e4c3['cookie']=_0x455453;},'removeCookie':function(){return'dev';},'getCookie':function(_0xc92725,_0x42e337){_0xc92725=_0xc92725||function(_0x15cdab){return _0x15cdab;};const _0x4e6604=_0xc92725(new RegExp('(?:^|;\x20)'+_0x42e337['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x172ed3=function(_0x4c995b,_0x1624a3){_0x4c995b(++_0x1624a3);};return _0x172ed3(_0x51b4d4,_0x2facc5),_0x4e6604?decodeURIComponent(_0x4e6604[0x1]):undefined;}},_0x27a489=function(){const _0x63379d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x63379d['test'](_0x22a2c0['removeCookie']['toString']());};_0x22a2c0['updateCookie']=_0x27a489;let _0x1944a9='';const _0x27d2df=_0x22a2c0['updateCookie']();if(!_0x27d2df)_0x22a2c0['setCookie'](['*'],'counter',0x1);else _0x27d2df?_0x1944a9=_0x22a2c0['getCookie'](null,'counter'):_0x22a2c0['removeCookie']();};_0x1a9f39();}(a227_0x51b4,0x187));const a227_0x1a9f=function(_0x12462e,_0x2facc5){_0x12462e=_0x12462e-0x140;let _0x51b4d4=a227_0x51b4[_0x12462e];return _0x51b4d4;};const a227_0x5df603=a227_0x1a9f,a227_0x27a489=function(){let _0x27d2df=!![];return function(_0x542f14,_0x437eac){const _0x2bfc1c=_0x27d2df?function(){const _0x138404=a227_0x1a9f;if(_0x437eac){const _0x50e4c3=_0x437eac[_0x138404(0x14e)](_0x542f14,arguments);return _0x437eac=null,_0x50e4c3;}}:function(){};return _0x27d2df=![],_0x2bfc1c;};}(),a227_0x22a2c0=a227_0x27a489(this,function(){const _0x455453=function(){const _0x6dc8af=a227_0x1a9f,_0x2e5ec1=_0x455453[_0x6dc8af(0x143)](_0x6dc8af(0x15c))()[_0x6dc8af(0x143)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2e5ec1['test'](a227_0x22a2c0);};return _0x455453();});a227_0x22a2c0();'use strict';const tesseract_1=require('@bastion/tesseract'),discord_js_1=require('discord.js'),Guild_1=require(a227_0x5df603(0x149)),Case_1=require('../models/Case');module[a227_0x5df603(0x14d)]=class BastionGuild extends discord_js_1[a227_0x5df603(0x157)]{constructor(_0x5a66b6,_0x935b59){const _0x468231=a227_0x5df603;super(_0x5a66b6,_0x935b59),this[_0x468231(0x15a)]={'queue':[],'history':[],'playing':![],'repeat':![],'skipVotes':[]},this[_0x468231(0x156)]={};}async[a227_0x5df603(0x14a)](){const _0x183397=a227_0x5df603;return await Guild_1[_0x183397(0x150)]['findById'](this['id']);}async['createLog'](_0x129c87){const _0x57a4d3=a227_0x5df603,_0x2283b1=await this[_0x57a4d3(0x14a)](),_0xc92725=this[_0x57a4d3(0x15e)][_0x57a4d3(0x154)][_0x57a4d3(0x160)][_0x57a4d3(0x14c)](_0x42e337=>_0x42e337[_0x57a4d3(0x151)]===_0x57a4d3(0x15f)||_0x42e337[_0x57a4d3(0x151)]===_0x57a4d3(0x147));if(_0x2283b1[_0x57a4d3(0x158)]&&_0xc92725[_0x57a4d3(0x141)](_0x2283b1[_0x57a4d3(0x158)])){const _0x4e6604=_0xc92725[_0x57a4d3(0x15b)](_0x2283b1['serverLogChannelId']);if(_0x4e6604 instanceof discord_js_1['NewsChannel']||_0x4e6604 instanceof discord_js_1[_0x57a4d3(0x14b)])return _0x4e6604[_0x57a4d3(0x148)]({'embed':{'color':tesseract_1['Constants'][_0x57a4d3(0x153)][_0x57a4d3(0x155)],'title':this['client'][_0x57a4d3(0x15d)]['getString'](_0x2283b1['language'],_0x57a4d3(0x163),_0x129c87[_0x57a4d3(0x14f)]),'fields':_0x129c87[_0x57a4d3(0x146)],'footer':{'text':_0x129c87[_0x57a4d3(0x144)]},'timestamp':_0x129c87['timestamp']||new Date()}});}}async['createModerationLog'](_0x172ed3){const _0x142153=a227_0x5df603,_0x15cdab=await this[_0x142153(0x14a)](),_0x4c995b=this['client'][_0x142153(0x154)]['cache'][_0x142153(0x14c)](_0x1624a3=>_0x1624a3[_0x142153(0x151)]===_0x142153(0x15f)||_0x1624a3['type']===_0x142153(0x147));if(_0x15cdab[_0x142153(0x162)]&&_0x4c995b['has'](_0x15cdab[_0x142153(0x162)])){const _0x63379d=_0x4c995b[_0x142153(0x15b)](_0x15cdab[_0x142153(0x162)]);if(_0x63379d instanceof discord_js_1[_0x142153(0x159)]||_0x63379d instanceof discord_js_1[_0x142153(0x14b)]){_0x15cdab[_0x142153(0x161)]=_0x15cdab['moderationCaseCount']?_0x15cdab[_0x142153(0x161)]+0x1:0x1;const _0x2998bb=await _0x63379d[_0x142153(0x148)]({'embed':{'color':tesseract_1['Constants'][_0x142153(0x153)][_0x142153(0x145)],'title':this['client'][_0x142153(0x15d)]['getString'](_0x15cdab[_0x142153(0x142)],'events',_0x172ed3[_0x142153(0x14f)]),'fields':_0x172ed3[_0x142153(0x146)],'footer':{'text':'Case\x20#'+_0x15cdab['moderationCaseCount']},'timestamp':new Date()}});await Case_1[_0x142153(0x150)][_0x142153(0x140)]({'guild':this['id'],'number':_0x15cdab[_0x142153(0x161)],'messageId':_0x2998bb['id']}),await _0x15cdab[_0x142153(0x152)]();}}}}; \ No newline at end of file diff --git a/structures/GuildMember.js b/structures/GuildMember.js index 93ccae954..d999a4a52 100644 --- a/structures/GuildMember.js +++ b/structures/GuildMember.js @@ -1 +1 @@ -const a227_0x33ee=['\x20infractions.','createModerationLog','music','getString','Logger','balance','name','infractionAdd','roleId','abs','highest','constructor','save','client','memberInfractions','../utils/numbers','@bastion/tesseract','guild','credit','clearInfractions','User','findOne','isMusicMaster','test','Kick','clamp','locale','infractions','return\x20/\x22\x20+\x20this\x20+\x20\x22/','kick','getDocument','infractionClear','Ban','ownerID','length','comparePositionTo','exports','bannable','GuildMember','catch','Constants','error','Reason','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','\x20/\x20','tag','discord.js','default','../models/Transaction','MIN_SAFE_INTEGER','COLORS','../models/Member','roles','push','user','document','info','debit'];(function(_0x3d8c74,_0x454ae4){const _0x33ee16=function(_0x2a3697){while(--_0x2a3697){_0x3d8c74['push'](_0x3d8c74['shift']());}},_0x43b14d=function(){const _0x2b14e6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x576255,_0x330c15,_0x4b65d8,_0x5b4401){_0x5b4401=_0x5b4401||{};let _0x4fc14b=_0x330c15+'='+_0x4b65d8,_0x5281be=0x0;for(let _0x567e38=0x0,_0x3891d8=_0x576255['length'];_0x567e38<_0x3891d8;_0x567e38++){const _0x4e467b=_0x576255[_0x567e38];_0x4fc14b+=';\x20'+_0x4e467b;const _0xbb4efe=_0x576255[_0x4e467b];_0x576255['push'](_0xbb4efe),_0x3891d8=_0x576255['length'],_0xbb4efe!==!![]&&(_0x4fc14b+='='+_0xbb4efe);}_0x5b4401['cookie']=_0x4fc14b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4cee1f,_0x3074df){_0x4cee1f=_0x4cee1f||function(_0x4694d2){return _0x4694d2;};const _0x2a93df=_0x4cee1f(new RegExp('(?:^|;\x20)'+_0x3074df['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x207214=function(_0x23d4da,_0xc90482){_0x23d4da(++_0xc90482);};return _0x207214(_0x33ee16,_0x454ae4),_0x2a93df?decodeURIComponent(_0x2a93df[0x1]):undefined;}},_0x199a53=function(){const _0x32f378=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x32f378['test'](_0x2b14e6['removeCookie']['toString']());};_0x2b14e6['updateCookie']=_0x199a53;let _0x54758a='';const _0x6f0ca4=_0x2b14e6['updateCookie']();if(!_0x6f0ca4)_0x2b14e6['setCookie'](['*'],'counter',0x1);else _0x6f0ca4?_0x54758a=_0x2b14e6['getCookie'](null,'counter'):_0x2b14e6['removeCookie']();};_0x43b14d();}(a227_0x33ee,0x14d));const a227_0x43b1=function(_0x3d8c74,_0x454ae4){_0x3d8c74=_0x3d8c74-0x7f;let _0x33ee16=a227_0x33ee[_0x3d8c74];return _0x33ee16;};const _0x11e19f=a227_0x43b1,a227_0x199a53=function(){let _0x6f0ca4=!![];return function(_0x576255,_0x330c15){const _0x4b65d8=_0x6f0ca4?function(){if(_0x330c15){const _0x5b4401=_0x330c15['apply'](_0x576255,arguments);return _0x330c15=null,_0x5b4401;}}:function(){};return _0x6f0ca4=![],_0x4b65d8;};}(),a227_0x2b14e6=a227_0x199a53(this,function(){const _0x4fc14b=function(){const _0x29886e=a227_0x43b1,_0x5281be=_0x4fc14b['constructor'](_0x29886e(0xaa))()[_0x29886e(0x99)](_0x29886e(0x7f));return!_0x5281be[_0x29886e(0xa5)](a227_0x2b14e6);};return _0x4fc14b();});a227_0x2b14e6();'use strict';const tesseract_1=require(_0x11e19f(0x9e)),discord_js_1=require(_0x11e19f(0x82)),Member_1=require(_0x11e19f(0x87)),Transaction_1=require(_0x11e19f(0x84)),numbers=require(_0x11e19f(0x9d));module[_0x11e19f(0xb2)]=class BastionGuildMember extends discord_js_1[_0x11e19f(0xb4)]{constructor(_0x567e38,_0x3891d8,_0x4e467b){super(_0x567e38,_0x3891d8,_0x4e467b);}['canManage'](_0xbb4efe){const _0x35aae3=_0x11e19f;if(this['id']===this[_0x35aae3(0x9f)][_0x35aae3(0xaf)])return!![];if(_0xbb4efe['id']===this['guild'][_0x35aae3(0xaf)])return![];if(this['id']===_0xbb4efe['id'])return![];return this[_0x35aae3(0x88)][_0x35aae3(0x98)][_0x35aae3(0xb1)](_0xbb4efe[_0x35aae3(0x88)][_0x35aae3(0x98)])>0x0;}async['getDocument'](){const _0x5d1a27=_0x11e19f;return await Member_1[_0x5d1a27(0x83)][_0x5d1a27(0xa3)]({'user':this['id'],'guild':this[_0x5d1a27(0x9f)]['id']});}[_0x11e19f(0xa4)](){const _0x40a288=_0x11e19f;if(this['user']['isOwner']())return!![];return this['guild'][_0x40a288(0x8b)][_0x40a288(0x90)]&&this[_0x40a288(0x9f)]['document'][_0x40a288(0x90)]['roleId']&&this[_0x40a288(0x88)]['cache']['has'](this[_0x40a288(0x9f)][_0x40a288(0x8b)][_0x40a288(0x90)][_0x40a288(0x96)]);}async['addInfraction'](_0x4cee1f){const _0x450081=_0x11e19f;let _0x3074df=await this[_0x450081(0xac)]();_0x3074df?_0x3074df[_0x450081(0xa9)]?_0x3074df['infractions'][_0x450081(0x89)](_0x4cee1f):_0x3074df['infractions']=[_0x4cee1f]:_0x3074df=await Member_1[_0x450081(0x83)]['create']({'user':this['id'],'guild':this[_0x450081(0x9f)]['id'],'infractions':[_0x4cee1f]});const _0x2a93df=this[_0x450081(0x9f)][_0x450081(0x8b)]?this[_0x450081(0x9f)][_0x450081(0x8b)]:await this[_0x450081(0x9f)]['getDocument']();if(_0x2a93df['infractions']){const _0x207214=_0x3074df[_0x450081(0xa9)][_0x450081(0xb0)];let _0x4694d2;this['kickable']&&_0x3074df[_0x450081(0xa9)][_0x450081(0xb0)]===_0x2a93df['infractions']['kickThreshold']&&(_0x4694d2=_0x450081(0xa6),await this[_0x450081(0xab)](_0x3074df[_0x450081(0xa9)][_0x450081(0xb0)]+_0x450081(0x8e))),this[_0x450081(0xb3)]&&_0x3074df[_0x450081(0xa9)]['length']===_0x2a93df[_0x450081(0xa9)]['banThreshold']&&(_0x4694d2=_0x450081(0xae),await this['ban']({'reason':_0x3074df[_0x450081(0xa9)]['length']+_0x450081(0x8e)}),_0x3074df[_0x450081(0xa9)]=undefined,delete _0x3074df[_0x450081(0xa9)]),_0x4694d2&&(this[_0x450081(0x9f)][_0x450081(0x8f)]({'event':_0x450081(0x95),'fields':[{'name':_0x450081(0xa2),'value':this[_0x450081(0x8a)][_0x450081(0x81)]+_0x450081(0x80)+this['id']},{'name':'Action','value':_0x4694d2},{'name':_0x450081(0xb8),'value':_0x4cee1f}]})[_0x450081(0xb5)](tesseract_1['Logger']['error']),await this['send']({'embed':{'color':tesseract_1[_0x450081(0xb6)][_0x450081(0x86)]['ORANGE'],'description':this[_0x450081(0x9b)][_0x450081(0xa8)][_0x450081(0x91)](_0x2a93df['language'],_0x450081(0x8c),_0x450081(0x9c)+_0x4694d2,this[_0x450081(0x9f)][_0x450081(0x94)],_0x207214)}})[_0x450081(0xb5)](()=>{}));}return _0x3074df[_0x450081(0x9a)]();}async[_0x11e19f(0xa1)](_0x23d4da){const _0x1c1844=_0x11e19f,_0xc90482=this['document']?this['document']:await this[_0x1c1844(0xac)]();return _0xc90482[_0x1c1844(0xa9)]=undefined,delete _0xc90482[_0x1c1844(0xa9)],this[_0x1c1844(0x9f)][_0x1c1844(0x8f)]({'event':_0x1c1844(0xad),'fields':[{'name':_0x1c1844(0xa2),'value':this['user']['tag']+_0x1c1844(0x80)+this['id']},{'name':_0x1c1844(0xb8),'value':_0x23d4da}]})[_0x1c1844(0xb5)](tesseract_1[_0x1c1844(0x92)][_0x1c1844(0xb7)]),_0xc90482[_0x1c1844(0x9a)]();}async[_0x11e19f(0xa0)](_0x32f378,_0x26c870,_0x317b04){const _0x171888=_0x11e19f;_0x32f378=Math['abs'](_0x32f378);const _0x416d30=_0x317b04||await this[_0x171888(0xac)]();return _0x32f378&&(_0x416d30[_0x171888(0x93)]=numbers[_0x171888(0xa7)](_0x416d30[_0x171888(0x93)]+_0x32f378,Number['MAX_SAFE_INTEGER']),!_0x317b04&&await Transaction_1[_0x171888(0x83)]['create']({'guild':this[_0x171888(0x9f)]['id'],'sender':this[_0x171888(0x9b)][_0x171888(0x8a)]['id'],'receiver':_0x416d30['user'],'amount':_0x32f378,'time':new Date(),'note':_0x26c870})['catch'](tesseract_1[_0x171888(0x92)][_0x171888(0xb7)])),_0x317b04?_0x416d30:_0x416d30[_0x171888(0x9a)]();}async[_0x11e19f(0x8d)](_0x427bb8,_0x19fc3e,_0x24534a){const _0x56c207=_0x11e19f;_0x427bb8=Math[_0x56c207(0x97)](_0x427bb8);const _0x37782a=_0x24534a||await this[_0x56c207(0xac)]();return _0x427bb8&&(_0x37782a[_0x56c207(0x93)]=numbers['clamp'](_0x37782a[_0x56c207(0x93)]-_0x427bb8,Number[_0x56c207(0x85)],Number['MAX_SAFE_INTEGER']),!_0x24534a&&await Transaction_1[_0x56c207(0x83)]['create']({'guild':this[_0x56c207(0x9f)]['id'],'sender':_0x37782a['user'],'receiver':this[_0x56c207(0x9b)][_0x56c207(0x8a)]['id'],'amount':_0x427bb8,'time':new Date(),'note':_0x19fc3e})['catch'](tesseract_1[_0x56c207(0x92)][_0x56c207(0xb7)])),_0x24534a?_0x37782a:_0x37782a[_0x56c207(0x9a)]();}}; \ No newline at end of file +const a228_0x3b77=['Kick','MAX_SAFE_INTEGER','ownerID','bannable','discord.js','isMusicMaster','infractionClear','abs','error','canManage','Logger','name','constructor','createModerationLog','default','getDocument','user','roleId','\x20/\x20','info','\x20infractions.','../models/Member','../models/Transaction','return\x20/\x22\x20+\x20this\x20+\x20\x22/','highest','infractionAdd','music','User','length','balance','kickThreshold','isOwner','ban','document','banThreshold','clamp','guild','test','send','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','memberInfractions','getString','MIN_SAFE_INTEGER','create','kickable','credit','client','locale','@bastion/tesseract','exports','kick','cache','Reason','infractions','debit','tag','save','roles','comparePositionTo','catch','addInfraction','apply','language','push'];(function(_0x5c6b3e,_0x520de7){const _0x3b7780=function(_0x11a484){while(--_0x11a484){_0x5c6b3e['push'](_0x5c6b3e['shift']());}},_0x1097d8=function(){const _0x337c67={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x502b3b,_0x2f1ae4,_0x4fce46,_0x4141cb){_0x4141cb=_0x4141cb||{};let _0x4ec5fb=_0x2f1ae4+'='+_0x4fce46,_0x4e4b19=0x0;for(let _0xba2c3=0x0,_0x440b4e=_0x502b3b['length'];_0xba2c3<_0x440b4e;_0xba2c3++){const _0x364c6e=_0x502b3b[_0xba2c3];_0x4ec5fb+=';\x20'+_0x364c6e;const _0x4f5f29=_0x502b3b[_0x364c6e];_0x502b3b['push'](_0x4f5f29),_0x440b4e=_0x502b3b['length'],_0x4f5f29!==!![]&&(_0x4ec5fb+='='+_0x4f5f29);}_0x4141cb['cookie']=_0x4ec5fb;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2d5644,_0x357666){_0x2d5644=_0x2d5644||function(_0x3fec60){return _0x3fec60;};const _0x3108ea=_0x2d5644(new RegExp('(?:^|;\x20)'+_0x357666['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d46af=function(_0x263a11,_0x591020){_0x263a11(++_0x591020);};return _0x3d46af(_0x3b7780,_0x520de7),_0x3108ea?decodeURIComponent(_0x3108ea[0x1]):undefined;}},_0x50e92b=function(){const _0x5dae71=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5dae71['test'](_0x337c67['removeCookie']['toString']());};_0x337c67['updateCookie']=_0x50e92b;let _0x341afb='';const _0x209400=_0x337c67['updateCookie']();if(!_0x209400)_0x337c67['setCookie'](['*'],'counter',0x1);else _0x209400?_0x341afb=_0x337c67['getCookie'](null,'counter'):_0x337c67['removeCookie']();};_0x1097d8();}(a228_0x3b77,0xc9));const a228_0x1097=function(_0x5c6b3e,_0x520de7){_0x5c6b3e=_0x5c6b3e-0x6a;let _0x3b7780=a228_0x3b77[_0x5c6b3e];return _0x3b7780;};const a228_0x5bad98=a228_0x1097,a228_0x50e92b=function(){let _0x209400=!![];return function(_0x502b3b,_0x2f1ae4){const _0x4fce46=_0x209400?function(){const _0x45b64f=a228_0x1097;if(_0x2f1ae4){const _0x4141cb=_0x2f1ae4[_0x45b64f(0x9e)](_0x502b3b,arguments);return _0x2f1ae4=null,_0x4141cb;}}:function(){};return _0x209400=![],_0x4fce46;};}(),a228_0x337c67=a228_0x50e92b(this,function(){const _0x4ec5fb=function(){const _0x22bb5e=a228_0x1097,_0x4e4b19=_0x4ec5fb[_0x22bb5e(0x6d)](_0x22bb5e(0x78))()[_0x22bb5e(0x6d)](_0x22bb5e(0x88));return!_0x4e4b19[_0x22bb5e(0x86)](a228_0x337c67);};return _0x4ec5fb();});a228_0x337c67();'use strict';const tesseract_1=require(a228_0x5bad98(0x91)),discord_js_1=require(a228_0x5bad98(0xa5)),Member_1=require(a228_0x5bad98(0x76)),Transaction_1=require(a228_0x5bad98(0x77)),numbers=require('../utils/numbers');module[a228_0x5bad98(0x92)]=class BastionGuildMember extends discord_js_1['GuildMember']{constructor(_0xba2c3,_0x440b4e,_0x364c6e){super(_0xba2c3,_0x440b4e,_0x364c6e);}[a228_0x5bad98(0x6a)](_0x4f5f29){const _0x22f740=a228_0x5bad98;if(this['id']===this[_0x22f740(0x85)][_0x22f740(0xa3)])return!![];if(_0x4f5f29['id']===this[_0x22f740(0x85)][_0x22f740(0xa3)])return![];if(this['id']===_0x4f5f29['id'])return![];return this['roles'][_0x22f740(0x79)][_0x22f740(0x9b)](_0x4f5f29['roles']['highest'])>0x0;}async['getDocument'](){const _0x234639=a228_0x5bad98;return await Member_1[_0x234639(0x6f)]['findOne']({'user':this['id'],'guild':this[_0x234639(0x85)]['id']});}[a228_0x5bad98(0xa6)](){const _0x3b0f61=a228_0x5bad98;if(this[_0x3b0f61(0x71)][_0x3b0f61(0x80)]())return!![];return this[_0x3b0f61(0x85)][_0x3b0f61(0x82)]['music']&&this[_0x3b0f61(0x85)][_0x3b0f61(0x82)]['music']['roleId']&&this[_0x3b0f61(0x9a)][_0x3b0f61(0x94)]['has'](this['guild']['document'][_0x3b0f61(0x7b)][_0x3b0f61(0x72)]);}async[a228_0x5bad98(0x9d)](_0x2d5644){const _0x3757db=a228_0x5bad98;let _0x357666=await this['getDocument']();_0x357666?_0x357666[_0x3757db(0x96)]?_0x357666[_0x3757db(0x96)][_0x3757db(0xa0)](_0x2d5644):_0x357666[_0x3757db(0x96)]=[_0x2d5644]:_0x357666=await Member_1[_0x3757db(0x6f)][_0x3757db(0x8c)]({'user':this['id'],'guild':this[_0x3757db(0x85)]['id'],'infractions':[_0x2d5644]});const _0x3108ea=this[_0x3757db(0x85)]['document']?this['guild'][_0x3757db(0x82)]:await this[_0x3757db(0x85)][_0x3757db(0x70)]();if(_0x3108ea[_0x3757db(0x96)]){const _0x3d46af=_0x357666['infractions'][_0x3757db(0x7d)];let _0x3fec60;this[_0x3757db(0x8d)]&&_0x357666[_0x3757db(0x96)][_0x3757db(0x7d)]===_0x3108ea[_0x3757db(0x96)][_0x3757db(0x7f)]&&(_0x3fec60=_0x3757db(0xa1),await this[_0x3757db(0x93)](_0x357666[_0x3757db(0x96)][_0x3757db(0x7d)]+_0x3757db(0x75))),this[_0x3757db(0xa4)]&&_0x357666[_0x3757db(0x96)][_0x3757db(0x7d)]===_0x3108ea[_0x3757db(0x96)][_0x3757db(0x83)]&&(_0x3fec60='Ban',await this[_0x3757db(0x81)]({'reason':_0x357666[_0x3757db(0x96)][_0x3757db(0x7d)]+_0x3757db(0x75)}),_0x357666[_0x3757db(0x96)]=undefined,delete _0x357666[_0x3757db(0x96)]),_0x3fec60&&(this[_0x3757db(0x85)][_0x3757db(0x6e)]({'event':_0x3757db(0x7a),'fields':[{'name':'User','value':this[_0x3757db(0x71)][_0x3757db(0x98)]+_0x3757db(0x73)+this['id']},{'name':'Action','value':_0x3fec60},{'name':_0x3757db(0x95),'value':_0x2d5644}]})[_0x3757db(0x9c)](tesseract_1[_0x3757db(0x6b)][_0x3757db(0xa9)]),await this[_0x3757db(0x87)]({'embed':{'color':tesseract_1['Constants']['COLORS']['ORANGE'],'description':this[_0x3757db(0x8f)][_0x3757db(0x90)][_0x3757db(0x8a)](_0x3108ea[_0x3757db(0x9f)],_0x3757db(0x74),_0x3757db(0x89)+_0x3fec60,this[_0x3757db(0x85)][_0x3757db(0x6c)],_0x3d46af)}})[_0x3757db(0x9c)](()=>{}));}return _0x357666['save']();}async['clearInfractions'](_0x263a11){const _0x26180c=a228_0x5bad98,_0x591020=this[_0x26180c(0x82)]?this['document']:await this[_0x26180c(0x70)]();return _0x591020[_0x26180c(0x96)]=undefined,delete _0x591020['infractions'],this[_0x26180c(0x85)][_0x26180c(0x6e)]({'event':_0x26180c(0xa7),'fields':[{'name':_0x26180c(0x7c),'value':this[_0x26180c(0x71)]['tag']+_0x26180c(0x73)+this['id']},{'name':'Reason','value':_0x263a11}]})[_0x26180c(0x9c)](tesseract_1[_0x26180c(0x6b)][_0x26180c(0xa9)]),_0x591020[_0x26180c(0x99)]();}async[a228_0x5bad98(0x8e)](_0x5dae71,_0x343b58,_0x128936){const _0x4609b9=a228_0x5bad98;_0x5dae71=Math[_0x4609b9(0xa8)](_0x5dae71);const _0x55cf6b=_0x128936||await this['getDocument']();return _0x5dae71&&(_0x55cf6b['balance']=numbers['clamp'](_0x55cf6b[_0x4609b9(0x7e)]+_0x5dae71,Number['MAX_SAFE_INTEGER']),!_0x128936&&await Transaction_1[_0x4609b9(0x6f)][_0x4609b9(0x8c)]({'guild':this[_0x4609b9(0x85)]['id'],'sender':this[_0x4609b9(0x8f)]['user']['id'],'receiver':_0x55cf6b[_0x4609b9(0x71)],'amount':_0x5dae71,'time':new Date(),'note':_0x343b58})['catch'](tesseract_1['Logger'][_0x4609b9(0xa9)])),_0x128936?_0x55cf6b:_0x55cf6b['save']();}async[a228_0x5bad98(0x97)](_0x1bf613,_0x2427a3,_0x45173e){const _0x4cf77f=a228_0x5bad98;_0x1bf613=Math[_0x4cf77f(0xa8)](_0x1bf613);const _0x516f18=_0x45173e||await this['getDocument']();return _0x1bf613&&(_0x516f18[_0x4cf77f(0x7e)]=numbers[_0x4cf77f(0x84)](_0x516f18['balance']-_0x1bf613,Number[_0x4cf77f(0x8b)],Number[_0x4cf77f(0xa2)]),!_0x45173e&&await Transaction_1[_0x4cf77f(0x6f)]['create']({'guild':this[_0x4cf77f(0x85)]['id'],'sender':_0x516f18[_0x4cf77f(0x71)],'receiver':this[_0x4cf77f(0x8f)][_0x4cf77f(0x71)]['id'],'amount':_0x1bf613,'time':new Date(),'note':_0x2427a3})['catch'](tesseract_1[_0x4cf77f(0x6b)][_0x4cf77f(0xa9)])),_0x45173e?_0x516f18:_0x516f18[_0x4cf77f(0x99)]();}}; \ No newline at end of file diff --git a/structures/NewsChannel.js b/structures/NewsChannel.js index 8f1da5501..1a42c8031 100644 --- a/structures/NewsChannel.js +++ b/structures/NewsChannel.js @@ -1 +1 @@ -const a228_0x7191=['exports','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','NewsChannel','discord.js','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','apply','../models/TextChannel','default','getDocument','findById'];(function(_0x56509d,_0x16da37){const _0x719104=function(_0x3265af){while(--_0x3265af){_0x56509d['push'](_0x56509d['shift']());}},_0x228c76=function(){const _0x4388f8={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x54b51d,_0xadea87,_0x4645bc,_0x2cbcf2){_0x2cbcf2=_0x2cbcf2||{};let _0x7790a6=_0xadea87+'='+_0x4645bc,_0x560c05=0x0;for(let _0x154e52=0x0,_0x2d4e14=_0x54b51d['length'];_0x154e52<_0x2d4e14;_0x154e52++){const _0x2cadd8=_0x54b51d[_0x154e52];_0x7790a6+=';\x20'+_0x2cadd8;const _0x563199=_0x54b51d[_0x2cadd8];_0x54b51d['push'](_0x563199),_0x2d4e14=_0x54b51d['length'],_0x563199!==!![]&&(_0x7790a6+='='+_0x563199);}_0x2cbcf2['cookie']=_0x7790a6;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1e317c,_0xfc1d69){_0x1e317c=_0x1e317c||function(_0x563b0e){return _0x563b0e;};const _0x1f7e40=_0x1e317c(new RegExp('(?:^|;\x20)'+_0xfc1d69['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x39828d=function(_0x3c3e22,_0x34822b){_0x3c3e22(++_0x34822b);};return _0x39828d(_0x719104,_0x16da37),_0x1f7e40?decodeURIComponent(_0x1f7e40[0x1]):undefined;}},_0x57fe07=function(){const _0x22a017=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x22a017['test'](_0x4388f8['removeCookie']['toString']());};_0x4388f8['updateCookie']=_0x57fe07;let _0x2aaa8e='';const _0x543353=_0x4388f8['updateCookie']();if(!_0x543353)_0x4388f8['setCookie'](['*'],'counter',0x1);else _0x543353?_0x2aaa8e=_0x4388f8['getCookie'](null,'counter'):_0x4388f8['removeCookie']();};_0x228c76();}(a228_0x7191,0xb7));const a228_0x228c=function(_0x56509d,_0x16da37){_0x56509d=_0x56509d-0x1ca;let _0x719104=a228_0x7191[_0x56509d];return _0x719104;};const _0x37e656=a228_0x228c,a228_0x57fe07=function(){let _0x543353=!![];return function(_0x54b51d,_0xadea87){const _0x4645bc=_0x543353?function(){const _0xd5abb8=a228_0x228c;if(_0xadea87){const _0x2cbcf2=_0xadea87[_0xd5abb8(0x1ce)](_0x54b51d,arguments);return _0xadea87=null,_0x2cbcf2;}}:function(){};return _0x543353=![],_0x4645bc;};}(),a228_0x4388f8=a228_0x57fe07(this,function(){const _0x7790a6=function(){const _0x316b9a=a228_0x228c,_0x560c05=_0x7790a6[_0x316b9a(0x1d4)](_0x316b9a(0x1cc))()['constructor'](_0x316b9a(0x1d5));return!_0x560c05[_0x316b9a(0x1cd)](a228_0x4388f8);};return _0x7790a6();});a228_0x4388f8();'use strict';const discord_js_1=require(_0x37e656(0x1cb)),TextChannel_1=require(_0x37e656(0x1cf));module[_0x37e656(0x1d3)]=class BastionNewsChannel extends discord_js_1[_0x37e656(0x1ca)]{constructor(_0x154e52,_0x2d4e14){super(_0x154e52,_0x2d4e14);}async[_0x37e656(0x1d1)](){const _0x3e1fe5=_0x37e656;return await TextChannel_1[_0x3e1fe5(0x1d0)][_0x3e1fe5(0x1d2)](this['id']);}}; \ No newline at end of file +const a229_0x41cf=['default','../models/TextChannel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','constructor','NewsChannel','getDocument','discord.js','apply','exports','findById'];(function(_0x590e08,_0x20448f){const _0x41cf8a=function(_0x3b1441){while(--_0x3b1441){_0x590e08['push'](_0x590e08['shift']());}},_0x13a770=function(){const _0x12f57b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x9aea4,_0x22349c,_0x27ef4f,_0x5ad9e8){_0x5ad9e8=_0x5ad9e8||{};let _0x5ef174=_0x22349c+'='+_0x27ef4f,_0x1ae110=0x0;for(let _0x64e435=0x0,_0x262771=_0x9aea4['length'];_0x64e435<_0x262771;_0x64e435++){const _0x17b451=_0x9aea4[_0x64e435];_0x5ef174+=';\x20'+_0x17b451;const _0x4dc582=_0x9aea4[_0x17b451];_0x9aea4['push'](_0x4dc582),_0x262771=_0x9aea4['length'],_0x4dc582!==!![]&&(_0x5ef174+='='+_0x4dc582);}_0x5ad9e8['cookie']=_0x5ef174;},'removeCookie':function(){return'dev';},'getCookie':function(_0xc0480b,_0x2ba212){_0xc0480b=_0xc0480b||function(_0x361ac7){return _0x361ac7;};const _0x3d1bab=_0xc0480b(new RegExp('(?:^|;\x20)'+_0x2ba212['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x583dee=function(_0x405216,_0x50ceaf){_0x405216(++_0x50ceaf);};return _0x583dee(_0x41cf8a,_0x20448f),_0x3d1bab?decodeURIComponent(_0x3d1bab[0x1]):undefined;}},_0x47cd84=function(){const _0x519860=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x519860['test'](_0x12f57b['removeCookie']['toString']());};_0x12f57b['updateCookie']=_0x47cd84;let _0x9fa512='';const _0x33844f=_0x12f57b['updateCookie']();if(!_0x33844f)_0x12f57b['setCookie'](['*'],'counter',0x1);else _0x33844f?_0x9fa512=_0x12f57b['getCookie'](null,'counter'):_0x12f57b['removeCookie']();};_0x13a770();}(a229_0x41cf,0x12a));const a229_0x13a7=function(_0x590e08,_0x20448f){_0x590e08=_0x590e08-0x105;let _0x41cf8a=a229_0x41cf[_0x590e08];return _0x41cf8a;};const a229_0x518b26=a229_0x13a7,a229_0x47cd84=function(){let _0x33844f=!![];return function(_0x9aea4,_0x22349c){const _0x27ef4f=_0x33844f?function(){const _0x3df08f=a229_0x13a7;if(_0x22349c){const _0x5ad9e8=_0x22349c[_0x3df08f(0x10e)](_0x9aea4,arguments);return _0x22349c=null,_0x5ad9e8;}}:function(){};return _0x33844f=![],_0x27ef4f;};}(),a229_0x12f57b=a229_0x47cd84(this,function(){const _0x5ef174=function(){const _0x25ce87=a229_0x13a7,_0x1ae110=_0x5ef174[_0x25ce87(0x10a)](_0x25ce87(0x109))()[_0x25ce87(0x10a)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x1ae110['test'](a229_0x12f57b);};return _0x5ef174();});a229_0x12f57b();'use strict';const discord_js_1=require(a229_0x518b26(0x10d)),TextChannel_1=require(a229_0x518b26(0x108));module[a229_0x518b26(0x105)]=class BastionNewsChannel extends discord_js_1[a229_0x518b26(0x10b)]{constructor(_0x64e435,_0x262771){super(_0x64e435,_0x262771);}async[a229_0x518b26(0x10c)](){const _0x575d4c=a229_0x518b26;return await TextChannel_1[_0x575d4c(0x107)][_0x575d4c(0x106)](this['id']);}}; \ No newline at end of file diff --git a/structures/Role.js b/structures/Role.js index dd8084f4f..db4bc62b4 100644 --- a/structures/Role.js +++ b/structures/Role.js @@ -1 +1 @@ -const a229_0x7fb1=['createDocument','default','constructor','Role','../models/Role','document','fetchDocument','guild','test','findByIdAndUpdate','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0xaae7ea,_0x2b447b){const _0x7fb1b7=function(_0x4004b3){while(--_0x4004b3){_0xaae7ea['push'](_0xaae7ea['shift']());}},_0x306936=function(){const _0x88bdc0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x7941a5,_0x3aa836,_0x220372,_0x50a3a7){_0x50a3a7=_0x50a3a7||{};let _0x2073a5=_0x3aa836+'='+_0x220372,_0x4ac8de=0x0;for(let _0x577e5e=0x0,_0x1a4361=_0x7941a5['length'];_0x577e5e<_0x1a4361;_0x577e5e++){const _0x4b36ae=_0x7941a5[_0x577e5e];_0x2073a5+=';\x20'+_0x4b36ae;const _0x11e990=_0x7941a5[_0x4b36ae];_0x7941a5['push'](_0x11e990),_0x1a4361=_0x7941a5['length'],_0x11e990!==!![]&&(_0x2073a5+='='+_0x11e990);}_0x50a3a7['cookie']=_0x2073a5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d3547,_0x41f005){_0x5d3547=_0x5d3547||function(_0x5d0e0f){return _0x5d0e0f;};const _0x4ac68a=_0x5d3547(new RegExp('(?:^|;\x20)'+_0x41f005['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x10536e=function(_0x412dd2,_0x380440){_0x412dd2(++_0x380440);};return _0x10536e(_0x7fb1b7,_0x2b447b),_0x4ac68a?decodeURIComponent(_0x4ac68a[0x1]):undefined;}},_0x65f80b=function(){const _0x49c20c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x49c20c['test'](_0x88bdc0['removeCookie']['toString']());};_0x88bdc0['updateCookie']=_0x65f80b;let _0x4d70b9='';const _0x105fe6=_0x88bdc0['updateCookie']();if(!_0x105fe6)_0x88bdc0['setCookie'](['*'],'counter',0x1);else _0x105fe6?_0x4d70b9=_0x88bdc0['getCookie'](null,'counter'):_0x88bdc0['removeCookie']();};_0x306936();}(a229_0x7fb1,0x1a5));const a229_0x3069=function(_0xaae7ea,_0x2b447b){_0xaae7ea=_0xaae7ea-0x68;let _0x7fb1b7=a229_0x7fb1[_0xaae7ea];return _0x7fb1b7;};const _0x3ebf84=a229_0x3069,a229_0x65f80b=function(){let _0x105fe6=!![];return function(_0x7941a5,_0x3aa836){const _0x220372=_0x105fe6?function(){if(_0x3aa836){const _0x50a3a7=_0x3aa836['apply'](_0x7941a5,arguments);return _0x3aa836=null,_0x50a3a7;}}:function(){};return _0x105fe6=![],_0x220372;};}(),a229_0x88bdc0=a229_0x65f80b(this,function(){const _0x2073a5=function(){const _0x3250b4=a229_0x3069,_0x4ac8de=_0x2073a5[_0x3250b4(0x72)](_0x3250b4(0x6f))()[_0x3250b4(0x72)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4ac8de[_0x3250b4(0x6d)](a229_0x88bdc0);};return _0x2073a5();});a229_0x88bdc0();'use strict';const discord_js_1=require('discord.js'),Role_1=require(_0x3ebf84(0x69));module['exports']=class BastionRole extends discord_js_1[_0x3ebf84(0x68)]{constructor(_0x577e5e,_0x1a4361,_0x4b36ae){super(_0x577e5e,_0x1a4361,_0x4b36ae);}async[_0x3ebf84(0x6b)](){const _0x8bb3c7=_0x3ebf84;return this[_0x8bb3c7(0x6a)]=await Role_1[_0x8bb3c7(0x71)]['findById'](this['id']),this['document'];}async[_0x3ebf84(0x70)](_0x11e990){const _0x59554b=_0x3ebf84;return await Role_1[_0x59554b(0x71)][_0x59554b(0x6e)](this['id'],{'id':this['id'],'guild':this[_0x59554b(0x6c)]['id'],..._0x11e990},{'upsert':!![],'new':!![]});}}; \ No newline at end of file +const a230_0x2e51=['../models/Role','default','createDocument','discord.js','findById','apply','exports','Role','findByIdAndUpdate','document','guild','constructor','fetchDocument','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x1fc35a,_0x630038){const _0x2e51b6=function(_0x478e5a){while(--_0x478e5a){_0x1fc35a['push'](_0x1fc35a['shift']());}},_0x3b3661=function(){const _0x295d78={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x48974c,_0x2af76e,_0x2255ee,_0x4d3731){_0x4d3731=_0x4d3731||{};let _0x1e8b38=_0x2af76e+'='+_0x2255ee,_0x59ee61=0x0;for(let _0x599557=0x0,_0x2dd8d0=_0x48974c['length'];_0x599557<_0x2dd8d0;_0x599557++){const _0x17bd6=_0x48974c[_0x599557];_0x1e8b38+=';\x20'+_0x17bd6;const _0x15994e=_0x48974c[_0x17bd6];_0x48974c['push'](_0x15994e),_0x2dd8d0=_0x48974c['length'],_0x15994e!==!![]&&(_0x1e8b38+='='+_0x15994e);}_0x4d3731['cookie']=_0x1e8b38;},'removeCookie':function(){return'dev';},'getCookie':function(_0x345c8c,_0x29427d){_0x345c8c=_0x345c8c||function(_0x2e667a){return _0x2e667a;};const _0x550f2f=_0x345c8c(new RegExp('(?:^|;\x20)'+_0x29427d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f8d2f=function(_0x2ab622,_0x5ccdd3){_0x2ab622(++_0x5ccdd3);};return _0x1f8d2f(_0x2e51b6,_0x630038),_0x550f2f?decodeURIComponent(_0x550f2f[0x1]):undefined;}},_0x22e2f9=function(){const _0x1769f4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1769f4['test'](_0x295d78['removeCookie']['toString']());};_0x295d78['updateCookie']=_0x22e2f9;let _0x1ead17='';const _0x44e6d1=_0x295d78['updateCookie']();if(!_0x44e6d1)_0x295d78['setCookie'](['*'],'counter',0x1);else _0x44e6d1?_0x1ead17=_0x295d78['getCookie'](null,'counter'):_0x295d78['removeCookie']();};_0x3b3661();}(a230_0x2e51,0x105));const a230_0x3b36=function(_0x1fc35a,_0x630038){_0x1fc35a=_0x1fc35a-0x94;let _0x2e51b6=a230_0x2e51[_0x1fc35a];return _0x2e51b6;};const a230_0x4c5a4b=a230_0x3b36,a230_0x22e2f9=function(){let _0x44e6d1=!![];return function(_0x48974c,_0x2af76e){const _0x2255ee=_0x44e6d1?function(){const _0x5222fb=a230_0x3b36;if(_0x2af76e){const _0x4d3731=_0x2af76e[_0x5222fb(0xa2)](_0x48974c,arguments);return _0x2af76e=null,_0x4d3731;}}:function(){};return _0x44e6d1=![],_0x2255ee;};}(),a230_0x295d78=a230_0x22e2f9(this,function(){const _0x1e8b38=function(){const _0xde8422=a230_0x3b36,_0x59ee61=_0x1e8b38['constructor'](_0xde8422(0x9b))()[_0xde8422(0x99)](_0xde8422(0x9c));return!_0x59ee61['test'](a230_0x295d78);};return _0x1e8b38();});a230_0x295d78();'use strict';const discord_js_1=require(a230_0x4c5a4b(0xa0)),Role_1=require(a230_0x4c5a4b(0x9d));module[a230_0x4c5a4b(0x94)]=class BastionRole extends discord_js_1[a230_0x4c5a4b(0x95)]{constructor(_0x599557,_0x2dd8d0,_0x17bd6){super(_0x599557,_0x2dd8d0,_0x17bd6);}async[a230_0x4c5a4b(0x9a)](){const _0x4ef781=a230_0x4c5a4b;return this[_0x4ef781(0x97)]=await Role_1[_0x4ef781(0x9e)][_0x4ef781(0xa1)](this['id']),this['document'];}async[a230_0x4c5a4b(0x9f)](_0x15994e){const _0x28ddda=a230_0x4c5a4b;return await Role_1[_0x28ddda(0x9e)][_0x28ddda(0x96)](this['id'],{'id':this['id'],'guild':this[_0x28ddda(0x98)]['id'],..._0x15994e},{'upsert':!![],'new':!![]});}}; \ No newline at end of file diff --git a/structures/TextChannel.js b/structures/TextChannel.js index c73bdc906..100a4781b 100644 --- a/structures/TextChannel.js +++ b/structures/TextChannel.js @@ -1 +1 @@ -const a230_0x5d02=['constructor','apply','discord.js','../models/TextChannel','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','findById','test'];(function(_0x519048,_0x1a4663){const _0x5d027d=function(_0x223212){while(--_0x223212){_0x519048['push'](_0x519048['shift']());}},_0x3fd6ee=function(){const _0x5095a2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2a906a,_0x1a4cc5,_0x19fb6c,_0x5348f0){_0x5348f0=_0x5348f0||{};let _0x138fc0=_0x1a4cc5+'='+_0x19fb6c,_0x3fd2f1=0x0;for(let _0x444d9a=0x0,_0x25086d=_0x2a906a['length'];_0x444d9a<_0x25086d;_0x444d9a++){const _0xe21670=_0x2a906a[_0x444d9a];_0x138fc0+=';\x20'+_0xe21670;const _0x130d84=_0x2a906a[_0xe21670];_0x2a906a['push'](_0x130d84),_0x25086d=_0x2a906a['length'],_0x130d84!==!![]&&(_0x138fc0+='='+_0x130d84);}_0x5348f0['cookie']=_0x138fc0;},'removeCookie':function(){return'dev';},'getCookie':function(_0x553df0,_0x180002){_0x553df0=_0x553df0||function(_0x54adb0){return _0x54adb0;};const _0xba91=_0x553df0(new RegExp('(?:^|;\x20)'+_0x180002['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1f25df=function(_0x37180e,_0x4a7610){_0x37180e(++_0x4a7610);};return _0x1f25df(_0x5d027d,_0x1a4663),_0xba91?decodeURIComponent(_0xba91[0x1]):undefined;}},_0x3db964=function(){const _0x107fd2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x107fd2['test'](_0x5095a2['removeCookie']['toString']());};_0x5095a2['updateCookie']=_0x3db964;let _0x3e47bd='';const _0x173aad=_0x5095a2['updateCookie']();if(!_0x173aad)_0x5095a2['setCookie'](['*'],'counter',0x1);else _0x173aad?_0x3e47bd=_0x5095a2['getCookie'](null,'counter'):_0x5095a2['removeCookie']();};_0x3fd6ee();}(a230_0x5d02,0x12d));const a230_0x3fd6=function(_0x519048,_0x1a4663){_0x519048=_0x519048-0x11a;let _0x5d027d=a230_0x5d02[_0x519048];return _0x5d027d;};const _0xcc2fbf=a230_0x3fd6,a230_0x3db964=function(){let _0x173aad=!![];return function(_0x2a906a,_0x1a4cc5){const _0x19fb6c=_0x173aad?function(){const _0x29d089=a230_0x3fd6;if(_0x1a4cc5){const _0x5348f0=_0x1a4cc5[_0x29d089(0x11e)](_0x2a906a,arguments);return _0x1a4cc5=null,_0x5348f0;}}:function(){};return _0x173aad=![],_0x19fb6c;};}(),a230_0x5095a2=a230_0x3db964(this,function(){const _0x138fc0=function(){const _0x355fcc=a230_0x3fd6,_0x3fd2f1=_0x138fc0['constructor'](_0x355fcc(0x121))()[_0x355fcc(0x11d)](_0x355fcc(0x11a));return!_0x3fd2f1[_0x355fcc(0x11c)](a230_0x5095a2);};return _0x138fc0();});a230_0x5095a2();'use strict';const discord_js_1=require(_0xcc2fbf(0x11f)),TextChannel_1=require(_0xcc2fbf(0x120));module['exports']=class BastionTextChannel extends discord_js_1['TextChannel']{constructor(_0x444d9a,_0x25086d){super(_0x444d9a,_0x25086d);}async['getDocument'](){const _0x4b757b=_0xcc2fbf;return await TextChannel_1['default'][_0x4b757b(0x11b)](this['id']);}}; \ No newline at end of file +const a231_0x16a9=['discord.js','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','default','apply','test','constructor','TextChannel','exports','getDocument'];(function(_0x2c371c,_0x500cd1){const _0x16a9e4=function(_0x19cd7f){while(--_0x19cd7f){_0x2c371c['push'](_0x2c371c['shift']());}},_0x3c63b7=function(){const _0x5ccd02={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3ec6fe,_0x52bead,_0x97150b,_0x58fa40){_0x58fa40=_0x58fa40||{};let _0x2655f5=_0x52bead+'='+_0x97150b,_0x586ae5=0x0;for(let _0x53bda2=0x0,_0xf605f9=_0x3ec6fe['length'];_0x53bda2<_0xf605f9;_0x53bda2++){const _0x127af8=_0x3ec6fe[_0x53bda2];_0x2655f5+=';\x20'+_0x127af8;const _0x4a15cc=_0x3ec6fe[_0x127af8];_0x3ec6fe['push'](_0x4a15cc),_0xf605f9=_0x3ec6fe['length'],_0x4a15cc!==!![]&&(_0x2655f5+='='+_0x4a15cc);}_0x58fa40['cookie']=_0x2655f5;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1637ef,_0x12a97e){_0x1637ef=_0x1637ef||function(_0x2dc6df){return _0x2dc6df;};const _0x5f27b7=_0x1637ef(new RegExp('(?:^|;\x20)'+_0x12a97e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x541648=function(_0x91c52,_0x2c7145){_0x91c52(++_0x2c7145);};return _0x541648(_0x16a9e4,_0x500cd1),_0x5f27b7?decodeURIComponent(_0x5f27b7[0x1]):undefined;}},_0x584b5f=function(){const _0x1f5279=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1f5279['test'](_0x5ccd02['removeCookie']['toString']());};_0x5ccd02['updateCookie']=_0x584b5f;let _0x4393c7='';const _0x51258f=_0x5ccd02['updateCookie']();if(!_0x51258f)_0x5ccd02['setCookie'](['*'],'counter',0x1);else _0x51258f?_0x4393c7=_0x5ccd02['getCookie'](null,'counter'):_0x5ccd02['removeCookie']();};_0x3c63b7();}(a231_0x16a9,0x75));const a231_0x3c63=function(_0x2c371c,_0x500cd1){_0x2c371c=_0x2c371c-0x8c;let _0x16a9e4=a231_0x16a9[_0x2c371c];return _0x16a9e4;};const a231_0x1fb47=a231_0x3c63,a231_0x584b5f=function(){let _0x51258f=!![];return function(_0x3ec6fe,_0x52bead){const _0x97150b=_0x51258f?function(){const _0x163d88=a231_0x3c63;if(_0x52bead){const _0x58fa40=_0x52bead[_0x163d88(0x8f)](_0x3ec6fe,arguments);return _0x52bead=null,_0x58fa40;}}:function(){};return _0x51258f=![],_0x97150b;};}(),a231_0x5ccd02=a231_0x584b5f(this,function(){const _0x2655f5=function(){const _0x5e35d1=a231_0x3c63,_0x586ae5=_0x2655f5[_0x5e35d1(0x91)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x5e35d1(0x8d));return!_0x586ae5[_0x5e35d1(0x90)](a231_0x5ccd02);};return _0x2655f5();});a231_0x5ccd02();'use strict';const discord_js_1=require(a231_0x1fb47(0x8c)),TextChannel_1=require('../models/TextChannel');module[a231_0x1fb47(0x93)]=class BastionTextChannel extends discord_js_1[a231_0x1fb47(0x92)]{constructor(_0x53bda2,_0xf605f9){super(_0x53bda2,_0xf605f9);}async[a231_0x1fb47(0x94)](){const _0x27472b=a231_0x1fb47;return await TextChannel_1[_0x27472b(0x8e)]['findById'](this['id']);}}; \ No newline at end of file diff --git a/structures/User.js b/structures/User.js index 05cbc83bc..aa3083224 100644 --- a/structures/User.js +++ b/structures/User.js @@ -1 +1 @@ -const a231_0x5784=['default','credentials','includes','owners','getDocument','findById','apply','discord.js','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','../models/User','constructor','User'];(function(_0x57bacb,_0x29168d){const _0x578457=function(_0x193523){while(--_0x193523){_0x57bacb['push'](_0x57bacb['shift']());}},_0x1dfcb6=function(){const _0x137cfe={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x29166b,_0x5c32fa,_0x405f5f,_0x375120){_0x375120=_0x375120||{};let _0xebc44e=_0x5c32fa+'='+_0x405f5f,_0x141407=0x0;for(let _0x12356a=0x0,_0x341593=_0x29166b['length'];_0x12356a<_0x341593;_0x12356a++){const _0x464886=_0x29166b[_0x12356a];_0xebc44e+=';\x20'+_0x464886;const _0x399442=_0x29166b[_0x464886];_0x29166b['push'](_0x399442),_0x341593=_0x29166b['length'],_0x399442!==!![]&&(_0xebc44e+='='+_0x399442);}_0x375120['cookie']=_0xebc44e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x415fc3,_0x41288f){_0x415fc3=_0x415fc3||function(_0x391abd){return _0x391abd;};const _0x4a1739=_0x415fc3(new RegExp('(?:^|;\x20)'+_0x41288f['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x399636=function(_0x2885f4,_0x36fc06){_0x2885f4(++_0x36fc06);};return _0x399636(_0x578457,_0x29168d),_0x4a1739?decodeURIComponent(_0x4a1739[0x1]):undefined;}},_0x59a7ae=function(){const _0x50b797=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x50b797['test'](_0x137cfe['removeCookie']['toString']());};_0x137cfe['updateCookie']=_0x59a7ae;let _0x44a025='';const _0x476d4f=_0x137cfe['updateCookie']();if(!_0x476d4f)_0x137cfe['setCookie'](['*'],'counter',0x1);else _0x476d4f?_0x44a025=_0x137cfe['getCookie'](null,'counter'):_0x137cfe['removeCookie']();};_0x1dfcb6();}(a231_0x5784,0x66));const a231_0x1dfc=function(_0x57bacb,_0x29168d){_0x57bacb=_0x57bacb-0xe5;let _0x578457=a231_0x5784[_0x57bacb];return _0x578457;};const _0x5169b0=a231_0x1dfc,a231_0x59a7ae=function(){let _0x476d4f=!![];return function(_0x29166b,_0x5c32fa){const _0x405f5f=_0x476d4f?function(){const _0x187e75=a231_0x1dfc;if(_0x5c32fa){const _0x375120=_0x5c32fa[_0x187e75(0xe5)](_0x29166b,arguments);return _0x5c32fa=null,_0x375120;}}:function(){};return _0x476d4f=![],_0x405f5f;};}(),a231_0x137cfe=a231_0x59a7ae(this,function(){const _0xebc44e=function(){const _0x5eaa93=a231_0x1dfc,_0x141407=_0xebc44e[_0x5eaa93(0xe9)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x5eaa93(0xe9)](_0x5eaa93(0xe7));return!_0x141407['test'](a231_0x137cfe);};return _0xebc44e();});a231_0x137cfe();'use strict';const discord_js_1=require(_0x5169b0(0xe6)),User_1=require(_0x5169b0(0xe8));module['exports']=class BastionUser extends discord_js_1[_0x5169b0(0xea)]{constructor(_0x12356a,_0x341593){super(_0x12356a,_0x341593);}async[_0x5169b0(0xef)](){const _0x1faba7=_0x5169b0;return await User_1[_0x1faba7(0xeb)][_0x1faba7(0xf0)](this['id']);}['isOwner'](){const _0x4d55cd=_0x5169b0;return this['client'][_0x4d55cd(0xec)][_0x4d55cd(0xee)][_0x4d55cd(0xed)](this['id']);}}; \ No newline at end of file +const a232_0x36bb=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','discord.js','client','exports','findById','apply','default','getDocument','test','../models/User','owners','credentials','constructor'];(function(_0x17a635,_0x20bdc8){const _0x36bbf9=function(_0x1573d5){while(--_0x1573d5){_0x17a635['push'](_0x17a635['shift']());}},_0x27eb40=function(){const _0x356201={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x37aab7,_0x1b8cef,_0x51d0d4,_0x39cb48){_0x39cb48=_0x39cb48||{};let _0x2b2726=_0x1b8cef+'='+_0x51d0d4,_0x19a0af=0x0;for(let _0x574531=0x0,_0x34e813=_0x37aab7['length'];_0x574531<_0x34e813;_0x574531++){const _0x411633=_0x37aab7[_0x574531];_0x2b2726+=';\x20'+_0x411633;const _0x5bfa11=_0x37aab7[_0x411633];_0x37aab7['push'](_0x5bfa11),_0x34e813=_0x37aab7['length'],_0x5bfa11!==!![]&&(_0x2b2726+='='+_0x5bfa11);}_0x39cb48['cookie']=_0x2b2726;},'removeCookie':function(){return'dev';},'getCookie':function(_0x21ea0d,_0x4ad2da){_0x21ea0d=_0x21ea0d||function(_0x3fa69a){return _0x3fa69a;};const _0x381463=_0x21ea0d(new RegExp('(?:^|;\x20)'+_0x4ad2da['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x41e440=function(_0x261613,_0x562922){_0x261613(++_0x562922);};return _0x41e440(_0x36bbf9,_0x20bdc8),_0x381463?decodeURIComponent(_0x381463[0x1]):undefined;}},_0x3d5f3e=function(){const _0x30db59=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x30db59['test'](_0x356201['removeCookie']['toString']());};_0x356201['updateCookie']=_0x3d5f3e;let _0x2afb93='';const _0x5f2849=_0x356201['updateCookie']();if(!_0x5f2849)_0x356201['setCookie'](['*'],'counter',0x1);else _0x5f2849?_0x2afb93=_0x356201['getCookie'](null,'counter'):_0x356201['removeCookie']();};_0x27eb40();}(a232_0x36bb,0xb3));const a232_0x27eb=function(_0x17a635,_0x20bdc8){_0x17a635=_0x17a635-0x1e1;let _0x36bbf9=a232_0x36bb[_0x17a635];return _0x36bbf9;};const a232_0x2109eb=a232_0x27eb,a232_0x3d5f3e=function(){let _0x5f2849=!![];return function(_0x37aab7,_0x1b8cef){const _0x51d0d4=_0x5f2849?function(){const _0x1dfc32=a232_0x27eb;if(_0x1b8cef){const _0x39cb48=_0x1b8cef[_0x1dfc32(0x1e9)](_0x37aab7,arguments);return _0x1b8cef=null,_0x39cb48;}}:function(){};return _0x5f2849=![],_0x51d0d4;};}(),a232_0x356201=a232_0x3d5f3e(this,function(){const _0x2b2726=function(){const _0x4d2c=a232_0x27eb,_0x19a0af=_0x2b2726[_0x4d2c(0x1e3)](_0x4d2c(0x1e4))()[_0x4d2c(0x1e3)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x19a0af[_0x4d2c(0x1ec)](a232_0x356201);};return _0x2b2726();});a232_0x356201();'use strict';const discord_js_1=require(a232_0x2109eb(0x1e5)),User_1=require(a232_0x2109eb(0x1ed));module[a232_0x2109eb(0x1e7)]=class BastionUser extends discord_js_1['User']{constructor(_0x574531,_0x34e813){super(_0x574531,_0x34e813);}async[a232_0x2109eb(0x1eb)](){const _0xd960d7=a232_0x2109eb;return await User_1[_0xd960d7(0x1ea)][_0xd960d7(0x1e8)](this['id']);}['isOwner'](){const _0x2d273a=a232_0x2109eb;return this[_0x2d273a(0x1e6)][_0x2d273a(0x1e2)][_0x2d273a(0x1e1)]['includes'](this['id']);}}; \ No newline at end of file diff --git a/utils/arrays.js b/utils/arrays.js index 6ed4a03cd..7ef5ff362 100644 --- a/utils/arrays.js +++ b/utils/arrays.js @@ -1 +1 @@ -const a232_0x5c45=['toBulletList','test','push','constructor','trim','shuffle','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','toString','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','./numbers','defineProperty'];(function(_0x1122de,_0x349665){const _0x5c4562=function(_0x2bd0bd){while(--_0x2bd0bd){_0x1122de['push'](_0x1122de['shift']());}},_0x5bc2fe=function(){const _0x1445ce={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x384590,_0x377871,_0x4845b2,_0x1c03e8){_0x1c03e8=_0x1c03e8||{};let _0x1848ab=_0x377871+'='+_0x4845b2,_0x2bb026=0x0;for(let _0x53646e=0x0,_0x74dd40=_0x384590['length'];_0x53646e<_0x74dd40;_0x53646e++){const _0x2b094a=_0x384590[_0x53646e];_0x1848ab+=';\x20'+_0x2b094a;const _0x56d0f5=_0x384590[_0x2b094a];_0x384590['push'](_0x56d0f5),_0x74dd40=_0x384590['length'],_0x56d0f5!==!![]&&(_0x1848ab+='='+_0x56d0f5);}_0x1c03e8['cookie']=_0x1848ab;},'removeCookie':function(){return'dev';},'getCookie':function(_0x410fb4,_0x4e5968){_0x410fb4=_0x410fb4||function(_0x39d0ff){return _0x39d0ff;};const _0x474387=_0x410fb4(new RegExp('(?:^|;\x20)'+_0x4e5968['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x38da73=function(_0x3e81a9,_0x294c4f){_0x3e81a9(++_0x294c4f);};return _0x38da73(_0x5c4562,_0x349665),_0x474387?decodeURIComponent(_0x474387[0x1]):undefined;}},_0x20c853=function(){const _0x5d4a2c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5d4a2c['test'](_0x1445ce['removeCookie']['toString']());};_0x1445ce['updateCookie']=_0x20c853;let _0x2bbf0f='';const _0x2eddf2=_0x1445ce['updateCookie']();if(!_0x2eddf2)_0x1445ce['setCookie'](['*'],'counter',0x1);else _0x2eddf2?_0x2bbf0f=_0x1445ce['getCookie'](null,'counter'):_0x1445ce['removeCookie']();};_0x5bc2fe();}(a232_0x5c45,0x1d7));const a232_0x5bc2=function(_0x1122de,_0x349665){_0x1122de=_0x1122de-0x146;let _0x5c4562=a232_0x5c45[_0x1122de];return _0x5c4562;};const _0x245086=a232_0x5bc2,a232_0x20c853=function(){let _0x2eddf2=!![];return function(_0x384590,_0x377871){const _0x4845b2=_0x2eddf2?function(){if(_0x377871){const _0x1c03e8=_0x377871['apply'](_0x384590,arguments);return _0x377871=null,_0x1c03e8;}}:function(){};return _0x2eddf2=![],_0x4845b2;};}(),a232_0x1445ce=a232_0x20c853(this,function(){const _0x1848ab=function(){const _0x4f84f7=a232_0x5bc2,_0x2bb026=_0x1848ab[_0x4f84f7(0x146)](_0x4f84f7(0x14c))()[_0x4f84f7(0x146)](_0x4f84f7(0x149));return!_0x2bb026[_0x4f84f7(0x151)](a232_0x1445ce);};return _0x1848ab();});a232_0x1445ce();'use strict';Object[_0x245086(0x14f)](exports,_0x245086(0x14d),{'value':!![]}),exports['wrap']=exports['toBulletList']=exports[_0x245086(0x148)]=void 0x0;const numbers=require(_0x245086(0x14e)),shuffle=_0x53646e=>{const _0xaa6d60=_0x245086,_0x74dd40=[];for(let _0x2b094a=0x0;_0x2b094a<_0x53646e[_0xaa6d60(0x14b)];_0x2b094a++){const _0x56d0f5=numbers['getRandomInt'](0x0,_0x2b094a);if(_0x2b094a!==_0x56d0f5)_0x74dd40[_0x2b094a]=_0x74dd40[_0x56d0f5];_0x74dd40[_0x56d0f5]=_0x53646e[_0x2b094a];}return _0x74dd40;};exports[_0x245086(0x148)]=shuffle;const toBulletList=(_0x410fb4,_0x4e5968='•')=>{const _0x15fe02=_0x245086,_0x474387=[];for(const _0x38da73 of _0x410fb4){_0x474387[_0x15fe02(0x152)](_0x4e5968+'\x20'+_0x38da73[_0x15fe02(0x14a)]());}return(_0x474387['join']('\x0a')+'\x0a')[_0x15fe02(0x147)]();};exports[_0x245086(0x150)]=toBulletList;const wrap=(_0x39d0ff,_0x3e81a9)=>{return _0x39d0ff['map'](_0x294c4f=>_0x3e81a9+_0x294c4f+_0x3e81a9);};exports['wrap']=wrap; \ No newline at end of file +const a233_0x2145=['length','map','shuffle','wrap','apply','defineProperty','constructor','test','toString','./numbers','join','toBulletList','__esModule'];(function(_0x644b0c,_0x280e91){const _0x214521=function(_0x330114){while(--_0x330114){_0x644b0c['push'](_0x644b0c['shift']());}},_0x5bb9eb=function(){const _0x562e7a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x528791,_0x499926,_0x38c6ab,_0x32e9b5){_0x32e9b5=_0x32e9b5||{};let _0x122c60=_0x499926+'='+_0x38c6ab,_0x107e17=0x0;for(let _0x30f336=0x0,_0x369e3c=_0x528791['length'];_0x30f336<_0x369e3c;_0x30f336++){const _0x4f56db=_0x528791[_0x30f336];_0x122c60+=';\x20'+_0x4f56db;const _0x4a15ac=_0x528791[_0x4f56db];_0x528791['push'](_0x4a15ac),_0x369e3c=_0x528791['length'],_0x4a15ac!==!![]&&(_0x122c60+='='+_0x4a15ac);}_0x32e9b5['cookie']=_0x122c60;},'removeCookie':function(){return'dev';},'getCookie':function(_0x330eb8,_0x1785f6){_0x330eb8=_0x330eb8||function(_0x1f3a93){return _0x1f3a93;};const _0x27b40b=_0x330eb8(new RegExp('(?:^|;\x20)'+_0x1785f6['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3297a2=function(_0x2096db,_0x2b4801){_0x2096db(++_0x2b4801);};return _0x3297a2(_0x214521,_0x280e91),_0x27b40b?decodeURIComponent(_0x27b40b[0x1]):undefined;}},_0x252ec5=function(){const _0x15c797=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x15c797['test'](_0x562e7a['removeCookie']['toString']());};_0x562e7a['updateCookie']=_0x252ec5;let _0x73f254='';const _0x22e680=_0x562e7a['updateCookie']();if(!_0x22e680)_0x562e7a['setCookie'](['*'],'counter',0x1);else _0x22e680?_0x73f254=_0x562e7a['getCookie'](null,'counter'):_0x562e7a['removeCookie']();};_0x5bb9eb();}(a233_0x2145,0x8a));const a233_0x5bb9=function(_0x644b0c,_0x280e91){_0x644b0c=_0x644b0c-0xe9;let _0x214521=a233_0x2145[_0x644b0c];return _0x214521;};const a233_0x335e77=a233_0x5bb9,a233_0x252ec5=function(){let _0x22e680=!![];return function(_0x528791,_0x499926){const _0x38c6ab=_0x22e680?function(){const _0x5b2f96=a233_0x5bb9;if(_0x499926){const _0x32e9b5=_0x499926[_0x5b2f96(0xf2)](_0x528791,arguments);return _0x499926=null,_0x32e9b5;}}:function(){};return _0x22e680=![],_0x38c6ab;};}(),a233_0x562e7a=a233_0x252ec5(this,function(){const _0x122c60=function(){const _0x3db9ff=a233_0x5bb9,_0x107e17=_0x122c60[_0x3db9ff(0xf4)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x107e17[_0x3db9ff(0xf5)](a233_0x562e7a);};return _0x122c60();});a233_0x562e7a();'use strict';Object[a233_0x335e77(0xf3)](exports,a233_0x335e77(0xed),{'value':!![]}),exports[a233_0x335e77(0xf1)]=exports[a233_0x335e77(0xec)]=exports['shuffle']=void 0x0;const numbers=require(a233_0x335e77(0xea)),shuffle=_0x30f336=>{const _0x37f0d6=a233_0x335e77,_0x369e3c=[];for(let _0x4f56db=0x0;_0x4f56db<_0x30f336[_0x37f0d6(0xee)];_0x4f56db++){const _0x4a15ac=numbers['getRandomInt'](0x0,_0x4f56db);if(_0x4f56db!==_0x4a15ac)_0x369e3c[_0x4f56db]=_0x369e3c[_0x4a15ac];_0x369e3c[_0x4a15ac]=_0x30f336[_0x4f56db];}return _0x369e3c;};exports[a233_0x335e77(0xf0)]=shuffle;const toBulletList=(_0x330eb8,_0x1785f6='•')=>{const _0x176954=a233_0x335e77,_0x27b40b=[];for(const _0x3297a2 of _0x330eb8){_0x27b40b['push'](_0x1785f6+'\x20'+_0x3297a2[_0x176954(0xe9)]());}return(_0x27b40b[_0x176954(0xeb)]('\x0a')+'\x0a')['trim']();};exports[a233_0x335e77(0xec)]=toBulletList;const wrap=(_0x1f3a93,_0x2096db)=>{const _0x21ee7c=a233_0x335e77;return _0x1f3a93[_0x21ee7c(0xef)](_0x2b4801=>_0x2096db+_0x2b4801+_0x2096db);};exports[a233_0x335e77(0xf1)]=wrap; \ No newline at end of file diff --git a/utils/badges.js b/utils/badges.js index 16e99e64f..c0c6a7fc8 100644 --- a/utils/badges.js +++ b/utils/badges.js @@ -1 +1 @@ -const a233_0x2d04=['BASTION_GOLD_USER','GUILD_4Y_CLUB','GUILD_9Y_CLUB','defineProperty','GOLD','GUILD_OWNER','GUILD_3Y_CLUB','BASTION_DIAMOND_GUILD','GUILD_NEW_MEMBER','joinedTimestamp','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','has','./constants','getMembership','../assets/badges.json','length','MANAGE_NICKNAMES','MANAGE_MESSAGES','DIAMOND','COLORS','BASTION_PLATINUM_USER','./omnic','BADGES','guild','MANAGE_WEBHOOKS','GUILD_7Y_CLUB','push','resolveBadges','constructor','MANAGE_CHANNELS','__esModule','keys','getMemberBadgeValue','now','makeRequest','PLATINUM','string','/badges/user/','test','MANAGE_ROLES','GUILD_5Y_CLUB','permissions','BASTION_DIAMOND_USER','MANAGE_GUILD'];(function(_0xb4d8d,_0x1336d4){const _0x2d04bf=function(_0x23e9d4){while(--_0x23e9d4){_0xb4d8d['push'](_0xb4d8d['shift']());}},_0x1a960f=function(){const _0x31d430={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3bf35f,_0x507356,_0x529532,_0x53a137){_0x53a137=_0x53a137||{};let _0x4e5b32=_0x507356+'='+_0x529532,_0xaa5d5=0x0;for(let _0x8e44a7=0x0,_0x3eda8a=_0x3bf35f['length'];_0x8e44a7<_0x3eda8a;_0x8e44a7++){const _0x4cd208=_0x3bf35f[_0x8e44a7];_0x4e5b32+=';\x20'+_0x4cd208;const _0x2caaf0=_0x3bf35f[_0x4cd208];_0x3bf35f['push'](_0x2caaf0),_0x3eda8a=_0x3bf35f['length'],_0x2caaf0!==!![]&&(_0x4e5b32+='='+_0x2caaf0);}_0x53a137['cookie']=_0x4e5b32;},'removeCookie':function(){return'dev';},'getCookie':function(_0x129ade,_0x1d7206){_0x129ade=_0x129ade||function(_0x5c3e9f){return _0x5c3e9f;};const _0x54dcd0=_0x129ade(new RegExp('(?:^|;\x20)'+_0x1d7206['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x512ef6=function(_0x179539,_0x7d0168){_0x179539(++_0x7d0168);};return _0x512ef6(_0x2d04bf,_0x1336d4),_0x54dcd0?decodeURIComponent(_0x54dcd0[0x1]):undefined;}},_0x99978d=function(){const _0x587dd7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x587dd7['test'](_0x31d430['removeCookie']['toString']());};_0x31d430['updateCookie']=_0x99978d;let _0xec223b='';const _0x39cf59=_0x31d430['updateCookie']();if(!_0x39cf59)_0x31d430['setCookie'](['*'],'counter',0x1);else _0x39cf59?_0xec223b=_0x31d430['getCookie'](null,'counter'):_0x31d430['removeCookie']();};_0x1a960f();}(a233_0x2d04,0x77));const a233_0x1a96=function(_0xb4d8d,_0x1336d4){_0xb4d8d=_0xb4d8d-0x133;let _0x2d04bf=a233_0x2d04[_0xb4d8d];return _0x2d04bf;};const _0x51f780=a233_0x1a96,a233_0x99978d=function(){let _0x39cf59=!![];return function(_0x3bf35f,_0x507356){const _0x529532=_0x39cf59?function(){if(_0x507356){const _0x53a137=_0x507356['apply'](_0x3bf35f,arguments);return _0x507356=null,_0x53a137;}}:function(){};return _0x39cf59=![],_0x529532;};}(),a233_0x31d430=a233_0x99978d(this,function(){const _0x4e5b32=function(){const _0x3d85da=a233_0x1a96,_0xaa5d5=_0x4e5b32[_0x3d85da(0x15c)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x3d85da(0x15c)](_0x3d85da(0x14a));return!_0xaa5d5[_0x3d85da(0x13a)](a233_0x31d430);};return _0x4e5b32();});a233_0x31d430();'use strict';Object[_0x51f780(0x143)](exports,_0x51f780(0x15e),{'value':!![]}),exports['getMembership']=exports[_0x51f780(0x14b)]=exports[_0x51f780(0x134)]=exports['fetchBadges']=exports[_0x51f780(0x15b)]=void 0x0;const constants=require(_0x51f780(0x14c)),omnic=require(_0x51f780(0x155)),BADGES=require(_0x51f780(0x14e)),resolveBadges=_0x8e44a7=>{const _0x153cd7=_0x51f780,_0x3eda8a=[];for(let _0x4cd208=0x0;_0x4cd208{const _0x42ff87=_0x51f780;return omnic[_0x42ff87(0x136)](_0x42ff87(0x139)+_0x129ade+(_0x1d7206?'/'+_0x1d7206:''));};exports['fetchBadges']=fetchBadges;const getMemberBadgeValue=_0x54dcd0=>{const _0x2a0b4f=_0x51f780;let _0x512ef6=0x0;if(_0x54dcd0[_0x2a0b4f(0x157)]['ownerID']===_0x54dcd0['id'])_0x512ef6|=constants[_0x2a0b4f(0x156)][_0x2a0b4f(0x145)];if(_0x54dcd0['permissions'][_0x2a0b4f(0x14b)](_0x2a0b4f(0x13f))||_0x54dcd0[_0x2a0b4f(0x13d)]['has'](_0x2a0b4f(0x13b))||_0x54dcd0['permissions'][_0x2a0b4f(0x14b)](_0x2a0b4f(0x15d))||_0x54dcd0[_0x2a0b4f(0x13d)][_0x2a0b4f(0x14b)](_0x2a0b4f(0x151))||_0x54dcd0['permissions']['has'](_0x2a0b4f(0x158))||_0x54dcd0[_0x2a0b4f(0x13d)]['has'](_0x2a0b4f(0x150))||_0x54dcd0[_0x2a0b4f(0x13d)][_0x2a0b4f(0x14b)]('MANAGE_EMOJIS'))_0x512ef6|=constants[_0x2a0b4f(0x156)]['GUILD_STAFF'];if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0[_0x2a0b4f(0x149)]>=0x9*0x758f0dfc0)_0x512ef6|=constants[_0x2a0b4f(0x156)][_0x2a0b4f(0x142)];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0[_0x2a0b4f(0x149)]>=0x8*0x758f0dfc0)_0x512ef6|=constants['BADGES']['GUILD_8Y_CLUB'];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0[_0x2a0b4f(0x149)]>=0x7*0x758f0dfc0)_0x512ef6|=constants[_0x2a0b4f(0x156)][_0x2a0b4f(0x159)];else{if(Date['now']()-_0x54dcd0[_0x2a0b4f(0x149)]>=0x6*0x758f0dfc0)_0x512ef6|=constants[_0x2a0b4f(0x156)]['GUILD_6Y_CLUB'];else{if(Date['now']()-_0x54dcd0[_0x2a0b4f(0x149)]>=0x5*0x758f0dfc0)_0x512ef6|=constants['BADGES'][_0x2a0b4f(0x13c)];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0['joinedTimestamp']>=0x4*0x758f0dfc0)_0x512ef6|=constants[_0x2a0b4f(0x156)][_0x2a0b4f(0x141)];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0['joinedTimestamp']>=0x3*0x758f0dfc0)_0x512ef6|=constants[_0x2a0b4f(0x156)][_0x2a0b4f(0x146)];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0[_0x2a0b4f(0x149)]>=0x2*0x758f0dfc0)_0x512ef6|=constants['BADGES']['GUILD_2Y_CLUB'];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0['joinedTimestamp']>=0x1*0x758f0dfc0)_0x512ef6|=constants[_0x2a0b4f(0x156)]['GUILD_1Y_CLUB'];else{if(Date[_0x2a0b4f(0x135)]()-_0x54dcd0['joinedTimestamp']<=0xd84b1800)_0x512ef6|=constants[_0x2a0b4f(0x156)][_0x2a0b4f(0x148)];}}}}}}}}}return _0x512ef6;};exports[_0x51f780(0x134)]=getMemberBadgeValue;const has=(_0x5c3e9f,_0x179539)=>{const _0x42caf0=_0x51f780;if(typeof _0x179539===_0x42caf0(0x138))return(_0x5c3e9f&constants[_0x42caf0(0x156)][_0x179539])===constants[_0x42caf0(0x156)][_0x179539];return(_0x5c3e9f&_0x179539)===_0x179539;};exports[_0x51f780(0x14b)]=has;const getMembership=_0x7d0168=>{const _0x210483=_0x51f780;if(exports[_0x210483(0x14b)](_0x7d0168,'BASTION_DIAMOND_USER'))return{...BADGES[_0x210483(0x13e)],'color':constants[_0x210483(0x153)][_0x210483(0x152)]};if(exports['has'](_0x7d0168,_0x210483(0x147)))return{...BADGES[_0x210483(0x147)],'color':constants[_0x210483(0x153)]['DIAMOND']};if(exports[_0x210483(0x14b)](_0x7d0168,_0x210483(0x154)))return{...BADGES[_0x210483(0x154)],'color':constants['COLORS'][_0x210483(0x137)]};if(exports['has'](_0x7d0168,'BASTION_PLATINUM_USER'))return{...BADGES['BASTION_PLATINUM_USER'],'color':constants[_0x210483(0x153)][_0x210483(0x137)]};if(exports[_0x210483(0x14b)](_0x7d0168,'BASTION_GOLD_USER'))return{...BADGES[_0x210483(0x140)],'color':constants['COLORS'][_0x210483(0x144)]};if(exports['has'](_0x7d0168,_0x210483(0x140)))return{...BADGES['BASTION_GOLD_USER'],'color':constants[_0x210483(0x153)]['GOLD']};};exports[_0x51f780(0x14d)]=getMembership; \ No newline at end of file +const a234_0x4a8e=['MANAGE_NICKNAMES','MANAGE_ROLES','guild','test','/badges/user/','MANAGE_WEBHOOKS','GUILD_8Y_CLUB','GUILD_2Y_CLUB','BASTION_PLATINUM_USER','defineProperty','permissions','length','fetchBadges','./constants','PLATINUM','joinedTimestamp','constructor','now','has','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','BASTION_DIAMOND_GUILD','BADGES','MANAGE_GUILD','BASTION_DIAMOND_USER','MANAGE_MESSAGES','MANAGE_EMOJIS','getMemberBadgeValue','getMembership','GUILD_6Y_CLUB','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GUILD_5Y_CLUB','COLORS','BASTION_GOLD_USER','GUILD_9Y_CLUB','keys','GOLD','push','DIAMOND','makeRequest'];(function(_0x4f4fc8,_0x173252){const _0x4a8e5d=function(_0x4479e4){while(--_0x4479e4){_0x4f4fc8['push'](_0x4f4fc8['shift']());}},_0x4defcf=function(){const _0x3ae951={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4539be,_0x5cb48d,_0x395619,_0x430d38){_0x430d38=_0x430d38||{};let _0x3e014f=_0x5cb48d+'='+_0x395619,_0x213600=0x0;for(let _0x2c1dca=0x0,_0x5a35b5=_0x4539be['length'];_0x2c1dca<_0x5a35b5;_0x2c1dca++){const _0x43fd8b=_0x4539be[_0x2c1dca];_0x3e014f+=';\x20'+_0x43fd8b;const _0x47f947=_0x4539be[_0x43fd8b];_0x4539be['push'](_0x47f947),_0x5a35b5=_0x4539be['length'],_0x47f947!==!![]&&(_0x3e014f+='='+_0x47f947);}_0x430d38['cookie']=_0x3e014f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1a7f96,_0x498b8e){_0x1a7f96=_0x1a7f96||function(_0x18adec){return _0x18adec;};const _0x796197=_0x1a7f96(new RegExp('(?:^|;\x20)'+_0x498b8e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x200397=function(_0x126b31,_0x28ddfb){_0x126b31(++_0x28ddfb);};return _0x200397(_0x4a8e5d,_0x173252),_0x796197?decodeURIComponent(_0x796197[0x1]):undefined;}},_0x240718=function(){const _0x1b7e53=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1b7e53['test'](_0x3ae951['removeCookie']['toString']());};_0x3ae951['updateCookie']=_0x240718;let _0x2e0713='';const _0x42fa65=_0x3ae951['updateCookie']();if(!_0x42fa65)_0x3ae951['setCookie'](['*'],'counter',0x1);else _0x42fa65?_0x2e0713=_0x3ae951['getCookie'](null,'counter'):_0x3ae951['removeCookie']();};_0x4defcf();}(a234_0x4a8e,0x163));const a234_0x4def=function(_0x4f4fc8,_0x173252){_0x4f4fc8=_0x4f4fc8-0x183;let _0x4a8e5d=a234_0x4a8e[_0x4f4fc8];return _0x4a8e5d;};const a234_0x5980af=a234_0x4def,a234_0x240718=function(){let _0x42fa65=!![];return function(_0x4539be,_0x5cb48d){const _0x395619=_0x42fa65?function(){const _0x34f3f6=a234_0x4def;if(_0x5cb48d){const _0x430d38=_0x5cb48d[_0x34f3f6(0x1a5)](_0x4539be,arguments);return _0x5cb48d=null,_0x430d38;}}:function(){};return _0x42fa65=![],_0x395619;};}(),a234_0x3ae951=a234_0x240718(this,function(){const _0x3e014f=function(){const _0x1e3272=a234_0x4def,_0x213600=_0x3e014f[_0x1e3272(0x198)](_0x1e3272(0x1a6))()[_0x1e3272(0x198)](_0x1e3272(0x19b));return!_0x213600[_0x1e3272(0x18b)](a234_0x3ae951);};return _0x3e014f();});a234_0x3ae951();'use strict';Object[a234_0x5980af(0x191)](exports,'__esModule',{'value':!![]}),exports[a234_0x5980af(0x1a3)]=exports[a234_0x5980af(0x19a)]=exports[a234_0x5980af(0x1a2)]=exports['fetchBadges']=exports['resolveBadges']=void 0x0;const constants=require(a234_0x5980af(0x195)),omnic=require('./omnic'),BADGES=require('../assets/badges.json'),resolveBadges=_0x2c1dca=>{const _0x55125e=a234_0x5980af,_0x5a35b5=[];for(let _0x43fd8b=0x0;_0x43fd8b{const _0x3203c6=a234_0x5980af;return omnic[_0x3203c6(0x187)](_0x3203c6(0x18c)+_0x1a7f96+(_0x498b8e?'/'+_0x498b8e:''));};exports[a234_0x5980af(0x194)]=fetchBadges;const getMemberBadgeValue=_0x796197=>{const _0x149974=a234_0x5980af;let _0x200397=0x0;if(_0x796197[_0x149974(0x18a)]['ownerID']===_0x796197['id'])_0x200397|=constants['BADGES']['GUILD_OWNER'];if(_0x796197[_0x149974(0x192)][_0x149974(0x19a)](_0x149974(0x19e))||_0x796197[_0x149974(0x192)][_0x149974(0x19a)](_0x149974(0x189))||_0x796197[_0x149974(0x192)]['has']('MANAGE_CHANNELS')||_0x796197[_0x149974(0x192)][_0x149974(0x19a)](_0x149974(0x1a0))||_0x796197[_0x149974(0x192)][_0x149974(0x19a)](_0x149974(0x18d))||_0x796197['permissions'][_0x149974(0x19a)](_0x149974(0x188))||_0x796197[_0x149974(0x192)]['has'](_0x149974(0x1a1)))_0x200397|=constants['BADGES']['GUILD_STAFF'];if(Date[_0x149974(0x199)]()-_0x796197[_0x149974(0x197)]>=0x9*0x758f0dfc0)_0x200397|=constants['BADGES'][_0x149974(0x1aa)];else{if(Date['now']()-_0x796197[_0x149974(0x197)]>=0x8*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)][_0x149974(0x18e)];else{if(Date['now']()-_0x796197['joinedTimestamp']>=0x7*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)]['GUILD_7Y_CLUB'];else{if(Date['now']()-_0x796197[_0x149974(0x197)]>=0x6*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)][_0x149974(0x1a4)];else{if(Date[_0x149974(0x199)]()-_0x796197[_0x149974(0x197)]>=0x5*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)][_0x149974(0x1a7)];else{if(Date['now']()-_0x796197[_0x149974(0x197)]>=0x4*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)]['GUILD_4Y_CLUB'];else{if(Date[_0x149974(0x199)]()-_0x796197[_0x149974(0x197)]>=0x3*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)]['GUILD_3Y_CLUB'];else{if(Date[_0x149974(0x199)]()-_0x796197['joinedTimestamp']>=0x2*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)][_0x149974(0x18f)];else{if(Date[_0x149974(0x199)]()-_0x796197[_0x149974(0x197)]>=0x1*0x758f0dfc0)_0x200397|=constants[_0x149974(0x19d)]['GUILD_1Y_CLUB'];else{if(Date[_0x149974(0x199)]()-_0x796197['joinedTimestamp']<=0xd84b1800)_0x200397|=constants['BADGES']['GUILD_NEW_MEMBER'];}}}}}}}}}return _0x200397;};exports[a234_0x5980af(0x1a2)]=getMemberBadgeValue;const has=(_0x18adec,_0x126b31)=>{const _0x2bc9f2=a234_0x5980af;if(typeof _0x126b31==='string')return(_0x18adec&constants[_0x2bc9f2(0x19d)][_0x126b31])===constants[_0x2bc9f2(0x19d)][_0x126b31];return(_0x18adec&_0x126b31)===_0x126b31;};exports[a234_0x5980af(0x19a)]=has;const getMembership=_0x28ddfb=>{const _0x32b37f=a234_0x5980af;if(exports[_0x32b37f(0x19a)](_0x28ddfb,_0x32b37f(0x19f)))return{...BADGES[_0x32b37f(0x19f)],'color':constants[_0x32b37f(0x1a8)][_0x32b37f(0x186)]};if(exports[_0x32b37f(0x19a)](_0x28ddfb,_0x32b37f(0x19c)))return{...BADGES[_0x32b37f(0x19c)],'color':constants[_0x32b37f(0x1a8)]['DIAMOND']};if(exports[_0x32b37f(0x19a)](_0x28ddfb,_0x32b37f(0x190)))return{...BADGES['BASTION_PLATINUM_USER'],'color':constants[_0x32b37f(0x1a8)]['PLATINUM']};if(exports[_0x32b37f(0x19a)](_0x28ddfb,_0x32b37f(0x190)))return{...BADGES[_0x32b37f(0x190)],'color':constants[_0x32b37f(0x1a8)][_0x32b37f(0x196)]};if(exports[_0x32b37f(0x19a)](_0x28ddfb,'BASTION_GOLD_USER'))return{...BADGES['BASTION_GOLD_USER'],'color':constants[_0x32b37f(0x1a8)][_0x32b37f(0x184)]};if(exports['has'](_0x28ddfb,_0x32b37f(0x1a9)))return{...BADGES[_0x32b37f(0x1a9)],'color':constants[_0x32b37f(0x1a8)]['GOLD']};};exports[a234_0x5980af(0x1a3)]=getMembership; \ No newline at end of file diff --git a/utils/colors.js b/utils/colors.js index f0fc4ee8d..f5e786727 100644 --- a/utils/colors.js +++ b/utils/colors.js @@ -1 +1 @@ -const a234_0x2fb6=['map','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cmykToRgb','hexToInt','defineProperty','toUpperCase','REGEX_RGB','toString','rgbToCmyk','round','intToHex','__esModule','apply','parseInt','join','test','min','constructor','intToRgb','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','length','parse','rgbToInt','REGEX_CMYK','split','000000'];(function(_0x255b77,_0x2f74b1){const _0x2fb6aa=function(_0x12258a){while(--_0x12258a){_0x255b77['push'](_0x255b77['shift']());}},_0x29a209=function(){const _0x50583f={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3a3733,_0x4a4708,_0xdcc832,_0x116fb8){_0x116fb8=_0x116fb8||{};let _0x5acde7=_0x4a4708+'='+_0xdcc832,_0x4df86a=0x0;for(let _0x380433=0x0,_0x2fe5fe=_0x3a3733['length'];_0x380433<_0x2fe5fe;_0x380433++){const _0x28bfd3=_0x3a3733[_0x380433];_0x5acde7+=';\x20'+_0x28bfd3;const _0x3bfbb0=_0x3a3733[_0x28bfd3];_0x3a3733['push'](_0x3bfbb0),_0x2fe5fe=_0x3a3733['length'],_0x3bfbb0!==!![]&&(_0x5acde7+='='+_0x3bfbb0);}_0x116fb8['cookie']=_0x5acde7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x58a89e,_0x593f28){_0x58a89e=_0x58a89e||function(_0x1dc99b){return _0x1dc99b;};const _0x94ef99=_0x58a89e(new RegExp('(?:^|;\x20)'+_0x593f28['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d683f=function(_0x1288a7,_0x1bd7bd){_0x1288a7(++_0x1bd7bd);};return _0x5d683f(_0x2fb6aa,_0x2f74b1),_0x94ef99?decodeURIComponent(_0x94ef99[0x1]):undefined;}},_0x4c055e=function(){const _0x2e66af=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2e66af['test'](_0x50583f['removeCookie']['toString']());};_0x50583f['updateCookie']=_0x4c055e;let _0x281581='';const _0x40c1bd=_0x50583f['updateCookie']();if(!_0x40c1bd)_0x50583f['setCookie'](['*'],'counter',0x1);else _0x40c1bd?_0x281581=_0x50583f['getCookie'](null,'counter'):_0x50583f['removeCookie']();};_0x29a209();}(a234_0x2fb6,0x1d6));const a234_0x29a2=function(_0x255b77,_0x2f74b1){_0x255b77=_0x255b77-0xb9;let _0x2fb6aa=a234_0x2fb6[_0x255b77];return _0x2fb6aa;};const _0x202862=a234_0x29a2,a234_0x4c055e=function(){let _0x40c1bd=!![];return function(_0x3a3733,_0x4a4708){const _0xdcc832=_0x40c1bd?function(){const _0x1c14b9=a234_0x29a2;if(_0x4a4708){const _0x116fb8=_0x4a4708[_0x1c14b9(0xc3)](_0x3a3733,arguments);return _0x4a4708=null,_0x116fb8;}}:function(){};return _0x40c1bd=![],_0xdcc832;};}(),a234_0x50583f=a234_0x4c055e(this,function(){const _0x5acde7=function(){const _0x2292ca=a234_0x29a2,_0x4df86a=_0x5acde7[_0x2292ca(0xc8)](_0x2292ca(0xd2))()['constructor'](_0x2292ca(0xca));return!_0x4df86a[_0x2292ca(0xc6)](a234_0x50583f);};return _0x5acde7();});a234_0x50583f();'use strict';Object[_0x202862(0xbb)](exports,_0x202862(0xc2),{'value':!![]}),exports[_0x202862(0xcc)]=exports[_0x202862(0xba)]=exports[_0x202862(0xc9)]=exports[_0x202862(0xc1)]=exports['rgbToInt']=exports['rgbToCmyk']=exports[_0x202862(0xb9)]=void 0x0;const regex_1=require('./regex'),cmykToRgb=_0x380433=>{const _0x593ed5=_0x202862,_0x2fe5fe=_0x380433[0x0]/0x64,_0x28bfd3=_0x380433[0x1]/0x64,_0x3bfbb0=_0x380433[0x2]/0x64,_0x58a89e=_0x380433[0x3]/0x64,_0x593f28=0x1-Math['min'](0x1,_0x2fe5fe*(0x1-_0x58a89e)+_0x58a89e),_0x94ef99=0x1-Math[_0x593ed5(0xc7)](0x1,_0x28bfd3*(0x1-_0x58a89e)+_0x58a89e),_0x5d683f=0x1-Math[_0x593ed5(0xc7)](0x1,_0x3bfbb0*(0x1-_0x58a89e)+_0x58a89e);return[Math[_0x593ed5(0xc0)](_0x593f28*0xff),Math[_0x593ed5(0xc0)](_0x94ef99*0xff),Math[_0x593ed5(0xc0)](_0x5d683f*0xff)];};exports['cmykToRgb']=cmykToRgb;const rgbToCmyk=_0x1dc99b=>{const _0x9edbc7=_0x202862,_0x1288a7=_0x1dc99b[0x0]/0xff,_0x1bd7bd=_0x1dc99b[0x1]/0xff,_0x2e66af=_0x1dc99b[0x2]/0xff,_0x4e6a65=Math[_0x9edbc7(0xc7)](0x1-_0x1288a7,0x1-_0x1bd7bd,0x1-_0x2e66af),_0x5680a0=(0x1-_0x1288a7-_0x4e6a65)/(0x1-_0x4e6a65)||0x0,_0x472c04=(0x1-_0x1bd7bd-_0x4e6a65)/(0x1-_0x4e6a65)||0x0,_0x4e91b5=(0x1-_0x2e66af-_0x4e6a65)/(0x1-_0x4e6a65)||0x0;return[_0x5680a0*0x64,_0x472c04*0x64,_0x4e91b5*0x64,_0x4e6a65*0x64];};exports['rgbToCmyk']=rgbToCmyk;const rgbToInt=_0x40d6c0=>{const _0x4bc6bf=_0x202862;return((Math['round'](_0x40d6c0[0x0])&0xff)<<0x10)+((Math[_0x4bc6bf(0xc0)](_0x40d6c0[0x1])&0xff)<<0x8)+(Math[_0x4bc6bf(0xc0)](_0x40d6c0[0x2])&0xff);};exports[_0x202862(0xcd)]=rgbToInt;const intToHex=_0x1e749d=>{const _0x2525a5=_0x202862,_0x1960e8=_0x1e749d[_0x2525a5(0xbe)](0x10)[_0x2525a5(0xbc)]();return _0x2525a5(0xd0)['substring'](_0x1960e8[_0x2525a5(0xcb)])+_0x1960e8;};exports[_0x202862(0xc1)]=intToHex;const intToRgb=_0x3fc373=>{return[_0x3fc373>>0x10&0xff,_0x3fc373>>0x8&0xff,_0x3fc373&0xff];};exports['intToRgb']=intToRgb;const hexToInt=_0x2c120d=>{const _0x5de631=_0x202862;return Number[_0x5de631(0xc4)](_0x2c120d,0x10);};exports['hexToInt']=hexToInt;const parse=_0x3a86d3=>{const _0x17eacb=_0x202862;let _0x17ea9,_0x38a47e,_0x2a51ed,_0xdf0278;if(regex_1[_0x17eacb(0xce)]['test'](_0x3a86d3)){const _0x4c1dac=_0x3a86d3[_0x17eacb(0xcf)]('\x20'),_0x126138=Number[_0x17eacb(0xc4)](_0x4c1dac[0x0]),_0xe6c05b=Number[_0x17eacb(0xc4)](_0x4c1dac[0x1]),_0x17f8c7=Number['parseInt'](_0x4c1dac[0x2]),_0x31df81=Number[_0x17eacb(0xc4)](_0x4c1dac[0x3]);_0x17ea9=[_0x126138,_0xe6c05b,_0x17f8c7,_0x31df81],_0x38a47e=exports[_0x17eacb(0xb9)]([_0x126138,_0xe6c05b,_0x17f8c7,_0x31df81]),_0xdf0278=exports[_0x17eacb(0xcd)](_0x38a47e),_0x2a51ed=exports['intToHex'](_0xdf0278);}else{if(regex_1[_0x17eacb(0xbd)][_0x17eacb(0xc6)](_0x3a86d3)){const _0x367f8f=_0x3a86d3[_0x17eacb(0xcf)]('\x20'),_0x1d8fac=Number[_0x17eacb(0xc4)](_0x367f8f[0x0]),_0x58aa8a=Number[_0x17eacb(0xc4)](_0x367f8f[0x1]),_0xc7cdf8=Number[_0x17eacb(0xc4)](_0x367f8f[0x2]);_0x38a47e=[_0x1d8fac,_0x58aa8a,_0xc7cdf8],_0x17ea9=exports[_0x17eacb(0xbf)](_0x38a47e),_0xdf0278=exports['rgbToInt'](_0x38a47e),_0x2a51ed=exports[_0x17eacb(0xc1)](_0xdf0278);}else{if(regex_1['REGEX_HEX'][_0x17eacb(0xc6)](_0x3a86d3)){let _0x197a91=_0x3a86d3['includes']('#')?_0x3a86d3['split']('#')[0x1]:_0x3a86d3;_0x197a91[_0x17eacb(0xcb)]===0x3&&(_0x197a91=_0x197a91[_0x17eacb(0xcf)]('')[_0x17eacb(0xd1)](_0xb49d38=>_0xb49d38+_0xb49d38)[_0x17eacb(0xc5)]('')),_0xdf0278=exports['hexToInt'](_0x197a91),_0x38a47e=exports[_0x17eacb(0xc9)](_0xdf0278),_0x17ea9=exports[_0x17eacb(0xbf)](_0x38a47e),_0x2a51ed=_0x197a91;}else return null;}}return{'cmyk':_0x17ea9,'rgb':_0x38a47e,'hex':_0x2a51ed,'integer':_0xdf0278};};exports[_0x202862(0xcc)]=parse; \ No newline at end of file +const a235_0x130a=['hexToInt','return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','min','intToRgb','rgbToInt','parseInt','cmykToRgb','substring','join','rgbToCmyk','toUpperCase','round','split','map','parse','test','REGEX_RGB','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','intToHex','apply','000000','length','constructor','REGEX_CMYK','./regex','includes'];(function(_0x6a8c22,_0x317f3a){const _0x130aa2=function(_0x41daf4){while(--_0x41daf4){_0x6a8c22['push'](_0x6a8c22['shift']());}},_0x4c000f=function(){const _0x30c49b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x44e793,_0x47215d,_0x4ca2a0,_0x7f4721){_0x7f4721=_0x7f4721||{};let _0x3f2750=_0x47215d+'='+_0x4ca2a0,_0x4aea92=0x0;for(let _0x210e45=0x0,_0xe30d2b=_0x44e793['length'];_0x210e45<_0xe30d2b;_0x210e45++){const _0x122fec=_0x44e793[_0x210e45];_0x3f2750+=';\x20'+_0x122fec;const _0x5ae28e=_0x44e793[_0x122fec];_0x44e793['push'](_0x5ae28e),_0xe30d2b=_0x44e793['length'],_0x5ae28e!==!![]&&(_0x3f2750+='='+_0x5ae28e);}_0x7f4721['cookie']=_0x3f2750;},'removeCookie':function(){return'dev';},'getCookie':function(_0x32f061,_0xbede79){_0x32f061=_0x32f061||function(_0xe7f0cb){return _0xe7f0cb;};const _0x20eb90=_0x32f061(new RegExp('(?:^|;\x20)'+_0xbede79['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x8b8e32=function(_0x304dd4,_0x3ea66f){_0x304dd4(++_0x3ea66f);};return _0x8b8e32(_0x130aa2,_0x317f3a),_0x20eb90?decodeURIComponent(_0x20eb90[0x1]):undefined;}},_0x285f01=function(){const _0x58e4b5=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58e4b5['test'](_0x30c49b['removeCookie']['toString']());};_0x30c49b['updateCookie']=_0x285f01;let _0x2bf6ff='';const _0x53d55e=_0x30c49b['updateCookie']();if(!_0x53d55e)_0x30c49b['setCookie'](['*'],'counter',0x1);else _0x53d55e?_0x2bf6ff=_0x30c49b['getCookie'](null,'counter'):_0x30c49b['removeCookie']();};_0x4c000f();}(a235_0x130a,0xeb));const a235_0x4c00=function(_0x6a8c22,_0x317f3a){_0x6a8c22=_0x6a8c22-0x69;let _0x130aa2=a235_0x130a[_0x6a8c22];return _0x130aa2;};const a235_0x133433=a235_0x4c00,a235_0x285f01=function(){let _0x53d55e=!![];return function(_0x44e793,_0x47215d){const _0x4ca2a0=_0x53d55e?function(){const _0x4896d6=a235_0x4c00;if(_0x47215d){const _0x7f4721=_0x47215d[_0x4896d6(0x6a)](_0x44e793,arguments);return _0x47215d=null,_0x7f4721;}}:function(){};return _0x53d55e=![],_0x4ca2a0;};}(),a235_0x30c49b=a235_0x285f01(this,function(){const _0x3f2750=function(){const _0x4aad6d=a235_0x4c00,_0x4aea92=_0x3f2750[_0x4aad6d(0x6d)](_0x4aad6d(0x72))()['constructor'](_0x4aad6d(0x83));return!_0x4aea92[_0x4aad6d(0x81)](a235_0x30c49b);};return _0x3f2750();});a235_0x30c49b();'use strict';Object['defineProperty'](exports,a235_0x133433(0x73),{'value':!![]}),exports[a235_0x133433(0x80)]=exports['hexToInt']=exports['intToRgb']=exports[a235_0x133433(0x69)]=exports['rgbToInt']=exports['rgbToCmyk']=exports[a235_0x133433(0x78)]=void 0x0;const regex_1=require(a235_0x133433(0x6f)),cmykToRgb=_0x210e45=>{const _0x43598b=a235_0x133433,_0xe30d2b=_0x210e45[0x0]/0x64,_0x122fec=_0x210e45[0x1]/0x64,_0x5ae28e=_0x210e45[0x2]/0x64,_0x32f061=_0x210e45[0x3]/0x64,_0xbede79=0x1-Math[_0x43598b(0x74)](0x1,_0xe30d2b*(0x1-_0x32f061)+_0x32f061),_0x20eb90=0x1-Math[_0x43598b(0x74)](0x1,_0x122fec*(0x1-_0x32f061)+_0x32f061),_0x8b8e32=0x1-Math['min'](0x1,_0x5ae28e*(0x1-_0x32f061)+_0x32f061);return[Math['round'](_0xbede79*0xff),Math[_0x43598b(0x7d)](_0x20eb90*0xff),Math[_0x43598b(0x7d)](_0x8b8e32*0xff)];};exports[a235_0x133433(0x78)]=cmykToRgb;const rgbToCmyk=_0xe7f0cb=>{const _0x3433f0=a235_0x133433,_0x304dd4=_0xe7f0cb[0x0]/0xff,_0x3ea66f=_0xe7f0cb[0x1]/0xff,_0x58e4b5=_0xe7f0cb[0x2]/0xff,_0x23bd8f=Math[_0x3433f0(0x74)](0x1-_0x304dd4,0x1-_0x3ea66f,0x1-_0x58e4b5),_0x5e89f2=(0x1-_0x304dd4-_0x23bd8f)/(0x1-_0x23bd8f)||0x0,_0x171b47=(0x1-_0x3ea66f-_0x23bd8f)/(0x1-_0x23bd8f)||0x0,_0x19bb25=(0x1-_0x58e4b5-_0x23bd8f)/(0x1-_0x23bd8f)||0x0;return[_0x5e89f2*0x64,_0x171b47*0x64,_0x19bb25*0x64,_0x23bd8f*0x64];};exports[a235_0x133433(0x7b)]=rgbToCmyk;const rgbToInt=_0x36213e=>{const _0x586347=a235_0x133433;return((Math[_0x586347(0x7d)](_0x36213e[0x0])&0xff)<<0x10)+((Math[_0x586347(0x7d)](_0x36213e[0x1])&0xff)<<0x8)+(Math[_0x586347(0x7d)](_0x36213e[0x2])&0xff);};exports[a235_0x133433(0x76)]=rgbToInt;const intToHex=_0x3f753d=>{const _0x10295f=a235_0x133433,_0x1451d8=_0x3f753d['toString'](0x10)[_0x10295f(0x7c)]();return _0x10295f(0x6b)[_0x10295f(0x79)](_0x1451d8['length'])+_0x1451d8;};exports[a235_0x133433(0x69)]=intToHex;const intToRgb=_0x2c62cf=>{return[_0x2c62cf>>0x10&0xff,_0x2c62cf>>0x8&0xff,_0x2c62cf&0xff];};exports[a235_0x133433(0x75)]=intToRgb;const hexToInt=_0x5e88e1=>{const _0x4b802a=a235_0x133433;return Number[_0x4b802a(0x77)](_0x5e88e1,0x10);};exports[a235_0x133433(0x71)]=hexToInt;const parse=_0x200d1c=>{const _0x1a85fe=a235_0x133433;let _0x5a10ab,_0x3a7be1,_0x47e3e7,_0x3c9e0a;if(regex_1[_0x1a85fe(0x6e)][_0x1a85fe(0x81)](_0x200d1c)){const _0x45e45e=_0x200d1c[_0x1a85fe(0x7e)]('\x20'),_0x219f56=Number['parseInt'](_0x45e45e[0x0]),_0x5deeb7=Number[_0x1a85fe(0x77)](_0x45e45e[0x1]),_0x826f8c=Number[_0x1a85fe(0x77)](_0x45e45e[0x2]),_0x1c4bd0=Number[_0x1a85fe(0x77)](_0x45e45e[0x3]);_0x5a10ab=[_0x219f56,_0x5deeb7,_0x826f8c,_0x1c4bd0],_0x3a7be1=exports['cmykToRgb']([_0x219f56,_0x5deeb7,_0x826f8c,_0x1c4bd0]),_0x3c9e0a=exports['rgbToInt'](_0x3a7be1),_0x47e3e7=exports[_0x1a85fe(0x69)](_0x3c9e0a);}else{if(regex_1[_0x1a85fe(0x82)][_0x1a85fe(0x81)](_0x200d1c)){const _0xa548ba=_0x200d1c['split']('\x20'),_0x2efb4b=Number[_0x1a85fe(0x77)](_0xa548ba[0x0]),_0x183290=Number[_0x1a85fe(0x77)](_0xa548ba[0x1]),_0x4a71d1=Number[_0x1a85fe(0x77)](_0xa548ba[0x2]);_0x3a7be1=[_0x2efb4b,_0x183290,_0x4a71d1],_0x5a10ab=exports[_0x1a85fe(0x7b)](_0x3a7be1),_0x3c9e0a=exports['rgbToInt'](_0x3a7be1),_0x47e3e7=exports[_0x1a85fe(0x69)](_0x3c9e0a);}else{if(regex_1['REGEX_HEX']['test'](_0x200d1c)){let _0x48b897=_0x200d1c[_0x1a85fe(0x70)]('#')?_0x200d1c[_0x1a85fe(0x7e)]('#')[0x1]:_0x200d1c;_0x48b897[_0x1a85fe(0x6c)]===0x3&&(_0x48b897=_0x48b897['split']('')[_0x1a85fe(0x7f)](_0x41105b=>_0x41105b+_0x41105b)[_0x1a85fe(0x7a)]('')),_0x3c9e0a=exports[_0x1a85fe(0x71)](_0x48b897),_0x3a7be1=exports[_0x1a85fe(0x75)](_0x3c9e0a),_0x5a10ab=exports['rgbToCmyk'](_0x3a7be1),_0x47e3e7=_0x48b897;}else return null;}}return{'cmyk':_0x5a10ab,'rgb':_0x3a7be1,'hex':_0x47e3e7,'integer':_0x3c9e0a};};exports[a235_0x133433(0x80)]=parse; \ No newline at end of file diff --git a/utils/confirmation.js b/utils/confirmation.js index 2449efcee..c4c56ee28 100644 --- a/utils/confirmation.js +++ b/utils/confirmation.js @@ -1 +1 @@ -const a235_0x42d7=['defineProperty','awaitReactions','emoji','name','channel','IRIS','__esModule','catch','apply','default','send','react','SOMEWHAT_DARK','edit','author','size','Constants','test','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','COLORS','first'];(function(_0x22c121,_0x259e83){const _0x42d765=function(_0x1ef5c8){while(--_0x1ef5c8){_0x22c121['push'](_0x22c121['shift']());}},_0x1e2746=function(){const _0x302cad={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4793e7,_0x40b549,_0x2fa8c9,_0x36c528){_0x36c528=_0x36c528||{};let _0x2f67b9=_0x40b549+'='+_0x2fa8c9,_0x36d937=0x0;for(let _0x32f0c5=0x0,_0x2aa9e6=_0x4793e7['length'];_0x32f0c5<_0x2aa9e6;_0x32f0c5++){const _0x56b837=_0x4793e7[_0x32f0c5];_0x2f67b9+=';\x20'+_0x56b837;const _0xdb09ba=_0x4793e7[_0x56b837];_0x4793e7['push'](_0xdb09ba),_0x2aa9e6=_0x4793e7['length'],_0xdb09ba!==!![]&&(_0x2f67b9+='='+_0xdb09ba);}_0x36c528['cookie']=_0x2f67b9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1443ee,_0x225fad){_0x1443ee=_0x1443ee||function(_0x53c3d6){return _0x53c3d6;};const _0x1e88a8=_0x1443ee(new RegExp('(?:^|;\x20)'+_0x225fad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x121b59=function(_0xe22e8,_0x10c0a8){_0xe22e8(++_0x10c0a8);};return _0x121b59(_0x42d765,_0x259e83),_0x1e88a8?decodeURIComponent(_0x1e88a8[0x1]):undefined;}},_0x270f1a=function(){const _0x54988f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54988f['test'](_0x302cad['removeCookie']['toString']());};_0x302cad['updateCookie']=_0x270f1a;let _0x42f3bc='';const _0x4200c0=_0x302cad['updateCookie']();if(!_0x4200c0)_0x302cad['setCookie'](['*'],'counter',0x1);else _0x4200c0?_0x42f3bc=_0x302cad['getCookie'](null,'counter'):_0x302cad['removeCookie']();};_0x1e2746();}(a235_0x42d7,0x66));const a235_0x1e27=function(_0x22c121,_0x259e83){_0x22c121=_0x22c121-0xc8;let _0x42d765=a235_0x42d7[_0x22c121];return _0x42d765;};const _0x53e12e=a235_0x1e27,a235_0x270f1a=function(){let _0x4200c0=!![];return function(_0x4793e7,_0x40b549){const _0x2fa8c9=_0x4200c0?function(){const _0x517131=a235_0x1e27;if(_0x40b549){const _0x36c528=_0x40b549[_0x517131(0xd8)](_0x4793e7,arguments);return _0x40b549=null,_0x36c528;}}:function(){};return _0x4200c0=![],_0x2fa8c9;};}(),a235_0x302cad=a235_0x270f1a(this,function(){const _0x2f67b9=function(){const _0x26d8af=a235_0x1e27,_0x36d937=_0x2f67b9[_0x26d8af(0xcc)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x26d8af(0xcc)](_0x26d8af(0xcd));return!_0x36d937[_0x26d8af(0xcb)](a235_0x302cad);};return _0x2f67b9();});a235_0x302cad();'use strict';Object[_0x53e12e(0xd0)](exports,_0x53e12e(0xd6),{'value':!![]});const tesseract_1=require('@bastion/tesseract');exports[_0x53e12e(0xd9)]=async(_0x32f0c5,_0x2aa9e6)=>{const _0xbe8a86=_0x53e12e,_0x56b837=await _0x32f0c5[_0xbe8a86(0xd4)][_0xbe8a86(0xda)]({'embed':{'color':tesseract_1[_0xbe8a86(0xca)][_0xbe8a86(0xce)][_0xbe8a86(0xd5)],'description':_0x2aa9e6}});await _0x56b837[_0xbe8a86(0xdb)]('☑️'),await _0x56b837[_0xbe8a86(0xdb)]('🚫');const _0xdb09ba=await _0x56b837[_0xbe8a86(0xd1)]((_0x225fad,_0x1e88a8)=>_0x1e88a8['id']===_0x32f0c5[_0xbe8a86(0xc8)]['id']&&(_0x225fad[_0xbe8a86(0xd2)][_0xbe8a86(0xd3)]==='☑️'||_0x225fad['emoji'][_0xbe8a86(0xd3)]==='🚫'),{'max':0x1,'time':0xea60});let _0x1443ee;if(_0xdb09ba[_0xbe8a86(0xc9)]&&_0xdb09ba[_0xbe8a86(0xcf)]()[_0xbe8a86(0xd2)]['name']==='☑️')_0x1443ee=!![];if(_0xdb09ba['size']&&_0xdb09ba[_0xbe8a86(0xcf)]()[_0xbe8a86(0xd2)][_0xbe8a86(0xd3)]==='🚫')_0x1443ee=![];return await _0x56b837[_0xbe8a86(0xdd)]({'embed':{'color':tesseract_1[_0xbe8a86(0xca)][_0xbe8a86(0xce)][_0xbe8a86(0xdc)],'description':_0x2aa9e6}})[_0xbe8a86(0xd7)](()=>{}),_0x1443ee;}; \ No newline at end of file +const a236_0x3844=['react','test','awaitReactions','name','first','COLORS','author','channel','Constants','defineProperty','apply','constructor','size','@bastion/tesseract','edit','emoji','catch','send','default','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x2388d0,_0x222ce6){const _0x384423=function(_0x283991){while(--_0x283991){_0x2388d0['push'](_0x2388d0['shift']());}},_0x2942cb=function(){const _0x13434b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x296def,_0x549685,_0xefa86c,_0x4a39d0){_0x4a39d0=_0x4a39d0||{};let _0x1ef420=_0x549685+'='+_0xefa86c,_0x66052b=0x0;for(let _0x2e0211=0x0,_0x16abca=_0x296def['length'];_0x2e0211<_0x16abca;_0x2e0211++){const _0xe840a7=_0x296def[_0x2e0211];_0x1ef420+=';\x20'+_0xe840a7;const _0x14ab18=_0x296def[_0xe840a7];_0x296def['push'](_0x14ab18),_0x16abca=_0x296def['length'],_0x14ab18!==!![]&&(_0x1ef420+='='+_0x14ab18);}_0x4a39d0['cookie']=_0x1ef420;},'removeCookie':function(){return'dev';},'getCookie':function(_0x300c46,_0x36506d){_0x300c46=_0x300c46||function(_0x58491c){return _0x58491c;};const _0x5acc22=_0x300c46(new RegExp('(?:^|;\x20)'+_0x36506d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x16976f=function(_0x310cb3,_0x4f0a63){_0x310cb3(++_0x4f0a63);};return _0x16976f(_0x384423,_0x222ce6),_0x5acc22?decodeURIComponent(_0x5acc22[0x1]):undefined;}},_0x11ea10=function(){const _0x1baff2=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1baff2['test'](_0x13434b['removeCookie']['toString']());};_0x13434b['updateCookie']=_0x11ea10;let _0x388162='';const _0x3efd53=_0x13434b['updateCookie']();if(!_0x3efd53)_0x13434b['setCookie'](['*'],'counter',0x1);else _0x3efd53?_0x388162=_0x13434b['getCookie'](null,'counter'):_0x13434b['removeCookie']();};_0x2942cb();}(a236_0x3844,0x14f));const a236_0x2942=function(_0x2388d0,_0x222ce6){_0x2388d0=_0x2388d0-0x11c;let _0x384423=a236_0x3844[_0x2388d0];return _0x384423;};const a236_0x25b62d=a236_0x2942,a236_0x11ea10=function(){let _0x3efd53=!![];return function(_0x296def,_0x549685){const _0xefa86c=_0x3efd53?function(){const _0x42d9c8=a236_0x2942;if(_0x549685){const _0x4a39d0=_0x549685[_0x42d9c8(0x12b)](_0x296def,arguments);return _0x549685=null,_0x4a39d0;}}:function(){};return _0x3efd53=![],_0xefa86c;};}(),a236_0x13434b=a236_0x11ea10(this,function(){const _0x1ef420=function(){const _0x43f801=a236_0x2942,_0x66052b=_0x1ef420[_0x43f801(0x12c)](_0x43f801(0x120))()[_0x43f801(0x12c)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x66052b[_0x43f801(0x122)](a236_0x13434b);};return _0x1ef420();});a236_0x13434b();'use strict';Object[a236_0x25b62d(0x12a)](exports,'__esModule',{'value':!![]});const tesseract_1=require(a236_0x25b62d(0x12e));exports[a236_0x25b62d(0x11f)]=async(_0x2e0211,_0x16abca)=>{const _0x1bc08d=a236_0x25b62d,_0xe840a7=await _0x2e0211[_0x1bc08d(0x128)][_0x1bc08d(0x11e)]({'embed':{'color':tesseract_1[_0x1bc08d(0x129)][_0x1bc08d(0x126)]['IRIS'],'description':_0x16abca}});await _0xe840a7[_0x1bc08d(0x121)]('☑️'),await _0xe840a7['react']('🚫');const _0x14ab18=await _0xe840a7[_0x1bc08d(0x123)]((_0x36506d,_0x5acc22)=>_0x5acc22['id']===_0x2e0211[_0x1bc08d(0x127)]['id']&&(_0x36506d[_0x1bc08d(0x11c)][_0x1bc08d(0x124)]==='☑️'||_0x36506d[_0x1bc08d(0x11c)][_0x1bc08d(0x124)]==='🚫'),{'max':0x1,'time':0xea60});let _0x300c46;if(_0x14ab18[_0x1bc08d(0x12d)]&&_0x14ab18[_0x1bc08d(0x125)]()[_0x1bc08d(0x11c)][_0x1bc08d(0x124)]==='☑️')_0x300c46=!![];if(_0x14ab18[_0x1bc08d(0x12d)]&&_0x14ab18[_0x1bc08d(0x125)]()[_0x1bc08d(0x11c)][_0x1bc08d(0x124)]==='🚫')_0x300c46=![];return await _0xe840a7[_0x1bc08d(0x12f)]({'embed':{'color':tesseract_1[_0x1bc08d(0x129)]['COLORS']['SOMEWHAT_DARK'],'description':_0x16abca}})[_0x1bc08d(0x11d)](()=>{}),_0x300c46;}; \ No newline at end of file diff --git a/utils/constants.js b/utils/constants.js index 2bfb44626..8d0208963 100644 --- a/utils/constants.js +++ b/utils/constants.js @@ -1 +1 @@ -const a236_0x3cf7=['BADGES','defineProperty','constructor','267035345537728512','LIMITS','__esModule','isPublicBastion','COLORS'];(function(_0x1a2de0,_0x5c7d54){const _0x3cf773=function(_0x9db6d0){while(--_0x9db6d0){_0x1a2de0['push'](_0x1a2de0['shift']());}},_0x26d218=function(){const _0x5ca600={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x341def,_0x3e18bf,_0x5534ba,_0x3c4d12){_0x3c4d12=_0x3c4d12||{};let _0x15f10a=_0x3e18bf+'='+_0x5534ba,_0x2a18a4=0x0;for(let _0x145360=0x0,_0x48e99c=_0x341def['length'];_0x145360<_0x48e99c;_0x145360++){const _0xc832c4=_0x341def[_0x145360];_0x15f10a+=';\x20'+_0xc832c4;const _0x41bd03=_0x341def[_0xc832c4];_0x341def['push'](_0x41bd03),_0x48e99c=_0x341def['length'],_0x41bd03!==!![]&&(_0x15f10a+='='+_0x41bd03);}_0x3c4d12['cookie']=_0x15f10a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4aa632,_0x45de95){_0x4aa632=_0x4aa632||function(_0x48eabc){return _0x48eabc;};const _0x38005c=_0x4aa632(new RegExp('(?:^|;\x20)'+_0x45de95['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x492957=function(_0xb089bc,_0x5194a1){_0xb089bc(++_0x5194a1);};return _0x492957(_0x3cf773,_0x5c7d54),_0x38005c?decodeURIComponent(_0x38005c[0x1]):undefined;}},_0x486eb5=function(){const _0x5a6b70=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5a6b70['test'](_0x5ca600['removeCookie']['toString']());};_0x5ca600['updateCookie']=_0x486eb5;let _0x4348b5='';const _0x543e39=_0x5ca600['updateCookie']();if(!_0x543e39)_0x5ca600['setCookie'](['*'],'counter',0x1);else _0x543e39?_0x4348b5=_0x5ca600['getCookie'](null,'counter'):_0x5ca600['removeCookie']();};_0x26d218();}(a236_0x3cf7,0x143));const a236_0x26d2=function(_0x1a2de0,_0x5c7d54){_0x1a2de0=_0x1a2de0-0xbd;let _0x3cf773=a236_0x3cf7[_0x1a2de0];return _0x3cf773;};const _0x3c0979=a236_0x26d2,a236_0x486eb5=function(){let _0x543e39=!![];return function(_0x341def,_0x3e18bf){const _0x5534ba=_0x543e39?function(){if(_0x3e18bf){const _0x3c4d12=_0x3e18bf['apply'](_0x341def,arguments);return _0x3e18bf=null,_0x3c4d12;}}:function(){};return _0x543e39=![],_0x5534ba;};}(),a236_0x5ca600=a236_0x486eb5(this,function(){const _0x15f10a=function(){const _0x4fcae6=a236_0x26d2,_0x2a18a4=_0x15f10a[_0x4fcae6(0xc4)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x4fcae6(0xc4)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2a18a4['test'](a236_0x5ca600);};return _0x15f10a();});a236_0x5ca600();'use strict';Object[_0x3c0979(0xc3)](exports,_0x3c0979(0xbf),{'value':!![]}),exports[_0x3c0979(0xc0)]=exports[_0x3c0979(0xbe)]=exports[_0x3c0979(0xc1)]=exports[_0x3c0979(0xc2)]=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[_0x3c0979(0xc2)]=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,'INVITE_REWARDS':0x1,'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,'INVITE_REWARDS':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,'INVITE_REWARDS':0x14}};exports[_0x3c0979(0xbe)]=LIMITS;const isPublicBastion=_0x145360=>{const _0x58828d=_0x3c0979;return _0x145360['id']===_0x58828d(0xbd);};exports[_0x3c0979(0xc0)]=isPublicBastion; \ No newline at end of file +const a237_0x317e=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','__esModule','defineProperty','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','isPublicBastion','BADGES','267035345537728512','test','LIMITS','COLORS','apply'];(function(_0x3c114f,_0x143a06){const _0x317e80=function(_0x5d3c7a){while(--_0x5d3c7a){_0x3c114f['push'](_0x3c114f['shift']());}},_0x4656dd=function(){const _0x1da45b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x272754,_0xbbc9dd,_0x4a39c0,_0x2ab9ba){_0x2ab9ba=_0x2ab9ba||{};let _0x5cc1e3=_0xbbc9dd+'='+_0x4a39c0,_0x899673=0x0;for(let _0x272c44=0x0,_0x383739=_0x272754['length'];_0x272c44<_0x383739;_0x272c44++){const _0x37e4f4=_0x272754[_0x272c44];_0x5cc1e3+=';\x20'+_0x37e4f4;const _0xa20656=_0x272754[_0x37e4f4];_0x272754['push'](_0xa20656),_0x383739=_0x272754['length'],_0xa20656!==!![]&&(_0x5cc1e3+='='+_0xa20656);}_0x2ab9ba['cookie']=_0x5cc1e3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x35a3a4,_0x2ec3f1){_0x35a3a4=_0x35a3a4||function(_0x47bd1e){return _0x47bd1e;};const _0xbad2=_0x35a3a4(new RegExp('(?:^|;\x20)'+_0x2ec3f1['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x59af98=function(_0x443191,_0x28f586){_0x443191(++_0x28f586);};return _0x59af98(_0x317e80,_0x143a06),_0xbad2?decodeURIComponent(_0xbad2[0x1]):undefined;}},_0x2a26af=function(){const _0x45e9d9=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x45e9d9['test'](_0x1da45b['removeCookie']['toString']());};_0x1da45b['updateCookie']=_0x2a26af;let _0x45862f='';const _0x4945e9=_0x1da45b['updateCookie']();if(!_0x4945e9)_0x1da45b['setCookie'](['*'],'counter',0x1);else _0x4945e9?_0x45862f=_0x1da45b['getCookie'](null,'counter'):_0x1da45b['removeCookie']();};_0x4656dd();}(a237_0x317e,0x1a5));const a237_0x4656=function(_0x3c114f,_0x143a06){_0x3c114f=_0x3c114f-0x188;let _0x317e80=a237_0x317e[_0x3c114f];return _0x317e80;};const a237_0x4ea189=a237_0x4656,a237_0x2a26af=function(){let _0x4945e9=!![];return function(_0x272754,_0xbbc9dd){const _0x4a39c0=_0x4945e9?function(){const _0x547012=a237_0x4656;if(_0xbbc9dd){const _0x2ab9ba=_0xbbc9dd[_0x547012(0x192)](_0x272754,arguments);return _0xbbc9dd=null,_0x2ab9ba;}}:function(){};return _0x4945e9=![],_0x4a39c0;};}(),a237_0x1da45b=a237_0x2a26af(this,function(){const _0x5cc1e3=function(){const _0x530100=a237_0x4656,_0x899673=_0x5cc1e3[_0x530100(0x18b)](_0x530100(0x193))()['constructor'](_0x530100(0x18a));return!_0x899673[_0x530100(0x18f)](a237_0x1da45b);};return _0x5cc1e3();});a237_0x1da45b();'use strict';Object[a237_0x4ea189(0x189)](exports,a237_0x4ea189(0x188),{'value':!![]}),exports[a237_0x4ea189(0x18c)]=exports[a237_0x4ea189(0x190)]=exports[a237_0x4ea189(0x191)]=exports[a237_0x4ea189(0x18d)]=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[a237_0x4ea189(0x18d)]=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,'INVITE_REWARDS':0x1,'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,'INVITE_REWARDS':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,'INVITE_REWARDS':0x14}};exports[a237_0x4ea189(0x190)]=LIMITS;const isPublicBastion=_0x272c44=>{const _0x37e0f5=a237_0x4ea189;return _0x272c44['id']===_0x37e0f5(0x18e);};exports[a237_0x4ea189(0x18c)]=isPublicBastion; \ No newline at end of file diff --git a/utils/durations.js b/utils/durations.js index 8a2ea10ba..bd7c56a5a 100644 --- a/utils/durations.js +++ b/utils/durations.js @@ -1 +1 @@ -const a237_0xe9cd=['constructor','floor','call','abs','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','prototype','apply','between','return\x20/\x22\x20+\x20this\x20+\x20\x22/','defineProperty','test','humanize','hasOwnProperty','push'];(function(_0x55e903,_0x1d1f66){const _0xe9cd5b=function(_0x3d2c1f){while(--_0x3d2c1f){_0x55e903['push'](_0x55e903['shift']());}},_0x24e33a=function(){const _0x59b86d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x10ac92,_0x20b1fe,_0x299b1e,_0x11fa2e){_0x11fa2e=_0x11fa2e||{};let _0x16c96b=_0x20b1fe+'='+_0x299b1e,_0x540383=0x0;for(let _0x6823a9=0x0,_0x180815=_0x10ac92['length'];_0x6823a9<_0x180815;_0x6823a9++){const _0x586b2b=_0x10ac92[_0x6823a9];_0x16c96b+=';\x20'+_0x586b2b;const _0x17645d=_0x10ac92[_0x586b2b];_0x10ac92['push'](_0x17645d),_0x180815=_0x10ac92['length'],_0x17645d!==!![]&&(_0x16c96b+='='+_0x17645d);}_0x11fa2e['cookie']=_0x16c96b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x49c1ff,_0x308089){_0x49c1ff=_0x49c1ff||function(_0x356eb6){return _0x356eb6;};const _0x4265a6=_0x49c1ff(new RegExp('(?:^|;\x20)'+_0x308089['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x308d89=function(_0x5a8860,_0x75dddb){_0x5a8860(++_0x75dddb);};return _0x308d89(_0xe9cd5b,_0x1d1f66),_0x4265a6?decodeURIComponent(_0x4265a6[0x1]):undefined;}},_0x4b2346=function(){const _0x108554=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x108554['test'](_0x59b86d['removeCookie']['toString']());};_0x59b86d['updateCookie']=_0x4b2346;let _0x34ea49='';const _0x126650=_0x59b86d['updateCookie']();if(!_0x126650)_0x59b86d['setCookie'](['*'],'counter',0x1);else _0x126650?_0x34ea49=_0x59b86d['getCookie'](null,'counter'):_0x59b86d['removeCookie']();};_0x24e33a();}(a237_0xe9cd,0x79));const a237_0x24e3=function(_0x55e903,_0x1d1f66){_0x55e903=_0x55e903-0x80;let _0xe9cd5b=a237_0xe9cd[_0x55e903];return _0xe9cd5b;};const _0x45feb6=a237_0x24e3,a237_0x4b2346=function(){let _0x126650=!![];return function(_0x10ac92,_0x20b1fe){const _0x299b1e=_0x126650?function(){const _0x430c76=a237_0x24e3;if(_0x20b1fe){const _0x11fa2e=_0x20b1fe[_0x430c76(0x8b)](_0x10ac92,arguments);return _0x20b1fe=null,_0x11fa2e;}}:function(){};return _0x126650=![],_0x299b1e;};}(),a237_0x59b86d=a237_0x4b2346(this,function(){const _0x16c96b=function(){const _0x25485c=a237_0x24e3,_0x540383=_0x16c96b[_0x25485c(0x85)](_0x25485c(0x8d))()[_0x25485c(0x85)](_0x25485c(0x89));return!_0x540383[_0x25485c(0x81)](a237_0x59b86d);};return _0x16c96b();});a237_0x59b86d();'use strict';Object[_0x45feb6(0x80)](exports,'__esModule',{'value':!![]}),exports[_0x45feb6(0x82)]=exports[_0x45feb6(0x8c)]=void 0x0;const between=(_0x6823a9,_0x180815)=>{const _0x200552=_0x45feb6;let _0x586b2b=_0x180815?Math[_0x200552(0x88)](_0x180815-_0x6823a9):_0x6823a9;_0x586b2b/=0x3e8;if(_0x586b2b<0x1)return{'ms':_0x586b2b*0x3e8};const _0x17645d={},_0x49c1ff={'years':0x1eeef84,'months':0x278d00,'days':0x15180,'hours':0xe10,'minutes':0x3c,'seconds':0x1};for(const _0x308089 in _0x49c1ff){if(Object[_0x200552(0x8a)]['hasOwnProperty'][_0x200552(0x87)](_0x49c1ff,_0x308089)){const _0x4265a6=Math[_0x200552(0x86)](_0x586b2b/_0x49c1ff[_0x308089]);_0x586b2b-=_0x4265a6*_0x49c1ff[_0x308089];if(_0x4265a6)_0x17645d[_0x308089]=_0x4265a6;}}return _0x17645d;};exports['between']=between;const humanize=_0x308d89=>{const _0x3bb6e6=_0x45feb6,_0x356eb6=[];for(const _0x5a8860 in _0x308d89){Object[_0x3bb6e6(0x8a)][_0x3bb6e6(0x83)][_0x3bb6e6(0x87)](_0x308d89,_0x5a8860)&&_0x356eb6[_0x3bb6e6(0x84)](_0x308d89[_0x5a8860]+'\x20'+_0x5a8860);}return _0x356eb6['join']('\x20');};exports[_0x45feb6(0x82)]=humanize; \ No newline at end of file +const a238_0x8dfb=['call','hasOwnProperty','abs','push','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','between','test','floor','humanize','prototype','constructor','__esModule'];(function(_0x21db25,_0x33bec){const _0x8dfbd5=function(_0x11a2dd){while(--_0x11a2dd){_0x21db25['push'](_0x21db25['shift']());}},_0x254a6d=function(){const _0x1f00b7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1212db,_0x11ab1d,_0x35870e,_0x3a22be){_0x3a22be=_0x3a22be||{};let _0x38ecbe=_0x11ab1d+'='+_0x35870e,_0x26ae7d=0x0;for(let _0x48ea56=0x0,_0x44d4ff=_0x1212db['length'];_0x48ea56<_0x44d4ff;_0x48ea56++){const _0x3dc2c0=_0x1212db[_0x48ea56];_0x38ecbe+=';\x20'+_0x3dc2c0;const _0x4aafed=_0x1212db[_0x3dc2c0];_0x1212db['push'](_0x4aafed),_0x44d4ff=_0x1212db['length'],_0x4aafed!==!![]&&(_0x38ecbe+='='+_0x4aafed);}_0x3a22be['cookie']=_0x38ecbe;},'removeCookie':function(){return'dev';},'getCookie':function(_0x11ece5,_0x12e8a0){_0x11ece5=_0x11ece5||function(_0x251649){return _0x251649;};const _0x261603=_0x11ece5(new RegExp('(?:^|;\x20)'+_0x12e8a0['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35301f=function(_0x174c7f,_0x5d33e7){_0x174c7f(++_0x5d33e7);};return _0x35301f(_0x8dfbd5,_0x33bec),_0x261603?decodeURIComponent(_0x261603[0x1]):undefined;}},_0x21cffe=function(){const _0x4ad83f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ad83f['test'](_0x1f00b7['removeCookie']['toString']());};_0x1f00b7['updateCookie']=_0x21cffe;let _0x5badc7='';const _0x3f26be=_0x1f00b7['updateCookie']();if(!_0x3f26be)_0x1f00b7['setCookie'](['*'],'counter',0x1);else _0x3f26be?_0x5badc7=_0x1f00b7['getCookie'](null,'counter'):_0x1f00b7['removeCookie']();};_0x254a6d();}(a238_0x8dfb,0x79));const a238_0x254a=function(_0x21db25,_0x33bec){_0x21db25=_0x21db25-0x65;let _0x8dfbd5=a238_0x8dfb[_0x21db25];return _0x8dfbd5;};const a238_0x6989c=a238_0x254a,a238_0x21cffe=function(){let _0x3f26be=!![];return function(_0x1212db,_0x11ab1d){const _0x35870e=_0x3f26be?function(){const _0x3a23b7=a238_0x254a;if(_0x11ab1d){const _0x3a22be=_0x11ab1d[_0x3a23b7(0x65)](_0x1212db,arguments);return _0x11ab1d=null,_0x3a22be;}}:function(){};return _0x3f26be=![],_0x35870e;};}(),a238_0x1f00b7=a238_0x21cffe(this,function(){const _0x38ecbe=function(){const _0x3a594d=a238_0x254a,_0x26ae7d=_0x38ecbe[_0x3a594d(0x6c)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x3a594d(0x66));return!_0x26ae7d[_0x3a594d(0x68)](a238_0x1f00b7);};return _0x38ecbe();});a238_0x1f00b7();'use strict';Object['defineProperty'](exports,a238_0x6989c(0x6d),{'value':!![]}),exports[a238_0x6989c(0x6a)]=exports[a238_0x6989c(0x67)]=void 0x0;const between=(_0x48ea56,_0x44d4ff)=>{const _0xc4163e=a238_0x6989c;let _0x3dc2c0=_0x44d4ff?Math[_0xc4163e(0x70)](_0x44d4ff-_0x48ea56):_0x48ea56;_0x3dc2c0/=0x3e8;if(_0x3dc2c0<0x1)return{'ms':_0x3dc2c0*0x3e8};const _0x4aafed={},_0x11ece5={'years':0x1eeef84,'months':0x278d00,'days':0x15180,'hours':0xe10,'minutes':0x3c,'seconds':0x1};for(const _0x12e8a0 in _0x11ece5){if(Object['prototype'][_0xc4163e(0x6f)][_0xc4163e(0x6e)](_0x11ece5,_0x12e8a0)){const _0x261603=Math[_0xc4163e(0x69)](_0x3dc2c0/_0x11ece5[_0x12e8a0]);_0x3dc2c0-=_0x261603*_0x11ece5[_0x12e8a0];if(_0x261603)_0x4aafed[_0x12e8a0]=_0x261603;}}return _0x4aafed;};exports['between']=between;const humanize=_0x35301f=>{const _0x5d2096=a238_0x6989c,_0x251649=[];for(const _0x174c7f in _0x35301f){Object[_0x5d2096(0x6b)][_0x5d2096(0x6f)]['call'](_0x35301f,_0x174c7f)&&_0x251649[_0x5d2096(0x71)](_0x35301f[_0x174c7f]+'\x20'+_0x174c7f);}return _0x251649['join']('\x20');};exports[a238_0x6989c(0x6a)]=humanize; \ No newline at end of file diff --git a/utils/embeds.js b/utils/embeds.js index 5352df0d5..7fbc257e5 100644 --- a/utils/embeds.js +++ b/utils/embeds.js @@ -1 +1 @@ -const a238_0x1552=['timestamp','apply','iconURL','url','generateBastionEmbed','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','fields','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','value','constructor','isValidEmbed','color','text','IRIS','COLORS','Constants','number','test','parse','isValidBastionEmbed','boolean','author','name','description','image','title','string','footer','thumbnail','inline'];(function(_0x21ecf8,_0x98ca04){const _0x1552ca=function(_0x47e46e){while(--_0x47e46e){_0x21ecf8['push'](_0x21ecf8['shift']());}},_0x23a871=function(){const _0x231cff={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x23876a,_0x47fe9d,_0x39636d,_0x41557c){_0x41557c=_0x41557c||{};let _0x479e76=_0x47fe9d+'='+_0x39636d,_0x273e9e=0x0;for(let _0x11fdca=0x0,_0xc88691=_0x23876a['length'];_0x11fdca<_0xc88691;_0x11fdca++){const _0xb761e8=_0x23876a[_0x11fdca];_0x479e76+=';\x20'+_0xb761e8;const _0x5cefb3=_0x23876a[_0xb761e8];_0x23876a['push'](_0x5cefb3),_0xc88691=_0x23876a['length'],_0x5cefb3!==!![]&&(_0x479e76+='='+_0x5cefb3);}_0x41557c['cookie']=_0x479e76;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a62b8,_0x2e0abf){_0x2a62b8=_0x2a62b8||function(_0x5819e6){return _0x5819e6;};const _0x4c3f8e=_0x2a62b8(new RegExp('(?:^|;\x20)'+_0x2e0abf['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0xe6ec2e=function(_0x410bb6,_0x5ef14a){_0x410bb6(++_0x5ef14a);};return _0xe6ec2e(_0x1552ca,_0x98ca04),_0x4c3f8e?decodeURIComponent(_0x4c3f8e[0x1]):undefined;}},_0x45a0fb=function(){const _0x35879e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x35879e['test'](_0x231cff['removeCookie']['toString']());};_0x231cff['updateCookie']=_0x45a0fb;let _0x4214a9='';const _0x2f5cb7=_0x231cff['updateCookie']();if(!_0x2f5cb7)_0x231cff['setCookie'](['*'],'counter',0x1);else _0x2f5cb7?_0x4214a9=_0x231cff['getCookie'](null,'counter'):_0x231cff['removeCookie']();};_0x23a871();}(a238_0x1552,0xb3));const a238_0x23a8=function(_0x21ecf8,_0x98ca04){_0x21ecf8=_0x21ecf8-0x91;let _0x1552ca=a238_0x1552[_0x21ecf8];return _0x1552ca;};const _0x265ecf=a238_0x23a8,a238_0x45a0fb=function(){let _0x2f5cb7=!![];return function(_0x23876a,_0x47fe9d){const _0x39636d=_0x2f5cb7?function(){const _0x5ac971=a238_0x23a8;if(_0x47fe9d){const _0x41557c=_0x47fe9d[_0x5ac971(0x99)](_0x23876a,arguments);return _0x47fe9d=null,_0x41557c;}}:function(){};return _0x2f5cb7=![],_0x39636d;};}(),a238_0x231cff=a238_0x45a0fb(this,function(){const _0x479e76=function(){const _0x30b09b=a238_0x23a8,_0x273e9e=_0x479e76['constructor'](_0x30b09b(0x9e))()[_0x30b09b(0xa2)](_0x30b09b(0xa0));return!_0x273e9e[_0x30b09b(0xaa)](a238_0x231cff);};return _0x479e76();});a238_0x231cff();'use strict';Object['defineProperty'](exports,_0x265ecf(0x9d),{'value':!![]}),exports['isValidEmbed']=exports['isValidBastionEmbed']=exports[_0x265ecf(0x9c)]=exports['generateEmbed']=void 0x0;const tesseract_1=require('@bastion/tesseract'),generateEmbed=_0x11fdca=>{const _0x545f04=_0x265ecf;if(typeof _0x11fdca===_0x545f04(0x94))return{'color':tesseract_1[_0x545f04(0xa8)][_0x545f04(0xa7)][_0x545f04(0xa6)],'description':_0x11fdca};return{'author':_0x11fdca[_0x545f04(0xae)],'color':_0x11fdca[_0x545f04(0xa4)]||tesseract_1[_0x545f04(0xa8)]['COLORS'][_0x545f04(0xa6)],'description':_0x11fdca['description'],'fields':_0x11fdca['fields'],'footer':_0x11fdca['footer'],'image':{'url':_0x11fdca[_0x545f04(0x92)]},'thumbnail':{'url':_0x11fdca[_0x545f04(0x96)]},'timestamp':_0x11fdca['timestamp'],'title':_0x11fdca[_0x545f04(0x93)],'url':_0x11fdca[_0x545f04(0x9b)]};};exports['generateEmbed']=generateEmbed;const generateBastionEmbed=_0xc88691=>{const _0x408603=_0x265ecf;if(typeof _0xc88691===_0x408603(0x94))try{_0xc88691=JSON[_0x408603(0xab)](_0xc88691);}catch{}if(typeof _0xc88691===_0x408603(0x94))return{'color':tesseract_1[_0x408603(0xa8)][_0x408603(0xa7)][_0x408603(0xa6)],'description':_0xc88691};return{'author':_0xc88691['author'],'color':_0xc88691[_0x408603(0xa4)]||tesseract_1['Constants'][_0x408603(0xa7)][_0x408603(0xa6)],'description':_0xc88691[_0x408603(0x91)],'fields':_0xc88691['fields'],'footer':_0xc88691[_0x408603(0x95)],'image':_0xc88691['image']?typeof _0xc88691[_0x408603(0x92)]===_0x408603(0x94)?_0xc88691[_0x408603(0x92)]:_0xc88691[_0x408603(0x92)][_0x408603(0x9b)]:undefined,'thumbnail':_0xc88691[_0x408603(0x96)]?typeof _0xc88691[_0x408603(0x96)]===_0x408603(0x94)?_0xc88691[_0x408603(0x96)]:_0xc88691[_0x408603(0x96)][_0x408603(0x9b)]:undefined,'timestamp':_0xc88691[_0x408603(0x98)],'title':_0xc88691[_0x408603(0x93)],'url':_0xc88691[_0x408603(0x9b)]};};exports[_0x265ecf(0x9c)]=generateBastionEmbed;const isValidBastionEmbed=_0xb761e8=>{const _0x3af792=_0x265ecf;if(_0xb761e8['constructor']!=={}[_0x3af792(0xa2)])return![];if(_0x3af792(0xae)in _0xb761e8){if(_0xb761e8[_0x3af792(0xae)][_0x3af792(0xaf)]&&typeof _0xb761e8['author']['name']!==_0x3af792(0x94))return![];if(_0xb761e8['author']['url']&&typeof _0xb761e8[_0x3af792(0xae)][_0x3af792(0x9b)]!=='string')return![];if(_0xb761e8[_0x3af792(0xae)][_0x3af792(0x9a)]&&typeof _0xb761e8[_0x3af792(0xae)][_0x3af792(0x9a)]!==_0x3af792(0x94))return![];}if(_0x3af792(0xa4)in _0xb761e8&&typeof _0xb761e8[_0x3af792(0xa4)]!==_0x3af792(0xa9)&&typeof _0xb761e8['color']!==_0x3af792(0x94)&&!(_0xb761e8[_0x3af792(0xa4)]instanceof Array))return![];if(_0x3af792(0x91)in _0xb761e8&&typeof _0xb761e8[_0x3af792(0x91)]!==_0x3af792(0x94))return![];if(_0x3af792(0x9f)in _0xb761e8){if(!(_0xb761e8[_0x3af792(0x9f)]instanceof Array))return;for(const _0x5cefb3 of _0xb761e8[_0x3af792(0x9f)]){if(_0x5cefb3[_0x3af792(0xa2)]!=={}[_0x3af792(0xa2)])return![];if(!('name'in _0x5cefb3))return![];if(!(_0x3af792(0xa1)in _0x5cefb3))return![];if(typeof _0x5cefb3[_0x3af792(0x97)]!==_0x3af792(0xad))return![];}}if('image'in _0xb761e8&&typeof _0xb761e8[_0x3af792(0x92)]!==_0x3af792(0x94))return![];if(_0x3af792(0x96)in _0xb761e8&&typeof _0xb761e8[_0x3af792(0x96)]!==_0x3af792(0x94))return![];if(_0x3af792(0x98)in _0xb761e8&&typeof _0xb761e8[_0x3af792(0x98)]!==_0x3af792(0xa9)&&!(_0xb761e8[_0x3af792(0x98)]instanceof Date))return![];if(_0x3af792(0x93)in _0xb761e8&&typeof _0xb761e8[_0x3af792(0x93)]!==_0x3af792(0x94))return![];if(_0x3af792(0x9b)in _0xb761e8&&typeof _0xb761e8[_0x3af792(0x9b)]!=='string')return![];return!![];};exports[_0x265ecf(0xac)]=isValidBastionEmbed;const isValidEmbed=_0x2a62b8=>{const _0x1f58b9=_0x265ecf;if(_0x2a62b8['constructor']!=={}[_0x1f58b9(0xa2)])return![];if('author'in _0x2a62b8){if(_0x2a62b8[_0x1f58b9(0xae)][_0x1f58b9(0xaf)]&&typeof _0x2a62b8[_0x1f58b9(0xae)][_0x1f58b9(0xaf)]!==_0x1f58b9(0x94))return![];if(_0x2a62b8[_0x1f58b9(0xae)][_0x1f58b9(0x9b)]&&typeof _0x2a62b8[_0x1f58b9(0xae)][_0x1f58b9(0x9b)]!==_0x1f58b9(0x94))return![];if(_0x2a62b8[_0x1f58b9(0xae)][_0x1f58b9(0x9a)]&&typeof _0x2a62b8[_0x1f58b9(0xae)][_0x1f58b9(0x9a)]!=='string')return![];}if(_0x1f58b9(0xa4)in _0x2a62b8&&typeof _0x2a62b8[_0x1f58b9(0xa4)]!=='number'&&typeof _0x2a62b8[_0x1f58b9(0xa4)]!==_0x1f58b9(0x94)&&!(_0x2a62b8[_0x1f58b9(0xa4)]instanceof Array))return![];if('description'in _0x2a62b8&&typeof _0x2a62b8[_0x1f58b9(0x91)]!==_0x1f58b9(0x94))return![];if('fields'in _0x2a62b8){if(!(_0x2a62b8[_0x1f58b9(0x9f)]instanceof Array))return;for(const _0x2e0abf of _0x2a62b8[_0x1f58b9(0x9f)]){if(_0x2e0abf[_0x1f58b9(0xa2)]!=={}[_0x1f58b9(0xa2)])return![];if(!(_0x1f58b9(0xaf)in _0x2e0abf))return![];if(!(_0x1f58b9(0xa1)in _0x2e0abf))return![];if(typeof _0x2e0abf['inline']!=='boolean')return![];}}if(_0x1f58b9(0x95)in _0x2a62b8){if(_0x2a62b8['footer'][_0x1f58b9(0x9a)]&&typeof _0x2a62b8[_0x1f58b9(0x95)][_0x1f58b9(0x9a)]!==_0x1f58b9(0x94))return![];if(_0x2a62b8[_0x1f58b9(0x95)]['text']&&typeof _0x2a62b8[_0x1f58b9(0x95)][_0x1f58b9(0xa5)]!==_0x1f58b9(0x94))return![];}if(_0x1f58b9(0x92)in _0x2a62b8&&_0x2a62b8['image'][_0x1f58b9(0x9b)]&&typeof _0x2a62b8[_0x1f58b9(0x92)][_0x1f58b9(0x9b)]!==_0x1f58b9(0x94))return![];if(_0x1f58b9(0x96)in _0x2a62b8&&_0x2a62b8[_0x1f58b9(0x96)][_0x1f58b9(0x9b)]&&typeof _0x2a62b8[_0x1f58b9(0x96)][_0x1f58b9(0x9b)]!==_0x1f58b9(0x94))return![];if('timestamp'in _0x2a62b8&&typeof _0x2a62b8[_0x1f58b9(0x98)]!==_0x1f58b9(0xa9)&&!(_0x2a62b8[_0x1f58b9(0x98)]instanceof Date))return![];if(_0x1f58b9(0x93)in _0x2a62b8&&typeof _0x2a62b8['title']!==_0x1f58b9(0x94))return![];if(_0x1f58b9(0x9b)in _0x2a62b8&&typeof _0x2a62b8['url']!=='string')return![];return!![];};exports[_0x265ecf(0xa3)]=isValidEmbed; \ No newline at end of file +const a239_0x5549=['description','constructor','name','value','image','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','iconURL','Constants','apply','isValidEmbed','title','generateEmbed','author','COLORS','color','number','string','@bastion/tesseract','isValidBastionEmbed','test','url','generateBastionEmbed','timestamp','fields','thumbnail','footer','defineProperty','IRIS','parse','inline','text','boolean'];(function(_0x39fd73,_0xa78d60){const _0x5549be=function(_0x347851){while(--_0x347851){_0x39fd73['push'](_0x39fd73['shift']());}},_0x2e0ac0=function(){const _0x2533f7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x99dc46,_0x4f8bb6,_0xa7acf,_0x47686c){_0x47686c=_0x47686c||{};let _0x47c96d=_0x4f8bb6+'='+_0xa7acf,_0x51a813=0x0;for(let _0x21aeb0=0x0,_0x1ebfb4=_0x99dc46['length'];_0x21aeb0<_0x1ebfb4;_0x21aeb0++){const _0x496835=_0x99dc46[_0x21aeb0];_0x47c96d+=';\x20'+_0x496835;const _0x52771a=_0x99dc46[_0x496835];_0x99dc46['push'](_0x52771a),_0x1ebfb4=_0x99dc46['length'],_0x52771a!==!![]&&(_0x47c96d+='='+_0x52771a);}_0x47686c['cookie']=_0x47c96d;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2e3aed,_0x311f69){_0x2e3aed=_0x2e3aed||function(_0x4b132a){return _0x4b132a;};const _0x3ef216=_0x2e3aed(new RegExp('(?:^|;\x20)'+_0x311f69['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x42a1fa=function(_0x4fcca8,_0x421ea5){_0x4fcca8(++_0x421ea5);};return _0x42a1fa(_0x5549be,_0xa78d60),_0x3ef216?decodeURIComponent(_0x3ef216[0x1]):undefined;}},_0x5b86f3=function(){const _0x52ec8e=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x52ec8e['test'](_0x2533f7['removeCookie']['toString']());};_0x2533f7['updateCookie']=_0x5b86f3;let _0x52e4f0='';const _0x7220b8=_0x2533f7['updateCookie']();if(!_0x7220b8)_0x2533f7['setCookie'](['*'],'counter',0x1);else _0x7220b8?_0x52e4f0=_0x2533f7['getCookie'](null,'counter'):_0x2533f7['removeCookie']();};_0x2e0ac0();}(a239_0x5549,0xb5));const a239_0x2e0a=function(_0x39fd73,_0xa78d60){_0x39fd73=_0x39fd73-0x15b;let _0x5549be=a239_0x5549[_0x39fd73];return _0x5549be;};const a239_0x50942b=a239_0x2e0a,a239_0x5b86f3=function(){let _0x7220b8=!![];return function(_0x99dc46,_0x4f8bb6){const _0xa7acf=_0x7220b8?function(){const _0x494ab0=a239_0x2e0a;if(_0x4f8bb6){const _0x47686c=_0x4f8bb6[_0x494ab0(0x16e)](_0x99dc46,arguments);return _0x4f8bb6=null,_0x47686c;}}:function(){};return _0x7220b8=![],_0xa7acf;};}(),a239_0x2533f7=a239_0x5b86f3(this,function(){const _0x47c96d=function(){const _0x53cbb9=a239_0x2e0a,_0x51a813=_0x47c96d['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x53cbb9(0x167)](_0x53cbb9(0x16b));return!_0x51a813[_0x53cbb9(0x179)](a239_0x2533f7);};return _0x47c96d();});a239_0x2533f7();'use strict';Object[a239_0x50942b(0x160)](exports,'__esModule',{'value':!![]}),exports[a239_0x50942b(0x16f)]=exports[a239_0x50942b(0x178)]=exports[a239_0x50942b(0x15b)]=exports[a239_0x50942b(0x171)]=void 0x0;const tesseract_1=require(a239_0x50942b(0x177)),generateEmbed=_0x21aeb0=>{const _0x453bcd=a239_0x50942b;if(typeof _0x21aeb0===_0x453bcd(0x176))return{'color':tesseract_1[_0x453bcd(0x16d)]['COLORS'][_0x453bcd(0x161)],'description':_0x21aeb0};return{'author':_0x21aeb0['author'],'color':_0x21aeb0[_0x453bcd(0x174)]||tesseract_1['Constants'][_0x453bcd(0x173)][_0x453bcd(0x161)],'description':_0x21aeb0['description'],'fields':_0x21aeb0['fields'],'footer':_0x21aeb0[_0x453bcd(0x15f)],'image':{'url':_0x21aeb0[_0x453bcd(0x16a)]},'thumbnail':{'url':_0x21aeb0[_0x453bcd(0x15e)]},'timestamp':_0x21aeb0[_0x453bcd(0x15c)],'title':_0x21aeb0[_0x453bcd(0x170)],'url':_0x21aeb0[_0x453bcd(0x17a)]};};exports['generateEmbed']=generateEmbed;const generateBastionEmbed=_0x1ebfb4=>{const _0x102109=a239_0x50942b;if(typeof _0x1ebfb4==='string')try{_0x1ebfb4=JSON[_0x102109(0x162)](_0x1ebfb4);}catch{}if(typeof _0x1ebfb4==='string')return{'color':tesseract_1[_0x102109(0x16d)][_0x102109(0x173)][_0x102109(0x161)],'description':_0x1ebfb4};return{'author':_0x1ebfb4['author'],'color':_0x1ebfb4['color']||tesseract_1['Constants'][_0x102109(0x173)]['IRIS'],'description':_0x1ebfb4[_0x102109(0x166)],'fields':_0x1ebfb4[_0x102109(0x15d)],'footer':_0x1ebfb4[_0x102109(0x15f)],'image':_0x1ebfb4[_0x102109(0x16a)]?typeof _0x1ebfb4['image']===_0x102109(0x176)?_0x1ebfb4[_0x102109(0x16a)]:_0x1ebfb4['image']['url']:undefined,'thumbnail':_0x1ebfb4[_0x102109(0x15e)]?typeof _0x1ebfb4[_0x102109(0x15e)]===_0x102109(0x176)?_0x1ebfb4['thumbnail']:_0x1ebfb4[_0x102109(0x15e)][_0x102109(0x17a)]:undefined,'timestamp':_0x1ebfb4[_0x102109(0x15c)],'title':_0x1ebfb4[_0x102109(0x170)],'url':_0x1ebfb4[_0x102109(0x17a)]};};exports['generateBastionEmbed']=generateBastionEmbed;const isValidBastionEmbed=_0x496835=>{const _0x27736d=a239_0x50942b;if(_0x496835[_0x27736d(0x167)]!=={}[_0x27736d(0x167)])return![];if(_0x27736d(0x172)in _0x496835){if(_0x496835['author'][_0x27736d(0x168)]&&typeof _0x496835[_0x27736d(0x172)][_0x27736d(0x168)]!=='string')return![];if(_0x496835['author'][_0x27736d(0x17a)]&&typeof _0x496835['author'][_0x27736d(0x17a)]!==_0x27736d(0x176))return![];if(_0x496835[_0x27736d(0x172)][_0x27736d(0x16c)]&&typeof _0x496835[_0x27736d(0x172)]['iconURL']!==_0x27736d(0x176))return![];}if(_0x27736d(0x174)in _0x496835&&typeof _0x496835[_0x27736d(0x174)]!=='number'&&typeof _0x496835[_0x27736d(0x174)]!=='string'&&!(_0x496835[_0x27736d(0x174)]instanceof Array))return![];if(_0x27736d(0x166)in _0x496835&&typeof _0x496835[_0x27736d(0x166)]!==_0x27736d(0x176))return![];if(_0x27736d(0x15d)in _0x496835){if(!(_0x496835[_0x27736d(0x15d)]instanceof Array))return;for(const _0x52771a of _0x496835[_0x27736d(0x15d)]){if(_0x52771a[_0x27736d(0x167)]!=={}['constructor'])return![];if(!('name'in _0x52771a))return![];if(!('value'in _0x52771a))return![];if(typeof _0x52771a[_0x27736d(0x163)]!==_0x27736d(0x165))return![];}}if(_0x27736d(0x16a)in _0x496835&&typeof _0x496835[_0x27736d(0x16a)]!==_0x27736d(0x176))return![];if('thumbnail'in _0x496835&&typeof _0x496835[_0x27736d(0x15e)]!==_0x27736d(0x176))return![];if('timestamp'in _0x496835&&typeof _0x496835['timestamp']!==_0x27736d(0x175)&&!(_0x496835[_0x27736d(0x15c)]instanceof Date))return![];if(_0x27736d(0x170)in _0x496835&&typeof _0x496835[_0x27736d(0x170)]!==_0x27736d(0x176))return![];if('url'in _0x496835&&typeof _0x496835[_0x27736d(0x17a)]!==_0x27736d(0x176))return![];return!![];};exports['isValidBastionEmbed']=isValidBastionEmbed;const isValidEmbed=_0x2e3aed=>{const _0x591f1f=a239_0x50942b;if(_0x2e3aed['constructor']!=={}['constructor'])return![];if(_0x591f1f(0x172)in _0x2e3aed){if(_0x2e3aed[_0x591f1f(0x172)]['name']&&typeof _0x2e3aed['author'][_0x591f1f(0x168)]!==_0x591f1f(0x176))return![];if(_0x2e3aed[_0x591f1f(0x172)]['url']&&typeof _0x2e3aed[_0x591f1f(0x172)]['url']!=='string')return![];if(_0x2e3aed[_0x591f1f(0x172)][_0x591f1f(0x16c)]&&typeof _0x2e3aed[_0x591f1f(0x172)]['iconURL']!==_0x591f1f(0x176))return![];}if('color'in _0x2e3aed&&typeof _0x2e3aed['color']!==_0x591f1f(0x175)&&typeof _0x2e3aed[_0x591f1f(0x174)]!=='string'&&!(_0x2e3aed[_0x591f1f(0x174)]instanceof Array))return![];if(_0x591f1f(0x166)in _0x2e3aed&&typeof _0x2e3aed['description']!=='string')return![];if(_0x591f1f(0x15d)in _0x2e3aed){if(!(_0x2e3aed[_0x591f1f(0x15d)]instanceof Array))return;for(const _0x311f69 of _0x2e3aed['fields']){if(_0x311f69[_0x591f1f(0x167)]!=={}['constructor'])return![];if(!(_0x591f1f(0x168)in _0x311f69))return![];if(!(_0x591f1f(0x169)in _0x311f69))return![];if(typeof _0x311f69[_0x591f1f(0x163)]!==_0x591f1f(0x165))return![];}}if('footer'in _0x2e3aed){if(_0x2e3aed[_0x591f1f(0x15f)]['iconURL']&&typeof _0x2e3aed[_0x591f1f(0x15f)]['iconURL']!==_0x591f1f(0x176))return![];if(_0x2e3aed[_0x591f1f(0x15f)][_0x591f1f(0x164)]&&typeof _0x2e3aed[_0x591f1f(0x15f)][_0x591f1f(0x164)]!==_0x591f1f(0x176))return![];}if(_0x591f1f(0x16a)in _0x2e3aed&&_0x2e3aed[_0x591f1f(0x16a)]['url']&&typeof _0x2e3aed[_0x591f1f(0x16a)][_0x591f1f(0x17a)]!==_0x591f1f(0x176))return![];if(_0x591f1f(0x15e)in _0x2e3aed&&_0x2e3aed[_0x591f1f(0x15e)]['url']&&typeof _0x2e3aed[_0x591f1f(0x15e)][_0x591f1f(0x17a)]!==_0x591f1f(0x176))return![];if(_0x591f1f(0x15c)in _0x2e3aed&&typeof _0x2e3aed[_0x591f1f(0x15c)]!==_0x591f1f(0x175)&&!(_0x2e3aed[_0x591f1f(0x15c)]instanceof Date))return![];if(_0x591f1f(0x170)in _0x2e3aed&&typeof _0x2e3aed[_0x591f1f(0x170)]!==_0x591f1f(0x176))return![];if(_0x591f1f(0x17a)in _0x2e3aed&&typeof _0x2e3aed[_0x591f1f(0x17a)]!=='string')return![];return!![];};exports[a239_0x50942b(0x16f)]=isValidEmbed; \ No newline at end of file diff --git a/utils/emojis.js b/utils/emojis.js index 8d07da0d4..0e22b5b4f 100644 --- a/utils/emojis.js +++ b/utils/emojis.js @@ -1 +1 @@ -const a239_0x49af=['isUnicodeEmoji','parseEmoji','match','../assets/emojis.json','isValid','constructor','includes','from','getEmojis','./snowflake','toString','test','__esModule','base64','return\x20/\x22\x20+\x20this\x20+\x20\x22/','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','utf-8','apply'];(function(_0x523665,_0x53a351){const _0x49afd9=function(_0x4deb19){while(--_0x4deb19){_0x523665['push'](_0x523665['shift']());}},_0x298328=function(){const _0xa7c99e={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x55a664,_0x59ab8f,_0x3ba4bf,_0x33f44){_0x33f44=_0x33f44||{};let _0x3ac1d9=_0x59ab8f+'='+_0x3ba4bf,_0xf57479=0x0;for(let _0x318626=0x0,_0x3326c6=_0x55a664['length'];_0x318626<_0x3326c6;_0x318626++){const _0x27cf33=_0x55a664[_0x318626];_0x3ac1d9+=';\x20'+_0x27cf33;const _0x52e2b1=_0x55a664[_0x27cf33];_0x55a664['push'](_0x52e2b1),_0x3326c6=_0x55a664['length'],_0x52e2b1!==!![]&&(_0x3ac1d9+='='+_0x52e2b1);}_0x33f44['cookie']=_0x3ac1d9;},'removeCookie':function(){return'dev';},'getCookie':function(_0x216bf9,_0x10878d){_0x216bf9=_0x216bf9||function(_0x4d2a94){return _0x4d2a94;};const _0x2abeb8=_0x216bf9(new RegExp('(?:^|;\x20)'+_0x10878d['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x12bc38=function(_0x4935d9,_0x353f8a){_0x4935d9(++_0x353f8a);};return _0x12bc38(_0x49afd9,_0x53a351),_0x2abeb8?decodeURIComponent(_0x2abeb8[0x1]):undefined;}},_0x57eb1d=function(){const _0x1ae64f=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x1ae64f['test'](_0xa7c99e['removeCookie']['toString']());};_0xa7c99e['updateCookie']=_0x57eb1d;let _0x105a81='';const _0x551274=_0xa7c99e['updateCookie']();if(!_0x551274)_0xa7c99e['setCookie'](['*'],'counter',0x1);else _0x551274?_0x105a81=_0xa7c99e['getCookie'](null,'counter'):_0xa7c99e['removeCookie']();};_0x298328();}(a239_0x49af,0x1bd));const a239_0x2983=function(_0x523665,_0x53a351){_0x523665=_0x523665-0xae;let _0x49afd9=a239_0x49af[_0x523665];return _0x49afd9;};const _0x358419=a239_0x2983,a239_0x57eb1d=function(){let _0x551274=!![];return function(_0x55a664,_0x59ab8f){const _0x3ba4bf=_0x551274?function(){const _0x5b5c51=a239_0x2983;if(_0x59ab8f){const _0x33f44=_0x59ab8f[_0x5b5c51(0xb2)](_0x55a664,arguments);return _0x59ab8f=null,_0x33f44;}}:function(){};return _0x551274=![],_0x3ba4bf;};}(),a239_0xa7c99e=a239_0x57eb1d(this,function(){const _0x3ac1d9=function(){const _0x15fb05=a239_0x2983,_0xf57479=_0x3ac1d9[_0x15fb05(0xb8)](_0x15fb05(0xaf))()[_0x15fb05(0xb8)](_0x15fb05(0xb0));return!_0xf57479[_0x15fb05(0xbe)](a239_0xa7c99e);};return _0x3ac1d9();});a239_0xa7c99e();'use strict';Object['defineProperty'](exports,_0x358419(0xbf),{'value':!![]}),exports[_0x358419(0xb4)]=exports['isUnicodeEmoji']=exports['getEmojis']=void 0x0;const emojis=require(_0x358419(0xb6)),snowflake=require(_0x358419(0xbc)),getEmojis=()=>{return emojis;};exports[_0x358419(0xbb)]=getEmojis;const isUnicodeEmoji=_0x318626=>{const _0x2df756=_0x358419;return emojis[_0x2df756(0xb9)](Buffer[_0x2df756(0xba)](_0x318626)[_0x2df756(0xbd)](_0x2df756(0xae)));};exports[_0x358419(0xb3)]=isUnicodeEmoji;const parseEmoji=_0x3326c6=>{const _0x55fa67=_0x358419;if(!_0x3326c6)return;let _0x27cf33;if(emojis[_0x55fa67(0xb9)](_0x3326c6))_0x27cf33={'value':_0x3326c6,'reaction':Buffer[_0x55fa67(0xba)](_0x3326c6,_0x55fa67(0xae))[_0x55fa67(0xbd)](_0x55fa67(0xb1))};else{if(emojis[_0x55fa67(0xb9)](Buffer['from'](_0x3326c6)['toString'](_0x55fa67(0xae))))_0x27cf33={'value':Buffer[_0x55fa67(0xba)](_0x3326c6)[_0x55fa67(0xbd)](_0x55fa67(0xae)),'reaction':_0x3326c6};else{if(_0x3326c6[_0x55fa67(0xb9)](':')){const [,_0x52e2b1]=_0x3326c6[_0x55fa67(0xb5)](//i);_0x27cf33={'value':_0x52e2b1,'reaction':_0x52e2b1};}else snowflake[_0x55fa67(0xb7)](_0x3326c6)&&(_0x27cf33={'value':_0x3326c6,'reaction':_0x3326c6});}}return _0x27cf33;};exports[_0x358419(0xb4)]=parseEmoji; \ No newline at end of file +const a240_0x46aa=['toString','isUnicodeEmoji','__esModule','parseEmoji','base64','defineProperty','match','isValid','includes','../assets/emojis.json','from','constructor','./snowflake','return\x20/\x22\x20+\x20this\x20+\x20\x22/','getEmojis'];(function(_0x1a73c3,_0x24ec69){const _0x46aac3=function(_0x39b63a){while(--_0x39b63a){_0x1a73c3['push'](_0x1a73c3['shift']());}},_0xa86a21=function(){const _0x516b1a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x289639,_0x2d63a6,_0x5eae14,_0x4b2107){_0x4b2107=_0x4b2107||{};let _0x1de36b=_0x2d63a6+'='+_0x5eae14,_0x3fc898=0x0;for(let _0x357629=0x0,_0x4972eb=_0x289639['length'];_0x357629<_0x4972eb;_0x357629++){const _0xb46fe5=_0x289639[_0x357629];_0x1de36b+=';\x20'+_0xb46fe5;const _0x2f91b2=_0x289639[_0xb46fe5];_0x289639['push'](_0x2f91b2),_0x4972eb=_0x289639['length'],_0x2f91b2!==!![]&&(_0x1de36b+='='+_0x2f91b2);}_0x4b2107['cookie']=_0x1de36b;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4c9bdd,_0x37844b){_0x4c9bdd=_0x4c9bdd||function(_0x104ad5){return _0x104ad5;};const _0x492eff=_0x4c9bdd(new RegExp('(?:^|;\x20)'+_0x37844b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2fa7df=function(_0x5453b2,_0x57491a){_0x5453b2(++_0x57491a);};return _0x2fa7df(_0x46aac3,_0x24ec69),_0x492eff?decodeURIComponent(_0x492eff[0x1]):undefined;}},_0x3b7c8a=function(){const _0x4ef3df=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4ef3df['test'](_0x516b1a['removeCookie']['toString']());};_0x516b1a['updateCookie']=_0x3b7c8a;let _0x599f93='';const _0x3d9b77=_0x516b1a['updateCookie']();if(!_0x3d9b77)_0x516b1a['setCookie'](['*'],'counter',0x1);else _0x3d9b77?_0x599f93=_0x516b1a['getCookie'](null,'counter'):_0x516b1a['removeCookie']();};_0xa86a21();}(a240_0x46aa,0x6a));const a240_0xa86a=function(_0x1a73c3,_0x24ec69){_0x1a73c3=_0x1a73c3-0xe2;let _0x46aac3=a240_0x46aa[_0x1a73c3];return _0x46aac3;};const a240_0x65c08=a240_0xa86a,a240_0x3b7c8a=function(){let _0x3d9b77=!![];return function(_0x289639,_0x2d63a6){const _0x5eae14=_0x3d9b77?function(){if(_0x2d63a6){const _0x4b2107=_0x2d63a6['apply'](_0x289639,arguments);return _0x2d63a6=null,_0x4b2107;}}:function(){};return _0x3d9b77=![],_0x5eae14;};}(),a240_0x516b1a=a240_0x3b7c8a(this,function(){const _0x1de36b=function(){const _0x4bc400=a240_0xa86a,_0x3fc898=_0x1de36b[_0x4bc400(0xec)](_0x4bc400(0xee))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x3fc898['test'](a240_0x516b1a);};return _0x1de36b();});a240_0x516b1a();'use strict';Object[a240_0x65c08(0xe6)](exports,a240_0x65c08(0xe3),{'value':!![]}),exports[a240_0x65c08(0xe4)]=exports[a240_0x65c08(0xe2)]=exports[a240_0x65c08(0xef)]=void 0x0;const emojis=require(a240_0x65c08(0xea)),snowflake=require(a240_0x65c08(0xed)),getEmojis=()=>{return emojis;};exports[a240_0x65c08(0xef)]=getEmojis;const isUnicodeEmoji=_0x357629=>{const _0x4ea899=a240_0x65c08;return emojis[_0x4ea899(0xe9)](Buffer[_0x4ea899(0xeb)](_0x357629)[_0x4ea899(0xf0)](_0x4ea899(0xe5)));};exports[a240_0x65c08(0xe2)]=isUnicodeEmoji;const parseEmoji=_0x4972eb=>{const _0xfff1c9=a240_0x65c08;if(!_0x4972eb)return;let _0xb46fe5;if(emojis[_0xfff1c9(0xe9)](_0x4972eb))_0xb46fe5={'value':_0x4972eb,'reaction':Buffer[_0xfff1c9(0xeb)](_0x4972eb,'base64')[_0xfff1c9(0xf0)]('utf-8')};else{if(emojis[_0xfff1c9(0xe9)](Buffer[_0xfff1c9(0xeb)](_0x4972eb)['toString'](_0xfff1c9(0xe5))))_0xb46fe5={'value':Buffer[_0xfff1c9(0xeb)](_0x4972eb)[_0xfff1c9(0xf0)](_0xfff1c9(0xe5)),'reaction':_0x4972eb};else{if(_0x4972eb[_0xfff1c9(0xe9)](':')){const [,_0x2f91b2]=_0x4972eb[_0xfff1c9(0xe7)](//i);_0xb46fe5={'value':_0x2f91b2,'reaction':_0x2f91b2};}else snowflake[_0xfff1c9(0xe8)](_0x4972eb)&&(_0xb46fe5={'value':_0x4972eb,'reaction':_0x4972eb});}}return _0xb46fe5;};exports[a240_0x65c08(0xe4)]=parseEmoji; \ No newline at end of file diff --git a/utils/errors.js b/utils/errors.js index 9f7a1c698..8c93f5ee7 100644 --- a/utils/errors.js +++ b/utils/errors.js @@ -1 +1 @@ -var a240_0x120f=['__esModule','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','PREMIUM_MEMBERSHIP_REQUIRED','INVALID_COMMAND_SYNTAX','Invalid\x20Command\x20Syntax','test','BASTION_ERROR_TYPE','BastionError','Error','Role\x20Not\x20Found','name','Premium\x20Membership\x20Required','DiscordError','LIMITED_PREMIUM_MEMBERSHIP','Limited\x20Premium\x20Membership','defineProperty','ConsoleError'];(function(_0x4eecac,_0xd8b7d9){var _0x120f9=function(_0x467b79){while(--_0x467b79){_0x4eecac['push'](_0x4eecac['shift']());}},_0x3ef5db=function(){var _0x138b26={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x310adc,_0x221484,_0xcd26ad,_0x3b5acf){_0x3b5acf=_0x3b5acf||{};var _0x45d2a7=_0x221484+'='+_0xcd26ad,_0x147cdd=0x0;for(var _0x1054eb=0x0,_0x42f21d=_0x310adc['length'];_0x1054eb<_0x42f21d;_0x1054eb++){var _0x2e9785=_0x310adc[_0x1054eb];_0x45d2a7+=';\x20'+_0x2e9785;var _0x13ed8e=_0x310adc[_0x2e9785];_0x310adc['push'](_0x13ed8e),_0x42f21d=_0x310adc['length'],_0x13ed8e!==!![]&&(_0x45d2a7+='='+_0x13ed8e);}_0x3b5acf['cookie']=_0x45d2a7;},'removeCookie':function(){return'dev';},'getCookie':function(_0x7fb43c,_0x391d57){_0x7fb43c=_0x7fb43c||function(_0x552be3){return _0x552be3;};var _0x13c0a4=_0x7fb43c(new RegExp('(?:^|;\x20)'+_0x391d57['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x301498=function(_0xff865f,_0x31fce1){_0xff865f(++_0x31fce1);};return _0x301498(_0x120f9,_0xd8b7d9),_0x13c0a4?decodeURIComponent(_0x13c0a4[0x1]):undefined;}},_0x166565=function(){var _0x2b6943=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b6943['test'](_0x138b26['removeCookie']['toString']());};_0x138b26['updateCookie']=_0x166565;var _0x2cf907='';var _0x24668f=_0x138b26['updateCookie']();if(!_0x24668f)_0x138b26['setCookie'](['*'],'counter',0x1);else _0x24668f?_0x2cf907=_0x138b26['getCookie'](null,'counter'):_0x138b26['removeCookie']();};_0x3ef5db();}(a240_0x120f,0x13a));var a240_0x3ef5=function(_0x4eecac,_0xd8b7d9){_0x4eecac=_0x4eecac-0xe1;var _0x120f9=a240_0x120f[_0x4eecac];return _0x120f9;};var _0x1276e5=a240_0x3ef5;'use strict';Object[_0x1276e5(0xe9)](exports,_0x1276e5(0xeb),{'value':!![]}),exports['DiscordError']=exports['ConsoleError']=exports[_0x1276e5(0xe1)]=exports[_0x1276e5(0xf2)]=void 0x0;var BASTION_ERROR_TYPE;(function(_0x24668f){var _0x4174c7=_0x1276e5,_0x310adc=function(){var _0xcd26ad=!![];return function(_0x3b5acf,_0x45d2a7){var _0x147cdd=_0xcd26ad?function(){if(_0x45d2a7){var _0x1054eb=_0x45d2a7['apply'](_0x3b5acf,arguments);return _0x45d2a7=null,_0x1054eb;}}:function(){};return _0xcd26ad=![],_0x147cdd;};}(),_0x221484=_0x310adc(this,function(){var _0x42f21d=function(){var _0x4162b3=a240_0x3ef5,_0x2e9785=_0x42f21d['constructor'](_0x4162b3(0xed))()['constructor'](_0x4162b3(0xec));return!_0x2e9785[_0x4162b3(0xf1)](_0x221484);};return _0x42f21d();});_0x221484(),_0x24668f['ERROR']=_0x4174c7(0xe2),_0x24668f[_0x4174c7(0xef)]=_0x4174c7(0xf0),_0x24668f[_0x4174c7(0xee)]=_0x4174c7(0xe5),_0x24668f[_0x4174c7(0xe7)]=_0x4174c7(0xe8),_0x24668f['ROLE_NOT_FOUND']=_0x4174c7(0xe3);}(BASTION_ERROR_TYPE=exports[_0x1276e5(0xf2)]||(exports[_0x1276e5(0xf2)]={})));class BastionError extends Error{constructor(_0x13ed8e,_0x7fb43c){var _0x88637f=_0x1276e5;super(_0x7fb43c),this[_0x88637f(0xe4)]=_0x13ed8e;}}exports[_0x1276e5(0xe1)]=BastionError;class ConsoleError extends BastionError{constructor(_0x391d57,_0x13c0a4){super(_0x391d57,_0x13c0a4);}}exports[_0x1276e5(0xea)]=ConsoleError;class DiscordError extends BastionError{constructor(_0x301498,_0x552be3){super(_0x301498,_0x552be3);}}exports[_0x1276e5(0xe6)]=DiscordError; \ No newline at end of file +var a241_0x55ac=['constructor','apply','DiscordError','return\x20/\x22\x20+\x20this\x20+\x20\x22/','ERROR','PREMIUM_MEMBERSHIP_REQUIRED','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','Role\x20Not\x20Found','test','BASTION_ERROR_TYPE','Error','Invalid\x20Command\x20Syntax','name','ConsoleError','Limited\x20Premium\x20Membership','defineProperty'];(function(_0x1ff360,_0x3c2852){var _0x55ac8a=function(_0x50aa2b){while(--_0x50aa2b){_0x1ff360['push'](_0x1ff360['shift']());}},_0x120a08=function(){var _0x1bf8a2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x388ed4,_0x1cf3fd,_0x217803,_0x2dd95c){_0x2dd95c=_0x2dd95c||{};var _0x2902cd=_0x1cf3fd+'='+_0x217803,_0x423503=0x0;for(var _0x55b277=0x0,_0x4c9317=_0x388ed4['length'];_0x55b277<_0x4c9317;_0x55b277++){var _0x436fe3=_0x388ed4[_0x55b277];_0x2902cd+=';\x20'+_0x436fe3;var _0x5196a3=_0x388ed4[_0x436fe3];_0x388ed4['push'](_0x5196a3),_0x4c9317=_0x388ed4['length'],_0x5196a3!==!![]&&(_0x2902cd+='='+_0x5196a3);}_0x2dd95c['cookie']=_0x2902cd;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2a551c,_0xc80d79){_0x2a551c=_0x2a551c||function(_0x4bb332){return _0x4bb332;};var _0x597723=_0x2a551c(new RegExp('(?:^|;\x20)'+_0xc80d79['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x10735e=function(_0x474ab8,_0x378463){_0x474ab8(++_0x378463);};return _0x10735e(_0x55ac8a,_0x3c2852),_0x597723?decodeURIComponent(_0x597723[0x1]):undefined;}},_0x410416=function(){var _0x58b525=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x58b525['test'](_0x1bf8a2['removeCookie']['toString']());};_0x1bf8a2['updateCookie']=_0x410416;var _0x1325df='';var _0x3810a3=_0x1bf8a2['updateCookie']();if(!_0x3810a3)_0x1bf8a2['setCookie'](['*'],'counter',0x1);else _0x3810a3?_0x1325df=_0x1bf8a2['getCookie'](null,'counter'):_0x1bf8a2['removeCookie']();};_0x120a08();}(a241_0x55ac,0x139));var a241_0x120a=function(_0x1ff360,_0x3c2852){_0x1ff360=_0x1ff360-0x8e;var _0x55ac8a=a241_0x55ac[_0x1ff360];return _0x55ac8a;};var a241_0x3ba560=a241_0x120a;'use strict';Object[a241_0x3ba560(0x94)](exports,'__esModule',{'value':!![]}),exports[a241_0x3ba560(0x97)]=exports[a241_0x3ba560(0x92)]=exports['BastionError']=exports[a241_0x3ba560(0x8e)]=void 0x0;var BASTION_ERROR_TYPE;(function(_0x3810a3){var _0x2cb558=a241_0x3ba560,_0x388ed4=function(){var _0x217803=!![];return function(_0x2dd95c,_0x2902cd){var _0x423503=_0x217803?function(){var _0xb158c4=a241_0x120a;if(_0x2902cd){var _0x55b277=_0x2902cd[_0xb158c4(0x96)](_0x2dd95c,arguments);return _0x2902cd=null,_0x55b277;}}:function(){};return _0x217803=![],_0x423503;};}(),_0x1cf3fd=_0x388ed4(this,function(){var _0x4c9317=function(){var _0x8073f6=a241_0x120a,_0x436fe3=_0x4c9317[_0x8073f6(0x95)](_0x8073f6(0x98))()['constructor'](_0x8073f6(0x9b));return!_0x436fe3[_0x8073f6(0x9d)](_0x1cf3fd);};return _0x4c9317();});_0x1cf3fd(),_0x3810a3[_0x2cb558(0x99)]=_0x2cb558(0x8f),_0x3810a3['INVALID_COMMAND_SYNTAX']=_0x2cb558(0x90),_0x3810a3[_0x2cb558(0x9a)]='Premium\x20Membership\x20Required',_0x3810a3['LIMITED_PREMIUM_MEMBERSHIP']=_0x2cb558(0x93),_0x3810a3['ROLE_NOT_FOUND']=_0x2cb558(0x9c);}(BASTION_ERROR_TYPE=exports[a241_0x3ba560(0x8e)]||(exports[a241_0x3ba560(0x8e)]={})));class BastionError extends Error{constructor(_0x5196a3,_0x2a551c){var _0x2fa082=a241_0x3ba560;super(_0x2a551c),this[_0x2fa082(0x91)]=_0x5196a3;}}exports['BastionError']=BastionError;class ConsoleError extends BastionError{constructor(_0xc80d79,_0x597723){super(_0xc80d79,_0x597723);}}exports['ConsoleError']=ConsoleError;class DiscordError extends BastionError{constructor(_0x10735e,_0x4bb332){super(_0x10735e,_0x4bb332);}}exports[a241_0x3ba560(0x97)]=DiscordError; \ No newline at end of file diff --git a/utils/extraction.js b/utils/extraction.js index e31bead59..03ec441a5 100644 --- a/utils/extraction.js +++ b/utils/extraction.js @@ -1 +1 @@ -const a241_0x1ded=['makeRequest','node-fetch','https://ex.traction.one/','test','__esModule','default','GET','resolvePath','constructor','endsWith','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','return\x20/\x22\x20+\x20this\x20+\x20\x22/','application/json','apply','defineProperty','BASE_PATH','replace'];(function(_0x48f486,_0x236a82){const _0x1ded4b=function(_0x416743){while(--_0x416743){_0x48f486['push'](_0x48f486['shift']());}},_0x21eaef=function(){const _0x28f86d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xa437d,_0x3a59bb,_0x29f3fb,_0x33e089){_0x33e089=_0x33e089||{};let _0xf74002=_0x3a59bb+'='+_0x29f3fb,_0x1bf609=0x0;for(let _0x52641d=0x0,_0x1c50c2=_0xa437d['length'];_0x52641d<_0x1c50c2;_0x52641d++){const _0x190b78=_0xa437d[_0x52641d];_0xf74002+=';\x20'+_0x190b78;const _0x4b55db=_0xa437d[_0x190b78];_0xa437d['push'](_0x4b55db),_0x1c50c2=_0xa437d['length'],_0x4b55db!==!![]&&(_0xf74002+='='+_0x4b55db);}_0x33e089['cookie']=_0xf74002;},'removeCookie':function(){return'dev';},'getCookie':function(_0x432ffa,_0x1e3ed5){_0x432ffa=_0x432ffa||function(_0x277466){return _0x277466;};const _0x1bbcbf=_0x432ffa(new RegExp('(?:^|;\x20)'+_0x1e3ed5['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x104f1b=function(_0x407eef,_0x3fa236){_0x407eef(++_0x3fa236);};return _0x104f1b(_0x1ded4b,_0x236a82),_0x1bbcbf?decodeURIComponent(_0x1bbcbf[0x1]):undefined;}},_0xeda22f=function(){const _0x116983=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x116983['test'](_0x28f86d['removeCookie']['toString']());};_0x28f86d['updateCookie']=_0xeda22f;let _0x4bf090='';const _0x2ed038=_0x28f86d['updateCookie']();if(!_0x2ed038)_0x28f86d['setCookie'](['*'],'counter',0x1);else _0x2ed038?_0x4bf090=_0x28f86d['getCookie'](null,'counter'):_0x28f86d['removeCookie']();};_0x21eaef();}(a241_0x1ded,0x6b));const a241_0x21ea=function(_0x48f486,_0x236a82){_0x48f486=_0x48f486-0xb1;let _0x1ded4b=a241_0x1ded[_0x48f486];return _0x1ded4b;};const _0x58f255=a241_0x21ea,a241_0xeda22f=function(){let _0x2ed038=!![];return function(_0xa437d,_0x3a59bb){const _0x29f3fb=_0x2ed038?function(){const _0x2b8674=a241_0x21ea;if(_0x3a59bb){const _0x33e089=_0x3a59bb[_0x2b8674(0xb9)](_0xa437d,arguments);return _0x3a59bb=null,_0x33e089;}}:function(){};return _0x2ed038=![],_0x29f3fb;};}(),a241_0x28f86d=a241_0xeda22f(this,function(){const _0xf74002=function(){const _0x73a5af=a241_0x21ea,_0x1bf609=_0xf74002[_0x73a5af(0xb4)](_0x73a5af(0xb7))()[_0x73a5af(0xb4)](_0x73a5af(0xb6));return!_0x1bf609[_0x73a5af(0xc0)](a241_0x28f86d);};return _0xf74002();});a241_0x28f86d();'use strict';Object[_0x58f255(0xba)](exports,_0x58f255(0xc1),{'value':!![]}),exports[_0x58f255(0xbd)]=exports['resolvePath']=exports[_0x58f255(0xbb)]=void 0x0;const node_fetch_1=require(_0x58f255(0xbe));exports['BASE_PATH']=_0x58f255(0xbf);const resolvePath=_0x52641d=>exports['BASE_PATH']+(exports[_0x58f255(0xbb)][_0x58f255(0xb5)]('/')?_0x52641d[_0x58f255(0xbc)](/^\//g,''):_0x52641d);exports[_0x58f255(0xb3)]=resolvePath;const makeRequest=(_0x1c50c2,_0x190b78)=>{const _0x49af16=_0x58f255,_0x4b55db={'method':_0x49af16(0xb2),'headers':{'Accepts':'application/json','Content-Type':_0x49af16(0xb8),'User-Agent':'Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)'},..._0x190b78};return node_fetch_1[_0x49af16(0xb1)](exports[_0x49af16(0xb3)](_0x1c50c2),_0x4b55db);};exports['makeRequest']=makeRequest; \ No newline at end of file +const a242_0x243d=['BASE_PATH','resolvePath','defineProperty','application/json','default','apply','return\x20/\x22\x20+\x20this\x20+\x20\x22/','GET','https://ex.traction.one/','constructor','Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)','test','makeRequest','__esModule','replace'];(function(_0x4a092a,_0x25d033){const _0x243dcc=function(_0x272648){while(--_0x272648){_0x4a092a['push'](_0x4a092a['shift']());}},_0x5cc67c=function(){const _0x96258d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x2cc316,_0x2d35ee,_0x498ab4,_0x156284){_0x156284=_0x156284||{};let _0x3ec59e=_0x2d35ee+'='+_0x498ab4,_0x55d4eb=0x0;for(let _0x48869b=0x0,_0x300c06=_0x2cc316['length'];_0x48869b<_0x300c06;_0x48869b++){const _0x2b151f=_0x2cc316[_0x48869b];_0x3ec59e+=';\x20'+_0x2b151f;const _0x1d57f6=_0x2cc316[_0x2b151f];_0x2cc316['push'](_0x1d57f6),_0x300c06=_0x2cc316['length'],_0x1d57f6!==!![]&&(_0x3ec59e+='='+_0x1d57f6);}_0x156284['cookie']=_0x3ec59e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x16769b,_0x1e0686){_0x16769b=_0x16769b||function(_0x34f08b){return _0x34f08b;};const _0xda8898=_0x16769b(new RegExp('(?:^|;\x20)'+_0x1e0686['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x35497f=function(_0x274e18,_0x15d55c){_0x274e18(++_0x15d55c);};return _0x35497f(_0x243dcc,_0x25d033),_0xda8898?decodeURIComponent(_0xda8898[0x1]):undefined;}},_0x51add3=function(){const _0x4b938=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4b938['test'](_0x96258d['removeCookie']['toString']());};_0x96258d['updateCookie']=_0x51add3;let _0x484e8e='';const _0x1affa3=_0x96258d['updateCookie']();if(!_0x1affa3)_0x96258d['setCookie'](['*'],'counter',0x1);else _0x1affa3?_0x484e8e=_0x96258d['getCookie'](null,'counter'):_0x96258d['removeCookie']();};_0x5cc67c();}(a242_0x243d,0x13f));const a242_0x5cc6=function(_0x4a092a,_0x25d033){_0x4a092a=_0x4a092a-0x1a4;let _0x243dcc=a242_0x243d[_0x4a092a];return _0x243dcc;};const a242_0x3d3423=a242_0x5cc6,a242_0x51add3=function(){let _0x1affa3=!![];return function(_0x2cc316,_0x2d35ee){const _0x498ab4=_0x1affa3?function(){const _0x599055=a242_0x5cc6;if(_0x2d35ee){const _0x156284=_0x2d35ee[_0x599055(0x1a5)](_0x2cc316,arguments);return _0x2d35ee=null,_0x156284;}}:function(){};return _0x1affa3=![],_0x498ab4;};}(),a242_0x96258d=a242_0x51add3(this,function(){const _0x3ec59e=function(){const _0x47bae0=a242_0x5cc6,_0x55d4eb=_0x3ec59e[_0x47bae0(0x1a9)](_0x47bae0(0x1a6))()[_0x47bae0(0x1a9)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x55d4eb[_0x47bae0(0x1ab)](a242_0x96258d);};return _0x3ec59e();});a242_0x96258d();'use strict';Object[a242_0x3d3423(0x1b1)](exports,a242_0x3d3423(0x1ad),{'value':!![]}),exports[a242_0x3d3423(0x1ac)]=exports[a242_0x3d3423(0x1b0)]=exports[a242_0x3d3423(0x1af)]=void 0x0;const node_fetch_1=require('node-fetch');exports[a242_0x3d3423(0x1af)]=a242_0x3d3423(0x1a8);const resolvePath=_0x48869b=>exports['BASE_PATH']+(exports['BASE_PATH']['endsWith']('/')?_0x48869b[a242_0x3d3423(0x1ae)](/^\//g,''):_0x48869b);exports[a242_0x3d3423(0x1b0)]=resolvePath;const makeRequest=(_0x300c06,_0x2b151f)=>{const _0x5dd6b2=a242_0x3d3423,_0x1d57f6={'method':_0x5dd6b2(0x1a7),'headers':{'Accepts':_0x5dd6b2(0x1b2),'Content-Type':'application/json','User-Agent':_0x5dd6b2(0x1aa)},..._0x2b151f};return node_fetch_1[_0x5dd6b2(0x1a4)](exports[_0x5dd6b2(0x1b0)](_0x300c06),_0x1d57f6);};exports[a242_0x3d3423(0x1ac)]=makeRequest; \ No newline at end of file diff --git a/utils/gamification.js b/utils/gamification.js index 45550bc5d..64321df11 100644 --- a/utils/gamification.js +++ b/utils/gamification.js @@ -1 +1 @@ -const a242_0x509f=['floor','../utils/numbers','DEFAUL_CURRENCY_REWARD_MULTIPLIER','sqrt','MAX_LEVEL','constructor','defineProperty','DEFAUL_LEVELUP_MULTIPLIER','MAX_EXPERIENCE','test','computeLevel','clamp','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','computeExperience','apply'];(function(_0x2f8dc7,_0x194656){const _0x509fa0=function(_0x423e83){while(--_0x423e83){_0x2f8dc7['push'](_0x2f8dc7['shift']());}},_0x5d6930=function(){const _0x255717={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4bc6b2,_0x23a982,_0x53aab9,_0x33c3cf){_0x33c3cf=_0x33c3cf||{};let _0x57ec3a=_0x23a982+'='+_0x53aab9,_0x364832=0x0;for(let _0x1eaf07=0x0,_0x489a1a=_0x4bc6b2['length'];_0x1eaf07<_0x489a1a;_0x1eaf07++){const _0x1c481f=_0x4bc6b2[_0x1eaf07];_0x57ec3a+=';\x20'+_0x1c481f;const _0x39d2b3=_0x4bc6b2[_0x1c481f];_0x4bc6b2['push'](_0x39d2b3),_0x489a1a=_0x4bc6b2['length'],_0x39d2b3!==!![]&&(_0x57ec3a+='='+_0x39d2b3);}_0x33c3cf['cookie']=_0x57ec3a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x577659,_0x3b4c6b){_0x577659=_0x577659||function(_0x3bde2b){return _0x3bde2b;};const _0x37fdd8=_0x577659(new RegExp('(?:^|;\x20)'+_0x3b4c6b['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x241559=function(_0x49d94f,_0x139c53){_0x49d94f(++_0x139c53);};return _0x241559(_0x509fa0,_0x194656),_0x37fdd8?decodeURIComponent(_0x37fdd8[0x1]):undefined;}},_0x11f5d1=function(){const _0x244e44=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x244e44['test'](_0x255717['removeCookie']['toString']());};_0x255717['updateCookie']=_0x11f5d1;let _0x421dac='';const _0x3e124f=_0x255717['updateCookie']();if(!_0x3e124f)_0x255717['setCookie'](['*'],'counter',0x1);else _0x3e124f?_0x421dac=_0x255717['getCookie'](null,'counter'):_0x255717['removeCookie']();};_0x5d6930();}(a242_0x509f,0xeb));const a242_0x5d69=function(_0x2f8dc7,_0x194656){_0x2f8dc7=_0x2f8dc7-0x18e;let _0x509fa0=a242_0x509f[_0x2f8dc7];return _0x509fa0;};const _0x3809b7=a242_0x5d69,a242_0x11f5d1=function(){let _0x3e124f=!![];return function(_0x4bc6b2,_0x23a982){const _0x53aab9=_0x3e124f?function(){const _0x4bf4d8=a242_0x5d69;if(_0x23a982){const _0x33c3cf=_0x23a982[_0x4bf4d8(0x192)](_0x4bc6b2,arguments);return _0x23a982=null,_0x33c3cf;}}:function(){};return _0x3e124f=![],_0x53aab9;};}(),a242_0x255717=a242_0x11f5d1(this,function(){const _0x57ec3a=function(){const _0x1df5e4=a242_0x5d69,_0x364832=_0x57ec3a[_0x1df5e4(0x198)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x1df5e4(0x198)](_0x1df5e4(0x190));return!_0x364832[_0x1df5e4(0x19c)](a242_0x255717);};return _0x57ec3a();});a242_0x255717();'use strict';Object[_0x3809b7(0x199)](exports,'__esModule',{'value':!![]}),exports[_0x3809b7(0x191)]=exports['computeLevel']=exports[_0x3809b7(0x19b)]=exports['MAX_LEVEL']=exports[_0x3809b7(0x19a)]=exports['DEFAUL_CURRENCY_REWARD_MULTIPLIER']=void 0x0;const numbers=require(_0x3809b7(0x194)),DEFAUL_LEVELUP_MULTIPLIER=0.42;exports[_0x3809b7(0x19a)]=DEFAUL_LEVELUP_MULTIPLIER;const DEFAUL_CURRENCY_REWARD_MULTIPLIER=0x2a;exports[_0x3809b7(0x195)]=DEFAUL_CURRENCY_REWARD_MULTIPLIER;const MAX_LEVEL=0x2540be400;exports[_0x3809b7(0x197)]=MAX_LEVEL;const computeLevel=(_0x1eaf07,_0x489a1a)=>{const _0x21bef3=_0x3809b7;if(!_0x489a1a)_0x489a1a=DEFAUL_LEVELUP_MULTIPLIER;return numbers[_0x21bef3(0x18f)](Math[_0x21bef3(0x193)](_0x489a1a*Math[_0x21bef3(0x196)](_0x1eaf07)),MAX_LEVEL);};exports[_0x3809b7(0x18e)]=computeLevel;const computeExperience=(_0x1c481f,_0x39d2b3)=>{const _0x47a8ca=_0x3809b7;if(!_0x39d2b3)_0x39d2b3=DEFAUL_LEVELUP_MULTIPLIER;return Math[_0x47a8ca(0x193)](_0x1c481f/_0x39d2b3*(_0x1c481f/_0x39d2b3));};exports[_0x3809b7(0x191)]=computeExperience;const MAX_EXPERIENCE=_0x577659=>{if(!_0x577659)_0x577659=DEFAUL_LEVELUP_MULTIPLIER;return computeExperience(MAX_LEVEL,_0x577659);};exports[_0x3809b7(0x19b)]=MAX_EXPERIENCE; \ No newline at end of file +const a243_0x361c=['computeExperience','../utils/numbers','sqrt','DEFAUL_LEVELUP_MULTIPLIER','DEFAUL_CURRENCY_REWARD_MULTIPLIER','apply','MAX_EXPERIENCE','floor','computeLevel','clamp','test','__esModule','MAX_LEVEL','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5785aa,_0x2e8a61){const _0x361c79=function(_0x4c9ec1){while(--_0x4c9ec1){_0x5785aa['push'](_0x5785aa['shift']());}},_0x5a7b69=function(){const _0x5e9bab={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5db2b7,_0x12976e,_0x21e235,_0x23c047){_0x23c047=_0x23c047||{};let _0x47b76e=_0x12976e+'='+_0x21e235,_0x1a0599=0x0;for(let _0x8f71c5=0x0,_0xd4ac25=_0x5db2b7['length'];_0x8f71c5<_0xd4ac25;_0x8f71c5++){const _0x456541=_0x5db2b7[_0x8f71c5];_0x47b76e+=';\x20'+_0x456541;const _0x54ce25=_0x5db2b7[_0x456541];_0x5db2b7['push'](_0x54ce25),_0xd4ac25=_0x5db2b7['length'],_0x54ce25!==!![]&&(_0x47b76e+='='+_0x54ce25);}_0x23c047['cookie']=_0x47b76e;},'removeCookie':function(){return'dev';},'getCookie':function(_0x565145,_0xa4617a){_0x565145=_0x565145||function(_0x49b433){return _0x49b433;};const _0x1870e2=_0x565145(new RegExp('(?:^|;\x20)'+_0xa4617a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5d0eda=function(_0x48f403,_0x14497e){_0x48f403(++_0x14497e);};return _0x5d0eda(_0x361c79,_0x2e8a61),_0x1870e2?decodeURIComponent(_0x1870e2[0x1]):undefined;}},_0x5534a8=function(){const _0x4a71b1=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4a71b1['test'](_0x5e9bab['removeCookie']['toString']());};_0x5e9bab['updateCookie']=_0x5534a8;let _0x29598f='';const _0x46f8c1=_0x5e9bab['updateCookie']();if(!_0x46f8c1)_0x5e9bab['setCookie'](['*'],'counter',0x1);else _0x46f8c1?_0x29598f=_0x5e9bab['getCookie'](null,'counter'):_0x5e9bab['removeCookie']();};_0x5a7b69();}(a243_0x361c,0x1ab));const a243_0x5a7b=function(_0x5785aa,_0x2e8a61){_0x5785aa=_0x5785aa-0x14d;let _0x361c79=a243_0x361c[_0x5785aa];return _0x361c79;};const a243_0x20afa9=a243_0x5a7b,a243_0x5534a8=function(){let _0x46f8c1=!![];return function(_0x5db2b7,_0x12976e){const _0x21e235=_0x46f8c1?function(){const _0x4c3a38=a243_0x5a7b;if(_0x12976e){const _0x23c047=_0x12976e[_0x4c3a38(0x159)](_0x5db2b7,arguments);return _0x12976e=null,_0x23c047;}}:function(){};return _0x46f8c1=![],_0x21e235;};}(),a243_0x5e9bab=a243_0x5534a8(this,function(){const _0x47b76e=function(){const _0x322dbf=a243_0x5a7b,_0x1a0599=_0x47b76e['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x322dbf(0x153));return!_0x1a0599[_0x322dbf(0x150)](a243_0x5e9bab);};return _0x47b76e();});a243_0x5e9bab();'use strict';Object['defineProperty'](exports,a243_0x20afa9(0x151),{'value':!![]}),exports[a243_0x20afa9(0x154)]=exports[a243_0x20afa9(0x14e)]=exports[a243_0x20afa9(0x15a)]=exports[a243_0x20afa9(0x152)]=exports[a243_0x20afa9(0x157)]=exports[a243_0x20afa9(0x158)]=void 0x0;const numbers=require(a243_0x20afa9(0x155)),DEFAUL_LEVELUP_MULTIPLIER=0.42;exports[a243_0x20afa9(0x157)]=DEFAUL_LEVELUP_MULTIPLIER;const DEFAUL_CURRENCY_REWARD_MULTIPLIER=0x2a;exports[a243_0x20afa9(0x158)]=DEFAUL_CURRENCY_REWARD_MULTIPLIER;const MAX_LEVEL=0x2540be400;exports[a243_0x20afa9(0x152)]=MAX_LEVEL;const computeLevel=(_0x8f71c5,_0xd4ac25)=>{const _0x3cc5b9=a243_0x20afa9;if(!_0xd4ac25)_0xd4ac25=DEFAUL_LEVELUP_MULTIPLIER;return numbers[_0x3cc5b9(0x14f)](Math[_0x3cc5b9(0x14d)](_0xd4ac25*Math[_0x3cc5b9(0x156)](_0x8f71c5)),MAX_LEVEL);};exports[a243_0x20afa9(0x14e)]=computeLevel;const computeExperience=(_0x456541,_0x54ce25)=>{const _0x4ae192=a243_0x20afa9;if(!_0x54ce25)_0x54ce25=DEFAUL_LEVELUP_MULTIPLIER;return Math[_0x4ae192(0x14d)](_0x456541/_0x54ce25*(_0x456541/_0x54ce25));};exports[a243_0x20afa9(0x154)]=computeExperience;const MAX_EXPERIENCE=_0x565145=>{if(!_0x565145)_0x565145=DEFAUL_LEVELUP_MULTIPLIER;return computeExperience(MAX_LEVEL,_0x565145);};exports[a243_0x20afa9(0x15a)]=MAX_EXPERIENCE; \ No newline at end of file diff --git a/utils/memcache.js b/utils/memcache.js index e496d6c06..0192a1b21 100644 --- a/utils/memcache.js +++ b/utils/memcache.js @@ -1 +1 @@ -const a243_0x2815=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','default','__esModule','cacheStore','test','set','defineProperty','get','delete','constructor','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','clear'];(function(_0x5b83d6,_0x2230b6){const _0x281560=function(_0x45c815){while(--_0x45c815){_0x5b83d6['push'](_0x5b83d6['shift']());}},_0x529007=function(){const _0x2e89c4={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x238f9d,_0xe71011,_0x5ce5bc,_0x608d0e){_0x608d0e=_0x608d0e||{};let _0x13b007=_0xe71011+'='+_0x5ce5bc,_0x4f6d97=0x0;for(let _0x8bda7f=0x0,_0x3ac16b=_0x238f9d['length'];_0x8bda7f<_0x3ac16b;_0x8bda7f++){const _0x57c0c8=_0x238f9d[_0x8bda7f];_0x13b007+=';\x20'+_0x57c0c8;const _0x24d81a=_0x238f9d[_0x57c0c8];_0x238f9d['push'](_0x24d81a),_0x3ac16b=_0x238f9d['length'],_0x24d81a!==!![]&&(_0x13b007+='='+_0x24d81a);}_0x608d0e['cookie']=_0x13b007;},'removeCookie':function(){return'dev';},'getCookie':function(_0x542d3a,_0x1b9284){_0x542d3a=_0x542d3a||function(_0x4645b1){return _0x4645b1;};const _0x3b0edc=_0x542d3a(new RegExp('(?:^|;\x20)'+_0x1b9284['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1d8dc5=function(_0x5705f5,_0x4cea8a){_0x5705f5(++_0x4cea8a);};return _0x1d8dc5(_0x281560,_0x2230b6),_0x3b0edc?decodeURIComponent(_0x3b0edc[0x1]):undefined;}},_0x4479fd=function(){const _0x2a8bc8=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2a8bc8['test'](_0x2e89c4['removeCookie']['toString']());};_0x2e89c4['updateCookie']=_0x4479fd;let _0x37fa69='';const _0x1fc015=_0x2e89c4['updateCookie']();if(!_0x1fc015)_0x2e89c4['setCookie'](['*'],'counter',0x1);else _0x1fc015?_0x37fa69=_0x2e89c4['getCookie'](null,'counter'):_0x2e89c4['removeCookie']();};_0x529007();}(a243_0x2815,0xf8));const a243_0x5290=function(_0x5b83d6,_0x2230b6){_0x5b83d6=_0x5b83d6-0x1ee;let _0x281560=a243_0x2815[_0x5b83d6];return _0x281560;};const _0x2c006c=a243_0x5290,a243_0x4479fd=function(){let _0x1fc015=!![];return function(_0x238f9d,_0xe71011){const _0x5ce5bc=_0x1fc015?function(){const _0x5cd692=a243_0x5290;if(_0xe71011){const _0x608d0e=_0xe71011[_0x5cd692(0x1f7)](_0x238f9d,arguments);return _0xe71011=null,_0x608d0e;}}:function(){};return _0x1fc015=![],_0x5ce5bc;};}(),a243_0x2e89c4=a243_0x4479fd(this,function(){const _0x13b007=function(){const _0x502604=a243_0x5290,_0x4f6d97=_0x13b007[_0x502604(0x1f6)](_0x502604(0x1fa))()[_0x502604(0x1f6)](_0x502604(0x1f8));return!_0x4f6d97[_0x502604(0x1f1)](a243_0x2e89c4);};return _0x13b007();});a243_0x2e89c4();'use strict';Object[_0x2c006c(0x1f3)](exports,_0x2c006c(0x1ef),{'value':!![]});class Memcache{constructor(){const _0x2db56d=_0x2c006c;this[_0x2db56d(0x1f4)]=_0x8bda7f=>{const _0x33c9ad=_0x2db56d;return this[_0x33c9ad(0x1f0)]['get'](_0x8bda7f);},this[_0x2db56d(0x1f2)]=(_0x3ac16b,_0x57c0c8,_0x24d81a)=>{const _0x4eef51=_0x2db56d;return this[_0x4eef51(0x1f0)][_0x4eef51(0x1f2)](_0x3ac16b,_0x57c0c8),_0x24d81a&&setTimeout(()=>this[_0x4eef51(0x1f0)][_0x4eef51(0x1f5)](_0x3ac16b),_0x24d81a*0xea60),!![];},this['delete']=_0x542d3a=>{const _0x37f547=_0x2db56d,_0x1b9284=this['cacheStore']['get'](_0x542d3a);if(_0x1b9284)return this[_0x37f547(0x1f0)][_0x37f547(0x1f5)](_0x542d3a),_0x1b9284;return null;},this[_0x2db56d(0x1f9)]=()=>{const _0x2a2f85=_0x2db56d;return this[_0x2a2f85(0x1f0)][_0x2a2f85(0x1f9)](),!![];},this[_0x2db56d(0x1f0)]=new Map();}}exports[_0x2c006c(0x1ee)]=new Memcache(); \ No newline at end of file +const a244_0x204c=['__esModule','set','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cacheStore','delete','default','test','defineProperty','apply','get','constructor','clear'];(function(_0x13f32a,_0x4d2cef){const _0x204c80=function(_0x6ab87c){while(--_0x6ab87c){_0x13f32a['push'](_0x13f32a['shift']());}},_0x282d12=function(){const _0x45b3b2={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5749bb,_0x1c5034,_0x1cb7f9,_0x3404e9){_0x3404e9=_0x3404e9||{};let _0x4f6f90=_0x1c5034+'='+_0x1cb7f9,_0x4b66a9=0x0;for(let _0x4f0608=0x0,_0x192d6b=_0x5749bb['length'];_0x4f0608<_0x192d6b;_0x4f0608++){const _0x19b8ab=_0x5749bb[_0x4f0608];_0x4f6f90+=';\x20'+_0x19b8ab;const _0x578b20=_0x5749bb[_0x19b8ab];_0x5749bb['push'](_0x578b20),_0x192d6b=_0x5749bb['length'],_0x578b20!==!![]&&(_0x4f6f90+='='+_0x578b20);}_0x3404e9['cookie']=_0x4f6f90;},'removeCookie':function(){return'dev';},'getCookie':function(_0x229e7a,_0x4ce968){_0x229e7a=_0x229e7a||function(_0x33beee){return _0x33beee;};const _0x2066b0=_0x229e7a(new RegExp('(?:^|;\x20)'+_0x4ce968['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x3d0f5b=function(_0x44a38d,_0x1e6d06){_0x44a38d(++_0x1e6d06);};return _0x3d0f5b(_0x204c80,_0x4d2cef),_0x2066b0?decodeURIComponent(_0x2066b0[0x1]):undefined;}},_0x4031c5=function(){const _0x113a88=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x113a88['test'](_0x45b3b2['removeCookie']['toString']());};_0x45b3b2['updateCookie']=_0x4031c5;let _0x4cee39='';const _0x150c57=_0x45b3b2['updateCookie']();if(!_0x150c57)_0x45b3b2['setCookie'](['*'],'counter',0x1);else _0x150c57?_0x4cee39=_0x45b3b2['getCookie'](null,'counter'):_0x45b3b2['removeCookie']();};_0x282d12();}(a244_0x204c,0x126));const a244_0x282d=function(_0x13f32a,_0x4d2cef){_0x13f32a=_0x13f32a-0xeb;let _0x204c80=a244_0x204c[_0x13f32a];return _0x204c80;};const a244_0x5ea29a=a244_0x282d,a244_0x4031c5=function(){let _0x150c57=!![];return function(_0x5749bb,_0x1c5034){const _0x1cb7f9=_0x150c57?function(){const _0x5daa37=a244_0x282d;if(_0x1c5034){const _0x3404e9=_0x1c5034[_0x5daa37(0xed)](_0x5749bb,arguments);return _0x1c5034=null,_0x3404e9;}}:function(){};return _0x150c57=![],_0x1cb7f9;};}(),a244_0x45b3b2=a244_0x4031c5(this,function(){const _0x4f6f90=function(){const _0x4620d5=a244_0x282d,_0x4b66a9=_0x4f6f90[_0x4620d5(0xef)](_0x4620d5(0xf3))()[_0x4620d5(0xef)]('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x4b66a9[_0x4620d5(0xeb)](a244_0x45b3b2);};return _0x4f6f90();});a244_0x45b3b2();'use strict';Object[a244_0x5ea29a(0xec)](exports,a244_0x5ea29a(0xf1),{'value':!![]});class Memcache{constructor(){const _0x3d8841=a244_0x5ea29a;this[_0x3d8841(0xee)]=_0x4f0608=>{const _0x2a3143=_0x3d8841;return this[_0x2a3143(0xf4)][_0x2a3143(0xee)](_0x4f0608);},this[_0x3d8841(0xf2)]=(_0x192d6b,_0x19b8ab,_0x578b20)=>{const _0x13ff9d=_0x3d8841;return this[_0x13ff9d(0xf4)]['set'](_0x192d6b,_0x19b8ab),_0x578b20&&setTimeout(()=>this[_0x13ff9d(0xf4)]['delete'](_0x192d6b),_0x578b20*0xea60),!![];},this[_0x3d8841(0xf5)]=_0x229e7a=>{const _0x51d1f2=_0x3d8841,_0x4ce968=this[_0x51d1f2(0xf4)][_0x51d1f2(0xee)](_0x229e7a);if(_0x4ce968)return this['cacheStore'][_0x51d1f2(0xf5)](_0x229e7a),_0x4ce968;return null;},this[_0x3d8841(0xf0)]=()=>{const _0x51b1ec=_0x3d8841;return this[_0x51b1ec(0xf4)]['clear'](),!![];},this[_0x3d8841(0xf4)]=new Map();}}exports[a244_0x5ea29a(0xf6)]=new Memcache(); \ No newline at end of file diff --git a/utils/numbers.js b/utils/numbers.js index 88179c787..fc628b036 100644 --- a/utils/numbers.js +++ b/utils/numbers.js @@ -1 +1 @@ -const a244_0xb5a0=['toString','constructor','clamp','largestNeighbor','pow','getRandomInt','inRange','apply','max','log10','smallestNeighbor','floor','test','__esModule','min','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','abbreviate','random','toFixed','return\x20/\x22\x20+\x20this\x20+\x20\x22/','MIN_SAFE_INTEGER','number','replace'];(function(_0x5317b7,_0x1e8650){const _0xb5a022=function(_0xec647e){while(--_0xec647e){_0x5317b7['push'](_0x5317b7['shift']());}},_0x5b97c6=function(){const _0x1e564d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x85b63f,_0xa97789,_0x13adf7,_0x27f042){_0x27f042=_0x27f042||{};let _0x2ee74a=_0xa97789+'='+_0x13adf7,_0x24f4da=0x0;for(let _0x5f06b9=0x0,_0x317be3=_0x85b63f['length'];_0x5f06b9<_0x317be3;_0x5f06b9++){const _0x1d49fb=_0x85b63f[_0x5f06b9];_0x2ee74a+=';\x20'+_0x1d49fb;const _0x34076a=_0x85b63f[_0x1d49fb];_0x85b63f['push'](_0x34076a),_0x317be3=_0x85b63f['length'],_0x34076a!==!![]&&(_0x2ee74a+='='+_0x34076a);}_0x27f042['cookie']=_0x2ee74a;},'removeCookie':function(){return'dev';},'getCookie':function(_0x20c37e,_0x1673a3){_0x20c37e=_0x20c37e||function(_0x3fd4cf){return _0x3fd4cf;};const _0x5293ed=_0x20c37e(new RegExp('(?:^|;\x20)'+_0x1673a3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5f15f6=function(_0x99e31f,_0x3a6c09){_0x99e31f(++_0x3a6c09);};return _0x5f15f6(_0xb5a022,_0x1e8650),_0x5293ed?decodeURIComponent(_0x5293ed[0x1]):undefined;}},_0x334015=function(){const _0x47a142=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x47a142['test'](_0x1e564d['removeCookie']['toString']());};_0x1e564d['updateCookie']=_0x334015;let _0x2d484b='';const _0x55e076=_0x1e564d['updateCookie']();if(!_0x55e076)_0x1e564d['setCookie'](['*'],'counter',0x1);else _0x55e076?_0x2d484b=_0x1e564d['getCookie'](null,'counter'):_0x1e564d['removeCookie']();};_0x5b97c6();}(a244_0xb5a0,0x7d));const a244_0x5b97=function(_0x5317b7,_0x1e8650){_0x5317b7=_0x5317b7-0xd5;let _0xb5a022=a244_0xb5a0[_0x5317b7];return _0xb5a022;};const _0x1a903a=a244_0x5b97,a244_0x334015=function(){let _0x55e076=!![];return function(_0x85b63f,_0xa97789){const _0x13adf7=_0x55e076?function(){const _0x4ea9ac=a244_0x5b97;if(_0xa97789){const _0x27f042=_0xa97789[_0x4ea9ac(0xe9)](_0x85b63f,arguments);return _0xa97789=null,_0x27f042;}}:function(){};return _0x55e076=![],_0x13adf7;};}(),a244_0x1e564d=a244_0x334015(this,function(){const _0x2ee74a=function(){const _0x19f0dd=a244_0x5b97,_0x24f4da=_0x2ee74a[_0x19f0dd(0xe3)](_0x19f0dd(0xde))()[_0x19f0dd(0xe3)](_0x19f0dd(0xda));return!_0x24f4da[_0x19f0dd(0xd7)](a244_0x1e564d);};return _0x2ee74a();});a244_0x1e564d();'use strict';Object['defineProperty'](exports,_0x1a903a(0xd8),{'value':!![]}),exports[_0x1a903a(0xd5)]=exports[_0x1a903a(0xe5)]=exports[_0x1a903a(0xe8)]=exports[_0x1a903a(0xe7)]=exports[_0x1a903a(0xe4)]=exports['abbreviate']=void 0x0;const abbreviate=_0x5f06b9=>{const _0x5935be=_0x1a903a,_0x317be3=['','k','M','G','T','P','E','Z','Y'],_0x1d49fb=Math[_0x5935be(0xeb)](Math['abs'](_0x5f06b9))/0x3|0x0;if(_0x1d49fb===0x0)return _0x5f06b9[_0x5935be(0xe2)]();const _0x34076a=_0x5f06b9/Math[_0x5935be(0xe6)](0xa,_0x1d49fb*0x3);return _0x34076a[_0x5935be(0xdd)](0x3)[_0x5935be(0xe1)](/(?:\.0+|0+)$/,'')+_0x317be3[_0x1d49fb];};exports[_0x1a903a(0xdb)]=abbreviate;const clamp=(_0x20c37e,_0x1673a3,_0x5293ed)=>{const _0x4b2429=_0x1a903a;return typeof _0x5293ed!==_0x4b2429(0xe0)?[_0x1673a3,_0x5293ed]=[-Infinity,_0x1673a3]:[_0x1673a3,_0x5293ed]=[Math['min'](_0x1673a3,_0x5293ed),Math[_0x4b2429(0xea)](_0x1673a3,_0x5293ed)],Math[_0x4b2429(0xea)](_0x1673a3,Math[_0x4b2429(0xd9)](_0x20c37e,_0x5293ed));};exports[_0x1a903a(0xe4)]=clamp;const getRandomInt=(_0x5f15f6,_0x3fd4cf)=>{const _0x4e0532=_0x1a903a;return _0x5f15f6=Math['ceil'](_0x5f15f6),_0x3fd4cf=Math[_0x4e0532(0xd6)](_0x3fd4cf),Math['floor'](Math[_0x4e0532(0xdc)]()*(_0x3fd4cf-_0x5f15f6+0x1))+_0x5f15f6;};exports[_0x1a903a(0xe7)]=getRandomInt;const inRange=(_0x99e31f,_0x3a6c09,_0x47a142)=>{const _0x371e34=_0x1a903a;return typeof _0x47a142!==_0x371e34(0xe0)&&([_0x3a6c09,_0x47a142]=[-Infinity,_0x3a6c09]),_0x99e31f>=Math['min'](_0x3a6c09,_0x47a142)&&_0x99e31f<=Math['max'](_0x3a6c09,_0x47a142);};exports[_0x1a903a(0xe8)]=inRange;const largestNeighbor=(_0x5f0fc7,_0xc5fb6b)=>{let _0x24a151=Number['MAX_SAFE_INTEGER'];for(const _0x11700e of _0xc5fb6b){if(_0x11700e<_0x24a151&&_0x11700e>=_0x5f0fc7)_0x24a151=_0x11700e;}return _0x24a151;};exports[_0x1a903a(0xe5)]=largestNeighbor;const smallestNeighbor=(_0x5cca54,_0x57c9b1)=>{const _0x21a855=_0x1a903a;let _0x64e217=Number[_0x21a855(0xdf)];for(const _0x3897eb of _0x57c9b1){if(_0x3897eb>_0x64e217&&_0x3897eb<=_0x5cca54)_0x64e217=_0x3897eb;}return _0x64e217;};exports[_0x1a903a(0xd5)]=smallestNeighbor; \ No newline at end of file +const a245_0x3b3d=['toString','smallestNeighbor','max','min','inRange','MIN_SAFE_INTEGER','constructor','getRandomInt','__esModule','MAX_SAFE_INTEGER','return\x20/\x22\x20+\x20this\x20+\x20\x22/','random','ceil','largestNeighbor','abs','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','apply','pow','replace','test','floor','log10'];(function(_0x3d9fdf,_0x4aa1af){const _0x3b3dc1=function(_0x5192f5){while(--_0x5192f5){_0x3d9fdf['push'](_0x3d9fdf['shift']());}},_0x330dd1=function(){const _0x1d84ec={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x26170c,_0x1e617f,_0x44f43b,_0xb38848){_0xb38848=_0xb38848||{};let _0x28270c=_0x1e617f+'='+_0x44f43b,_0x57af61=0x0;for(let _0x45b775=0x0,_0x569af7=_0x26170c['length'];_0x45b775<_0x569af7;_0x45b775++){const _0x113f1f=_0x26170c[_0x45b775];_0x28270c+=';\x20'+_0x113f1f;const _0x162baf=_0x26170c[_0x113f1f];_0x26170c['push'](_0x162baf),_0x569af7=_0x26170c['length'],_0x162baf!==!![]&&(_0x28270c+='='+_0x162baf);}_0xb38848['cookie']=_0x28270c;},'removeCookie':function(){return'dev';},'getCookie':function(_0x398750,_0x5b8af4){_0x398750=_0x398750||function(_0xf60125){return _0xf60125;};const _0x54623d=_0x398750(new RegExp('(?:^|;\x20)'+_0x5b8af4['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x14cdc4=function(_0x166e9b,_0x180076){_0x166e9b(++_0x180076);};return _0x14cdc4(_0x3b3dc1,_0x4aa1af),_0x54623d?decodeURIComponent(_0x54623d[0x1]):undefined;}},_0x18548e=function(){const _0x5f19e4=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5f19e4['test'](_0x1d84ec['removeCookie']['toString']());};_0x1d84ec['updateCookie']=_0x18548e;let _0x29fca0='';const _0x12b544=_0x1d84ec['updateCookie']();if(!_0x12b544)_0x1d84ec['setCookie'](['*'],'counter',0x1);else _0x12b544?_0x29fca0=_0x1d84ec['getCookie'](null,'counter'):_0x1d84ec['removeCookie']();};_0x330dd1();}(a245_0x3b3d,0x183));const a245_0x330d=function(_0x3d9fdf,_0x4aa1af){_0x3d9fdf=_0x3d9fdf-0x1ec;let _0x3b3dc1=a245_0x3b3d[_0x3d9fdf];return _0x3b3dc1;};const a245_0x94f5b=a245_0x330d,a245_0x18548e=function(){let _0x12b544=!![];return function(_0x26170c,_0x1e617f){const _0x44f43b=_0x12b544?function(){const _0x50efea=a245_0x330d;if(_0x1e617f){const _0xb38848=_0x1e617f[_0x50efea(0x1ef)](_0x26170c,arguments);return _0x1e617f=null,_0xb38848;}}:function(){};return _0x12b544=![],_0x44f43b;};}(),a245_0x1d84ec=a245_0x18548e(this,function(){const _0x28270c=function(){const _0x51be2b=a245_0x330d,_0x57af61=_0x28270c['constructor'](_0x51be2b(0x1ff))()[_0x51be2b(0x1fb)](_0x51be2b(0x1ee));return!_0x57af61[_0x51be2b(0x1f2)](a245_0x1d84ec);};return _0x28270c();});a245_0x1d84ec();'use strict';Object['defineProperty'](exports,a245_0x94f5b(0x1fd),{'value':!![]}),exports[a245_0x94f5b(0x1f6)]=exports['largestNeighbor']=exports[a245_0x94f5b(0x1f9)]=exports[a245_0x94f5b(0x1fc)]=exports['clamp']=exports['abbreviate']=void 0x0;const abbreviate=_0x45b775=>{const _0x4b7c95=a245_0x94f5b,_0x569af7=['','k','M','G','T','P','E','Z','Y'],_0x113f1f=Math[_0x4b7c95(0x1f4)](Math[_0x4b7c95(0x1ed)](_0x45b775))/0x3|0x0;if(_0x113f1f===0x0)return _0x45b775[_0x4b7c95(0x1f5)]();const _0x162baf=_0x45b775/Math[_0x4b7c95(0x1f0)](0xa,_0x113f1f*0x3);return _0x162baf['toFixed'](0x3)[_0x4b7c95(0x1f1)](/(?:\.0+|0+)$/,'')+_0x569af7[_0x113f1f];};exports['abbreviate']=abbreviate;const clamp=(_0x398750,_0x5b8af4,_0x54623d)=>{const _0x4a9412=a245_0x94f5b;return typeof _0x54623d!=='number'?[_0x5b8af4,_0x54623d]=[-Infinity,_0x5b8af4]:[_0x5b8af4,_0x54623d]=[Math[_0x4a9412(0x1f8)](_0x5b8af4,_0x54623d),Math[_0x4a9412(0x1f7)](_0x5b8af4,_0x54623d)],Math[_0x4a9412(0x1f7)](_0x5b8af4,Math[_0x4a9412(0x1f8)](_0x398750,_0x54623d));};exports['clamp']=clamp;const getRandomInt=(_0x14cdc4,_0xf60125)=>{const _0x51e690=a245_0x94f5b;return _0x14cdc4=Math[_0x51e690(0x201)](_0x14cdc4),_0xf60125=Math['floor'](_0xf60125),Math[_0x51e690(0x1f3)](Math[_0x51e690(0x200)]()*(_0xf60125-_0x14cdc4+0x1))+_0x14cdc4;};exports[a245_0x94f5b(0x1fc)]=getRandomInt;const inRange=(_0x166e9b,_0x180076,_0x5f19e4)=>{const _0x5b5ce7=a245_0x94f5b;return typeof _0x5f19e4!=='number'&&([_0x180076,_0x5f19e4]=[-Infinity,_0x180076]),_0x166e9b>=Math['min'](_0x180076,_0x5f19e4)&&_0x166e9b<=Math[_0x5b5ce7(0x1f7)](_0x180076,_0x5f19e4);};exports[a245_0x94f5b(0x1f9)]=inRange;const largestNeighbor=(_0x2806bc,_0x2e390e)=>{const _0x32aa3f=a245_0x94f5b;let _0x2f7dc0=Number[_0x32aa3f(0x1fe)];for(const _0x51af7f of _0x2e390e){if(_0x51af7f<_0x2f7dc0&&_0x51af7f>=_0x2806bc)_0x2f7dc0=_0x51af7f;}return _0x2f7dc0;};exports[a245_0x94f5b(0x1ec)]=largestNeighbor;const smallestNeighbor=(_0x275822,_0x1ebf56)=>{const _0x413d12=a245_0x94f5b;let _0x2b77fa=Number[_0x413d12(0x1fa)];for(const _0x1dd9ce of _0x1ebf56){if(_0x1dd9ce>_0x2b77fa&&_0x1dd9ce<=_0x275822)_0x2b77fa=_0x1dd9ce;}return _0x2b77fa;};exports['smallestNeighbor']=smallestNeighbor; \ No newline at end of file diff --git a/utils/omnic.js b/utils/omnic.js index 34cba0ed3..0861360c6 100644 --- a/utils/omnic.js +++ b/utils/omnic.js @@ -1 +1 @@ -const a245_0x1bed=['resolvePath','makeRequest','replace','GOLD','discord.js','266290969974931457','node-fetch','endsWith','then','Guild','fetchPremiumTier','active_patron','currently_entitled_amount_cents','__esModule','defineProperty','/patreon/patrons/','BASE_PATH','PremiumTier','PLATINUM','DIAMOND','return\x20/\x22\x20+\x20this\x20+\x20\x22/','default','patron_status','constructor','application/json','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x5b0d34,_0x18fb4e){const _0x1bed1f=function(_0x580d2c){while(--_0x580d2c){_0x5b0d34['push'](_0x5b0d34['shift']());}},_0x19340e=function(){const _0x4d945d={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1e9cb6,_0x3d34bb,_0x3809ee,_0x559bdd){_0x559bdd=_0x559bdd||{};let _0x180521=_0x3d34bb+'='+_0x3809ee,_0x55011a=0x0;for(let _0x306368=0x0,_0x5cf5a6=_0x1e9cb6['length'];_0x306368<_0x5cf5a6;_0x306368++){const _0x3368f6=_0x1e9cb6[_0x306368];_0x180521+=';\x20'+_0x3368f6;const _0x450b06=_0x1e9cb6[_0x3368f6];_0x1e9cb6['push'](_0x450b06),_0x5cf5a6=_0x1e9cb6['length'],_0x450b06!==!![]&&(_0x180521+='='+_0x450b06);}_0x559bdd['cookie']=_0x180521;},'removeCookie':function(){return'dev';},'getCookie':function(_0x1af9fb,_0x393202){_0x1af9fb=_0x1af9fb||function(_0x48e59f){return _0x48e59f;};const _0x3cb796=_0x1af9fb(new RegExp('(?:^|;\x20)'+_0x393202['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x226b35=function(_0x31201a,_0x2eb029){_0x31201a(++_0x2eb029);};return _0x226b35(_0x1bed1f,_0x18fb4e),_0x3cb796?decodeURIComponent(_0x3cb796[0x1]):undefined;}},_0x8bbcac=function(){const _0x2b2081=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x2b2081['test'](_0x4d945d['removeCookie']['toString']());};_0x4d945d['updateCookie']=_0x8bbcac;let _0x13f95b='';const _0x1cdd9e=_0x4d945d['updateCookie']();if(!_0x1cdd9e)_0x4d945d['setCookie'](['*'],'counter',0x1);else _0x1cdd9e?_0x13f95b=_0x4d945d['getCookie'](null,'counter'):_0x4d945d['removeCookie']();};_0x19340e();}(a245_0x1bed,0x9a));const a245_0x1934=function(_0x5b0d34,_0x18fb4e){_0x5b0d34=_0x5b0d34-0x182;let _0x1bed1f=a245_0x1bed[_0x5b0d34];return _0x1bed1f;};const _0x4f2073=a245_0x1934;'use strict';Object[_0x4f2073(0x192)](exports,_0x4f2073(0x191),{'value':!![]}),exports[_0x4f2073(0x18e)]=exports[_0x4f2073(0x195)]=exports[_0x4f2073(0x185)]=exports[_0x4f2073(0x184)]=exports['BASE_PATH']=void 0x0;const node_fetch_1=require(_0x4f2073(0x18a)),discord_js_1=require(_0x4f2073(0x188));exports[_0x4f2073(0x194)]='https://omnic.traction.one/';const resolvePath=_0x1cdd9e=>exports['BASE_PATH']+(exports[_0x4f2073(0x194)][_0x4f2073(0x18b)]('/')?_0x1cdd9e[_0x4f2073(0x186)](/^\//g,''):_0x1cdd9e);exports[_0x4f2073(0x184)]=resolvePath;const makeRequest=(_0x1e9cb6,_0x3d34bb)=>{const _0xbfea12=_0x4f2073,_0x3809ee={'method':'GET','headers':{'Accepts':_0xbfea12(0x182),'Content-Type':_0xbfea12(0x182),'User-Agent':'Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)'},..._0x3d34bb};return node_fetch_1[_0xbfea12(0x199)](exports[_0xbfea12(0x184)](_0x1e9cb6),_0x3809ee);};exports[_0x4f2073(0x185)]=makeRequest;var PremiumTier;(function(_0x559bdd){const _0x356023=_0x4f2073,_0x180521=function(){let _0x306368=!![];return function(_0x5cf5a6,_0x3368f6){const _0x450b06=_0x306368?function(){if(_0x3368f6){const _0x1af9fb=_0x3368f6['apply'](_0x5cf5a6,arguments);return _0x3368f6=null,_0x1af9fb;}}:function(){};return _0x306368=![],_0x450b06;};}(),_0x55011a=_0x180521(this,function(){const _0x393202=function(){const _0x3690d=a245_0x1934,_0x3cb796=_0x393202[_0x3690d(0x19b)](_0x3690d(0x198))()[_0x3690d(0x19b)](_0x3690d(0x183));return!_0x3cb796['test'](_0x55011a);};return _0x393202();});_0x55011a(),_0x559bdd[_0x559bdd[_0x356023(0x197)]=0x1]='DIAMOND',_0x559bdd[_0x559bdd[_0x356023(0x196)]=0x2]=_0x356023(0x196),_0x559bdd[_0x559bdd[_0x356023(0x187)]=0x3]=_0x356023(0x187);}(PremiumTier=exports[_0x4f2073(0x195)]||(exports[_0x4f2073(0x195)]={})));const fetchPremiumTier=async _0x226b35=>{const _0x100237=_0x4f2073,_0x48e59f=_0x226b35 instanceof discord_js_1['User']||_0x226b35 instanceof discord_js_1['GuildMember']?_0x226b35['id']:_0x226b35 instanceof discord_js_1[_0x100237(0x18d)]?_0x226b35['ownerID']:_0x226b35;if(_0x48e59f===_0x100237(0x189))return PremiumTier[_0x100237(0x197)];const _0x31201a=await exports[_0x100237(0x185)](_0x100237(0x193)+_0x48e59f)[_0x100237(0x18c)](_0x2eb029=>_0x2eb029['json']());if(_0x31201a[_0x100237(0x19a)]===_0x100237(0x18f)&&_0x31201a['currently_entitled_amount_cents']>=0x3e8)return PremiumTier['DIAMOND'];if(_0x31201a[_0x100237(0x19a)]===_0x100237(0x18f)&&_0x31201a[_0x100237(0x190)]>=0x1f4)return PremiumTier['PLATINUM'];if(_0x31201a[_0x100237(0x19a)]==='active_patron'&&_0x31201a[_0x100237(0x190)]>=0x12c)return PremiumTier[_0x100237(0x187)];};exports['fetchPremiumTier']=fetchPremiumTier; \ No newline at end of file +const a246_0xb3bb=['GET','DIAMOND','discord.js','active_patron','/patreon/patrons/','apply','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','User','defineProperty','GOLD','patron_status','Guild','replace','PLATINUM','then','currently_entitled_amount_cents','PremiumTier','default','resolvePath','endsWith','https://omnic.traction.one/','fetchPremiumTier','constructor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','application/json','node-fetch','test','makeRequest','BASE_PATH'];(function(_0x1537d0,_0xf316c9){const _0xb3bb64=function(_0x1b0d1a){while(--_0x1b0d1a){_0x1537d0['push'](_0x1537d0['shift']());}},_0x5ac59f=function(){const _0x5b6ac7={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x26f1ad,_0x1983fa,_0x4f0481,_0x507f41){_0x507f41=_0x507f41||{};let _0x24700f=_0x1983fa+'='+_0x4f0481,_0x41de06=0x0;for(let _0x76903c=0x0,_0x5f017d=_0x26f1ad['length'];_0x76903c<_0x5f017d;_0x76903c++){const _0x3c2512=_0x26f1ad[_0x76903c];_0x24700f+=';\x20'+_0x3c2512;const _0x5ee15e=_0x26f1ad[_0x3c2512];_0x26f1ad['push'](_0x5ee15e),_0x5f017d=_0x26f1ad['length'],_0x5ee15e!==!![]&&(_0x24700f+='='+_0x5ee15e);}_0x507f41['cookie']=_0x24700f;},'removeCookie':function(){return'dev';},'getCookie':function(_0x28fc5a,_0x19a2f7){_0x28fc5a=_0x28fc5a||function(_0x25b1bb){return _0x25b1bb;};const _0x996625=_0x28fc5a(new RegExp('(?:^|;\x20)'+_0x19a2f7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x373c34=function(_0x2ee392,_0x3385f0){_0x2ee392(++_0x3385f0);};return _0x373c34(_0xb3bb64,_0xf316c9),_0x996625?decodeURIComponent(_0x996625[0x1]):undefined;}},_0x4f13bc=function(){const _0x3b1a81=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3b1a81['test'](_0x5b6ac7['removeCookie']['toString']());};_0x5b6ac7['updateCookie']=_0x4f13bc;let _0x168a95='';const _0x2dd82e=_0x5b6ac7['updateCookie']();if(!_0x2dd82e)_0x5b6ac7['setCookie'](['*'],'counter',0x1);else _0x2dd82e?_0x168a95=_0x5b6ac7['getCookie'](null,'counter'):_0x5b6ac7['removeCookie']();};_0x5ac59f();}(a246_0xb3bb,0x108));const a246_0x5ac5=function(_0x1537d0,_0xf316c9){_0x1537d0=_0x1537d0-0x156;let _0xb3bb64=a246_0xb3bb[_0x1537d0];return _0xb3bb64;};const a246_0x2a87fc=a246_0x5ac5;'use strict';Object[a246_0x2a87fc(0x15b)](exports,'__esModule',{'value':!![]}),exports[a246_0x2a87fc(0x168)]=exports[a246_0x2a87fc(0x163)]=exports[a246_0x2a87fc(0x16e)]=exports[a246_0x2a87fc(0x165)]=exports[a246_0x2a87fc(0x16f)]=void 0x0;const node_fetch_1=require(a246_0x2a87fc(0x16c)),discord_js_1=require(a246_0x2a87fc(0x172));exports[a246_0x2a87fc(0x16f)]=a246_0x2a87fc(0x167);const resolvePath=_0x2dd82e=>exports[a246_0x2a87fc(0x16f)]+(exports['BASE_PATH'][a246_0x2a87fc(0x166)]('/')?_0x2dd82e[a246_0x2a87fc(0x15f)](/^\//g,''):_0x2dd82e);exports[a246_0x2a87fc(0x165)]=resolvePath;const makeRequest=(_0x26f1ad,_0x1983fa)=>{const _0x758647=a246_0x2a87fc,_0x4f0481={'method':_0x758647(0x170),'headers':{'Accepts':_0x758647(0x16b),'Content-Type':_0x758647(0x16b),'User-Agent':'Bastion\x20(Discord\x20Bot;\x20https://bastion.traction.one)'},..._0x1983fa};return node_fetch_1[_0x758647(0x164)](exports['resolvePath'](_0x26f1ad),_0x4f0481);};exports[a246_0x2a87fc(0x16e)]=makeRequest;var PremiumTier;(function(_0x507f41){const _0x31c29b=a246_0x2a87fc,_0x24700f=function(){let _0x76903c=!![];return function(_0x5f017d,_0x3c2512){const _0x5ee15e=_0x76903c?function(){const _0x5c3180=a246_0x5ac5;if(_0x3c2512){const _0x28fc5a=_0x3c2512[_0x5c3180(0x158)](_0x5f017d,arguments);return _0x3c2512=null,_0x28fc5a;}}:function(){};return _0x76903c=![],_0x5ee15e;};}(),_0x41de06=_0x24700f(this,function(){const _0x19a2f7=function(){const _0x560ad1=a246_0x5ac5,_0x996625=_0x19a2f7[_0x560ad1(0x169)](_0x560ad1(0x16a))()[_0x560ad1(0x169)](_0x560ad1(0x159));return!_0x996625[_0x560ad1(0x16d)](_0x41de06);};return _0x19a2f7();});_0x41de06(),_0x507f41[_0x507f41[_0x31c29b(0x171)]=0x1]=_0x31c29b(0x171),_0x507f41[_0x507f41[_0x31c29b(0x160)]=0x2]=_0x31c29b(0x160),_0x507f41[_0x507f41['GOLD']=0x3]=_0x31c29b(0x15c);}(PremiumTier=exports[a246_0x2a87fc(0x163)]||(exports['PremiumTier']={})));const fetchPremiumTier=async _0x373c34=>{const _0x5e9d7a=a246_0x2a87fc,_0x25b1bb=_0x373c34 instanceof discord_js_1[_0x5e9d7a(0x15a)]||_0x373c34 instanceof discord_js_1['GuildMember']?_0x373c34['id']:_0x373c34 instanceof discord_js_1[_0x5e9d7a(0x15e)]?_0x373c34['ownerID']:_0x373c34;if(_0x25b1bb==='266290969974931457')return PremiumTier['DIAMOND'];const _0x2ee392=await exports[_0x5e9d7a(0x16e)](_0x5e9d7a(0x157)+_0x25b1bb)[_0x5e9d7a(0x161)](_0x3385f0=>_0x3385f0['json']());if(_0x2ee392[_0x5e9d7a(0x15d)]==='active_patron'&&_0x2ee392[_0x5e9d7a(0x162)]>=0x3e8)return PremiumTier[_0x5e9d7a(0x171)];if(_0x2ee392[_0x5e9d7a(0x15d)]===_0x5e9d7a(0x156)&&_0x2ee392[_0x5e9d7a(0x162)]>=0x1f4)return PremiumTier['PLATINUM'];if(_0x2ee392['patron_status']==='active_patron'&&_0x2ee392[_0x5e9d7a(0x162)]>=0x12c)return PremiumTier[_0x5e9d7a(0x15c)];};exports[a246_0x2a87fc(0x168)]=fetchPremiumTier; \ No newline at end of file diff --git a/utils/pagination.js b/utils/pagination.js index 85b6479bb..f009febc9 100644 --- a/utils/pagination.js +++ b/utils/pagination.js @@ -1 +1 @@ -const a246_0x2272=['__esModule','defineProperty','length','constructor','paginate','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','floor','return\x20/\x22\x20+\x20this\x20+\x20\x22/','ceil','test','apply'];(function(_0x1e12bc,_0x12028d){const _0x227211=function(_0x447914){while(--_0x447914){_0x1e12bc['push'](_0x1e12bc['shift']());}},_0x272ebe=function(){const _0x1deabd={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0xe6412,_0x3a8309,_0x4b7328,_0x135998){_0x135998=_0x135998||{};let _0x2024e3=_0x3a8309+'='+_0x4b7328,_0x36d129=0x0;for(let _0x33d22d=0x0,_0x3f7dc6=_0xe6412['length'];_0x33d22d<_0x3f7dc6;_0x33d22d++){const _0x43d9c2=_0xe6412[_0x33d22d];_0x2024e3+=';\x20'+_0x43d9c2;const _0x15ff11=_0xe6412[_0x43d9c2];_0xe6412['push'](_0x15ff11),_0x3f7dc6=_0xe6412['length'],_0x15ff11!==!![]&&(_0x2024e3+='='+_0x15ff11);}_0x135998['cookie']=_0x2024e3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3806df,_0x4bbce9){_0x3806df=_0x3806df||function(_0x400215){return _0x400215;};const _0xecd344=_0x3806df(new RegExp('(?:^|;\x20)'+_0x4bbce9['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1b2ab5=function(_0x72e0f4,_0x38410d){_0x72e0f4(++_0x38410d);};return _0x1b2ab5(_0x227211,_0x12028d),_0xecd344?decodeURIComponent(_0xecd344[0x1]):undefined;}},_0x3af696=function(){const _0x52ee5a=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x52ee5a['test'](_0x1deabd['removeCookie']['toString']());};_0x1deabd['updateCookie']=_0x3af696;let _0x479201='';const _0x255428=_0x1deabd['updateCookie']();if(!_0x255428)_0x1deabd['setCookie'](['*'],'counter',0x1);else _0x255428?_0x479201=_0x1deabd['getCookie'](null,'counter'):_0x1deabd['removeCookie']();};_0x272ebe();}(a246_0x2272,0x152));const a246_0x272e=function(_0x1e12bc,_0x12028d){_0x1e12bc=_0x1e12bc-0x112;let _0x227211=a246_0x2272[_0x1e12bc];return _0x227211;};const _0x1e09d7=a246_0x272e,a246_0x3af696=function(){let _0x255428=!![];return function(_0xe6412,_0x3a8309){const _0x4b7328=_0x255428?function(){const _0x3e9b73=a246_0x272e;if(_0x3a8309){const _0x135998=_0x3a8309[_0x3e9b73(0x114)](_0xe6412,arguments);return _0x3a8309=null,_0x135998;}}:function(){};return _0x255428=![],_0x4b7328;};}(),a246_0x1deabd=a246_0x3af696(this,function(){const _0x2024e3=function(){const _0x3a944d=a246_0x272e,_0x36d129=_0x2024e3['constructor'](_0x3a944d(0x11c))()[_0x3a944d(0x118)](_0x3a944d(0x11a));return!_0x36d129[_0x3a944d(0x113)](a246_0x1deabd);};return _0x2024e3();});a246_0x1deabd();'use strict';Object[_0x1e09d7(0x116)](exports,_0x1e09d7(0x115),{'value':!![]}),exports['paginate']=void 0x0;const paginate=(_0x33d22d,_0x3f7dc6)=>{const _0x21ef9e=_0x1e09d7,_0x43d9c2=Math[_0x21ef9e(0x112)](_0x33d22d[_0x21ef9e(0x117)]/0xa);return _0x3f7dc6=Math[_0x21ef9e(0x11b)](_0x3f7dc6>0x0&&_0x3f7dc6<=_0x43d9c2?_0x3f7dc6:0x1),{'page':_0x43d9c2?_0x3f7dc6:0x0,'pages':_0x43d9c2,'items':_0x33d22d['slice']((_0x3f7dc6-0x1)*0xa,(_0x3f7dc6-0x1)*0xa+0xa)};};exports[_0x1e09d7(0x119)]=paginate; \ No newline at end of file +const a247_0x1ec4=['paginate','defineProperty','slice','ceil','length','return\x20/\x22\x20+\x20this\x20+\x20\x22/'];(function(_0x3976c8,_0x39093f){const _0x1ec442=function(_0x20c1ca){while(--_0x20c1ca){_0x3976c8['push'](_0x3976c8['shift']());}},_0x279bd1=function(){const _0xf7e08a={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x39ed8b,_0x30015c,_0x58aff2,_0x49ae68){_0x49ae68=_0x49ae68||{};let _0x3913ff=_0x30015c+'='+_0x58aff2,_0x2724cb=0x0;for(let _0x297df8=0x0,_0x2469fb=_0x39ed8b['length'];_0x297df8<_0x2469fb;_0x297df8++){const _0x55962b=_0x39ed8b[_0x297df8];_0x3913ff+=';\x20'+_0x55962b;const _0x488bbc=_0x39ed8b[_0x55962b];_0x39ed8b['push'](_0x488bbc),_0x2469fb=_0x39ed8b['length'],_0x488bbc!==!![]&&(_0x3913ff+='='+_0x488bbc);}_0x49ae68['cookie']=_0x3913ff;},'removeCookie':function(){return'dev';},'getCookie':function(_0x553d2b,_0x325d8c){_0x553d2b=_0x553d2b||function(_0x4b8935){return _0x4b8935;};const _0x54248a=_0x553d2b(new RegExp('(?:^|;\x20)'+_0x325d8c['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x57424b=function(_0x5f0b99,_0xf3dde1){_0x5f0b99(++_0xf3dde1);};return _0x57424b(_0x1ec442,_0x39093f),_0x54248a?decodeURIComponent(_0x54248a[0x1]):undefined;}},_0x49c7a1=function(){const _0x12f027=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x12f027['test'](_0xf7e08a['removeCookie']['toString']());};_0xf7e08a['updateCookie']=_0x49c7a1;let _0x2de61a='';const _0x472276=_0xf7e08a['updateCookie']();if(!_0x472276)_0xf7e08a['setCookie'](['*'],'counter',0x1);else _0x472276?_0x2de61a=_0xf7e08a['getCookie'](null,'counter'):_0xf7e08a['removeCookie']();};_0x279bd1();}(a247_0x1ec4,0x104));const a247_0x279b=function(_0x3976c8,_0x39093f){_0x3976c8=_0x3976c8-0x129;let _0x1ec442=a247_0x1ec4[_0x3976c8];return _0x1ec442;};const a247_0x510f8b=a247_0x279b,a247_0x49c7a1=function(){let _0x472276=!![];return function(_0x39ed8b,_0x30015c){const _0x58aff2=_0x472276?function(){if(_0x30015c){const _0x49ae68=_0x30015c['apply'](_0x39ed8b,arguments);return _0x30015c=null,_0x49ae68;}}:function(){};return _0x472276=![],_0x58aff2;};}(),a247_0xf7e08a=a247_0x49c7a1(this,function(){const _0x3913ff=function(){const _0xbc5b04=a247_0x279b,_0x2724cb=_0x3913ff['constructor'](_0xbc5b04(0x12c))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x2724cb['test'](a247_0xf7e08a);};return _0x3913ff();});a247_0xf7e08a();'use strict';Object[a247_0x510f8b(0x12e)](exports,'__esModule',{'value':!![]}),exports[a247_0x510f8b(0x12d)]=void 0x0;const paginate=(_0x297df8,_0x2469fb)=>{const _0x71c750=a247_0x510f8b,_0x55962b=Math[_0x71c750(0x12a)](_0x297df8[_0x71c750(0x12b)]/0xa);return _0x2469fb=Math['floor'](_0x2469fb>0x0&&_0x2469fb<=_0x55962b?_0x2469fb:0x1),{'page':_0x55962b?_0x2469fb:0x0,'pages':_0x55962b,'items':_0x297df8[_0x71c750(0x129)]((_0x2469fb-0x1)*0xa,(_0x2469fb-0x1)*0xa+0xa)};};exports[a247_0x510f8b(0x12d)]=paginate; \ No newline at end of file diff --git a/utils/progress.js b/utils/progress.js index 0876e2d4c..ccff4e3d4 100644 --- a/utils/progress.js +++ b/utils/progress.js @@ -1 +1 @@ -const a247_0x17eb=['./numbers','round','constructor','clamp','test','__esModule','return\x20/\x22\x20+\x20this\x20+\x20\x22/','filled','repeat'];(function(_0x4b3dd3,_0x4031cd){const _0x17eb1e=function(_0x4ed686){while(--_0x4ed686){_0x4b3dd3['push'](_0x4b3dd3['shift']());}},_0x4c8bbc=function(){const _0x388f54={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x5b5063,_0x482c19,_0x3ec6ff,_0xd8fef1){_0xd8fef1=_0xd8fef1||{};let _0x97b839=_0x482c19+'='+_0x3ec6ff,_0x11c235=0x0;for(let _0x48de5e=0x0,_0x1e553c=_0x5b5063['length'];_0x48de5e<_0x1e553c;_0x48de5e++){const _0x3871d3=_0x5b5063[_0x48de5e];_0x97b839+=';\x20'+_0x3871d3;const _0x7eca0e=_0x5b5063[_0x3871d3];_0x5b5063['push'](_0x7eca0e),_0x1e553c=_0x5b5063['length'],_0x7eca0e!==!![]&&(_0x97b839+='='+_0x7eca0e);}_0xd8fef1['cookie']=_0x97b839;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4d07d8,_0x222fad){_0x4d07d8=_0x4d07d8||function(_0xc2d430){return _0xc2d430;};const _0x442957=_0x4d07d8(new RegExp('(?:^|;\x20)'+_0x222fad['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1da68d=function(_0x5a0f08,_0x493414){_0x5a0f08(++_0x493414);};return _0x1da68d(_0x17eb1e,_0x4031cd),_0x442957?decodeURIComponent(_0x442957[0x1]):undefined;}},_0x2d54f8=function(){const _0x44bdc7=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x44bdc7['test'](_0x388f54['removeCookie']['toString']());};_0x388f54['updateCookie']=_0x2d54f8;let _0x5414e2='';const _0x19ba8e=_0x388f54['updateCookie']();if(!_0x19ba8e)_0x388f54['setCookie'](['*'],'counter',0x1);else _0x19ba8e?_0x5414e2=_0x388f54['getCookie'](null,'counter'):_0x388f54['removeCookie']();};_0x4c8bbc();}(a247_0x17eb,0x87));const a247_0x4c8b=function(_0x4b3dd3,_0x4031cd){_0x4b3dd3=_0x4b3dd3-0x99;let _0x17eb1e=a247_0x17eb[_0x4b3dd3];return _0x17eb1e;};const _0x4e529c=a247_0x4c8b,a247_0x2d54f8=function(){let _0x19ba8e=!![];return function(_0x5b5063,_0x482c19){const _0x3ec6ff=_0x19ba8e?function(){if(_0x482c19){const _0xd8fef1=_0x482c19['apply'](_0x5b5063,arguments);return _0x482c19=null,_0xd8fef1;}}:function(){};return _0x19ba8e=![],_0x3ec6ff;};}(),a247_0x388f54=a247_0x2d54f8(this,function(){const _0x97b839=function(){const _0x1b7ab1=a247_0x4c8b,_0x11c235=_0x97b839[_0x1b7ab1(0x9b)](_0x1b7ab1(0x9f))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x11c235[_0x1b7ab1(0x9d)](a247_0x388f54);};return _0x97b839();});a247_0x388f54();'use strict';Object['defineProperty'](exports,_0x4e529c(0x9e),{'value':!![]});const numbers=require(_0x4e529c(0x99));exports['default']=(_0x48de5e=0x0,_0x1e553c=0xa)=>{const _0x40f8ab=_0x4e529c;_0x48de5e=numbers[_0x40f8ab(0x9c)](_0x48de5e,0x0,0x64);const _0x3871d3={'filled':'#','unfilled':'-'},_0x7eca0e=Math[_0x40f8ab(0x9a)](_0x48de5e/0x64*_0x1e553c);return'['+_0x3871d3[_0x40f8ab(0xa0)]['repeat'](_0x7eca0e)+_0x3871d3['unfilled'][_0x40f8ab(0xa1)](_0x1e553c-_0x7eca0e)+']';}; \ No newline at end of file +const a248_0x454a=['repeat','return\x20/\x22\x20+\x20this\x20+\x20\x22/','filled','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','unfilled','round','constructor','defineProperty','__esModule','./numbers','apply','test'];(function(_0x38a5cb,_0x590ec0){const _0x454a8b=function(_0xa39ec9){while(--_0xa39ec9){_0x38a5cb['push'](_0x38a5cb['shift']());}},_0x3ee693=function(){const _0xaa1ddb={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1980bb,_0x1edebe,_0x469bfa,_0x2cb268){_0x2cb268=_0x2cb268||{};let _0x58ff69=_0x1edebe+'='+_0x469bfa,_0x37a3f6=0x0;for(let _0x1f2d7e=0x0,_0x5bcece=_0x1980bb['length'];_0x1f2d7e<_0x5bcece;_0x1f2d7e++){const _0x1951be=_0x1980bb[_0x1f2d7e];_0x58ff69+=';\x20'+_0x1951be;const _0x46e31d=_0x1980bb[_0x1951be];_0x1980bb['push'](_0x46e31d),_0x5bcece=_0x1980bb['length'],_0x46e31d!==!![]&&(_0x58ff69+='='+_0x46e31d);}_0x2cb268['cookie']=_0x58ff69;},'removeCookie':function(){return'dev';},'getCookie':function(_0x2702d6,_0x1b1665){_0x2702d6=_0x2702d6||function(_0x3bdbc7){return _0x3bdbc7;};const _0x7448c6=_0x2702d6(new RegExp('(?:^|;\x20)'+_0x1b1665['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x4e7adb=function(_0x5d5bc0,_0x506760){_0x5d5bc0(++_0x506760);};return _0x4e7adb(_0x454a8b,_0x590ec0),_0x7448c6?decodeURIComponent(_0x7448c6[0x1]):undefined;}},_0x28ea5b=function(){const _0x6de31d=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x6de31d['test'](_0xaa1ddb['removeCookie']['toString']());};_0xaa1ddb['updateCookie']=_0x28ea5b;let _0x31d2d0='';const _0x2cd29e=_0xaa1ddb['updateCookie']();if(!_0x2cd29e)_0xaa1ddb['setCookie'](['*'],'counter',0x1);else _0x2cd29e?_0x31d2d0=_0xaa1ddb['getCookie'](null,'counter'):_0xaa1ddb['removeCookie']();};_0x3ee693();}(a248_0x454a,0x126));const a248_0x3ee6=function(_0x38a5cb,_0x590ec0){_0x38a5cb=_0x38a5cb-0x111;let _0x454a8b=a248_0x454a[_0x38a5cb];return _0x454a8b;};const a248_0x48a8a9=a248_0x3ee6,a248_0x28ea5b=function(){let _0x2cd29e=!![];return function(_0x1980bb,_0x1edebe){const _0x469bfa=_0x2cd29e?function(){const _0x3fa445=a248_0x3ee6;if(_0x1edebe){const _0x2cb268=_0x1edebe[_0x3fa445(0x115)](_0x1980bb,arguments);return _0x1edebe=null,_0x2cb268;}}:function(){};return _0x2cd29e=![],_0x469bfa;};}(),a248_0xaa1ddb=a248_0x28ea5b(this,function(){const _0x58ff69=function(){const _0x1cad8e=a248_0x3ee6,_0x37a3f6=_0x58ff69[_0x1cad8e(0x111)](_0x1cad8e(0x118))()['constructor'](_0x1cad8e(0x11a));return!_0x37a3f6[_0x1cad8e(0x116)](a248_0xaa1ddb);};return _0x58ff69();});a248_0xaa1ddb();'use strict';Object[a248_0x48a8a9(0x112)](exports,a248_0x48a8a9(0x113),{'value':!![]});const numbers=require(a248_0x48a8a9(0x114));exports['default']=(_0x1f2d7e=0x0,_0x5bcece=0xa)=>{const _0x2bd7d9=a248_0x48a8a9;_0x1f2d7e=numbers['clamp'](_0x1f2d7e,0x0,0x64);const _0x1951be={'filled':'#','unfilled':'-'},_0x46e31d=Math[_0x2bd7d9(0x11c)](_0x1f2d7e/0x64*_0x5bcece);return'['+_0x1951be[_0x2bd7d9(0x119)][_0x2bd7d9(0x117)](_0x46e31d)+_0x1951be[_0x2bd7d9(0x11b)][_0x2bd7d9(0x117)](_0x5bcece-_0x46e31d)+']';}; \ No newline at end of file diff --git a/utils/regex.js b/utils/regex.js index 9a0b80128..20e7fe948 100644 --- a/utils/regex.js +++ b/utils/regex.js @@ -1 +1 @@ -var a248_0x67ec=['REGEX_RGB','REGEX_CMYK','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','URI','return\x20/\x22\x20+\x20this\x20+\x20\x22/','SERVER_INVITE'];(function(_0x2a04ee,_0x1fa2cb){var _0x67ece1=function(_0x44b908){while(--_0x44b908){_0x2a04ee['push'](_0x2a04ee['shift']());}},_0x276555=function(){var _0x4b73b6={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1f0d78,_0x328312,_0x360245,_0x31b060){_0x31b060=_0x31b060||{};var _0x16baa3=_0x328312+'='+_0x360245,_0x2087c4=0x0;for(var _0x4ec986=0x0,_0x3d2236=_0x1f0d78['length'];_0x4ec986<_0x3d2236;_0x4ec986++){var _0xf55a82=_0x1f0d78[_0x4ec986];_0x16baa3+=';\x20'+_0xf55a82;var _0x6927f=_0x1f0d78[_0xf55a82];_0x1f0d78['push'](_0x6927f),_0x3d2236=_0x1f0d78['length'],_0x6927f!==!![]&&(_0x16baa3+='='+_0x6927f);}_0x31b060['cookie']=_0x16baa3;},'removeCookie':function(){return'dev';},'getCookie':function(_0x49ad0a,_0x40f955){_0x49ad0a=_0x49ad0a||function(_0x566ef1){return _0x566ef1;};var _0x415df4=_0x49ad0a(new RegExp('(?:^|;\x20)'+_0x40f955['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x8724=function(_0x4cd231,_0x51f0ab){_0x4cd231(++_0x51f0ab);};return _0x8724(_0x67ece1,_0x1fa2cb),_0x415df4?decodeURIComponent(_0x415df4[0x1]):undefined;}},_0xa50e96=function(){var _0x54e4f3=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x54e4f3['test'](_0x4b73b6['removeCookie']['toString']());};_0x4b73b6['updateCookie']=_0xa50e96;var _0x45409d='';var _0x3647ee=_0x4b73b6['updateCookie']();if(!_0x3647ee)_0x4b73b6['setCookie'](['*'],'counter',0x1);else _0x3647ee?_0x45409d=_0x4b73b6['getCookie'](null,'counter'):_0x4b73b6['removeCookie']();};_0x276555();}(a248_0x67ec,0x1c0));var a248_0x2765=function(_0x2a04ee,_0x1fa2cb){_0x2a04ee=_0x2a04ee-0x17d;var _0x67ece1=a248_0x67ec[_0x2a04ee];return _0x67ece1;};var _0x102367=a248_0x2765,a248_0xa50e96=function(){var _0x3647ee=!![];return function(_0x1f0d78,_0x328312){var _0x360245=_0x3647ee?function(){if(_0x328312){var _0x31b060=_0x328312['apply'](_0x1f0d78,arguments);return _0x328312=null,_0x31b060;}}:function(){};return _0x3647ee=![],_0x360245;};}(),a248_0x4b73b6=a248_0xa50e96(this,function(){var _0x16baa3=function(){var _0x59f33c=a248_0x2765,_0x2087c4=_0x16baa3[_0x59f33c(0x17f)](_0x59f33c(0x182))()[_0x59f33c(0x17f)](_0x59f33c(0x180));return!_0x2087c4['test'](a248_0x4b73b6);};return _0x16baa3();});a248_0x4b73b6();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['REGEX_HEX']=exports[_0x102367(0x17d)]=exports[_0x102367(0x17e)]=exports[_0x102367(0x181)]=exports[_0x102367(0x183)]=void 0x0,exports[_0x102367(0x183)]=/(https:\/\/)?(www\.)?(discord\.gg|discordapp\.com\/invite|discord\.com\/invite)\/([a-z0-9-.]+)?/i,exports[_0x102367(0x181)]=/((([A-Za-z]{3,9}:(?:\/\/))(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/i,exports[_0x102367(0x17e)]=/^(\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100)$/,exports[_0x102367(0x17d)]=/^(\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 a249_0x5795=['return\x20/\x22\x20+\x20this\x20+\x20\x22/','SERVER_INVITE','REGEX_HEX','__esModule','apply','constructor','test','URI','REGEX_RGB','REGEX_CMYK','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}'];(function(_0x14a83e,_0x2a2fd1){var _0x57954a=function(_0x29ea22){while(--_0x29ea22){_0x14a83e['push'](_0x14a83e['shift']());}},_0x13ef1d=function(){var _0xead8ae={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x198cb4,_0x575b29,_0x3ba32a,_0x15b04f){_0x15b04f=_0x15b04f||{};var _0x1d1fad=_0x575b29+'='+_0x3ba32a,_0x1b199a=0x0;for(var _0x3bc447=0x0,_0x5a5492=_0x198cb4['length'];_0x3bc447<_0x5a5492;_0x3bc447++){var _0x4cafb8=_0x198cb4[_0x3bc447];_0x1d1fad+=';\x20'+_0x4cafb8;var _0x1f1003=_0x198cb4[_0x4cafb8];_0x198cb4['push'](_0x1f1003),_0x5a5492=_0x198cb4['length'],_0x1f1003!==!![]&&(_0x1d1fad+='='+_0x1f1003);}_0x15b04f['cookie']=_0x1d1fad;},'removeCookie':function(){return'dev';},'getCookie':function(_0x5d70db,_0x2e3993){_0x5d70db=_0x5d70db||function(_0x5e5f2f){return _0x5e5f2f;};var _0x1dfd41=_0x5d70db(new RegExp('(?:^|;\x20)'+_0x2e3993['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x2e712d=function(_0x2ebba9,_0x146268){_0x2ebba9(++_0x146268);};return _0x2e712d(_0x57954a,_0x2a2fd1),_0x1dfd41?decodeURIComponent(_0x1dfd41[0x1]):undefined;}},_0x49e8e7=function(){var _0x4cda61=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x4cda61['test'](_0xead8ae['removeCookie']['toString']());};_0xead8ae['updateCookie']=_0x49e8e7;var _0x4da2fe='';var _0x29c872=_0xead8ae['updateCookie']();if(!_0x29c872)_0xead8ae['setCookie'](['*'],'counter',0x1);else _0x29c872?_0x4da2fe=_0xead8ae['getCookie'](null,'counter'):_0xead8ae['removeCookie']();};_0x13ef1d();}(a249_0x5795,0x8e));var a249_0x13ef=function(_0x14a83e,_0x2a2fd1){_0x14a83e=_0x14a83e-0x1da;var _0x57954a=a249_0x5795[_0x14a83e];return _0x57954a;};var a249_0x3bfee3=a249_0x13ef,a249_0x49e8e7=function(){var _0x29c872=!![];return function(_0x198cb4,_0x575b29){var _0x3ba32a=_0x29c872?function(){var _0x474fd3=a249_0x13ef;if(_0x575b29){var _0x15b04f=_0x575b29[_0x474fd3(0x1df)](_0x198cb4,arguments);return _0x575b29=null,_0x15b04f;}}:function(){};return _0x29c872=![],_0x3ba32a;};}(),a249_0xead8ae=a249_0x49e8e7(this,function(){var _0x1d1fad=function(){var _0x7e0a56=a249_0x13ef,_0x1b199a=_0x1d1fad['constructor'](_0x7e0a56(0x1db))()[_0x7e0a56(0x1e0)](_0x7e0a56(0x1da));return!_0x1b199a[_0x7e0a56(0x1e1)](a249_0xead8ae);};return _0x1d1fad();});a249_0xead8ae();'use strict';Object['defineProperty'](exports,a249_0x3bfee3(0x1de),{'value':!![]}),exports['REGEX_HEX']=exports['REGEX_RGB']=exports[a249_0x3bfee3(0x1e4)]=exports[a249_0x3bfee3(0x1e2)]=exports[a249_0x3bfee3(0x1dc)]=void 0x0,exports[a249_0x3bfee3(0x1dc)]=/(https:\/\/)?(www\.)?(discord\.gg|discordapp\.com\/invite|discord\.com\/invite)\/([a-z0-9-.]+)?/i,exports[a249_0x3bfee3(0x1e2)]=/((([A-Za-z]{3,9}:(?:\/\/))(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/i,exports[a249_0x3bfee3(0x1e4)]=/^(\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100) (\d{1,2}|100)$/,exports[a249_0x3bfee3(0x1e3)]=/^(\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[a249_0x3bfee3(0x1dd)]=/^#?(?:(?:([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 deb835f9c..c50491368 100644 --- a/utils/snowflake.js +++ b/utils/snowflake.js @@ -1 +1 @@ -const a249_0x48d7=['@bastion/tesseract','deconstruct','./numbers','inRange','string','isValid','SnowflakeUtil','timestamp','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','test','constructor'];(function(_0xccb7d2,_0xa676ac){const _0x48d787=function(_0x2e0d8c){while(--_0x2e0d8c){_0xccb7d2['push'](_0xccb7d2['shift']());}},_0xebb108=function(){const _0x3ce7e9={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x4b53d6,_0x5e6932,_0x264699,_0x3a2360){_0x3a2360=_0x3a2360||{};let _0x22d438=_0x5e6932+'='+_0x264699,_0xc7faa4=0x0;for(let _0x4b5ef2=0x0,_0x537e6a=_0x4b53d6['length'];_0x4b5ef2<_0x537e6a;_0x4b5ef2++){const _0x597523=_0x4b53d6[_0x4b5ef2];_0x22d438+=';\x20'+_0x597523;const _0x2d5a84=_0x4b53d6[_0x597523];_0x4b53d6['push'](_0x2d5a84),_0x537e6a=_0x4b53d6['length'],_0x2d5a84!==!![]&&(_0x22d438+='='+_0x2d5a84);}_0x3a2360['cookie']=_0x22d438;},'removeCookie':function(){return'dev';},'getCookie':function(_0x3f6db9,_0x55f2c3){_0x3f6db9=_0x3f6db9||function(_0xbbf821){return _0xbbf821;};const _0x1e084c=_0x3f6db9(new RegExp('(?:^|;\x20)'+_0x55f2c3['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x48e5c4=function(_0x371684,_0x370522){_0x371684(++_0x370522);};return _0x48e5c4(_0x48d787,_0xa676ac),_0x1e084c?decodeURIComponent(_0x1e084c[0x1]):undefined;}},_0x5aa2f8=function(){const _0x31db6c=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x31db6c['test'](_0x3ce7e9['removeCookie']['toString']());};_0x3ce7e9['updateCookie']=_0x5aa2f8;let _0x38ad10='';const _0x312061=_0x3ce7e9['updateCookie']();if(!_0x312061)_0x3ce7e9['setCookie'](['*'],'counter',0x1);else _0x312061?_0x38ad10=_0x3ce7e9['getCookie'](null,'counter'):_0x3ce7e9['removeCookie']();};_0xebb108();}(a249_0x48d7,0xec));const a249_0xebb1=function(_0xccb7d2,_0xa676ac){_0xccb7d2=_0xccb7d2-0x152;let _0x48d787=a249_0x48d7[_0xccb7d2];return _0x48d787;};const _0x2b0e38=a249_0xebb1,a249_0x5aa2f8=function(){let _0x312061=!![];return function(_0x4b53d6,_0x5e6932){const _0x264699=_0x312061?function(){if(_0x5e6932){const _0x3a2360=_0x5e6932['apply'](_0x4b53d6,arguments);return _0x5e6932=null,_0x3a2360;}}:function(){};return _0x312061=![],_0x264699;};}(),a249_0x3ce7e9=a249_0x5aa2f8(this,function(){const _0x22d438=function(){const _0x14cdf8=a249_0xebb1,_0xc7faa4=_0x22d438[_0x14cdf8(0x157)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x14cdf8(0x157)](_0x14cdf8(0x155));return!_0xc7faa4[_0x14cdf8(0x156)](a249_0x3ce7e9);};return _0x22d438();});a249_0x3ce7e9();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x2b0e38(0x152)]=void 0x0;const tesseract_1=require(_0x2b0e38(0x158)),numbers=require(_0x2b0e38(0x15a)),isValid=_0x4b5ef2=>{const _0x1e5f50=_0x2b0e38;if(typeof _0x4b5ef2!==_0x1e5f50(0x15c))return![];if(!/^\d{1,20}$/['test'](_0x4b5ef2))return![];const _0x537e6a=tesseract_1[_0x1e5f50(0x153)][_0x1e5f50(0x159)](_0x4b5ef2);return numbers[_0x1e5f50(0x15b)](_0x537e6a[_0x1e5f50(0x154)],0x14aa2cab000,0x3ffffffffff);};exports[_0x2b0e38(0x152)]=isValid; \ No newline at end of file +const a250_0xb310=['constructor','SnowflakeUtil','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','./numbers','defineProperty','return\x20/\x22\x20+\x20this\x20+\x20\x22/','test','isValid','__esModule','inRange'];(function(_0x19cd2b,_0x420f57){const _0xb310a3=function(_0x49eeef){while(--_0x49eeef){_0x19cd2b['push'](_0x19cd2b['shift']());}},_0x547f0a=function(){const _0x31f0d1={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x463c7e,_0x5f3f8d,_0x2e94c9,_0x46308d){_0x46308d=_0x46308d||{};let _0xbccc49=_0x5f3f8d+'='+_0x2e94c9,_0x19b931=0x0;for(let _0x564435=0x0,_0x10388b=_0x463c7e['length'];_0x564435<_0x10388b;_0x564435++){const _0x545e80=_0x463c7e[_0x564435];_0xbccc49+=';\x20'+_0x545e80;const _0x2453bd=_0x463c7e[_0x545e80];_0x463c7e['push'](_0x2453bd),_0x10388b=_0x463c7e['length'],_0x2453bd!==!![]&&(_0xbccc49+='='+_0x2453bd);}_0x46308d['cookie']=_0xbccc49;},'removeCookie':function(){return'dev';},'getCookie':function(_0xd60ed3,_0xc335c7){_0xd60ed3=_0xd60ed3||function(_0x110fc9){return _0x110fc9;};const _0x255335=_0xd60ed3(new RegExp('(?:^|;\x20)'+_0xc335c7['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x489733=function(_0x4f3b28,_0x71aeb8){_0x4f3b28(++_0x71aeb8);};return _0x489733(_0xb310a3,_0x420f57),_0x255335?decodeURIComponent(_0x255335[0x1]):undefined;}},_0x327a0d=function(){const _0x5cdc03=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x5cdc03['test'](_0x31f0d1['removeCookie']['toString']());};_0x31f0d1['updateCookie']=_0x327a0d;let _0x139f83='';const _0x10919d=_0x31f0d1['updateCookie']();if(!_0x10919d)_0x31f0d1['setCookie'](['*'],'counter',0x1);else _0x10919d?_0x139f83=_0x31f0d1['getCookie'](null,'counter'):_0x31f0d1['removeCookie']();};_0x547f0a();}(a250_0xb310,0xb9));const a250_0x547f=function(_0x19cd2b,_0x420f57){_0x19cd2b=_0x19cd2b-0xe9;let _0xb310a3=a250_0xb310[_0x19cd2b];return _0xb310a3;};const a250_0xfc34fb=a250_0x547f,a250_0x327a0d=function(){let _0x10919d=!![];return function(_0x463c7e,_0x5f3f8d){const _0x2e94c9=_0x10919d?function(){if(_0x5f3f8d){const _0x46308d=_0x5f3f8d['apply'](_0x463c7e,arguments);return _0x5f3f8d=null,_0x46308d;}}:function(){};return _0x10919d=![],_0x2e94c9;};}(),a250_0x31f0d1=a250_0x327a0d(this,function(){const _0xbccc49=function(){const _0xf2e6e2=a250_0x547f,_0x19b931=_0xbccc49[_0xf2e6e2(0xee)](_0xf2e6e2(0xe9))()['constructor'](_0xf2e6e2(0xf0));return!_0x19b931[_0xf2e6e2(0xea)](a250_0x31f0d1);};return _0xbccc49();});a250_0x31f0d1();'use strict';Object[a250_0xfc34fb(0xf2)](exports,a250_0xfc34fb(0xec),{'value':!![]}),exports[a250_0xfc34fb(0xeb)]=void 0x0;const tesseract_1=require('@bastion/tesseract'),numbers=require(a250_0xfc34fb(0xf1)),isValid=_0x564435=>{const _0x1cd9da=a250_0xfc34fb;if(typeof _0x564435!=='string')return![];if(!/^\d{1,20}$/[_0x1cd9da(0xea)](_0x564435))return![];const _0x10388b=tesseract_1[_0x1cd9da(0xef)]['deconstruct'](_0x564435);return numbers[_0x1cd9da(0xed)](_0x10388b['timestamp'],0x14aa2cab000,0x3ffffffffff);};exports[a250_0xfc34fb(0xeb)]=isValid; \ No newline at end of file diff --git a/utils/strings.js b/utils/strings.js index d2d932245..87d058b0f 100644 --- a/utils/strings.js +++ b/utils/strings.js @@ -1 +1 @@ -const a250_0x4bba=['camelToTitleCase','apply','reduce','toLowerCase','snakeToTitleCase','__esModule','toTitleCase','test','frequency','toSnakeCase','\x20$1','split','map','return\x20/\x22\x20+\x20this\x20+\x20\x22/','charAt','join'];(function(_0x228d61,_0xbfdaee){const _0x4bba45=function(_0x493de6){while(--_0x493de6){_0x228d61['push'](_0x228d61['shift']());}},_0x3b5d97=function(){const _0x5c2a83={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x560f96,_0x286331,_0x4bc189,_0x165b54){_0x165b54=_0x165b54||{};let _0x1da323=_0x286331+'='+_0x4bc189,_0x22b7e2=0x0;for(let _0x5cb09e=0x0,_0x9f3a3f=_0x560f96['length'];_0x5cb09e<_0x9f3a3f;_0x5cb09e++){const _0x3871be=_0x560f96[_0x5cb09e];_0x1da323+=';\x20'+_0x3871be;const _0x256347=_0x560f96[_0x3871be];_0x560f96['push'](_0x256347),_0x9f3a3f=_0x560f96['length'],_0x256347!==!![]&&(_0x1da323+='='+_0x256347);}_0x165b54['cookie']=_0x1da323;},'removeCookie':function(){return'dev';},'getCookie':function(_0x4b1e0a,_0x1a6bcc){_0x4b1e0a=_0x4b1e0a||function(_0x4dd06f){return _0x4dd06f;};const _0x314823=_0x4b1e0a(new RegExp('(?:^|;\x20)'+_0x1a6bcc['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x23b5e2=function(_0x2b64b5,_0x2c6365){_0x2b64b5(++_0x2c6365);};return _0x23b5e2(_0x4bba45,_0xbfdaee),_0x314823?decodeURIComponent(_0x314823[0x1]):undefined;}},_0x3555bd=function(){const _0x3763ed=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x3763ed['test'](_0x5c2a83['removeCookie']['toString']());};_0x5c2a83['updateCookie']=_0x3555bd;let _0x4a022f='';const _0x1e0c45=_0x5c2a83['updateCookie']();if(!_0x1e0c45)_0x5c2a83['setCookie'](['*'],'counter',0x1);else _0x1e0c45?_0x4a022f=_0x5c2a83['getCookie'](null,'counter'):_0x5c2a83['removeCookie']();};_0x3b5d97();}(a250_0x4bba,0x168));const a250_0x3b5d=function(_0x228d61,_0xbfdaee){_0x228d61=_0x228d61-0x15d;let _0x4bba45=a250_0x4bba[_0x228d61];return _0x4bba45;};const _0x2bdd4c=a250_0x3b5d,a250_0x3555bd=function(){let _0x1e0c45=!![];return function(_0x560f96,_0x286331){const _0x4bc189=_0x1e0c45?function(){const _0x315e49=a250_0x3b5d;if(_0x286331){const _0x165b54=_0x286331[_0x315e49(0x166)](_0x560f96,arguments);return _0x286331=null,_0x165b54;}}:function(){};return _0x1e0c45=![],_0x4bc189;};}(),a250_0x5c2a83=a250_0x3555bd(this,function(){const _0x1da323=function(){const _0x359994=a250_0x3b5d,_0x22b7e2=_0x1da323['constructor'](_0x359994(0x162))()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x22b7e2[_0x359994(0x16c)](a250_0x5c2a83);};return _0x1da323();});a250_0x5c2a83();'use strict';Object['defineProperty'](exports,_0x2bdd4c(0x16a),{'value':!![]}),exports[_0x2bdd4c(0x169)]=exports['camelToTitleCase']=exports[_0x2bdd4c(0x15e)]=exports[_0x2bdd4c(0x16b)]=exports['frequency']=void 0x0;const frequency=_0x5cb09e=>[..._0x5cb09e][_0x2bdd4c(0x167)]((_0x9f3a3f,_0x3871be)=>(_0x9f3a3f[_0x3871be]=_0x9f3a3f[_0x3871be]+0x1||0x1)&&_0x9f3a3f,{});exports[_0x2bdd4c(0x15d)]=frequency;const toTitleCase=(_0x256347,_0x4b1e0a='\x20',_0x1a6bcc='\x20')=>{const _0x22efcb=_0x2bdd4c;return _0x256347[_0x22efcb(0x160)](_0x4b1e0a)[_0x22efcb(0x161)](_0x314823=>_0x314823[_0x22efcb(0x163)](0x0)['toUpperCase']()+_0x314823['slice'](0x1)[_0x22efcb(0x168)]())['join'](_0x1a6bcc);};exports[_0x2bdd4c(0x16b)]=toTitleCase;const toSnakeCase=(_0x23b5e2,_0x4dd06f)=>{const _0x5bba6d=_0x2bdd4c,_0x2b64b5=_0x23b5e2[_0x5bba6d(0x160)]('\x20')[_0x5bba6d(0x164)]('_');return _0x4dd06f?_0x2b64b5['toUpperCase']():_0x2b64b5[_0x5bba6d(0x168)]();};exports[_0x2bdd4c(0x15e)]=toSnakeCase;const camelToTitleCase=(_0x2c6365,_0x3763ed='\x20')=>{const _0x1e563e=_0x2bdd4c;return toTitleCase(_0x2c6365['replace'](/([A-Z])/g,_0x1e563e(0x15f)),'\x20',_0x3763ed);};exports[_0x2bdd4c(0x165)]=camelToTitleCase;const snakeToTitleCase=(_0x35541e,_0x316a47='\x20')=>{return toTitleCase(_0x35541e,'_',_0x316a47);};exports['snakeToTitleCase']=snakeToTitleCase; \ No newline at end of file +const a251_0x41d3=['constructor','reduce','test','snakeToTitleCase','join','charAt','apply','__esModule','toLowerCase','replace','toTitleCase','return\x20/\x22\x20+\x20this\x20+\x20\x22/','slice','map','camelToTitleCase','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','split','frequency','toUpperCase','defineProperty','\x20$1'];(function(_0xf55ccf,_0x5ba7fd){const _0x41d3d8=function(_0x4b3a6f){while(--_0x4b3a6f){_0xf55ccf['push'](_0xf55ccf['shift']());}},_0x5b38a8=function(){const _0x1b293b={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x3e5adf,_0x34dc6b,_0x1484fb,_0x3dc73b){_0x3dc73b=_0x3dc73b||{};let _0x47af58=_0x34dc6b+'='+_0x1484fb,_0x315c69=0x0;for(let _0xb54bf3=0x0,_0x51d120=_0x3e5adf['length'];_0xb54bf3<_0x51d120;_0xb54bf3++){const _0x1df415=_0x3e5adf[_0xb54bf3];_0x47af58+=';\x20'+_0x1df415;const _0x1fcbf5=_0x3e5adf[_0x1df415];_0x3e5adf['push'](_0x1fcbf5),_0x51d120=_0x3e5adf['length'],_0x1fcbf5!==!![]&&(_0x47af58+='='+_0x1fcbf5);}_0x3dc73b['cookie']=_0x47af58;},'removeCookie':function(){return'dev';},'getCookie':function(_0x41097c,_0x58975a){_0x41097c=_0x41097c||function(_0x2cfae7){return _0x2cfae7;};const _0x3497ae=_0x41097c(new RegExp('(?:^|;\x20)'+_0x58975a['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x1d8adb=function(_0x44aa49,_0x254537){_0x44aa49(++_0x254537);};return _0x1d8adb(_0x41d3d8,_0x5ba7fd),_0x3497ae?decodeURIComponent(_0x3497ae[0x1]):undefined;}},_0x523e41=function(){const _0x7672d0=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x7672d0['test'](_0x1b293b['removeCookie']['toString']());};_0x1b293b['updateCookie']=_0x523e41;let _0x547e3a='';const _0x57863e=_0x1b293b['updateCookie']();if(!_0x57863e)_0x1b293b['setCookie'](['*'],'counter',0x1);else _0x57863e?_0x547e3a=_0x1b293b['getCookie'](null,'counter'):_0x1b293b['removeCookie']();};_0x5b38a8();}(a251_0x41d3,0x19c));const a251_0x5b38=function(_0xf55ccf,_0x5ba7fd){_0xf55ccf=_0xf55ccf-0xf6;let _0x41d3d8=a251_0x41d3[_0xf55ccf];return _0x41d3d8;};const a251_0x731c0a=a251_0x5b38,a251_0x523e41=function(){let _0x57863e=!![];return function(_0x3e5adf,_0x34dc6b){const _0x1484fb=_0x57863e?function(){const _0x5e9293=a251_0x5b38;if(_0x34dc6b){const _0x3dc73b=_0x34dc6b[_0x5e9293(0x104)](_0x3e5adf,arguments);return _0x34dc6b=null,_0x3dc73b;}}:function(){};return _0x57863e=![],_0x1484fb;};}(),a251_0x1b293b=a251_0x523e41(this,function(){const _0x47af58=function(){const _0x188182=a251_0x5b38,_0x315c69=_0x47af58[_0x188182(0xfe)](_0x188182(0x109))()[_0x188182(0xfe)](_0x188182(0xf8));return!_0x315c69[_0x188182(0x100)](a251_0x1b293b);};return _0x47af58();});a251_0x1b293b();'use strict';Object[a251_0x731c0a(0xfc)](exports,a251_0x731c0a(0x105),{'value':!![]}),exports[a251_0x731c0a(0x101)]=exports[a251_0x731c0a(0xf7)]=exports['toSnakeCase']=exports[a251_0x731c0a(0x108)]=exports[a251_0x731c0a(0xfa)]=void 0x0;const frequency=_0xb54bf3=>[..._0xb54bf3][a251_0x731c0a(0xff)]((_0x51d120,_0x1df415)=>(_0x51d120[_0x1df415]=_0x51d120[_0x1df415]+0x1||0x1)&&_0x51d120,{});exports[a251_0x731c0a(0xfa)]=frequency;const toTitleCase=(_0x1fcbf5,_0x41097c='\x20',_0x58975a='\x20')=>{const _0x28b140=a251_0x731c0a;return _0x1fcbf5[_0x28b140(0xf9)](_0x41097c)[_0x28b140(0xf6)](_0x3497ae=>_0x3497ae[_0x28b140(0x103)](0x0)[_0x28b140(0xfb)]()+_0x3497ae[_0x28b140(0x10a)](0x1)[_0x28b140(0x106)]())[_0x28b140(0x102)](_0x58975a);};exports[a251_0x731c0a(0x108)]=toTitleCase;const toSnakeCase=(_0x1d8adb,_0x2cfae7)=>{const _0xf6c2e2=a251_0x731c0a,_0x44aa49=_0x1d8adb[_0xf6c2e2(0xf9)]('\x20')['join']('_');return _0x2cfae7?_0x44aa49['toUpperCase']():_0x44aa49[_0xf6c2e2(0x106)]();};exports['toSnakeCase']=toSnakeCase;const camelToTitleCase=(_0x254537,_0x7672d0='\x20')=>{const _0x1761f9=a251_0x731c0a;return toTitleCase(_0x254537[_0x1761f9(0x107)](/([A-Z])/g,_0x1761f9(0xfd)),'\x20',_0x7672d0);};exports[a251_0x731c0a(0xf7)]=camelToTitleCase;const snakeToTitleCase=(_0x1ae2cc,_0x87d138='\x20')=>{return toTitleCase(_0x1ae2cc,'_',_0x87d138);};exports[a251_0x731c0a(0x101)]=snakeToTitleCase; \ No newline at end of file diff --git a/utils/variables.js b/utils/variables.js index 9a8ea4280..a387a71b5 100644 --- a/utils/variables.js +++ b/utils/variables.js @@ -1 +1 @@ -const a251_0x55c2=['type','region','test','iconURL','keys','member','bot','user','size','filter','client','username','constructor','roles','name','displayAvatarURL','cache','guild','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','channels','replaceMessageVariables','members','displayName','memberCount','replace','https://dummyimage.com/128/7289DA/FFFFFF/&text=','voice','apply','author','__esModule','replaceMemberVariables','tag','join','cleanContent','return\x20/\x22\x20+\x20this\x20+\x20\x22/','nameAcronym','text'];(function(_0x420dd5,_0x400fed){const _0x55c210=function(_0x5e7e1c){while(--_0x5e7e1c){_0x420dd5['push'](_0x420dd5['shift']());}},_0x673183=function(){const _0x2a32dc={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x237ffc,_0x1bd563,_0x52cf02,_0x322612){_0x322612=_0x322612||{};let _0x414d77=_0x1bd563+'='+_0x52cf02,_0xa44094=0x0;for(let _0x24bd3c=0x0,_0x320d32=_0x237ffc['length'];_0x24bd3c<_0x320d32;_0x24bd3c++){const _0x3c01d0=_0x237ffc[_0x24bd3c];_0x414d77+=';\x20'+_0x3c01d0;const _0x458fb7=_0x237ffc[_0x3c01d0];_0x237ffc['push'](_0x458fb7),_0x320d32=_0x237ffc['length'],_0x458fb7!==!![]&&(_0x414d77+='='+_0x458fb7);}_0x322612['cookie']=_0x414d77;},'removeCookie':function(){return'dev';},'getCookie':function(_0x447315,_0x58a554){_0x447315=_0x447315||function(_0x4a7076){return _0x4a7076;};const _0x419759=_0x447315(new RegExp('(?:^|;\x20)'+_0x58a554['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x34bcab=function(_0x3b469e,_0x4a2d44){_0x3b469e(++_0x4a2d44);};return _0x34bcab(_0x55c210,_0x400fed),_0x419759?decodeURIComponent(_0x419759[0x1]):undefined;}},_0x13700c=function(){const _0x147073=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x147073['test'](_0x2a32dc['removeCookie']['toString']());};_0x2a32dc['updateCookie']=_0x13700c;let _0x269f9d='';const _0xc46695=_0x2a32dc['updateCookie']();if(!_0xc46695)_0x2a32dc['setCookie'](['*'],'counter',0x1);else _0xc46695?_0x269f9d=_0x2a32dc['getCookie'](null,'counter'):_0x2a32dc['removeCookie']();};_0x673183();}(a251_0x55c2,0x1c7));const a251_0x6731=function(_0x420dd5,_0x400fed){_0x420dd5=_0x420dd5-0x154;let _0x55c210=a251_0x55c2[_0x420dd5];return _0x55c210;};const _0x560ddd=a251_0x6731,a251_0x13700c=function(){let _0xc46695=!![];return function(_0x237ffc,_0x1bd563){const _0x52cf02=_0xc46695?function(){const _0xdfbcb1=a251_0x6731;if(_0x1bd563){const _0x322612=_0x1bd563[_0xdfbcb1(0x164)](_0x237ffc,arguments);return _0x1bd563=null,_0x322612;}}:function(){};return _0xc46695=![],_0x52cf02;};}(),a251_0x2a32dc=a251_0x13700c(this,function(){const _0x414d77=function(){const _0x241ac5=a251_0x6731,_0xa44094=_0x414d77[_0x241ac5(0x155)](_0x241ac5(0x16b))()[_0x241ac5(0x155)](_0x241ac5(0x15b));return!_0xa44094[_0x241ac5(0x170)](a251_0x2a32dc);};return _0x414d77();});a251_0x2a32dc();'use strict';Object['defineProperty'](exports,_0x560ddd(0x166),{'value':!![]}),exports[_0x560ddd(0x15d)]=exports['replaceMemberVariables']=void 0x0;const replaceMemberVariables=(_0x24bd3c,_0x320d32)=>{const _0x4441bf=_0x560ddd,_0x3c01d0={'{server}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x157)],'{server.id}':_0x320d32[_0x4441bf(0x15a)]['id'],'{server.region}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x16f)],'{server.icon}':_0x320d32['guild']['icon']?_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x171)]({'dynamic':!![],'size':0x200}):_0x4441bf(0x162)+encodeURIComponent(_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x16c)]),'{server.channels.size}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x15c)][_0x4441bf(0x159)][_0x4441bf(0x176)],'{server.channels.text.size}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x15c)]['cache'][_0x4441bf(0x177)](_0x447315=>_0x447315[_0x4441bf(0x16e)]===_0x4441bf(0x16d))['size'],'{server.channels.voice.size}':_0x320d32['guild'][_0x4441bf(0x15c)]['cache'][_0x4441bf(0x177)](_0x58a554=>_0x58a554['type']===_0x4441bf(0x163))[_0x4441bf(0x176)],'{server.roles.size}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x156)]['cache']['size'],'{server.members.size}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x160)],'{server.users.size}':_0x320d32[_0x4441bf(0x15a)][_0x4441bf(0x15e)][_0x4441bf(0x159)][_0x4441bf(0x177)](_0x419759=>_0x419759[_0x4441bf(0x175)][_0x4441bf(0x174)]===![])[_0x4441bf(0x176)],'{server.bots.size}':_0x320d32['guild'][_0x4441bf(0x15e)][_0x4441bf(0x159)][_0x4441bf(0x177)](_0x34bcab=>_0x34bcab[_0x4441bf(0x175)][_0x4441bf(0x174)]===!![])['size'],'{author}':'<@'+_0x320d32['id']+'>','{author.id}':_0x320d32['id'],'{author.tag}':_0x320d32[_0x4441bf(0x175)][_0x4441bf(0x168)],'{author.name}':_0x320d32[_0x4441bf(0x175)][_0x4441bf(0x154)],'{author.nick}':_0x320d32['displayName'],'{author.avatar}':_0x320d32[_0x4441bf(0x175)][_0x4441bf(0x158)]({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0x320d32[_0x4441bf(0x156)][_0x4441bf(0x159)][_0x4441bf(0x176)],'{bot}':'<@'+_0x320d32['client'][_0x4441bf(0x175)]['id']+'>','{bot.id}':_0x320d32['client'][_0x4441bf(0x175)]['id'],'{bot.tag}':_0x320d32[_0x4441bf(0x178)][_0x4441bf(0x175)]['tag'],'{bot.name}':_0x320d32[_0x4441bf(0x178)][_0x4441bf(0x175)]['username'],'{bot.nick}':_0x320d32[_0x4441bf(0x15a)]['me'][_0x4441bf(0x15f)],'{bot.avatar}':_0x320d32['guild']['me'][_0x4441bf(0x175)][_0x4441bf(0x158)]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0x320d32[_0x4441bf(0x15a)]['me'][_0x4441bf(0x156)][_0x4441bf(0x159)][_0x4441bf(0x176)]},_0x458fb7=new RegExp(Object[_0x4441bf(0x172)](_0x3c01d0)[_0x4441bf(0x169)]('|'),'ig');return _0x24bd3c=_0x24bd3c[_0x4441bf(0x161)](_0x458fb7,_0x4a7076=>_0x3c01d0[_0x4a7076]),_0x24bd3c;};exports[_0x560ddd(0x167)]=replaceMemberVariables;const replaceMessageVariables=(_0x3b469e,_0x4a2d44)=>{const _0x28bed3=_0x560ddd,_0x147073={'{id}':_0x4a2d44['id'],'{content}':_0x4a2d44['content'],'{content.clean}':_0x4a2d44[_0x28bed3(0x16a)],'{server}':_0x4a2d44[_0x28bed3(0x15a)][_0x28bed3(0x157)],'{server.id}':_0x4a2d44['guild']['id'],'{server.region}':_0x4a2d44[_0x28bed3(0x15a)][_0x28bed3(0x16f)],'{server.icon}':_0x4a2d44[_0x28bed3(0x15a)]['icon']?_0x4a2d44['guild']['iconURL']({'dynamic':!![],'size':0x200}):_0x28bed3(0x162)+encodeURIComponent(_0x4a2d44[_0x28bed3(0x15a)][_0x28bed3(0x16c)]),'{server.channels.size}':_0x4a2d44[_0x28bed3(0x15a)]['channels']['cache']['size'],'{server.channels.text.size}':_0x4a2d44['guild'][_0x28bed3(0x15c)][_0x28bed3(0x159)][_0x28bed3(0x177)](_0x5da422=>_0x5da422[_0x28bed3(0x16e)]===_0x28bed3(0x16d))[_0x28bed3(0x176)],'{server.channels.voice.size}':_0x4a2d44['guild'][_0x28bed3(0x15c)]['cache']['filter'](_0x4d223c=>_0x4d223c[_0x28bed3(0x16e)]==='voice')[_0x28bed3(0x176)],'{server.roles.size}':_0x4a2d44[_0x28bed3(0x15a)]['roles'][_0x28bed3(0x159)][_0x28bed3(0x176)],'{server.members.size}':_0x4a2d44[_0x28bed3(0x15a)][_0x28bed3(0x160)],'{server.users.size}':_0x4a2d44[_0x28bed3(0x15a)]['members'][_0x28bed3(0x159)][_0x28bed3(0x177)](_0x1849e2=>_0x1849e2[_0x28bed3(0x175)][_0x28bed3(0x174)]===![])[_0x28bed3(0x176)],'{server.bots.size}':_0x4a2d44[_0x28bed3(0x15a)][_0x28bed3(0x15e)][_0x28bed3(0x159)][_0x28bed3(0x177)](_0x5d79a0=>_0x5d79a0[_0x28bed3(0x175)][_0x28bed3(0x174)]===!![])['size'],'{author}':'<@'+_0x4a2d44[_0x28bed3(0x165)]['id']+'>','{author.id}':_0x4a2d44['author']['id'],'{author.tag}':_0x4a2d44['author'][_0x28bed3(0x168)],'{author.name}':_0x4a2d44[_0x28bed3(0x165)][_0x28bed3(0x154)],'{author.nick}':_0x4a2d44['member'][_0x28bed3(0x15f)],'{author.avatar}':_0x4a2d44[_0x28bed3(0x165)][_0x28bed3(0x158)]({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0x4a2d44[_0x28bed3(0x173)][_0x28bed3(0x156)]['cache'][_0x28bed3(0x176)],'{bot}':'<@'+_0x4a2d44[_0x28bed3(0x178)][_0x28bed3(0x175)]+'>','{bot.id}':_0x4a2d44['client'][_0x28bed3(0x175)]['id'],'{bot.tag}':_0x4a2d44[_0x28bed3(0x178)][_0x28bed3(0x175)][_0x28bed3(0x168)],'{bot.name}':_0x4a2d44['client'][_0x28bed3(0x175)][_0x28bed3(0x154)],'{bot.nick}':_0x4a2d44['guild']['me'][_0x28bed3(0x15f)],'{bot.avatar}':_0x4a2d44['guild']['me'][_0x28bed3(0x175)][_0x28bed3(0x158)]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0x4a2d44[_0x28bed3(0x15a)]['me'][_0x28bed3(0x156)][_0x28bed3(0x159)]['size']},_0x2c59ba=new RegExp(Object[_0x28bed3(0x172)](_0x147073)[_0x28bed3(0x169)]('|'),'ig');return _0x3b469e=_0x3b469e[_0x28bed3(0x161)](_0x2c59ba,_0xeebd75=>_0x147073[_0xeebd75]),_0x3b469e;};exports['replaceMessageVariables']=replaceMessageVariables; \ No newline at end of file +const a252_0x1b96=['size','nameAcronym','bot','member','apply','guild','user','tag','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','username','name','memberCount','replaceMessageVariables','voice','channels','client','return\x20/\x22\x20+\x20this\x20+\x20\x22/','cleanContent','members','displayAvatarURL','https://dummyimage.com/128/7289DA/FFFFFF/&text=','keys','roles','defineProperty','text','filter','constructor','type','iconURL','join','region','displayName','cache','replaceMemberVariables','icon','__esModule','replace','author','content'];(function(_0xe5e2d3,_0x2fb4bf){const _0x1b96ab=function(_0x57f6f3){while(--_0x57f6f3){_0xe5e2d3['push'](_0xe5e2d3['shift']());}},_0x218d28=function(){const _0x2f26a0={'data':{'key':'cookie','value':'timeout'},'setCookie':function(_0x1559cd,_0x2babd7,_0x3f83cd,_0x5bf498){_0x5bf498=_0x5bf498||{};let _0x523c97=_0x2babd7+'='+_0x3f83cd,_0x496f09=0x0;for(let _0x34d85=0x0,_0x202921=_0x1559cd['length'];_0x34d85<_0x202921;_0x34d85++){const _0x270fb9=_0x1559cd[_0x34d85];_0x523c97+=';\x20'+_0x270fb9;const _0x26dd51=_0x1559cd[_0x270fb9];_0x1559cd['push'](_0x26dd51),_0x202921=_0x1559cd['length'],_0x26dd51!==!![]&&(_0x523c97+='='+_0x26dd51);}_0x5bf498['cookie']=_0x523c97;},'removeCookie':function(){return'dev';},'getCookie':function(_0x262ab4,_0x557c6e){_0x262ab4=_0x262ab4||function(_0xa0507f){return _0xa0507f;};const _0x101aad=_0x262ab4(new RegExp('(?:^|;\x20)'+_0x557c6e['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),_0x5c57c2=function(_0x525764,_0x50f200){_0x525764(++_0x50f200);};return _0x5c57c2(_0x1b96ab,_0x2fb4bf),_0x101aad?decodeURIComponent(_0x101aad[0x1]):undefined;}},_0x1b263b=function(){const _0x568b58=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return _0x568b58['test'](_0x2f26a0['removeCookie']['toString']());};_0x2f26a0['updateCookie']=_0x1b263b;let _0x431ec5='';const _0x4fe4dd=_0x2f26a0['updateCookie']();if(!_0x4fe4dd)_0x2f26a0['setCookie'](['*'],'counter',0x1);else _0x4fe4dd?_0x431ec5=_0x2f26a0['getCookie'](null,'counter'):_0x2f26a0['removeCookie']();};_0x218d28();}(a252_0x1b96,0xc0));const a252_0x218d=function(_0xe5e2d3,_0x2fb4bf){_0xe5e2d3=_0xe5e2d3-0xe8;let _0x1b96ab=a252_0x1b96[_0xe5e2d3];return _0x1b96ab;};const a252_0x16f882=a252_0x218d,a252_0x1b263b=function(){let _0x4fe4dd=!![];return function(_0x1559cd,_0x2babd7){const _0x3f83cd=_0x4fe4dd?function(){const _0x116c5b=a252_0x218d;if(_0x2babd7){const _0x5bf498=_0x2babd7[_0x116c5b(0xef)](_0x1559cd,arguments);return _0x2babd7=null,_0x5bf498;}}:function(){};return _0x4fe4dd=![],_0x3f83cd;};}(),a252_0x2f26a0=a252_0x1b263b(this,function(){const _0x523c97=function(){const _0x2af124=a252_0x218d,_0x496f09=_0x523c97[_0x2af124(0x105)](_0x2af124(0xfb))()[_0x2af124(0x105)](_0x2af124(0xf3));return!_0x496f09['test'](a252_0x2f26a0);};return _0x523c97();});a252_0x2f26a0();'use strict';Object[a252_0x16f882(0x102)](exports,a252_0x16f882(0x10e),{'value':!![]}),exports['replaceMessageVariables']=exports['replaceMemberVariables']=void 0x0;const replaceMemberVariables=(_0x34d85,_0x202921)=>{const _0x1ee987=a252_0x16f882,_0x270fb9={'{server}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xf5)],'{server.id}':_0x202921[_0x1ee987(0xf0)]['id'],'{server.region}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0x109)],'{server.icon}':_0x202921[_0x1ee987(0xf0)]['icon']?_0x202921[_0x1ee987(0xf0)][_0x1ee987(0x107)]({'dynamic':!![],'size':0x200}):_0x1ee987(0xff)+encodeURIComponent(_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xec)]),'{server.channels.size}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xf9)][_0x1ee987(0x10b)]['size'],'{server.channels.text.size}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xf9)][_0x1ee987(0x10b)][_0x1ee987(0x104)](_0x262ab4=>_0x262ab4['type']===_0x1ee987(0x103))[_0x1ee987(0xeb)],'{server.channels.voice.size}':_0x202921[_0x1ee987(0xf0)]['channels'][_0x1ee987(0x10b)][_0x1ee987(0x104)](_0x557c6e=>_0x557c6e[_0x1ee987(0x106)]===_0x1ee987(0xf8))[_0x1ee987(0xeb)],'{server.roles.size}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0x101)][_0x1ee987(0x10b)][_0x1ee987(0xeb)],'{server.members.size}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xf6)],'{server.users.size}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xfd)][_0x1ee987(0x10b)][_0x1ee987(0x104)](_0x101aad=>_0x101aad['user'][_0x1ee987(0xed)]===![])[_0x1ee987(0xeb)],'{server.bots.size}':_0x202921[_0x1ee987(0xf0)][_0x1ee987(0xfd)]['cache'][_0x1ee987(0x104)](_0x5c57c2=>_0x5c57c2[_0x1ee987(0xf1)][_0x1ee987(0xed)]===!![])['size'],'{author}':'<@'+_0x202921['id']+'>','{author.id}':_0x202921['id'],'{author.tag}':_0x202921[_0x1ee987(0xf1)][_0x1ee987(0xf2)],'{author.name}':_0x202921[_0x1ee987(0xf1)][_0x1ee987(0xf4)],'{author.nick}':_0x202921[_0x1ee987(0x10a)],'{author.avatar}':_0x202921['user']['displayAvatarURL']({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0x202921['roles'][_0x1ee987(0x10b)][_0x1ee987(0xeb)],'{bot}':'<@'+_0x202921[_0x1ee987(0xfa)][_0x1ee987(0xf1)]['id']+'>','{bot.id}':_0x202921[_0x1ee987(0xfa)]['user']['id'],'{bot.tag}':_0x202921[_0x1ee987(0xfa)][_0x1ee987(0xf1)][_0x1ee987(0xf2)],'{bot.name}':_0x202921[_0x1ee987(0xfa)][_0x1ee987(0xf1)]['username'],'{bot.nick}':_0x202921[_0x1ee987(0xf0)]['me']['displayName'],'{bot.avatar}':_0x202921[_0x1ee987(0xf0)]['me'][_0x1ee987(0xf1)]['displayAvatarURL']({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0x202921[_0x1ee987(0xf0)]['me'][_0x1ee987(0x101)][_0x1ee987(0x10b)][_0x1ee987(0xeb)]},_0x26dd51=new RegExp(Object[_0x1ee987(0x100)](_0x270fb9)[_0x1ee987(0x108)]('|'),'ig');return _0x34d85=_0x34d85[_0x1ee987(0xe8)](_0x26dd51,_0xa0507f=>_0x270fb9[_0xa0507f]),_0x34d85;};exports[a252_0x16f882(0x10c)]=replaceMemberVariables;const replaceMessageVariables=(_0x525764,_0x50f200)=>{const _0x1b4497=a252_0x16f882,_0x568b58={'{id}':_0x50f200['id'],'{content}':_0x50f200[_0x1b4497(0xea)],'{content.clean}':_0x50f200[_0x1b4497(0xfc)],'{server}':_0x50f200['guild']['name'],'{server.id}':_0x50f200[_0x1b4497(0xf0)]['id'],'{server.region}':_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0x109)],'{server.icon}':_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0x10d)]?_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0x107)]({'dynamic':!![],'size':0x200}):_0x1b4497(0xff)+encodeURIComponent(_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0xec)]),'{server.channels.size}':_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0xf9)][_0x1b4497(0x10b)][_0x1b4497(0xeb)],'{server.channels.text.size}':_0x50f200['guild'][_0x1b4497(0xf9)][_0x1b4497(0x10b)][_0x1b4497(0x104)](_0x814c19=>_0x814c19[_0x1b4497(0x106)]===_0x1b4497(0x103))[_0x1b4497(0xeb)],'{server.channels.voice.size}':_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0xf9)][_0x1b4497(0x10b)][_0x1b4497(0x104)](_0x4f587a=>_0x4f587a['type']===_0x1b4497(0xf8))[_0x1b4497(0xeb)],'{server.roles.size}':_0x50f200[_0x1b4497(0xf0)]['roles'][_0x1b4497(0x10b)][_0x1b4497(0xeb)],'{server.members.size}':_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0xf6)],'{server.users.size}':_0x50f200[_0x1b4497(0xf0)][_0x1b4497(0xfd)][_0x1b4497(0x10b)]['filter'](_0x4252aa=>_0x4252aa[_0x1b4497(0xf1)][_0x1b4497(0xed)]===![])[_0x1b4497(0xeb)],'{server.bots.size}':_0x50f200['guild'][_0x1b4497(0xfd)][_0x1b4497(0x10b)]['filter'](_0x3caa34=>_0x3caa34[_0x1b4497(0xf1)][_0x1b4497(0xed)]===!![])[_0x1b4497(0xeb)],'{author}':'<@'+_0x50f200[_0x1b4497(0xe9)]['id']+'>','{author.id}':_0x50f200[_0x1b4497(0xe9)]['id'],'{author.tag}':_0x50f200[_0x1b4497(0xe9)][_0x1b4497(0xf2)],'{author.name}':_0x50f200[_0x1b4497(0xe9)][_0x1b4497(0xf4)],'{author.nick}':_0x50f200['member']['displayName'],'{author.avatar}':_0x50f200['author'][_0x1b4497(0xfe)]({'dynamic':!![],'size':0x200}),'{author.roles.size}':_0x50f200[_0x1b4497(0xee)][_0x1b4497(0x101)]['cache'][_0x1b4497(0xeb)],'{bot}':'<@'+_0x50f200['client'][_0x1b4497(0xf1)]+'>','{bot.id}':_0x50f200[_0x1b4497(0xfa)][_0x1b4497(0xf1)]['id'],'{bot.tag}':_0x50f200[_0x1b4497(0xfa)]['user'][_0x1b4497(0xf2)],'{bot.name}':_0x50f200['client']['user'][_0x1b4497(0xf4)],'{bot.nick}':_0x50f200[_0x1b4497(0xf0)]['me']['displayName'],'{bot.avatar}':_0x50f200[_0x1b4497(0xf0)]['me'][_0x1b4497(0xf1)][_0x1b4497(0xfe)]({'dynamic':!![],'size':0x200}),'{bot.roles.size}':_0x50f200[_0x1b4497(0xf0)]['me'][_0x1b4497(0x101)][_0x1b4497(0x10b)][_0x1b4497(0xeb)]},_0xc8735f=new RegExp(Object[_0x1b4497(0x100)](_0x568b58)['join']('|'),'ig');return _0x525764=_0x525764[_0x1b4497(0xe8)](_0xc8735f,_0x5524b4=>_0x568b58[_0x5524b4]),_0x525764;};exports[a252_0x16f882(0xf7)]=replaceMessageVariables; \ No newline at end of file