chore: move operators into core

This commit is contained in:
jacoobes
2023-04-14 12:59:13 -05:00
parent 09e57c73ac
commit 1a4e046f50
6 changed files with 14 additions and 14 deletions

View File

@@ -1,3 +1,3 @@
import SernEmitter from './sernEmitter'
export * from './operators'
export { SernEmitter };

View File

@@ -5,13 +5,13 @@
*/
import { concatMap, defaultIfEmpty, EMPTY, every, map, of, OperatorFunction, pipe } from 'rxjs';
import type { AnyModule } from '../../../types/module';
import { nameOrFilename } from '../../utilities/functions';
import type { PluginResult, VoidResult } from '../../../types/plugin';
import { guayin } from '../../plugins';
import type { AnyModule } from '../types/module';
import { nameOrFilename } from './utilities/functions';
import type { PluginResult, VoidResult } from '../types/plugin';
import { guayin } from './plugins';
import { controller } from '../../sern';
import { Result } from 'ts-results-es';
import { ImportPayload, Processed } from '../../../types/handler';
import { ImportPayload } from '../types/handler';
/**
* if {src} is true, mapTo V, else ignore
* @param item

View File

@@ -3,7 +3,6 @@ import type { Processed } from '../../types/handler';
import { ApplicationCommandType, ComponentType } from './enums';
/**
* @since 2.0.0
* Storing all command modules

View File

@@ -9,6 +9,7 @@ interface Wrapper {
readonly defaultPrefix?: string;
readonly commands: string;
readonly events?: string;
readonly strategy: PlatformStrategy;
readonly containerConfig: {
get: (...keys: (keyof Dependencies)[]) => unknown[];
};

View File

@@ -1,7 +1,7 @@
import type { Processed } from '../../../types/handler';
import type { AutocompleteInteraction } from 'discord.js';
import { SernError } from '../../structures';
import treeSearch from '../../utilities/treeSearch';
import { SernError } from '../../../core/structures';
import treeSearch from '../../../core/utilities/treeSearch';
import type { BothCommand, CommandModule, Module, SlashCommand } from '../../../types/module';
import { EventEmitter } from 'events';
import * as assert from 'assert';

View File

@@ -12,15 +12,15 @@ import {
OperatorFunction,
pipe,
} from 'rxjs';
import { CommandType, type ModuleStore, SernError } from '../structures';
import { CommandType, type ModuleStore, SernError } from '../../core/structures';
import { contextArgs, dispatchAutocomplete, dispatchCommand, interactionArg } from './dispatchers';
import { executeModule, makeModuleExecutor } from './observableHandling';
import type { CommandModule } from '../../types/module';
import { ErrorHandling, handleError } from '../contracts/errorHandling';
import SernEmitter from '../sernEmitter';
import { ErrorHandling, handleError } from '../../core/contracts/errorHandling';
import { SernEmitter } from '../../core';
import type { Processed } from '../../types/handler';
import { useContainerRaw } from '../dependencies';
import type { Logging, ModuleManager } from '../contracts';
import { useContainerRaw } from '../../core/dependencies';
import type { Logging, ModuleManager } from '../../core/contracts';
import type { EventEmitter } from 'node:events';
function makeInteractionProcessor(