npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

discord-reflex-speed

v1.0.1

Published

An module to see your reflex speed

Downloads

14

Readme

Installations

npm i discord-reflex-speed

Introduction

This package is for seeing who have the best reflexes. In this game / package bot sends a message than after x amount of time user have to repond with aWord to win, The first person to send the word wins.

How ?

const reflex = require("discord-reflex-speed");
const game = new reflex();

/**
 * Start a solo mode for a user
 * @param {Message} message The message in which command was used.
 * @returns {void | Error}
 */
game.solo(message)

/**
 * Start a duo mode for two players
 * @param {Message} message The message in which command was used.
 * @param {User} player2 The econd player
 * @returns {void | Error}
 */
game.duo(message, player2)

/**
 * Start a party mode for all human users
 * @param {Message} message The message in which command was used.
 * @returns {void | Error}
 */
game.party(message)

Advanced Settings

const reflex = require("discord-reflex-speed");

/**
  * The options for relfex game
  * @property {Array} words The array of random words
  * @property {"random" | Number} startAfter Time after which message collector starts
  * @property {Number} endIn Time after which message collector ends
  * @property {String} readyColor The color for ready embed
  * @property {String} readyTitle The title for ready embed
  * @property {String} startColor The color for start embed
  * @property {String} startTitle The title for start embed
  * @property {String} timeEndColor The color for embed sent when no one replied in time
  * @property {String} timeEndTitle The title for embed sent when no one replied in time
  * @property {String} endColor The color for embed sent when game is ended
  * @property {String} endTitle The title for embed sent when game is ended
  * @property {String} endDescription The title for embed sent when game is ended
  */
const game = new reflex({
    // Normal game settings 
    endIn: 6969,
    startAfter: "random", // or time in millseconds

    // Embed settings when game is getting ready
    readyColor: "#fr7434",
    readyTitle: "Get your toes ready",

    // Embed settings when game is started
    startColor: "#1c64e3",
    startTitle: "TYPE {word} FAST AS F else you looooose",

    // Embed settings when game ends after a timeout
    timeEndColor: "#000000",
    timeEndTitle: "You all are faliures",

    // Embed settings when game is ended
    endTitle: "GAME ENDEDED",
    endDescription: "Game ended winner is : {winner} in time {time}",
    endColor: "#ff0000",

    // The array of random words
    words: ["hi", "die"]
})

Images

  • Ready

ready.png

  • Started

started.png

  • Time end

timeend.png

  • Game end

end.png

Support

for support or issues or queries contace me on my discord server.