-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58323a5
commit 11468cf
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |