2018-01-30 16:59:27 +01:00
|
|
|
/**
|
|
|
|
* BetterDiscord Plugin Base
|
|
|
|
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
|
|
|
|
* All rights reserved.
|
|
|
|
* https://betterdiscord.net
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
2018-02-22 17:19:35 +01:00
|
|
|
import PluginManager from './pluginmanager';
|
2018-03-06 01:24:14 +01:00
|
|
|
import Content from './content';
|
2018-02-14 00:23:52 +01:00
|
|
|
|
2018-03-06 01:24:14 +01:00
|
|
|
export default class Plugin extends Content {
|
2018-02-05 02:12:16 +01:00
|
|
|
|
2018-02-13 17:06:36 +01:00
|
|
|
get type() { return 'plugin' }
|
2018-02-05 15:33:30 +01:00
|
|
|
|
2018-03-06 01:24:14 +01:00
|
|
|
get start() { return this.enable }
|
2018-03-21 00:24:31 +01:00
|
|
|
get stop() { return this.disable }
|
2018-01-30 16:59:27 +01:00
|
|
|
|
2018-02-21 18:46:27 +01:00
|
|
|
unload() {
|
|
|
|
PluginManager.unloadPlugin(this);
|
|
|
|
}
|
|
|
|
|
2018-01-30 16:59:27 +01:00
|
|
|
}
|