New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-bot-plugins

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-bot-plugins - npm Package Compare versions

Comparing version 1.1.2 to 2.0.0

src/index.ts

22

package.json
{
"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" {}
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