Skip to content

Commit

Permalink
Second attempt at allbad.cards
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerkrewson committed Jan 24, 2021
1 parent 58323a5 commit 11468cf
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions config/games/allbadcards.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { randomBytes } from "crypto";
import { ServerGame } from "../../types/types";

const game: ServerGame = {
id: "allbadcards",
name: "All Bad Cards",
author: "Jake Lauer",
basedOn: {
game: "Cards Against Humanity",
link: "https://cardsagainsthumanity.com/",
},
description:
"Be rude. Be irreverent. Be hilarious! Select the card from your hand that you think is best described by a card played by the judge!",
displayUrlText: "allbad.cards",
displayUrlHref: "https://allbad.cards/",
donationUrlText: "Support Jake on Patreon!",
donationUrlHref: "https://www.patreon.com/Allbadcards",
category: ["easy"],
players: "4-20+",
familyFriendly: false,
connectToGame: async () => {
const roomId = "rocketcrab-" + randomBytes(8).toString("hex");
return {
player: {
url: "https://allbad.cards/api/abc/external-create",
customQueryParams: { roomId: "external-room-" + roomId },
},
host: {
customQueryParams: { roomId },
},
};
},
renameParams: {
name: "userName",
ishost: "isHost",
},
};

export default game;

0 comments on commit 11468cf

Please sign in to comment.