0
0
Fork 0
An API that allows Twitch to play Hangman in chat.
Find a file
2024-03-10 16:16:19 -06:00
docs/nightbot Add the ability for Nightbot to end a game through the command (mod only) 2023-09-03 11:49:29 -06:00
scripts Add a helper script in order to clean a CSV file into a compatible format 2023-08-26 20:39:10 -06:00
site Remove console log 2024-03-10 16:16:19 -06:00
src Add the ability for Nightbot to end a game through the command (mod only) 2023-09-03 11:49:29 -06:00
.gitignore Put the compiled types into the repo 2023-08-27 19:59:52 -06:00
config.template.toml Update default config file 2023-01-20 00:01:33 -06:00
docker-compose.yaml Fix the target and environment 2023-08-26 20:45:52 -06:00
dockerfile Fix the target and environment 2023-08-26 20:45:52 -06:00
generateInterfaces.ts Initial commit 2022-12-23 15:19:37 -06:00
package-lock.json Add an overlay style representing a health bar. 2024-03-10 15:41:49 -06:00
package.json Add a script to generate the types 2023-08-27 19:52:52 -06: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 Add the neccesary docker files for operation 2023-08-26 20:42:22 -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.