@devtomio/plugin-botlist
Plugin for @sapphire/framework to post stats to several discord bot lists.
Description
This plugin enables the integration of many bot lists such as Top.gg, Discord Labs, and others.
Features
- Fully ready for TypeScript!
- Includes ESM ready entrypoint
- Easy to use
- Auto-detection of enabled sites
Installation
@devtomio/plugin-botlist
depends on the following packages. Be sure to install these along with this package!
You can use the following command to install this package, or replace npm install
with your package manager of choice.
npm install @devtomio/plugin-botlist @sapphire/framework discord.js
Usage
JavaScript
In your main or setup file, register the plugin:
require('@devtomio/plugin-botlist/register');
require('@devtomio/plugin-botlist/register');
const client = new SapphireClient({
botList: {
clientId: 'YOUR_CLIENT_ID',
debug: false,
shard: false,
autoPost: {
enabled: true,
interval: 3_600_000
},
keys: {
topGG: 'YOUR_AWESOME_TOP_GG_API_KEY'
}
}
});
async function main() {
await client.login();
}
void main();
TypeScript
In your main or setup file, register the plugin:
import '@devtomio/plugin-botlist/register';
import '@devtomio/plugin-botlist/register';
const client = new SapphireClient({
botList: {
clientId: 'YOUR_CLIENT_ID',
debug: false,
shard: false,
autoPost: {
enabled: true,
interval: 3_600_000
},
keys: {
topGG: 'YOUR_AWESOME_TOP_GG_API_KEY'
}
}
});
async function main() {
await client.login();
}
void main();
If you enable the autoPost
option, the plugin will automatically publish the data for you; you don't need to do anything else!
List of Supported Sites
Contributors
Thank you to all the people who already contributed to this project!