1.0.8 • Published 3 years ago

owo-counting v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

owo-counting

A basics plugin to create counting OwO of yours bot and monitoring OwO Community guild.

This package npm is still beta, and i'm developer this npm will work hard to maintening. Thanks, enjooyyy... - Devin#3583

owo-counting

Next Stage of Development

  • Open/Publish Documentation
  • Weekly Counting Reset
  • Monthly Counting Reset
  • Reminders Pray/Curse
  • and more...

Example:

if your bot using discord.js, you can find more example here

const { Client } = require('discord.js');
const client = new Client({ intents: ['GUILDS', 'GUILD_MESSAGES'] });

const { Counting } = require('owo-counting');
const counting = new Counting(client, {
    custom_prefix: 'w', // optional custom prefix OwO bot on your server. but if it doesn't exist, you can delete this line
});

/* Discord.Js Event */

client.on('ready', () => console.log(`Logged in ${client.user.tag}`));

client.on('messageCreate', (message) => {
    if (message.author.bot) return;
    
    counting.create(message, {
        reminder: {
            owo: true, // enable reminders owo. dIsable = false
            hunt: true, // enable reminders hunt. disable = false
            battle: true, // enable reminders battle. disable = false
        }
    }); // creating counting and done work. EZ?
    
    // handle message for your bot here
});

/* Counting Event */

client.on('countReady', () => console.log(`Counting is Ready! now ${counting.readyAt}`));

client.on('countCreate', (create) => {
    // create: response = { type: 'owo/hunt/battle', user: message.author,  guild: message.guild, message: message } 
    
    console.log(`${create.user.tag} has typing ${create.type}, coldowns for this type has active`);
   
    // then is your PR, however you must handle some to save counts number . like a to database
});

client.on('countReset', (reset) => {
    // reset: response = { type: 'DAILY/WEEKLY/MONTHLY', count: counting };
    
    console.log(`${reset.type} has Refreshing at ${reset.resetAt.toLocaleTimeString()}`);
});
1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.1-beta

3 years ago

1.0.0-beta

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago