pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 1 | import { LoadingEmbed } from "./../../utils/defaultEmbeds.js"; |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 2 | import Discord, { CommandInteraction, GuildMember, Message, MessageActionRow, MessageActionRowComponent, MessageButton, MessageComponentInteraction, SelectMenuInteraction } from "discord.js"; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 3 | import { SelectMenuOption, SlashCommandSubcommandBuilder } from "@discordjs/builders"; |
pineafan | 4edb776 | 2022-06-26 19:21:04 +0100 | [diff] [blame] | 4 | import EmojiEmbed from "../../utils/generateEmojiEmbed.js"; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 5 | import getEmojiByName from "../../utils/getEmojiByName.js"; |
| 6 | import generateKeyValueList from "../../utils/generateKeyValueList.js"; |
pineafan | 34369e6 | 2022-05-18 16:52:37 +0100 | [diff] [blame] | 7 | import createPageIndicator from "../../utils/createPageIndicator.js"; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 8 | import client from "../../utils/client.js"; |
pineafan | 4f164f3 | 2022-02-26 22:07:12 +0000 | [diff] [blame] | 9 | |
| 10 | const command = (builder: SlashCommandSubcommandBuilder) => |
| 11 | builder |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 12 | .setName("about") |
| 13 | .setDescription("Shows info about a user") |
| 14 | .addUserOption(option => option.setName("user").setDescription("The user to get info about | Default: Yourself")); |
pineafan | 4f164f3 | 2022-02-26 22:07:12 +0000 | [diff] [blame] | 15 | |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 16 | |
| 17 | class Embed { |
| 18 | embed: Discord.MessageEmbed; |
| 19 | title: string; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 20 | description = ""; |
| 21 | pageId = 0; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 22 | setEmbed(embed: Discord.MessageEmbed) { this.embed = embed; return this; } |
| 23 | setTitle(title: string) { this.title = title; return this; } |
| 24 | setDescription(description: string) { this.description = description; return this; } |
| 25 | setPageId(pageId: number) { this.pageId = pageId; return this; } |
| 26 | } |
| 27 | |
| 28 | |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 29 | const callback = async (interaction: CommandInteraction): Promise<void> => { |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 30 | const { renderUser, renderDelta } = client.logger; |
| 31 | const member = (interaction.options.getMember("user") || interaction.member) as Discord.GuildMember; |
| 32 | const flags: string[] = []; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 33 | if ([ |
| 34 | "438733159748599813", // Pinea |
| 35 | "317731855317336067", // Mini |
| 36 | "261900651230003201", // Coded |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 37 | "511655498676699136" // Zan |
| 38 | ].includes(member.user.id)) { flags.push("NUCLEUSDEVELOPER"); } |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 39 | if ((await client.guilds.cache.get("684492926528651336")?.members.fetch())?.filter((m: GuildMember) => m.roles.cache.has("760896837866749972"))?.map((m: GuildMember) => m.id).includes(member.user.id)) { flags.push("CLICKSDEVELOPER"); } |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 40 | member.user.flags.toArray().map(flag => { |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 41 | flags.push(flag.toString()); |
| 42 | }); |
| 43 | if (member.user.bot === true) { flags.push("BOT"); } |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 44 | // Check if they are boosting the server |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 45 | if (member.premiumSince) { flags.push("BOOSTER"); } |
| 46 | const nameReplacements = { |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 47 | "NUCLEUSDEVELOPER": "**Nucleus Developer**", |
| 48 | "CLICKSDEVELOPER": "Clicks Developer", |
| 49 | "HOUSE_BRAVERY": "Hypesquad Bravery", |
| 50 | "HOUSE_BRILLIANCE": "Hypesquad Brilliance", |
| 51 | "HOUSE_BALANCE": "Hypesquad Balance", |
| 52 | "HYPESQUAD_EVENTS": "Hypesquad Events", |
| 53 | "EARLY_SUPPORTER": "Early Supporter", |
| 54 | "BUGHUNTER_LEVEL_1": "Bug Hunter Level 1", |
| 55 | "BUGHUNTER_LEVEL_2": "Bug Hunter Level 2", |
| 56 | "PARTNERED_SERVER_OWNER": "Partnered Server Owner", |
| 57 | "DISCORD_EMPLOYEE": "Discord Staff", |
| 58 | "EARLY_VERIFIED_BOT_DEVELOPER": "Verified Bot Developer", |
| 59 | "BOT": "Bot", |
| 60 | "BOOSTER": "Server Booster" |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 61 | }; |
| 62 | const members = await interaction.guild.members.fetch(); |
| 63 | const membersArray = [...members.values()]; |
| 64 | membersArray.sort((a, b) => a.joinedTimestamp - b.joinedTimestamp); |
| 65 | const joinPos = membersArray.findIndex(m => m.id === member.user.id); |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 66 | |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 67 | const roles = member.roles.cache.filter(r => r.id !== interaction.guild.id).sort(); |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 68 | let s = ""; |
| 69 | let count = 0; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 70 | let ended = false; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 71 | roles.map(item => { |
| 72 | if (ended) return; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 73 | const string = `<@&${item.id}>, `; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 74 | if(s.length + string.length > 1000) { |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 75 | ended = true; |
| 76 | s += `and ${roles.size - count} more`; |
| 77 | return; |
| 78 | } |
| 79 | count ++; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 80 | s += string; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 81 | }); |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 82 | if(s.length > 0 && !ended) s = s.slice(0, -2); |
| 83 | |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 84 | let perms = ""; |
| 85 | const permsArray = { |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 86 | "ADMINISTRATOR": "Administrator", |
| 87 | "MANAGE_GUILD": "Manage Server", |
| 88 | "MANAGE_ROLES": "Manage Roles", |
| 89 | "MANAGE_CHANNELS": "Manage Channels", |
| 90 | "KICK_MEMBERS": "Kick Members", |
| 91 | "BAN_MEMBERS": "Ban Members", |
| 92 | "MODERATE_MEMBERS": "Moderate Members", |
| 93 | "MANAGE_NICKNAMES": "Manage Nicknames", |
| 94 | "MANAGE_WEBHOOKS": "Manage Webhooks", |
| 95 | "MANAGE_MESSAGES": "Manage Messages", |
| 96 | "VIEW_AUDIT_LOG": "View Audit Log", |
| 97 | "MENTION_EVERYONE": "Mention Everyone" |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 98 | }; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 99 | Object.keys(permsArray).map(perm => { |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 100 | const hasPerm = member.permissions.has(perm as Discord.PermissionString); |
| 101 | perms += `${getEmojiByName("CONTROL." + (hasPerm ? "TICK" : "CROSS"))} ${permsArray[perm]}\n`; |
| 102 | }); |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 103 | |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 104 | let selectPaneOpen = false; |
| 105 | |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 106 | const embeds = [ |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 107 | new Embed() |
pineafan | 4edb776 | 2022-06-26 19:21:04 +0100 | [diff] [blame] | 108 | .setEmbed(new EmojiEmbed() |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 109 | .setTitle("User Info: General") |
| 110 | .setStatus("Success") |
| 111 | .setEmoji("MEMBER.JOIN") |
| 112 | .setDescription( |
| 113 | flags.map(flag => { |
| 114 | if (nameReplacements[flag]) { |
| 115 | return getEmojiByName(`BADGES.${flag}`) + " " + nameReplacements[flag]; |
| 116 | } |
| 117 | }).join("\n") + "\n\n" + |
| 118 | generateKeyValueList({ |
| 119 | "member": renderUser(member.user), |
| 120 | "nickname": member.nickname || "*None set*", |
| 121 | "id": `\`${member.id}\``, |
| 122 | "joined the server": renderDelta(member.joinedTimestamp), |
| 123 | "joined discord": renderDelta(member.user.createdTimestamp), |
| 124 | "boost status": member.premiumSince ? `Started boosting ${renderDelta(member.premiumSinceTimestamp)}` : "*Not boosting*", |
| 125 | "join position": `${joinPos + 1}` |
| 126 | }) |
| 127 | ) |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 128 | .setThumbnail(member.user.displayAvatarURL({dynamic: true})) |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 129 | .setImage((await member.user.fetch()).bannerURL({format: "gif"})) |
| 130 | ).setTitle("General").setDescription("General information about the user").setPageId(0), |
| 131 | new Embed() |
pineafan | 4edb776 | 2022-06-26 19:21:04 +0100 | [diff] [blame] | 132 | .setEmbed(new EmojiEmbed() |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 133 | .setTitle("User Info: Roles") |
| 134 | .setStatus("Success") |
| 135 | .setEmoji("GUILD.ROLES.CREATE") |
| 136 | .setDescription( |
| 137 | generateKeyValueList({ |
| 138 | "member": renderUser(member.user), |
| 139 | "id": `\`${member.id}\``, |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 140 | "roles": `${member.roles.cache.size - 1}` |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 141 | }) + "\n" + |
| 142 | (s.length > 0 ? s : "*None*") + "\n" |
| 143 | ) |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 144 | .setThumbnail(member.user.displayAvatarURL({dynamic: true})) |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 145 | ).setTitle("Roles").setDescription("Roles the user has").setPageId(1), |
| 146 | new Embed() |
pineafan | 4edb776 | 2022-06-26 19:21:04 +0100 | [diff] [blame] | 147 | .setEmbed(new EmojiEmbed() |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 148 | .setTitle("User Info: Key Permissions") |
| 149 | .setStatus("Success") |
| 150 | .setEmoji("GUILD.ROLES.CREATE") |
| 151 | .setDescription( |
| 152 | generateKeyValueList({ |
| 153 | "member": renderUser(member.user), |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 154 | "id": `\`${member.id}\`` |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 155 | }) + "\n" + perms |
| 156 | ) |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 157 | .setThumbnail(member.user.displayAvatarURL({dynamic: true})) |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 158 | ).setTitle("Key Permissions").setDescription("Key permissions the user has").setPageId(2) |
| 159 | ]; |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame^] | 160 | const m = await interaction.reply({embeds: LoadingEmbed, fetchReply: true, ephemeral: true}) as Message; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 161 | let page = 0; |
| 162 | let breakReason = ""; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 163 | while (true) { |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 164 | const em = new Discord.MessageEmbed(embeds[page].embed); |
pineafan | 34369e6 | 2022-05-18 16:52:37 +0100 | [diff] [blame] | 165 | em.setDescription(em.description + "\n" + createPageIndicator(embeds.length, page)); |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 166 | let selectPane = []; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 167 | |
| 168 | if (selectPaneOpen) { |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 169 | const options = []; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 170 | embeds.forEach(embed => { |
| 171 | options.push(new SelectMenuOption({ |
| 172 | label: embed.title, |
| 173 | value: embed.pageId.toString(), |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 174 | description: embed.description || "" |
| 175 | })); |
| 176 | }); |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 177 | selectPane = [new MessageActionRow().addComponents([ |
| 178 | new Discord.MessageSelectMenu() |
| 179 | .addOptions(options) |
| 180 | .setCustomId("page") |
| 181 | .setMaxValues(1) |
| 182 | .setPlaceholder("Choose a page...") |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 183 | ])]; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 184 | } |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 185 | await interaction.editReply({ |
pineafan | 34369e6 | 2022-05-18 16:52:37 +0100 | [diff] [blame] | 186 | embeds: [em], |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 187 | components: selectPane.concat([new MessageActionRow().addComponents([ |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 188 | new MessageButton() |
| 189 | .setEmoji(getEmojiByName("CONTROL.LEFT", "id")) |
| 190 | .setStyle("SECONDARY") |
| 191 | .setCustomId("left") |
| 192 | .setDisabled(page === 0), |
| 193 | new MessageButton() |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 194 | .setEmoji(getEmojiByName("CONTROL.MENU", "id")) |
| 195 | .setStyle(selectPaneOpen ? "PRIMARY" : "SECONDARY") |
| 196 | .setCustomId("select") |
| 197 | .setDisabled(false), |
| 198 | new MessageButton() |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 199 | .setEmoji(getEmojiByName("CONTROL.RIGHT", "id")) |
| 200 | .setCustomId("right") |
| 201 | .setStyle("SECONDARY") |
| 202 | .setDisabled(page === embeds.length - 1), |
| 203 | new MessageButton() |
| 204 | .setEmoji(getEmojiByName("CONTROL.CROSS", "id")) |
| 205 | .setCustomId("close") |
| 206 | .setStyle("DANGER") |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 207 | ])]) |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 208 | }); |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 209 | let i: MessageComponentInteraction; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 210 | try { |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame^] | 211 | i = await m.awaitMessageComponent({time: 300000}); |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 212 | } catch { breakReason = "Message timed out"; break; } |
| 213 | i.deferUpdate(); |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 214 | if ((i.component as MessageActionRowComponent).customId === "left") { |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 215 | if (page > 0) page--; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 216 | selectPaneOpen = false; |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 217 | } else if ((i.component as MessageActionRowComponent).customId === "right") { |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 218 | if (page < embeds.length - 1) page++; |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 219 | selectPaneOpen = false; |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 220 | } else if ((i.component as MessageActionRowComponent).customId === "select") { |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 221 | selectPaneOpen = !selectPaneOpen; |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 222 | } else if ((i.component as MessageActionRowComponent).customId === "close") { |
pineafan | 167bde3 | 2022-05-19 19:33:46 +0100 | [diff] [blame] | 223 | breakReason = "Message closed"; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 224 | break; |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 225 | } else if ((i.component as MessageActionRowComponent).customId === "page") { |
| 226 | page = parseInt((i as SelectMenuInteraction).values[0]); |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 227 | selectPaneOpen = false; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 228 | } else { |
pineafan | 167bde3 | 2022-05-19 19:33:46 +0100 | [diff] [blame] | 229 | breakReason = "Message closed"; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 230 | break; |
| 231 | } |
| 232 | } |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 233 | const em = new Discord.MessageEmbed(embeds[page].embed); |
pineafan | 167bde3 | 2022-05-19 19:33:46 +0100 | [diff] [blame] | 234 | em.setDescription(em.description + "\n" + createPageIndicator(embeds.length, page) + " | " + breakReason); |
| 235 | await interaction.editReply({embeds: [em], components: [new MessageActionRow().addComponents([ |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 236 | new MessageButton() |
| 237 | .setEmoji(getEmojiByName("CONTROL.LEFT", "id")) |
| 238 | .setStyle("SECONDARY") |
| 239 | .setCustomId("left") |
| 240 | .setDisabled(true), |
| 241 | new MessageButton() |
pineafan | ea06304 | 2022-05-19 19:08:44 +0100 | [diff] [blame] | 242 | .setEmoji(getEmojiByName("CONTROL.MENU", "id")) |
| 243 | .setStyle("SECONDARY") |
| 244 | .setCustomId("select") |
| 245 | .setDisabled(true), |
| 246 | new MessageButton() |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 247 | .setEmoji(getEmojiByName("CONTROL.RIGHT", "id")) |
| 248 | .setCustomId("right") |
| 249 | .setStyle("SECONDARY") |
| 250 | .setDisabled(true), |
| 251 | new MessageButton() |
| 252 | .setEmoji(getEmojiByName("CONTROL.CROSS", "id")) |
| 253 | .setCustomId("close") |
pineafan | 167bde3 | 2022-05-19 19:33:46 +0100 | [diff] [blame] | 254 | .setStyle("DANGER") |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 255 | .setDisabled(true) |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 256 | ])]}); |
| 257 | }; |
pineafan | 4f164f3 | 2022-02-26 22:07:12 +0000 | [diff] [blame] | 258 | |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 259 | const check = () => { |
pineafan | 4f164f3 | 2022-02-26 22:07:12 +0000 | [diff] [blame] | 260 | return true; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 261 | }; |
pineafan | 4f164f3 | 2022-02-26 22:07:12 +0000 | [diff] [blame] | 262 | |
| 263 | export { command }; |
| 264 | export { callback }; |
Skyler Grey | 1a67e18 | 2022-08-04 23:05:44 +0100 | [diff] [blame] | 265 | export { check }; |