discord-bot-plugins
Advanced tools
Comparing version 1.1.2 to 2.0.0
{ | ||
"name": "discord-bot-plugins", | ||
"version": "1.1.2", | ||
"description": "", | ||
"version": "2.0.0", | ||
"description": "A custom client for discord bots to support plugins!", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/tovade/discord-plugins" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/tovade/discord-plugins/issues" | ||
}, | ||
"main": "./src/index.js", | ||
"dependencies": { | ||
"discord.js": "^12.5.1", | ||
"eris": "^0.15.1", | ||
"events": "^3.3.0", | ||
"fs": "0.0.1-security", | ||
"glob": "^7.1.6", | ||
"path": "^0.12.7" | ||
"path": "^0.12.7", | ||
"util": "^0.12.3" | ||
}, | ||
"devDependencies": {}, | ||
"devDependencies": { | ||
"@types/events": "^3.0.0", | ||
"@types/node": "^15.3.0" | ||
}, | ||
"scripts": { | ||
"test": "node ./test/index.js" | ||
}, | ||
"author": "", | ||
"author": "Tovade", | ||
"license": "ISC" | ||
} |
# discord-bot-plugins | ||
🎉 A custom client with support for community made plugins :) 🎉 | ||
With discord.js: | ||
```js | ||
const { Client } = require("discord-bot-plugins"); | ||
const client = Client(); | ||
const { DClient } = require("discord-bot-plugins"); | ||
const client = new DClient(); | ||
client.plugins.use("plugin here"); // DO NOT DO THIS THIS PLUGIN IS INVALID AND ONLY FOR LEARNING SHOWOFF | ||
client.login("Your token"); | ||
``` | ||
With Eris: | ||
```js | ||
const { EClient } = require("discord-bot-plugins"); | ||
const client = new EClient("YOUR TOKEN"); //how eris works :/ | ||
client.plugins.use("plugin here"); // DO NOT DO THIS THIS PLUGIN IS INVALID AND ONLY FOR LEARNING SHOWOFF | ||
``` | ||
Making a plugin: | ||
@@ -13,0 +24,0 @@ |
@@ -1,4 +0,5 @@ | ||
declare module "discord-plugins" { | ||
declare module "discord-bot-plugins" { | ||
import EventEmitter from "events"; | ||
import { Client, ClientOptions as DClientOptions } from "discord.js"; | ||
import { ClientOptions as EClientOptions} from "eris" | ||
@@ -24,2 +25,6 @@ export interface Pluginevents { | ||
} | ||
export class PluginErisClient extends Client { | ||
constructor(token: string, options: EClientOptions) | ||
} | ||
} | ||
declare module "path" {} |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
6135
9
96
0
34
0
7
2
+ Addederis@^0.15.1
+ Addedutil@^0.12.3
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.8(transitive)
+ Addedcall-bind-apply-helpers@1.0.2(transitive)
+ Addedcall-bound@1.0.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddunder-proto@1.0.1(transitive)
+ Addederis@0.15.1(transitive)
+ Addedes-define-property@1.0.1(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-object-atoms@1.1.1(transitive)
+ Addedfor-each@0.3.5(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.7(transitive)
+ Addedget-proto@1.0.1(transitive)
+ Addedgopd@1.2.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-symbols@1.1.0(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedis-arguments@1.2.0(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-generator-function@1.1.0(transitive)
+ Addedis-regex@1.2.1(transitive)
+ Addedis-typed-array@1.1.15(transitive)
+ Addedmath-intrinsics@1.1.0(transitive)
+ Addedopusscript@0.0.8(transitive)
+ Addedpossible-typed-array-names@1.1.0(transitive)
+ Addedsafe-regex-test@1.1.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedutil@0.12.5(transitive)
+ Addedwhich-typed-array@1.1.18(transitive)