discord-count-channels
v1.2.11
Published
A manager to make counters in Discord
Downloads
5
Maintainers
Readme
discord-count-channels
Package to make counts in discord
Installation
yarn install discord-count-channels
npm install discord-count-channels
pnpm install discord-count-channelsUsage
You can use it with MySQL or JSON, like so
MySQL
const { Counter } = require('discord-count-channels');
const { createConnection } = require('mysql');
const { Client } = require('discord.js');
const client = new Client();
//...
const counter = new Counter(client, {
type: 'mysql',
connection: createConnection({
//...
})
}, {
// configs
});
counter.start()JSON
const { Counter } = require('discord-count-channels');
const { createConnection } = require('mysql');
const { Client } = require('discord.js');
const client = new Client();
//...
const counter = new Counter(client, {
type: 'json',
pathFile: './storage/counters.json'
}, {
// configs
});
counter.start()