johnmaguire / cardinal-cah Goto Github PK
View Code? Open in Web Editor NEWCards Against Humanity plugin for Cardinal
License: MIT License
Cards Against Humanity plugin for Cardinal
License: MIT License
This question doesn't fit with the available style of answers:
Black card: Don't bite the hand that ____.
Copied from johnmaguire/Cardinal#172
It should be sent wherever the original message was sent.
It's not really a problem to leave a game around in a starting state, but it means that the instructions won't get shown again later.
Wins - Losses - Quits - Total Points(?)
15:25:12 <Cardinal> 0: Rumor has it that Vladimir Putin's favorite delicacy is Elderly Japanese men stuffed with Horse meat.
15:25:12 <Cardinal> 1: Rumor has it that Vladimir Putin's favorite delicacy is Goblins stuffed with Dead parents.
15:25:12 <Cardinal> 2: Rumor has it that Vladimir Putin's favorite delicacy is Pac-Man uncontrollably guzzling cum stuffed with Barack Obama.
15:25:12 <Cardinal> 3: Rumor has it that Vladimir Putin's favorite delicacy is Kamikaze pilots stuffed with Self-loathing.
At least 2 players did not have their second choice taken.
Probably will just implement this as player.draw(n - 1) if n > 2
I'm imagining a way of denoting which decks should be added by default. Then, any players in the game, while the game is in a starting mode, can add or remove decks.
.decks
to list decks (marking added vs. unadded ones)
.deckadd
to add a deck to the game
.deckrm
to remove a deck from the game
Currently, a game is aborted if the game has less than 3 players. Also, players are removed from the game if they QUIT, PART, or are KICKed. Even still, bugs happen, and currently a user who NICKs is not tracked. Giving halfops the ability to moderate a game seems useful.
2020-04-12 17:38:41,894 - cardinal.bot - DEBUG - [email protected] to Cardinal: .c 2 9
2020-04-12 17:38:41,895 - cardinal.plugins - DEBUG - Attempting to fire event: irc.privmsg
2020-04-12 17:38:41,895 - cardinal.plugins - DEBUG - Calling 1 callbacks for event: irc.privmsg
2020-04-12 17:38:41,895 - cardinal.plugins - DEBUG - Callback X7RO66 accepted event 'irc.privmsg'
2020-04-12 17:38:41,896 - cardinal.plugins - ERROR - Unhandled error: [Failure instance: Traceback: <type 'exceptions.IndexError'>: pop index out of range
/usr/local/lib/python2.7/site-packages/twisted/words/protocols/irc.py:2699:handleCommand
/usr/src/app/cardinal/bot.py:205:irc_PRIVMSG
/usr/src/app/cardinal/plugins.py:712:call_command
/usr/src/app/cardinal/plugins.py:743:_call_command
--- <exception caught here> ---
/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py:151:maybeDeferred
/usr/src/app/plugins/cah/plugin.py:127:choose
/usr/src/app/plugins/cah/game.py:77:choose
]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.