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

butlerbot-cards-against-humanity

v1.1.1

Published

Cards against humanity plugin for butlerbot

Downloads

16

Readme

Cards Against Humanity

This plugin allows you to play Cards Against Humanity over irc

Install

yarn add butlerbot-cards-against-humanity

Create a file in the plugin fir as follows

import cah from 'butlerbot-cards-against-humanity';
export default cah({
  production: {
    gameOptions: {
      setTopic: true,
      topicBase: '|| wiki: https://github.com/butlerx/butlerbot/wiki/Cards-Against-Humanity',
      notifyUsers: false,
      pointLimit: 5,
      idleLimit: 2,
      secondsBeforeStart: 60,
      roundMinutes: 6,
      database: false,
      maxPlayers: 8,
    },

    pluginOptions: {
      channels: ['#CardsAgainstHumanity'],
      channelsToExclude: ['#Uno', '#Countdown', '#bots', '#BookClub', 'helpdesk'],
      channelsToJoin: ['#CardsAgainstHumanity'],
    },
    db: {
      username: 'root',
      password: null,
      database: 'database_development',
      host: '127.0.0.1',
      port: 3306,
    },
  },
  development: {
    gameOptions: {
      setTopic: true,
      topicBase: '|| Dev Bot || Expect spam || Expect breakings',
      notifyUsers: false,
      pointLimit: 5,
      idleLimit: 2,
      secondsBeforeStart: 60,
      roundMinutes: 6,
      database: true,
      maxPlayers: 8,
    },

    pluginOptions: {
      channels: ['#botdev'],
      channelsToExclude: [],
      channelsToJoin: ['#botdev'],
    },
    db: {
      username: 'root',
      password: null,
      database: 'database_production',
      host: '127.0.0.1',
      port: 3306,
    },
  },
});

Commands

Public Commands

  • !start # - Start a new game. Optional parameter can by used to set a point limit for the game (e.g. !start 10 to play until one player has 10 points.)
  • !stop - Stop the currently running game.
  • !pause - Pause the currently running game.
  • !resume - Resume a paused game.
  • !join - Join to the currently running game.
  • !j - Alias for join command.
  • !quit - Quit from the game.
  • !q - alias for quit.
  • !cards - Show the cards you have in your hand.
  • !cah # (#) - Depending on the context this command will either play cards from your hand, or if you are the czar, will pick the winner at the end of a round
  • !points - Show players' awesome points in the current game.
  • !list - List players in the current game.
  • !players - Alias for !list command
  • !status - Show current status of the game. Output depends on the state of the game (e.g. when waiting for players to play, you can check who hasn't played yet)
  • !discard (#) - Discard cards once per round, at the cost of one awesome point. You can either provide no arugments to get an entirely new hand, or you can provide indices to only discard those cards. You must have at least one awesome point to discard cards.

Private Commands

  • !cah # (#) - Play a card from your hand

All of these commands are case insensitive and are trimmed for whitespace so "!start" and " !StaRt" will work the same

Configuration

In config/config.json there are three settings.

  • channels - Lists the channels this plugin can be used in. If you wish it to be usable in all channels the bot is in, set this to all.
  • channelsToExclude - Lists the channels the plugin cannot be used in if you have chosen that the plugin can be used in all channels but want to exclude one in particular
  • channelsToJoin - This is an array of channels the bot should join when this plugin is loaded.