@itsmapleleaf/gatekeeper
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -10,2 +10,6 @@ import type * as Discord from "discord.js"; | ||
/** | ||
* The name of the bot. At the moment, only used in debug logging | ||
*/ | ||
name?: string; | ||
/** | ||
* Enables debug logging. Shows when commands are created, activated, registered, etc. | ||
@@ -59,2 +63,2 @@ */ | ||
*/ | ||
export declare function createGatekeeper({ debug, }?: GatekeeperOptions): GatekeeperInstance; | ||
export declare function createGatekeeper({ name, debug, }?: GatekeeperOptions): GatekeeperInstance; |
@@ -32,9 +32,7 @@ "use strict"; | ||
*/ | ||
function createGatekeeper({ debug = false, } = {}) { | ||
function createGatekeeper({ name = "gatekeeper-bot", debug = false, } = {}) { | ||
const slashCommands = new Map(); | ||
const userCommands = new Map(); | ||
const messageCommands = new Map(); | ||
const logger = debug | ||
? (0, logger_1.createConsoleLogger)({ name: "gatekeeper" }) | ||
: (0, logger_1.createNoopLogger)(); | ||
const logger = debug ? (0, logger_1.createConsoleLogger)({ name }) : (0, logger_1.createNoopLogger)(); | ||
const gatekeeper = { | ||
@@ -41,0 +39,0 @@ addCommand(definition) { |
@@ -5,3 +5,3 @@ { | ||
"author": "itsmapleleaf", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "dist/main.js", | ||
@@ -8,0 +8,0 @@ "types": "dist/main.d.ts", |
@@ -9,2 +9,15 @@ # gatekeeper | ||
Install: | ||
```sh | ||
# npm | ||
npm install @itsmapleleaf/gatekeeper discord.js | ||
# yarn | ||
yarn add @itsmapleleaf/gatekeeper discord.js | ||
# pnpm | ||
pnpm add @itsmapleleaf/gatekeeper discord.js | ||
``` | ||
Here's a taste of what Gatekeeper looks like: | ||
@@ -11,0 +24,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74925
1847
65