8 Commits

Author SHA1 Message Date
hikari 1fa793935f chore: disable message create event handler 2026-03-11 08:55:27 -07:00
hikari f3197245db fix: safely extract first chunk to satisfy noUncheckedIndexedAccess
Node.js CI / CI (pull_request) Successful in 48s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m14s
2026-03-03 18:03:53 -08:00
hikari 2ebeddd890 fix: remove stale eslint-disable directive in announcement route
Node.js CI / CI (pull_request) Failing after 1m12s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m37s
2026-03-03 17:59:00 -08:00
hikari c6de6c9591 fix: resolve lint errors across bot, client, and server packages
Node.js CI / CI (pull_request) Failing after 50s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m42s
2026-03-03 17:56:42 -08:00
hikari d6ad6375b2 chore: add workspace packages to pnpm-workspace.yaml
Node.js CI / CI (pull_request) Failing after 31s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 57s
2026-03-03 17:39:16 -08:00
hikari 10a2f3dcd5 fix: make announcement route resilient to platform failures
Node.js CI / CI (pull_request) Failing after 32s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m53s
✨ This commit was made with love from Hikari~ 🌸
2026-03-03 17:03:49 -08:00
hikari f25163096b feat: chunk long announcements for Discord, Reddit, and Discourse
✨ This commit was made with love from Hikari~ 🌸
2026-03-03 16:56:15 -08:00
hikari 4437047543 feat: announce on discourse support forum
✨ This commit was made with love from Hikari~ 🌸
2026-03-03 16:44:13 -08:00
24 changed files with 276 additions and 489 deletions
-7
View File
@@ -6,12 +6,6 @@ const about = new SlashCommandBuilder()
.setContexts([InteractionContextType.Guild, InteractionContextType.BotDM, InteractionContextType.PrivateChannel])
.setIntegrationTypes([ApplicationIntegrationType.UserInstall, ApplicationIntegrationType.GuildInstall]);
const announcement = new SlashCommandBuilder()
.setName("announcement")
.setDescription("Create a cross-platform announcement. (Owner only)")
.setContexts([InteractionContextType.BotDM, InteractionContextType.PrivateChannel])
.setIntegrationTypes([ApplicationIntegrationType.UserInstall]);
const dm = new SlashCommandBuilder()
.setName("dm")
.setDescription("Trigger a DM response so you can find your DM channel.")
@@ -20,6 +14,5 @@ const dm = new SlashCommandBuilder()
console.log(JSON.stringify([
about.toJSON(),
announcement.toJSON(),
dm.toJSON()
]))
+1 -1
View File
@@ -18,7 +18,7 @@
"@anthropic-ai/sdk": "0.56.0",
"@nhcarrigan/discord-analytics": "0.0.6",
"@nhcarrigan/logger": "1.1.1",
"discord.js": "14.25.1",
"discord.js": "14.21.0",
"fastify": "5.4.0"
},
"devDependencies": {
+1 -2
View File
@@ -1,4 +1,3 @@
LOG_TOKEN="op://Environment Variables - Naomi/Alert Server/api_auth"
DISCORD_TOKEN="op://Environment Variables - Naomi/Hikari/discord_token"
ANTHROPIC_KEY="op://Environment Variables - Naomi/Hikari/anthropic_key"
ANNOUNCEMENT_TOKEN="op://Environment Variables - Naomi/Hikari/announcement_token"
ANTHROPIC_KEY="op://Environment Variables - Naomi/Hikari/anthropic_key"
-109
View File
@@ -1,109 +0,0 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import {
LabelBuilder,
ModalBuilder,
StringSelectMenuBuilder,
TextInputBuilder,
TextInputStyle,
} from "discord.js";
import { naomiId } from "../config/entitlements.js";
import { errorHandler } from "../utils/errorHandler.js";
import type { Command } from "../interfaces/command.js";
/**
* Handles the `/announcement` command interaction.
* Owner-only command that opens a modal for creating cross-platform announcements.
* @param _hikari - Hikari's Discord instance (unused).
* @param interaction - The command interaction payload from Discord.
*/
// eslint-disable-next-line max-lines-per-function -- Modal requires many input components
export const announcement: Command = async(_hikari, interaction) => {
try {
if (interaction.user.id !== naomiId) {
await interaction.reply({
content: "This command is restricted to the owner.",
ephemeral: true,
});
return;
}
const modal = new ModalBuilder().
setCustomId("announcement_modal").
setTitle("Create Announcement");
const contentInput = new TextInputBuilder().
setCustomId("content").
setStyle(TextInputStyle.Paragraph).
setMaxLength(4000).
setRequired(true);
const contentInput2 = new TextInputBuilder().
setCustomId("content_2").
setStyle(TextInputStyle.Paragraph).
setMaxLength(4000).
setRequired(false);
const contentInput3 = new TextInputBuilder().
setCustomId("content_3").
setStyle(TextInputStyle.Paragraph).
setMaxLength(4000).
setRequired(false);
const contentInput4 = new TextInputBuilder().
setCustomId("content_4").
setStyle(TextInputStyle.Paragraph).
setMaxLength(4000).
setRequired(false);
const categorySelect = new StringSelectMenuBuilder().
setCustomId("category").
setPlaceholder("Select a category").
addOptions([
{ label: "Products", value: "products" },
{ label: "Community", value: "community" },
{ label: "Company", value: "company" },
]);
const contentLabel = new LabelBuilder().setLabel("Announcement Copy").
setDescription(
"Your version of the announcement, to send to the AI for processing.",
).
setTextInputComponent(contentInput);
// eslint-disable-next-line stylistic/max-len -- Label chain exceeds line length limit
const contentLabel2 = new LabelBuilder().setLabel("Additional Copy (Part 2)").
setDescription("Optional continuation of your announcement copy.").
setTextInputComponent(contentInput2);
// eslint-disable-next-line stylistic/max-len -- Label chain exceeds line length limit
const contentLabel3 = new LabelBuilder().setLabel("Additional Copy (Part 3)").
setDescription("Optional continuation of your announcement copy.").
setTextInputComponent(contentInput3);
// eslint-disable-next-line stylistic/max-len -- Label chain exceeds line length limit
const contentLabel4 = new LabelBuilder().setLabel("Additional Copy (Part 4)").
setDescription("Optional continuation of your announcement copy.").
setTextInputComponent(contentInput4);
const categoryLabel = new LabelBuilder().setLabel("Announcement Category").
setDescription("The category of the announcement.").
setStringSelectMenuComponent(categorySelect);
modal.addLabelComponents(
contentLabel,
contentLabel2,
contentLabel3,
contentLabel4,
categoryLabel,
);
await interaction.showModal(modal);
} catch (error) {
const id = await errorHandler(error, "announcement command");
await interaction.reply({
content: `An error occurred whilst processing your request. Error ID: \`${id}\``,
ephemeral: true,
});
}
};
+4 -4
View File
@@ -3,12 +3,12 @@
* @license Naomi's Public License
* @author Naomi Carrigan
*/
const naomiId = "465650873650118659";
const entitledGuilds = [
"1354624415861833870",
];
const entitledUsers = [ naomiId ];
const entitledUsers = [
"465650873650118659",
];
export { entitledGuilds, entitledUsers, naomiId };
export { entitledGuilds, entitledUsers };
+4 -25
View File
@@ -4,16 +4,10 @@
* @author Naomi Carrigan
*/
import { about } from "../commands/about.js";
import { announcement } from "../commands/announcement.js";
import { dm } from "../commands/dm.js";
import { handleAnnouncementModal } from "../modules/handleAnnouncementModal.js";
import { logger } from "../utils/logger.js";
import type { Command } from "../interfaces/command.js";
import type {
ModalSubmitInteraction,
ChatInputCommandInteraction,
Client,
} from "discord.js";
import type { ChatInputCommandInteraction, Client } from "discord.js";
const handlers: { _default: Command } & Record<string, Command> = {
_default: async(_, interaction): Promise<void> => {
@@ -22,9 +16,8 @@ const handlers: { _default: Command } & Record<string, Command> = {
ephemeral: true,
});
},
about: about,
announcement: announcement,
dm: dm,
about: about,
dm: dm,
};
/**
@@ -46,18 +39,4 @@ const chatInputInteractionCreate = async(
});
};
/**
* Routes a modal submit interaction to the appropriate handler.
* @param _hikari - Hikari's Discord instance (unused).
* @param interaction - The modal submit interaction payload from Discord.
*/
const modalSubmitInteractionCreate = async(
_hikari: Client,
interaction: ModalSubmitInteraction,
): Promise<void> => {
if (interaction.customId === "announcement_modal") {
await handleAnnouncementModal(interaction);
}
};
export { chatInputInteractionCreate, modalSubmitInteractionCreate };
export { chatInputInteractionCreate };
+1 -8
View File
@@ -6,10 +6,7 @@
import { DiscordAnalytics } from "@nhcarrigan/discord-analytics";
import { Client, Events, GatewayIntentBits, Partials } from "discord.js";
import {
chatInputInteractionCreate,
modalSubmitInteractionCreate,
} from "./events/interactionCreate.js";
import { chatInputInteractionCreate } from "./events/interactionCreate.js";
import { logger } from "./utils/logger.js";
/*
@@ -54,10 +51,6 @@ hikari.once(Events.ClientReady, () => {
hikari.on(Events.InteractionCreate, (interaction) => {
if (interaction.isChatInputCommand()) {
void chatInputInteractionCreate(hikari, interaction);
return;
}
if (interaction.isModalSubmit()) {
void modalSubmitInteractionCreate(hikari, interaction);
}
});
-153
View File
@@ -1,153 +0,0 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { AttachmentBuilder, type ModalSubmitInteraction } from "discord.js";
import { errorHandler } from "../utils/errorHandler.js";
interface RawMarkdown {
content: string;
title: string;
}
interface RawPost {
markdown: RawMarkdown;
plaintext: string;
threaded: Array<string>;
}
interface AnnouncementApiResponse {
alert: string;
cost: unknown;
message: string;
rawPost: RawPost;
}
const isRawMarkdown = (value: unknown): value is RawMarkdown => {
if (typeof value !== "object" || value === null) {
return false;
}
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- Necessary narrowing in type guard
const cast = value as Record<string, unknown>;
return typeof cast.title === "string" && typeof cast.content === "string";
};
const isRawPost = (value: unknown): value is RawPost => {
if (typeof value !== "object" || value === null) {
return false;
}
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- Necessary narrowing in type guard
const cast = value as Record<string, unknown>;
return (
isRawMarkdown(cast.markdown)
&& typeof cast.plaintext === "string"
&& Array.isArray(cast.threaded)
);
};
const isAnnouncementApiResponse = (
value: unknown,
): value is AnnouncementApiResponse => {
if (typeof value !== "object" || value === null) {
return false;
}
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- Necessary narrowing in type guard
const cast = value as Record<string, unknown>;
return (
typeof cast.message === "string"
&& typeof cast.alert === "string"
&& isRawPost(cast.rawPost)
);
};
const buildAnnouncementFiles = (rawPost: RawPost): Array<AttachmentBuilder> => {
const markdownFileContent = `# ${rawPost.markdown.title}\n\n${rawPost.markdown.content}`;
const threadedFileContent = rawPost.threaded.join("\n\n---\n\n");
return [
new AttachmentBuilder(
Buffer.from(markdownFileContent),
{ name: "markdown.md" },
),
new AttachmentBuilder(
Buffer.from(rawPost.plaintext),
{ name: "plaintext.txt" },
),
new AttachmentBuilder(
Buffer.from(threadedFileContent),
{ name: "threaded.md" },
),
];
};
/**
* Handles the announcement modal submission.
* Calls the announcement API, sends the generated copy as file attachments
* to the owner's DMs, and replies ephemerally with the platform recap.
* @param interaction - The modal submit interaction payload from Discord.
*/
// eslint-disable-next-line max-lines-per-function -- This is a big function.
export const handleAnnouncementModal = async(
interaction: ModalSubmitInteraction,
): Promise<void> => {
try {
await interaction.deferReply({ ephemeral: true });
const content = [
interaction.fields.getTextInputValue("content"),
interaction.fields.getTextInputValue("content_2"),
interaction.fields.getTextInputValue("content_3"),
interaction.fields.getTextInputValue("content_4"),
].filter((part) => {
return part.length > 0;
}).join("\n\n");
const categoryValues = interaction.fields.getStringSelectValues("category");
const type = categoryValues[0] ?? "company";
const response = await fetch(
"https://hikari.nhcarrigan.com/api/announcement",
{
body: JSON.stringify({ content, type }),
headers: {
// eslint-disable-next-line @typescript-eslint/naming-convention -- HTTP header capitalisation convention
"Authorization": process.env.ANNOUNCEMENT_TOKEN ?? "",
// eslint-disable-next-line @typescript-eslint/naming-convention -- HTTP header naming convention
"Content-Type": "application/json",
},
method: "POST",
},
);
if (!response.ok) {
await interaction.editReply({
content: `The announcement server returned HTTP ${String(response.status)}.`,
});
return;
}
const body: unknown = await response.json();
if (!isAnnouncementApiResponse(body)) {
await interaction.editReply({
// eslint-disable-next-line stylistic/max-len -- Error message needs sufficient context
content: "Received an unexpected response from the announcement server.",
});
return;
}
await interaction.user.send({
content: "Here are the generated announcement files~",
files: buildAnnouncementFiles(body.rawPost),
});
await interaction.editReply({
content: `**Announcement Recap**\n${body.message}\n\n⚠️ ${body.alert}`,
});
} catch (error) {
const id = await errorHandler(error, "announcement modal");
await interaction.editReply({
content: `An error occurred whilst processing the announcement. Error ID: \`${id}\``,
});
}
};
+2 -2
View File
@@ -4,7 +4,7 @@
* @author Naomi Carrigan
*/
import { entitledGuilds, naomiId } from "../config/entitlements.js";
import { entitledGuilds, entitledUsers } from "../config/entitlements.js";
import type { Client, Guild, User } from "discord.js";
/**
@@ -17,7 +17,7 @@ const checkUserEntitlement = async(
hikari: Client,
user: User,
): Promise<boolean> => {
if (user.id === naomiId) {
if (entitledUsers.includes(user.id)) {
return true;
}
const entitlements = await hikari.application?.entitlements.fetch({
@@ -1,11 +1,11 @@
hr {
width: 100%;
border: none;
border-top: 1px solid var(--border);
border-top: 1px solid var(--foreground);
margin: 0;
}
:host ::ng-deep ul {
:host ::ng-deep ul{
list-style-type: disc;
list-style-position: inside;
}
@@ -15,7 +15,6 @@ hr {
margin-bottom: 1em;
width: 90%;
}
.tag {
display: inline-block;
padding: 0 0.5em;
@@ -24,13 +23,13 @@ hr {
}
.products {
background-color: var(--witch-plum);
color: var(--witch-moon);
background-color: #e0f7fa;
color: #006064;
}
.community {
background-color: var(--witch-rose);
color: var(--witch-moon);
background-color: #e8f5e9;
color: #1b5e20;
}
.date {
+46 -43
View File
@@ -1,96 +1,99 @@
ul {
list-style: none;
padding: 0;
margin: 0;
list-style: none;
padding: 0;
margin: 0;
}
::ng-deep main {
::ng-deep main{
overflow: hidden !important;
max-width: 100%;
}
#one {
transform: translateY(-200vh);
animation: slide-down 2s forwards;
font-size: 1.3rem;
transform: translateY(-200vh);
animation: slide-down 2s forwards;
font-size: 1.3rem;
}
#two {
transform: translateY(200vh);
animation: slide-up 2s forwards 2s;
transform: translateY(200vh);
animation: slide-up 2s forwards 2s;
}
#three {
transform: translateX(-200vw);
animation: slide-left 2s forwards 4s;
transform: translateX(-200vw);
animation: slide-left 2s forwards 4s;
}
#four {
transform: translateX(200vw);
animation: slide-right 2s forwards 6s;
transform: translateX(200vw);
animation: slide-right 2s forwards 6s;
}
#five {
transform: translateX(-200vw);
animation: slide-left 2s forwards 8s;
transform: translateX(-200vw);
animation: slide-left 2s forwards 8s;
}
#six {
transform: translateX(200vw);
animation: slide-right 2s forwards 10s;
transform: translateX(200vw);
animation: slide-right 2s forwards 10s;
}
#seven {
transform: translateX(-200vw);
animation: slide-left 2s forwards 12s;
transform: translateX(-200vw);
animation: slide-left 2s forwards 12s;
}
#fade {
opacity: 0;
animation: fade-in 2s forwards 14s;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-top: 1em;
opacity: 0;
animation: fade-in 2s forwards 14s;
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: center;
flex-wrap: wrap;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: var(--accent);
color: var(--witch-moon);
text-decoration: none;
border-radius: 50px;
border: 2px solid var(--border);
display: inline-block;
padding: 10px 20px;
background-color: var(--foreground);
color: var(--background);
text-decoration: none;
border-radius: 50px;
border: 2px solid white;
}
.btn:hover {
background-color: var(--highlight);
color: var(--foreground);
transition: background-color 0.3s, color 0.3s;
background-color: var(--background);
color: var(--foreground);
transition: background-color 0.3s, color 0.3s;
}
@keyframes slide-left {
100% { transform: translateX(0%); }
100% { transform: translateX(0%); }
}
@keyframes slide-right {
100% { transform: translateX(0%); }
100% { transform: translateX(0%); }
}
@keyframes slide-up {
100% { transform: translateY(0%); }
100% { transform: translateY(0%); }
}
@keyframes slide-down {
100% { transform: translateY(0%); }
100% { transform: translateY(0%); }
}
@keyframes fade-in {
100% { opacity: 1; }
100% { opacity: 1; }
}
@keyframes background-color {
0% { background-color: var(--foreground); }
100% { background-color: var(--background); }
}
@media screen and (prefers-reduced-motion: reduce) {
+1 -2
View File
@@ -1,9 +1,8 @@
<h1>Hi there, I'm Hikari~!</h1>
<img
src="https://cdn.nhcarrigan.com/hikari.png"
src="https://cdn.nhcarrigan.com/new-avatars/hikari-full.png"
alt="Hikari"
height="250"
style="display: block; margin: auto;"
/>
<p id="one">How may I help you today?</p>
<p id="two">I can assist you with:</p>
+3 -4
View File
@@ -6,13 +6,11 @@ nav {
height: 40px;
color: var(--foreground);
background-color: var(--background);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
padding-left: 15px;
padding-right: 15px;
z-index: 100;
}
nav a:not(#logo) {
@@ -36,7 +34,7 @@ img {
hr {
width: 100%;
border: none;
border-top: 1px solid var(--border);
border-top: 1px solid var(--foreground);
margin: 0;
}
@@ -52,7 +50,7 @@ hr {
top: 40px;
background-color: var(--background);
color: var(--foreground);
border: 1px solid var(--border);
border: 1px solid var(--foreground);
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
@@ -61,6 +59,7 @@ hr {
display: flex;
align-items: center;
justify-content: center;
cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer;
text-decoration: none;
font-size: 2rem;
}
+1 -3
View File
@@ -15,9 +15,7 @@
<hr />
<a routerLink="/settings" class="nav-link">Settings</a>
<hr />
<a href="https://chat.nhcarrigan.com" target="_blank" class="nav-link">Chat</a>
<hr />
<a href="https://support.nhcarrigan.com" target="_blank" class="nav-link">Support</a>
<a routerLink="/chat" class="nav-link">Chat</a>
<hr />
</div>
<i class="fa-solid fa-bars" *ngIf="!navOpen" (click)="toggleNav()"></i>
+18 -26
View File
@@ -3,44 +3,44 @@ a.product {
}
a.product:hover {
background-color: var(--highlight);
background-color: var(--background);
color: var(--foreground);
}
.product:not(a) {
cursor: default;
border: 2px dashed var(--witch-silver);
border: 2px dashed grey;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: var(--accent);
color: var(--witch-moon);
text-decoration: none;
border-radius: 50px;
border: 2px solid var(--border);
display: inline-block;
padding: 10px 20px;
background-color: var(--foreground);
color: var(--background);
text-decoration: none;
border-radius: 50px;
border: 2px solid white;
font-family: 'OpenDyslexic', monospace;
}
.btn:disabled {
background-color: var(--witch-plum);
color: var(--witch-moon);
opacity: 0.6;
background-color: var(--background);
color: var(--foreground);
}
.btn:hover {
background-color: var(--highlight);
color: var(--foreground);
transition: background-color 0.3s, color 0.3s;
background-color: var(--background);
color: var(--foreground);
transition: background-color 0.3s, color 0.3s;
}
.product {
display: grid;
grid-template-areas: "logo title icon" "logo description icon";
grid-template-columns: 100px 1fr auto;
background-color: var(--witch-plum);
color: var(--witch-moon);
border: 2px solid var(--border);
background-color: var(--foreground);
color: var(--background);
border: 2px solid white;
border-radius: 50px;
margin-left: 10px;
margin-right: 10px;
@@ -49,14 +49,6 @@ a.product:hover {
align-items: center;
}
.title {
color: var(--witch-moon);
}
.description {
color: var(--witch-moon);
}
.icons {
grid-area: icon;
font-size: 2rem;
+1 -2
View File
@@ -1,9 +1,8 @@
<h1>Products</h1>
<img
src="https://cdn.nhcarrigan.com/hikari.png"
src="https://cdn.nhcarrigan.com/new-avatars/hikari-thinking-full.png"
alt="Hikari"
height="250"
style="display: block; margin: auto;"
/>
<p>Excellent! What sort of product are you looking for?</p>
<div class="row">
+4 -5
View File
@@ -1,11 +1,11 @@
hr {
width: 100%;
border: none;
border-top: 1px solid var(--border);
border-top: 1px solid var(--foreground);
margin: 0;
}
:host ::ng-deep ul {
:host ::ng-deep ul{
list-style-type: disc;
list-style-position: inside;
}
@@ -15,14 +15,13 @@ hr {
margin-bottom: 1em;
width: 90%;
}
.tag {
display: inline-block;
padding: 0 0.5em;
border-radius: 50px;
font-size: 0.8em;
background-color: var(--witch-plum);
color: var(--witch-moon);
background-color: #e0f7fa;
color: #006064;
}
.date {
+3 -1
View File
@@ -32,7 +32,9 @@ export class Sanctions {
private async loadSanctions(): Promise<void> {
const sanctions = await this.sanctionsService.getSanctions();
this.sanctions = sanctions.sort((a, b) => {
return b.number - a.number;
return b.createdAt > a.createdAt
? 1
: -1;
});
}
}
+10 -10
View File
@@ -1,15 +1,15 @@
.btn {
display: inline-block;
padding: 10px 20px;
background-color: var(--accent);
color: var(--witch-moon);
text-decoration: none;
border-radius: 50px;
border: 2px solid var(--border);
display: inline-block;
padding: 10px 20px;
background-color: var(--foreground);
color: var(--background);
text-decoration: none;
border-radius: 50px;
border: 2px solid white;
}
.btn:hover {
background-color: var(--highlight);
color: var(--foreground);
transition: background-color 0.3s, color 0.3s;
background-color: var(--background);
color: var(--foreground);
transition: background-color 0.3s, color 0.3s;
}
+1 -2
View File
@@ -1,9 +1,8 @@
<h1>Oh dear~!</h1>
<img
src="https://cdn.nhcarrigan.com/hikari.png"
src="https://cdn.nhcarrigan.com/new-avatars/hikari-cry-full.png"
alt="Hikari"
height="250"
style="display: block; margin: auto;"
/>
<p>You appear to have become lost!</p>
<p>
+6
View File
@@ -15,4 +15,10 @@
<app-root></app-root>
</body>
<script src="https://cdn.nhcarrigan.com/headers/index.js"></script>
<script>
const styleElement = document.getElementById("nhcarrigan-global-styles");
if (styleElement) {
styleElement.remove();
}
</script>
</html>
+95 -5
View File
@@ -1,12 +1,102 @@
/* Account for the fixed navigation bar */
main {
margin-top: 50px;
min-height: calc(100vh - 50px - 85px);
@font-face {
font-family: 'Vampyr';
src: url('https://cdn.nhcarrigan.com/fonts/vampyr.ttf') format('truetype');
}
:root {
--foreground: #8F2447;
--background: #E1F6F9DC;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-family: 'Vampyr', monospace;
cursor: url('https://cdn.nhcarrigan.com/cursors/cursor.cur'), auto;
min-height: 100vh;
min-width: 100vw;
}
body::before {
background: url(https://cdn.nhcarrigan.com/background.png);
background-size: cover;
background-position: center;
width: 100%;
height: 100%;
z-index: -1;
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
opacity: 1;
pointer-events: none;
}
main {
color: var(--foreground);
background-color: var(--background);
text-align: center;
border-radius: 10px;
width: 100vw;
margin-bottom: 85px;
margin-top: 50px;
min-height: calc(100vh - 85px - 50px);
}
footer {
width: 100%;
color: var(--foreground);
background-color: var(--background);
position: fixed;
bottom: 0;
height: 75px;
padding: 0 10px;
}
#footer-inner-container {
display: flex;
align-items: center;
justify-content: space-between;
height: 75px;
}
#footer-badge-container {
display: grid;
grid-template-columns: repeat(8, 1fr);
align-items: center;
justify-content: space-around;
}
#audio-theme-button, #theme-select-button {
background: none;
border: none;
cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer;
color: var(--foreground);
}
a {
color: unset;
cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer;
}
.btn:not(:disabled) {
cursor: url('https://cdn.nhcarrigan.com/cursors/pointer.cur'), pointer;
}
#tree-nation-offset-website {
display: flex;
align-items: center;
}
.is-dark {
--foreground: #E1F6F9;
--background: #8F2447bb;
}
@media screen and (max-width: 625px) {
#tree-nation-offset-website {
display: none;
}
footer, #footer-inner-container {
height: 50px;
justify-content: space-around;
}
main {
margin-bottom: 60px;
min-height: calc(100vh - 50px - 60px);
}
}
+1 -1
View File
@@ -18,7 +18,7 @@
"@nhcarrigan/eslint-config": "5.2.0",
"@nhcarrigan/typescript-config": "4.0.0",
"eslint": "9.30.1",
"turbo": "2.8.20",
"turbo": "2.8.10",
"typescript": "5.8.3"
}
}
+67 -67
View File
@@ -18,8 +18,8 @@ importers:
specifier: 9.30.1
version: 9.30.1(jiti@2.4.2)
turbo:
specifier: 2.8.20
version: 2.8.20
specifier: 2.8.10
version: 2.8.10
typescript:
specifier: 5.8.3
version: 5.8.3
@@ -31,13 +31,13 @@ importers:
version: 0.56.0
'@nhcarrigan/discord-analytics':
specifier: 0.0.6
version: 0.0.6(@nhcarrigan/logger@1.1.1)(discord.js@14.25.1)
version: 0.0.6(@nhcarrigan/logger@1.1.1)(discord.js@14.21.0)
'@nhcarrigan/logger':
specifier: 1.1.1
version: 1.1.1
discord.js:
specifier: 14.25.1
version: 14.25.1
specifier: 14.21.0
version: 14.21.0
fastify:
specifier: 5.4.0
version: 5.4.0
@@ -1557,36 +1557,6 @@ packages:
resolution: {integrity: sha512-UUYHISyhCU3ZgN8yaear3cGATHb3SMuKHsQ/nVbHXcmnBf+LzQ/cQfhNG+rfaSHgqGKNEm2cOCLVLELStUQ1JA==}
engines: {node: ^18.17.0 || >=20.5.0}
'@turbo/darwin-64@2.8.20':
resolution: {integrity: sha512-FQ9EX1xMU5nbwjxXxM3yU88AQQ6Sqc6S44exPRroMcx9XZHqqppl5ymJF0Ig/z3nvQNwDmz1Gsnvxubo+nXWjQ==}
cpu: [x64]
os: [darwin]
'@turbo/darwin-arm64@2.8.20':
resolution: {integrity: sha512-Gpyh9ATFGThD6/s9L95YWY54cizg/VRWl2B67h0yofG8BpHf67DFAh9nuJVKG7bY0+SBJDAo5cMur+wOl9YOYw==}
cpu: [arm64]
os: [darwin]
'@turbo/linux-64@2.8.20':
resolution: {integrity: sha512-p2QxWUYyYUgUFG0b0kR+pPi8t7c9uaVlRtjTTI1AbCvVqkpjUfCcReBn6DgG/Hu8xrWdKLuyQFaLYFzQskZbcA==}
cpu: [x64]
os: [linux]
'@turbo/linux-arm64@2.8.20':
resolution: {integrity: sha512-Gn5yjlZGLRZWarLWqdQzv0wMqyBNIdq1QLi48F1oY5Lo9kiohuf7BPQWtWxeNVS2NgJ1+nb/DzK1JduYC4AWOA==}
cpu: [arm64]
os: [linux]
'@turbo/windows-64@2.8.20':
resolution: {integrity: sha512-vyaDpYk/8T6Qz5V/X+ihKvKFEZFUoC0oxYpC1sZanK6gaESJlmV3cMRT3Qhcg4D2VxvtC2Jjs9IRkrZGL+exLw==}
cpu: [x64]
os: [win32]
'@turbo/windows-arm64@2.8.20':
resolution: {integrity: sha512-voicVULvUV5yaGXo0Iue13BcHGYW3u0VgqSbfQwBaHbpj1zLjYV4KIe+7fYIo6DO8FVUJzxFps3ODCQG/Wy2Qw==}
cpu: [arm64]
os: [win32]
'@types/chai@5.2.2':
resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}
@@ -2527,8 +2497,8 @@ packages:
discord-api-types@0.38.40:
resolution: {integrity: sha512-P/His8cotqZgQqrt+hzrocp9L8RhQQz1GkrCnC9TMJ8Uw2q0tg8YyqJyGULxhXn/8kxHETN4IppmOv+P2m82lQ==}
discord.js@14.25.1:
resolution: {integrity: sha512-2l0gsPOLPs5t6GFZfQZKnL1OJNYFcuC/ETWsW4VtKVD/tg4ICa9x+jb9bkPffkMdRpRpuUaO/fKkHCBeiCKh8g==}
discord.js@14.21.0:
resolution: {integrity: sha512-U5w41cEmcnSfwKYlLv5RJjB8Joa+QJyRwIJz5i/eg+v2Qvv6EYpCRhN9I2Rlf0900LuqSDg8edakUATrDZQncQ==}
engines: {node: '>=18'}
doctrine@2.1.0:
@@ -4648,8 +4618,38 @@ packages:
resolution: {integrity: sha512-3T3T04WzowbwV2FDiGXBbr81t64g1MUGGJRgT4x5o97N+8ArdhVCAF9IxFrxuSJmM3E5Asn7nKHkao0ibcZXAg==}
engines: {node: ^18.17.0 || >=20.5.0}
turbo@2.8.20:
resolution: {integrity: sha512-Rb4qk5YT8RUwwdXtkLpkVhNEe/lor6+WV7S5tTlLpxSz6MjV5Qi8jGNn4gS6NAvrYGA/rNrE6YUQM85sCZUDbQ==}
turbo-darwin-64@2.8.10:
resolution: {integrity: sha512-A03fXh+B7S8mL3PbdhTd+0UsaGrhfyPkODvzBDpKRY7bbeac4MDFpJ7I+Slf2oSkCEeSvHKR7Z4U71uKRUfX7g==}
cpu: [x64]
os: [darwin]
turbo-darwin-arm64@2.8.10:
resolution: {integrity: sha512-sidzowgWL3s5xCHLeqwC9M3s9M0i16W1nuQF3Mc7fPHpZ+YPohvcbVFBB2uoRRHYZg6yBnwD4gyUHKTeXfwtXA==}
cpu: [arm64]
os: [darwin]
turbo-linux-64@2.8.10:
resolution: {integrity: sha512-YK9vcpL3TVtqonB021XwgaQhY9hJJbKKUhLv16osxV0HkcQASQWUqR56yMge7puh6nxU67rQlTq1b7ksR1T3KA==}
cpu: [x64]
os: [linux]
turbo-linux-arm64@2.8.10:
resolution: {integrity: sha512-3+j2tL0sG95iBJTm+6J8/45JsETQABPqtFyYjVjBbi6eVGdtNTiBmHNKrbvXRlQ3ZbUG75bKLaSSDHSEEN+btQ==}
cpu: [arm64]
os: [linux]
turbo-windows-64@2.8.10:
resolution: {integrity: sha512-hdeF5qmVY/NFgiucf8FW0CWJWtyT2QPm5mIsX0W1DXAVzqKVXGq+Zf+dg4EUngAFKjDzoBeN6ec2Fhajwfztkw==}
cpu: [x64]
os: [win32]
turbo-windows-arm64@2.8.10:
resolution: {integrity: sha512-QGdr/Q8LWmj+ITMkSvfiz2glf0d7JG0oXVzGL3jxkGqiBI1zXFj20oqVY0qWi+112LO9SVrYdpHS0E/oGFrMbQ==}
cpu: [arm64]
os: [win32]
turbo@2.8.10:
resolution: {integrity: sha512-OxbzDES66+x7nnKGg2MwBA1ypVsZoDTLHpeaP4giyiHSixbsiTaMyeJqbEyvBdp5Cm28fc+8GG6RdQtic0ijwQ==}
hasBin: true
twitter-api-v2@1.28.0:
@@ -6029,10 +6029,10 @@ snapshots:
'@napi-rs/nice-win32-x64-msvc': 1.1.1
optional: true
'@nhcarrigan/discord-analytics@0.0.6(@nhcarrigan/logger@1.1.1)(discord.js@14.25.1)':
'@nhcarrigan/discord-analytics@0.0.6(@nhcarrigan/logger@1.1.1)(discord.js@14.21.0)':
dependencies:
'@nhcarrigan/logger': 1.1.1
discord.js: 14.25.1
discord.js: 14.21.0
node-schedule: 2.1.1
'@nhcarrigan/eslint-config@5.2.0(@typescript-eslint/utils@8.35.1(eslint@9.30.1(jiti@2.4.2))(typescript@5.8.3))(eslint@9.30.1(jiti@2.4.2))(playwright@1.53.2)(react@19.1.0)(typescript@5.8.3)(vitest@3.2.4(@types/node@24.0.10)(jiti@2.4.2)(less@4.3.0)(sass@1.88.0)(terser@5.39.1)(tsx@4.20.3))':
@@ -6433,24 +6433,6 @@ snapshots:
'@tufjs/canonical-json': 2.0.0
minimatch: 9.0.5
'@turbo/darwin-64@2.8.20':
optional: true
'@turbo/darwin-arm64@2.8.20':
optional: true
'@turbo/linux-64@2.8.20':
optional: true
'@turbo/linux-arm64@2.8.20':
optional: true
'@turbo/windows-64@2.8.20':
optional: true
'@turbo/windows-arm64@2.8.20':
optional: true
'@types/chai@5.2.2':
dependencies:
'@types/deep-eql': 4.0.2
@@ -7621,7 +7603,7 @@ snapshots:
discord-api-types@0.38.40: {}
discord.js@14.25.1:
discord.js@14.21.0:
dependencies:
'@discordjs/builders': 1.13.1
'@discordjs/collection': 1.5.3
@@ -10210,14 +10192,32 @@ snapshots:
transitivePeerDependencies:
- supports-color
turbo@2.8.20:
turbo-darwin-64@2.8.10:
optional: true
turbo-darwin-arm64@2.8.10:
optional: true
turbo-linux-64@2.8.10:
optional: true
turbo-linux-arm64@2.8.10:
optional: true
turbo-windows-64@2.8.10:
optional: true
turbo-windows-arm64@2.8.10:
optional: true
turbo@2.8.10:
optionalDependencies:
'@turbo/darwin-64': 2.8.20
'@turbo/darwin-arm64': 2.8.20
'@turbo/linux-64': 2.8.20
'@turbo/linux-arm64': 2.8.20
'@turbo/windows-64': 2.8.20
'@turbo/windows-arm64': 2.8.20
turbo-darwin-64: 2.8.10
turbo-darwin-arm64: 2.8.10
turbo-linux-64: 2.8.10
turbo-linux-arm64: 2.8.10
turbo-windows-64: 2.8.10
turbo-windows-arm64: 2.8.10
twitter-api-v2@1.28.0: {}