vimcord 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2167,7 +2167,6 @@ declare class Vimcord<Ready extends boolean = boolean> extends Client<Ready> {
|
|
|
2167
2167
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2168
2168
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2169
2169
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2170
|
-
database(action: string, details?: string): void;
|
|
2171
2170
|
};
|
|
2172
2171
|
readonly error: VimcordErrorHandler;
|
|
2173
2172
|
constructor(options: ClientOptions, features?: VimcordFeatures, config?: PartialDeep<VimcordConfig>);
|
|
@@ -2268,7 +2267,6 @@ declare const clientLoggerFactory: (client: Vimcord) => Logger & {
|
|
|
2268
2267
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2269
2268
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2270
2269
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2271
|
-
database(action: string, details?: string): void;
|
|
2272
2270
|
};
|
|
2273
2271
|
|
|
2274
2272
|
declare const DEFAULT_MODULE_SUFFIXES: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2167,7 +2167,6 @@ declare class Vimcord<Ready extends boolean = boolean> extends Client<Ready> {
|
|
|
2167
2167
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2168
2168
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2169
2169
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2170
|
-
database(action: string, details?: string): void;
|
|
2171
2170
|
};
|
|
2172
2171
|
readonly error: VimcordErrorHandler;
|
|
2173
2172
|
constructor(options: ClientOptions, features?: VimcordFeatures, config?: PartialDeep<VimcordConfig>);
|
|
@@ -2268,7 +2267,6 @@ declare const clientLoggerFactory: (client: Vimcord) => Logger & {
|
|
|
2268
2267
|
moduleLoaded(moduleName: string, count?: number, ignoredCount?: number): void;
|
|
2269
2268
|
commandExecuted(commandName: string, username: string, guildName?: string): void;
|
|
2270
2269
|
plugin(pluginName: string, action: string, details?: string): void;
|
|
2271
|
-
database(action: string, details?: string): void;
|
|
2272
2270
|
};
|
|
2273
2271
|
|
|
2274
2272
|
declare const DEFAULT_MODULE_SUFFIXES: {
|
package/dist/index.js
CHANGED
|
@@ -1693,7 +1693,7 @@ var VimcordErrorHandler = class {
|
|
|
1693
1693
|
import chalk2 from "chalk";
|
|
1694
1694
|
|
|
1695
1695
|
// package.json
|
|
1696
|
-
var version = "1.0.
|
|
1696
|
+
var version = "1.0.42";
|
|
1697
1697
|
|
|
1698
1698
|
// src/client/vimcord.logger.ts
|
|
1699
1699
|
var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({
|
|
@@ -1755,15 +1755,6 @@ var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix
|
|
|
1755
1755
|
chalk2.white(action),
|
|
1756
1756
|
details ? chalk2.hex(this.colors.muted)(details) : ""
|
|
1757
1757
|
);
|
|
1758
|
-
},
|
|
1759
|
-
database(action, details) {
|
|
1760
|
-
console.log(
|
|
1761
|
-
this.formatTimestamp(),
|
|
1762
|
-
this.formatPrefix(),
|
|
1763
|
-
chalk2.hex("#FF6B9D")("\u{1F5C4}\uFE0F DATABASE"),
|
|
1764
|
-
chalk2.white(action),
|
|
1765
|
-
details ? chalk2.hex(this.colors.muted)(details) : ""
|
|
1766
|
-
);
|
|
1767
1758
|
}
|
|
1768
1759
|
});
|
|
1769
1760
|
|
|
@@ -2652,6 +2643,8 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2652
2643
|
this.status = new StatusManager(this);
|
|
2653
2644
|
this.events = new EventManager(this);
|
|
2654
2645
|
this.commands = new CommandManager(this);
|
|
2646
|
+
this.configure("app", this.config.app);
|
|
2647
|
+
this.logger.clientBanner(this);
|
|
2655
2648
|
this.once("clientReady", (client) => this.logger.clientReady(client.user.tag, client.guilds.cache.size));
|
|
2656
2649
|
_Vimcord.instances.set(this.clientId, this);
|
|
2657
2650
|
if (this.config.app.enableCLI) {
|
|
@@ -2665,7 +2658,6 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2665
2658
|
this.configure("slashCommands", this.config.slashCommands);
|
|
2666
2659
|
this.configure("prefixCommands", this.config.prefixCommands);
|
|
2667
2660
|
this.configure("contextCommands", this.config.contextCommands);
|
|
2668
|
-
this.logger.clientBanner(this);
|
|
2669
2661
|
if (this.features.importModules) {
|
|
2670
2662
|
const importModules = this.features.importModules;
|
|
2671
2663
|
await Promise.all([
|
|
@@ -2756,7 +2748,7 @@ var Vimcord = class _Vimcord extends Client2 {
|
|
|
2756
2748
|
*/
|
|
2757
2749
|
async useDatabase(db) {
|
|
2758
2750
|
this.db = db;
|
|
2759
|
-
this.logger.
|
|
2751
|
+
this.logger.plugin("DATABASE", "Using", db.moduleName);
|
|
2760
2752
|
return this.db.connect();
|
|
2761
2753
|
}
|
|
2762
2754
|
/**
|