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,6 +1,6 @@
import { type MatrixEvent } from "./models/event.ts";
import { type MatrixError } from "./http-api/index.ts";
import { type ISendEventResponse } from "./@types/requests.ts";
import { MatrixEvent } from "./models/event";
import { MatrixError } from "./http-api";
import { ISendEventResponse } from "./@types/requests";
/**
* The function to invoke to process (send) events in the queue.
* @param event - The event to send.
@@ -36,7 +36,10 @@ export declare class MatrixScheduler<T = ISendEventResponse> {
*/
readonly queueAlgorithm: typeof MatrixScheduler.QUEUE_MESSAGES;
/**
* Default retry algorithm for the matrix scheduler. Retries events up to 4 times with exponential backoff.
* Retries events up to 4 times using exponential backoff. This produces wait
* times of 2, 4, 8, and 16 seconds (30s total) after which we give up. If the
* failure was due to a rate limited request, the time specified in the error is
* waited before being retried.
* @param attempts - Number of attempts that have been made, including the one that just failed (ie. starting at 1)
* @see retryAlgorithm
*/