feat: complete Ancestor quote bot with production-ready Docker support

This commit is contained in:
unfunny
2026-09-13 14:14:38 -04:00
parent f2016da05a
commit fe7351a7dc
1145 changed files with 30890 additions and 97684 deletions

View File

@@ -1,46 +1,46 @@
import { type MBeaconEventContent, type MBeaconInfoContent, type MBeaconInfoEventContent } from "./@types/beacon.ts";
import { LocationAssetType, type LocationEventWireContent, type MLocationEventContent, type MLocationContent, type LegacyLocationEventContent } from "./@types/location.ts";
import { type MRoomTopicEventContent } from "./@types/topic.ts";
import { type RoomMessageEventContent } from "./@types/events.ts";
import { MBeaconEventContent, MBeaconInfoContent, MBeaconInfoEventContent } from "./@types/beacon";
import { LocationAssetType, LocationEventWireContent, MLocationEventContent, MLocationContent, LegacyLocationEventContent } from "./@types/location";
import { MRoomTopicEventContent } from "./@types/topic";
import { IContent } from "./models/event";
/**
* Generates the content for a HTML Message event
* @param body - the plaintext body of the message
* @param htmlBody - the HTML representation of the message
* @returns
*/
export declare function makeHtmlMessage(body: string, htmlBody: string): RoomMessageEventContent;
export declare function makeHtmlMessage(body: string, htmlBody: string): IContent;
/**
* Generates the content for a HTML Notice event
* @param body - the plaintext body of the notice
* @param htmlBody - the HTML representation of the notice
* @returns
*/
export declare function makeHtmlNotice(body: string, htmlBody: string): RoomMessageEventContent;
export declare function makeHtmlNotice(body: string, htmlBody: string): IContent;
/**
* Generates the content for a HTML Emote event
* @param body - the plaintext body of the emote
* @param htmlBody - the HTML representation of the emote
* @returns
*/
export declare function makeHtmlEmote(body: string, htmlBody: string): RoomMessageEventContent;
export declare function makeHtmlEmote(body: string, htmlBody: string): IContent;
/**
* Generates the content for a Plaintext Message event
* @param body - the plaintext body of the emote
* @returns
*/
export declare function makeTextMessage(body: string): RoomMessageEventContent;
export declare function makeTextMessage(body: string): IContent;
/**
* Generates the content for a Plaintext Notice event
* @param body - the plaintext body of the notice
* @returns
*/
export declare function makeNotice(body: string): RoomMessageEventContent;
export declare function makeNotice(body: string): IContent;
/**
* Generates the content for a Plaintext Emote event
* @param body - the plaintext body of the emote
* @returns
*/
export declare function makeEmoteMessage(body: string): RoomMessageEventContent;
export declare function makeEmoteMessage(body: string): IContent;
/** Location content helpers */
export declare const getTextForLocationEvent: (uri: string | undefined, assetType: LocationAssetType, timestamp?: number, description?: string | null) => string;
/**
@@ -60,10 +60,10 @@ export declare const parseLocationEvent: (wireEventContent: LocationEventWireCon
/**
* Topic event helpers
*/
export type MakeTopicContent = (topic: string | null | undefined, htmlTopic?: string) => MRoomTopicEventContent;
export type MakeTopicContent = (topic: string, htmlTopic?: string) => MRoomTopicEventContent;
export declare const makeTopicContent: MakeTopicContent;
export type TopicState = {
text?: string;
text: string;
html?: string;
};
export declare const parseTopicContent: (content: MRoomTopicEventContent) => TopicState;