Socket
Book a DemoInstallSign in
Socket

owo-counting

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

owo-counting

A basics plugin to create and allow track counting for yours OwO of your discord bot

1.0.8
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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()}`);
});

Keywords

discord

FAQs

Package last updated on 21 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.