0.2.0 • Published 1 year ago
@maclary/lists v0.2.0
🤔 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
0.3.0-next.776cc52.0
1 year ago
0.3.0-next.4fe5d58.0
1 year ago
0.3.0-next.6a95826.0
1 year ago
0.3.0-next.c5c3b36.0
1 year ago
0.2.1-next.c7ce387.0
1 year ago
0.2.0
1 year ago
0.1.1-next.f2167ae.0
1 year ago
0.1.1-next.db1da4d.0
1 year ago
0.1.1-next.a60c06b.0
1 year ago
0.1.0
1 year ago