0.2.0 • Published 1 year ago

@maclary/lists v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Version Total Downloads

🤔 About

Lists is a library that helps you post your bot's statistics to all the Discord bot lists you want. It's easy to use and supports all the major bot lists. Lists is still in its early stages, many more features are planned. If you find any bugs or have any suggestions, please open an issue.

📚 Documentation

Documentation and guides coming soon

🌐 Examples

An example is worth a thousand words. This example shows how to use the library in TypeScript, but it also works in JavaScript using either require or import.

import { Poster, Lists } from '@maclary/lists';

const lists = [
    new Lists.TopGG('botid', 'top api token'),
    new Lists.DiscordsCom('botid', 'discords api token'),
    ...
];

const poster = new Poster(lists, {
    shardCount: () => client.shard?.count ?? 1,
    guildCount: () => client.guilds.cache.size,
    userCount: () => client.guilds.cache.reduce((a, b) => a + b.memberCount, 0),
    voiceConnectionCount: () => client.voice.connections.size,
});

poster.startAutoPoster();
poster.stopAutoPoster();

🤖 Supported Bot Lists