Allow plugins to access the 'threads' module for creating new threads
parent
a3c1ed0a28
commit
f5caa80c4c
|
@ -2,6 +2,7 @@ const express = require("express");
|
|||
const { CommandManager } = require("knub-command-manager");
|
||||
const { Client } = require("eris");
|
||||
const Knex = require("knex");
|
||||
const threads = require("./data/threads");
|
||||
|
||||
/**
|
||||
* @typedef {object} PluginAPI
|
||||
|
@ -14,6 +15,7 @@ const Knex = require("knex");
|
|||
* @property {PluginHooksAPI} hooks
|
||||
* @property {FormattersExport} formats
|
||||
* @property {express.Application} webserver
|
||||
* @property {threads} threads
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,6 +7,7 @@ const { server: webserver } = require("./modules/webserver");
|
|||
const childProcess = require("child_process");
|
||||
const pacote = require("pacote");
|
||||
const path = require("path");
|
||||
const threads = require("./data/threads");
|
||||
|
||||
const pluginSources = {
|
||||
npm: {
|
||||
|
@ -128,6 +129,7 @@ module.exports = {
|
|||
},
|
||||
formats,
|
||||
webserver,
|
||||
threads,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue