0
0
Fork 0
An API that allows Twitch to play Hangman in chat.
Find a file
2023-08-03 08:56:42 -06:00
docs/nightbot Add the solve subcommand to the docs 2023-02-20 20:21:50 -07:00
site Gitkeep the site directory 2023-02-19 20:51:49 -07:00
src Reset the guessed letters when starting a new game 2023-08-03 08:56:42 -06:00
.gitignore Add the words directory to the gitignore 2023-01-07 18:05:17 -06:00
config.template.toml Update default config file 2023-01-20 00:01:33 -06:00
generateInterfaces.ts Initial commit 2022-12-23 15:19:37 -06:00
makefile Add a clean recipe 2023-02-19 20:45:37 -07:00
package.json Add socket.io as a dependency 2023-02-19 12:10:53 -07:00
pnpm-lock.yaml Add socket.io as a dependency 2023-02-19 12:10:53 -07:00
README.md Add a bit about the overlay themes into the README 2023-02-19 20:53:30 -07:00
tsconfig.json Initial commit 2022-12-23 15:19:37 -06:00

Chatman

A REST API that can be used to play Hangman with predefined words.

Originally developed to play Hangman in CzechGamesEdition's Twitch Channel using the custom Codenames deck created by chat submissions.

Setup

Overlay Themes

Clone any Chatman overlay themes you'd like into the site directory, this is where all of the files are served from.

Development

  1. pnpm install (install pnpm if it isn't installed already)
  2. cp config.template.toml config.toml
  3. make interfaces (re-run whenever you change a schema in src/schemas/*)
  4. make dev (compiles and runs the code in dev mode) or make rund (skips the compile step, runs it in dev mode)

Production

  1. Same steps as Development, but use make run to run the API in production mode. You may need to change the NODE argument in the makefile to make it run correctly.