Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kotori-bot/core

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kotori-bot/core - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

lib/types/events.d.ts

4

lib/app/config.js
/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

import { Http } from '@kotori-bot/tools';
import I18n from '@kotori-bot/i18n';
import type { Parser } from 'tsukiko';
import Context from 'fluoro';
import FluoroContext, { Service as FluoroService, type EventsList as FluoroEventsList } from 'fluoro';
import Config from './config';

@@ -10,124 +10,125 @@ import Message from './message';

import { Symbols } from '../global';
declare module 'fluoro' {
interface Context {
/**
* Adapter constructors list.
*
* @readonly
*/
readonly [Symbols.adapter]: Core[typeof Symbols.adapter];
/**
* Bot instances list.
*
* @readonly
*/
readonly [Symbols.bot]: Core[typeof Symbols.bot];
/**
* Core config.
*
* @readonly
*/
readonly config: Config['config'];
/**
* Meta information.
*
* @readonly
*/
readonly meta: Config['meta'];
/**
* Registered middlewares list.
*
* @readonly
*/
readonly [Symbols.midware]: Message[typeof Symbols.midware];
/**
* Registered commands list.
*
* @readonly
*/
readonly [Symbols.command]: Message[typeof Symbols.command];
/**
* Registered regexps list.
*
* @readonly
*/
readonly [Symbols.regexp]: Message[typeof Symbols.regexp];
/**
* Registered scheduled tasks list.
*
* @readonly
*/
readonly [Symbols.task]: Message[typeof Symbols.task];
/**
* Registered session filters list.
*
* @readonly
*/
readonly [Symbols.filter]: Message[typeof Symbols.filter];
/**
* Session promises in progress list.
*
* @readonly
*/
readonly [Symbols.promise]: Message[typeof Symbols.promise];
/**
* Register a message handled middleware.
*
* @param callback - Middleware callback
* @param priority - Middleware priority, default is 100
* @returns dispose function
*/
midware: Message['midware'];
/**
* Register a command.
*
* @param template - Command template
* @param config - Command config, optional
* @returns Command instance
*/
command: Message['command'];
/**
* Register a regexp.
*
* @param match - Regexp to match
* @param callback - Regexp callback
* @returns dispose function
*/
regexp: Message['regexp'];
/**
* Register a scheduled task.
*
* @param options - Task options
* @param callback - Task callback
* @returns dispose function
*/
task: Message['task'];
/**
* Register a session filter.
*
* @param option - Filter option
* @returns new context
*/
filter: Message['filter'];
/**
* Send a notified message to the master of first bot instance at config.
*
* @experimental
*/
notify: Message['notify'];
/**
* Send a message to all sessions on all bots.
*
* @experimental
*/
boardcast: Message['boardcast'];
/** Http request methods */
http: Http;
/** International methods */
i18n: I18n;
/** Cache service */
cache: Cache;
}
import type { EventsMapping } from '../types/events';
export * from 'fluoro';
export type EventsList = FluoroEventsList<EventsMapping>;
export interface Context {
/**
* Adapter constructors list.
*
* @readonly
*/
readonly [Symbols.adapter]: Context[typeof Symbols.adapter];
/**
* Bot instances list.
*
* @readonly
*/
readonly [Symbols.bot]: Context[typeof Symbols.bot];
/**
* Core config.
*
* @readonly
*/
readonly config: Config['config'];
/**
* Meta information.
*
* @readonly
*/
readonly meta: Config['meta'];
/**
* Registered middlewares list.
*
* @readonly
*/
readonly [Symbols.midware]: Message[typeof Symbols.midware];
/**
* Registered commands list.
*
* @readonly
*/
readonly [Symbols.command]: Message[typeof Symbols.command];
/**
* Registered regexps list.
*
* @readonly
*/
readonly [Symbols.regexp]: Message[typeof Symbols.regexp];
/**
* Registered scheduled tasks list.
*
* @readonly
*/
readonly [Symbols.task]: Message[typeof Symbols.task];
/**
* Registered session filters list.
*
* @readonly
*/
readonly [Symbols.filter]: Message[typeof Symbols.filter];
/**
* Session promises in progress list.
*
* @readonly
*/
readonly [Symbols.promise]: Message[typeof Symbols.promise];
/**
* Register a message handled middleware.
*
* @param callback - Middleware callback
* @param priority - Middleware priority, default is 100
* @returns dispose function
*/
midware: Message['midware'];
/**
* Register a command.
*
* @param template - Command template
* @param config - Command config, optional
* @returns Command instance
*/
command: Message['command'];
/**
* Register a regexp.
*
* @param match - Regexp to match
* @param callback - Regexp callback
* @returns dispose function
*/
regexp: Message['regexp'];
/**
* Register a scheduled task.
*
* @param options - Task options
* @param callback - Task callback
* @returns dispose function
*/
task: Message['task'];
/**
* Register a session filter.
*
* @param option - Filter option
* @returns new context
*/
filter: Message['filter'];
/**
* Send a notified message to the master of first bot instance at config.
*
* @experimental
*/
notify: Message['notify'];
/**
* Send a message to all sessions on all bots.
*
* @experimental
*/
boardcast: Message['boardcast'];
/** Http request methods */
http: Http;
/** International methods */
i18n: I18n;
/** Cache service */
cache: Cache;
}
export declare class Core extends Context {
export declare class Context extends FluoroContext<EventsMapping> implements Context {
readonly [Symbols.adapter]: Map<string, [AdapterClass, Parser<unknown>?]>;

@@ -139,2 +140,6 @@ readonly [Symbols.bot]: Map<string, Set<Api>>;

}
export type Core = Context;
export declare const Core: typeof Context;
export type Service<T extends object = object> = FluoroService<T, Context>;
export declare const Service: new <T extends object = object>(ctx: Context, config: T, identity: string) => Service<T>;
export default Core;
/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -32,2 +32,3 @@

};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(

@@ -44,3 +45,5 @@ // If the importer is in node compatibility mode or this is not an ESM

__export(core_exports, {
Context: () => Context,
Core: () => Core,
Service: () => Service,
default: () => core_default

@@ -56,3 +59,4 @@ });

var import_global = require("../global");
class Core extends import_fluoro.default {
__reExport(core_exports, require("fluoro"), module.exports);
class Context extends import_fluoro.default {
[import_global.Symbols.adapter] = /* @__PURE__ */ new Map();

@@ -93,6 +97,11 @@ [import_global.Symbols.bot] = /* @__PURE__ */ new Map();

}
const Core = Context;
const Service = import_fluoro.Service;
var core_default = Core;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Core
Context,
Core,
Service,
...require("fluoro")
});
/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,2 +0,1 @@

import type { Context } from 'fluoro';
import { CronJob } from 'cron';

@@ -6,2 +5,3 @@ import { type CommandConfig, type MidwareCallback, type RegexpCallback, type TaskCallback, type FilterOption, type TaskOptions } from '../types';

import { Symbols } from '../global';
import type { Context } from './core';
interface MidwareData {

@@ -8,0 +8,0 @@ callback: MidwareCallback;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,2 +0,1 @@

import type { Context, EventsList } from 'fluoro';
import type Api from './api';

@@ -6,3 +5,4 @@ import type { AdapterConfig, EventDataApiBase } from '../types';

import { Session } from './session';
export type EventApiType = {
import type { EventsList, Context } from '../app';
type EventApiType = {
[K in keyof EventsList]: EventsList[K] extends EventDataApiBase ? EventsList[K] : never;

@@ -9,0 +9,0 @@ };

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -0,1 +1,2 @@

/// <reference types="node" />
import type Adapter from './adapter';

@@ -2,0 +3,0 @@ import type { ChannelInfoResponse, GetFileDataResponse, GetFilePathResponse, GetFileUrlResponse, GroupInfoResponse, GuildInfoResponse, Message, SelfInfoResponse, SendMessageResponse, UploadFileResponse, UserInfoResponse } from '../types';

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,2 +0,2 @@

import { Service } from 'fluoro';
import { Service, type Context } from '../app';
type CacheKey = string | symbol | number;

@@ -13,3 +13,3 @@ type CacheValue = string | number | object;

private cache?;
constructor(ctx: ConstructorParameters<typeof Service>[0]);
constructor(ctx: Context);
start(): void;

@@ -16,0 +16,0 @@ stop(): void;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -37,5 +37,5 @@

module.exports = __toCommonJS(cache_exports);
var import_fluoro = require("fluoro");
var import_error = require("../utils/error");
class Cache extends import_fluoro.Service {
var import_app = require("../app");
class Cache extends import_app.Service {
cache = /* @__PURE__ */ new Map();

@@ -42,0 +42,0 @@ constructor(ctx) {

@@ -130,3 +130,3 @@ import { UserAccess, type CommandAction, type CommandArgType, type CommandArgTypeSign, type CommandConfig, type ArgsOrigin, type OptsOrigin } from '../types';

*/
option<TemplateOpt extends string>(name: string, template: TemplateOpt): Command<Template, Opts & ParseOpts<TemplateOpt>>;
option<TemplateOpt extends string>(name: string, template: TemplateOpt): Command<Template, Opts & ParseOpts<TemplateOpt>, "all">;
/**

@@ -133,0 +133,0 @@ * Set command action.

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,2 +0,2 @@

import { type EventDataApiBase, type Message, type MessageQuick, type CommandResult, type EventDataPrivateMsg, type EventDataGroupMsg, type EventDataChannelMsg } from '../types';
import { type EventDataApiBase, type Message, MessageScope, type MessageQuick, type CommandResult, type EventDataPrivateMsg, type EventDataGroupMsg, type EventDataChannelMsg } from '../types';
import type { Adapter } from './adapter';

@@ -176,3 +176,3 @@ import { formatFactory } from '../utils/factory';

*/
export declare const Session: new <T extends EventDataApiBase = EventDataApiBase>(data: T, bot: Adapter) => Session<T>;
export declare const Session: new <T extends EventDataApiBase<MessageScope> = EventDataApiBase<MessageScope>>(data: T, bot: Adapter) => Session<T>;
export {};
/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,2 +0,2 @@

import type { Context } from 'fluoro';
import type { Context } from '../app';
export declare abstract class KotoriPlugin<T extends object | undefined = undefined> {

@@ -3,0 +3,0 @@ protected readonly ctx: Context;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

import 'reflect-metadata';
import { type Context, type EventsList, type ModuleConfig } from 'fluoro';
import { type EventsList, type ModuleConfig } from 'fluoro';
import { type Constructor, Parser } from 'tsukiko';

@@ -7,3 +7,4 @@ import { Symbols } from '../global';

import type { KotoriPlugin } from './plugin';
declare module 'fluoro' {
import type { Context } from '../app';
declare module '../types/events' {
interface EventsMapping {

@@ -10,0 +11,0 @@ literal_ready_module_decorator(name: string, config: ModuleConfig): void;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

import 'reflect-metadata';
export * from 'fluoro';
export * from './app';

@@ -4,0 +3,0 @@ export * from './components';

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -31,3 +31,2 @@

var import_reflect_metadata = require("reflect-metadata");
__reExport(src_exports, require("fluoro"), module.exports);
__reExport(src_exports, require("./app"), module.exports);

@@ -46,3 +45,2 @@ __reExport(src_exports, require("./components"), module.exports);

0 && (module.exports = {
...require("fluoro"),
...require("./app"),

@@ -49,0 +47,0 @@ ...require("./components"),

@@ -1,5 +0,5 @@

import type { Context } from 'fluoro';
import type { Context } from '../app';
import type { Adapter } from '../components';
import type { AdapterConfig } from './config';
declare module 'fluoro' {
declare module './events' {
interface EventsMapping {

@@ -6,0 +6,0 @@ connect(data: EventDataConnect): void;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -0,1 +1,2 @@

/// <reference types="node" />
/** Response for sending message */

@@ -2,0 +3,0 @@ export interface SendMessageResponse {

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,6 +0,6 @@

import type { Context } from 'fluoro';
import type { CommandError } from '../utils/error';
import type { Api, Command, MessageList, MessageSingle, SessionMsg } from '../components';
import type { CommandAction, CommandArgType } from './command';
declare module 'fluoro' {
import type { Context } from '../app';
declare module './events' {
interface EventsMapping {

@@ -7,0 +7,0 @@ before_command(data: EventDataBeforeCommand): void;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

import type { Session } from '../components';
import type { Message, MessageScope } from './message';
declare module 'fluoro' {
declare module './events' {
interface EventsMapping {

@@ -5,0 +5,0 @@ on_message(session: Session<EventDataPrivateMsg | EventDataGroupMsg | EventDataChannelMsg>): void;

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -1,3 +0,3 @@

import type Context from 'fluoro';
import { Symbols } from '../global';
import type { Context } from '../app';
export declare class Container {

@@ -4,0 +4,0 @@ private constructor();

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

@@ -11,3 +11,3 @@ import type { I18n } from '@kotori-bot/i18n';

(template: string, data: Record<string, CommandArgType | undefined> | (CommandArgType | undefined)[]): string;
<T extends keyof MessageMapping>(template: string, data: (Message<T> | CommandArgType | undefined)[]): MessageList<T | "text">;
<T extends keyof MessageMapping>(template: string, data: (Message<T> | CommandArgType | undefined)[]): MessageList<T | 'text'>;
};
/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

/**
* @Package @kotori-bot/core
* @Version 1.6.1
* @Version 1.6.2
* @Author Arimura Sena <me@hotaru.icu>

@@ -9,3 +9,3 @@ * @Copyright 2024 Hotaru. All rights reserved.

* @Link https://github.com/kotorijs/kotori
* @Date 2024/8/9 18:47:17
* @Date 2024/8/16 12:06:16
*/

@@ -12,0 +12,0 @@

{
"name": "@kotori-bot/core",
"version": "1.6.1",
"version": "1.6.2",
"description": "Kotori Core",

@@ -32,4 +32,4 @@ "main": "lib/index.js",

"@kotori-bot/i18n": "^1.3.2",
"@kotori-bot/tools": "^1.5.0",
"fluoro": "^1.1.0"
"fluoro": "^1.1.1",
"@kotori-bot/tools": "^1.5.1"
},

@@ -36,0 +36,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc