Giter VIP home page Giter VIP logo

discord-cards-against-humanity's Introduction

Discord Misanthropic Petrichor: Cards Against Humanity

Misanthropic Petrichor is an attempt of an implementation of Cards Against Humanity in Discord. It is coded in JavaScript using the Discord.js library. This implementation is not supported or endorsed by https://cardsagainsthumanity.com/.

Features and preview

Private message card selection

Reactions-based Czar card selection

Displaying of names of who's the nastiest after a Czar picks

Available pre-installed decks

In-Discord game configuration

This game is fully automatic and requires no commands to be input during gameplay.

Bot set-up

Clone or download this repository and run it remotely on your server. Please note that you require the minimum Node version 10.1.0 to run this bot.

I strongly recommend using PM2 (http://pm2.keymetrics.io/) as the process manager to keep this bot running smoothly (hopefully) on your server.

You will also need to create a bot user on Discord and add it to your server. I suggest reading this guide: https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token

Dependencies

You have to install Discord.js through NPM, NodeJS' package manager to run this bot. For help in installing Discord.js, kindly visit: https://discord.js.org/#/.

Please use Discord version 11.6. Versions 12 and above currently do not work.

Other packages used by this module (such as FileSystem) should already be installed by default with NodeJS.

Bot configuration

There is only one configuration file for this bot: config.json. Edit it accordingly to suit your needs. It should be pretty self-explanatory, I hope. There should also be multiple channel IDs for the chat and for the game.

Adding new cards

To add new cards, plop them into the cards folder. Blanks (where the white cards are supposed to fill in the content) can be indicated by a series of underscores (minimum 2) in the black card decks.

Each card is to be separated by a newline.

Refer to the current examples if you need any.

Custom card rules

Suppose you have a black card like "make a haiku" which requires three cards. To indicate this to the bot, append square parentheses at the end of the card, with a semi-colon separating two numbers. For example, [3;2] would tell the bot to assign 2 extra cards to the players that round, while they have to pick three cards.

In-situ Discord configuration with commands

Bot commands are not controlled by permissions as of the latest version. Do c!help in Discord for a list of commands as well as a document detailing how to change the card decks, max players, score to win, etc.

Document for command-based configuration: https://docs.google.com/document/d/1IOAMHEbOiyRQXrT4d6DHgc31pI-Dh2jvZXrNu2LvyZo/edit?usp=sharing

Contact

I'm reachable through Discord, Twitter, and email.

Discord: ChocoParrot#8925

Twitter: @ChocoParrotFox

Email: [email protected] (I don't check this often)

If you need to contact me for anything, Discord is probably the best way.

discord-cards-against-humanity's People

Contributors

chocoparrot avatar chokyotager avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

discord-cards-against-humanity's Issues

Need some pointers to get the games going!

Hey,
I self-hosted the bot and added it to the server I have. The problem I am running into is that the game won't start. I get the following message.

image

The thing is, I have more than 3 friends online on the server. What am I doing wrong here? I have set up 2 text channels, #cag-chat, #cag-game and also added the same into the config.json. I tried starting the game from these 2 channels, also tried starting it in other channels and I am lost. Where am I doing something wrong?

I am new with discord, so could you please help me? Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.