Something went wrong. Try again.
A Discord bot designed to entertain your server esmbot.net
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129import type { ServerResponse } from "node:http";import type { ApplicationCommandOptions, Client, CombinedApplicationCommandOption, Constants } from "oceanic.js";import type Command from "#cmd-classes/command.js";import type { DatabasePlugin } from "../database.ts";
export interface DBGuild { guild_id: string; prefix: string; disabled: string[]; disabled_commands: string[]; tag_roles: string[];}
export interface Tag { name: string; content: string; author: string;}
export interface Count { command: string; count: number;}
export interface CommandsConfig { types: { classic: boolean; application: boolean; }; blacklist: string[];}
export type ExtCommand = { baseCommand: boolean; category: string; params: Param[]; type: Constants.ApplicationCommandTypes;} & typeof Command;
export type CommandType = "classic" | "application";export type CommandFlagType = | "string" | "integer" | "boolean" | "user" | "channel" | "role" | "mentionable" | "number" | "attachment";
export type ExtendedCommandOptions = { classic?: boolean;} & ApplicationCommandOptions;
export type CommandFlag = { type: Constants.ApplicationCommandOptionTypes | CommandFlagType; classic?: boolean;} & Omit<CombinedApplicationCommandOption, "type">;
export type Param = | { name: string; desc: string; params: Param[]; } | string;
export const mediaTypes = ["image"] as const;export type MediaTypes = (typeof mediaTypes)[number];
export interface MediaParams { cmd: string; params: { [key: string]: string | number | boolean; }; id: string; inputs: MediaMeta[]; spoiler?: boolean; token?: string; filesize?: number;}
export interface MediaMeta { path: string; spoiler: boolean; result?: boolean;}
export interface JobOutput { buffer: Buffer; type: string; spoiler: boolean;}
export interface MediaFormats { image?: { [cmd: string]: string[]; };}
export interface MediaFuncs { image?: string[];}
export interface MediaFuncTypes { [cmd: string]: MediaTypes[];}
export interface SearXNGResults { query: string; results: { author?: string; img_src?: string; title: string; url: string; }[];}
export interface EventParams { client: Client; database: DatabasePlugin | undefined; res?: ServerResponse;}
export function isError(error: unknown): error is NodeJS.ErrnoException { return error instanceof Error;}