• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

rauenzi/BDPluginLibrary: Plugin library for BetterDiscord.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

rauenzi/BDPluginLibrary

开源软件地址(OpenSource Url):

https://github.com/rauenzi/BDPluginLibrary

开源编程语言(OpenSource Language):

JavaScript 99.4%

开源软件介绍(OpenSource Introduction):

PluginLibrary - Download Build Status Language Grade Patreon Paypal

This is the repo for Zere's Plugin Library for BetterDiscord. For now this is only for BBD/BDv1 You can follow development here. There will be more info and shit to come, but for now here ya go.

Library Documentation

View the library documentation here: https://rauenzi.github.io/BDPluginLibrary/docs

The information below is just a quickstart guide and overview on using the build scripts provided.

Building The Lib

npm install
npm run build

This generates a BD compatible ./release/0PluginLibrary.plugin.js file to be added to your plugins folder.

Configuration

The library is configurable with the default configuration found in the package.json. If you want to alter or extend these settings it's recommended that you create a config.json in the root directory that the build scripts will read and use. Note that this is merged with the default configuration so you don't have to include all the possible settings in the config.json.

Options

pluginsFolder

Absolute or relative path to the folder containing the plugins that build scripts can build automatically.

Default: "./plugins"


releaseFolder

Absolute or relative path to the folder where plugins that are built should be placed.

Default: "./release"


bdFolder

Absolute or relative path to the BetterDiscord folder. Useful when combined with copyToBD. This folder is found automatically on most system.

Default: "<os-specific>/BetterDiscord"


copyToBD

Boolean to determine if the built plugin should also be automatically copied over to your BD plugins directory. Very convenient for development.

Default: false


addInstallScript

Boolean to determine if the plugin should include the Windows Host Script install script. This means that users on Windows that double click the plugin will be prompted to automatically install the plugin.

Default: false


Building Plugins

See the example plugin in examples/ExamplePlugin. Note how it does not check for updates in onStart instead the base class Plugin automatically checks for updates using the github_raw in the config.json.

All plugin styles will set the meta using the plugin name for name. github and github_raw will be used as website and source options in the meta.

To build all plugins in plugins folder, run npm run build_plugin. To build a single plugin run npm run build_plugin PluginName. This will yield PluginName.plugin.js in the releases folder with the same meta as outlined in the template. The resulting file will automatically check if the plugin library exists, and alert the user if it does not giving them a link to download it.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap