├── .editorconfig ├── .gitignore ├── README.md ├── deathline.ts ├── games └── test_game.json ├── lib ├── CacheMap.ts ├── DeathlineContext.ts ├── IDict.ts ├── MediaRenderer.ts ├── TextRenderer.ts ├── TimeOutManager.ts ├── applySetter.ts ├── clone.ts ├── constants.ts ├── createBot.ts ├── createUser.ts ├── deathline.ts ├── extendContext.ts ├── extendCue.ts ├── extractCueId.ts ├── getChoice.ts ├── loadGame.ts ├── normalizeDelay.ts ├── safeExpression.ts └── validateGame.ts ├── nodemon.json ├── package.json ├── schema.json ├── test ├── lib │ ├── applySetter.ts │ ├── createUser.ts │ ├── extendCue.ts │ ├── normalizeDelay.ts │ └── safeExpression.ts ├── testGame.ts ├── testUser.ts └── tslint.json ├── tsconfig.json ├── tslint.json ├── typings ├── csv-parse.d.ts ├── telegraf-session-local.d.ts └── telegraf.d.ts └── utils └── fromCSV.ts /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/README.md -------------------------------------------------------------------------------- /deathline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/deathline.ts -------------------------------------------------------------------------------- /games/test_game.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/games/test_game.json -------------------------------------------------------------------------------- /lib/CacheMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/CacheMap.ts -------------------------------------------------------------------------------- /lib/DeathlineContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/DeathlineContext.ts -------------------------------------------------------------------------------- /lib/IDict.ts: -------------------------------------------------------------------------------- 1 | export interface IDict { 2 | [key: string]: T; 3 | } -------------------------------------------------------------------------------- /lib/MediaRenderer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/MediaRenderer.ts -------------------------------------------------------------------------------- /lib/TextRenderer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/TextRenderer.ts -------------------------------------------------------------------------------- /lib/TimeOutManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/TimeOutManager.ts -------------------------------------------------------------------------------- /lib/applySetter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/applySetter.ts -------------------------------------------------------------------------------- /lib/clone.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/clone.ts -------------------------------------------------------------------------------- /lib/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/constants.ts -------------------------------------------------------------------------------- /lib/createBot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/createBot.ts -------------------------------------------------------------------------------- /lib/createUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/createUser.ts -------------------------------------------------------------------------------- /lib/deathline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/deathline.ts -------------------------------------------------------------------------------- /lib/extendContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/extendContext.ts -------------------------------------------------------------------------------- /lib/extendCue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/extendCue.ts -------------------------------------------------------------------------------- /lib/extractCueId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/extractCueId.ts -------------------------------------------------------------------------------- /lib/getChoice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/getChoice.ts -------------------------------------------------------------------------------- /lib/loadGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/loadGame.ts -------------------------------------------------------------------------------- /lib/normalizeDelay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/normalizeDelay.ts -------------------------------------------------------------------------------- /lib/safeExpression.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/safeExpression.ts -------------------------------------------------------------------------------- /lib/validateGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/lib/validateGame.ts -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignore": "game_db.json" 3 | } -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/package.json -------------------------------------------------------------------------------- /schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/schema.json -------------------------------------------------------------------------------- /test/lib/applySetter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/lib/applySetter.ts -------------------------------------------------------------------------------- /test/lib/createUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/lib/createUser.ts -------------------------------------------------------------------------------- /test/lib/extendCue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/lib/extendCue.ts -------------------------------------------------------------------------------- /test/lib/normalizeDelay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/lib/normalizeDelay.ts -------------------------------------------------------------------------------- /test/lib/safeExpression.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/lib/safeExpression.ts -------------------------------------------------------------------------------- /test/testGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/testGame.ts -------------------------------------------------------------------------------- /test/testUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/testUser.ts -------------------------------------------------------------------------------- /test/tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/test/tslint.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/tslint.json -------------------------------------------------------------------------------- /typings/csv-parse.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/typings/csv-parse.d.ts -------------------------------------------------------------------------------- /typings/telegraf-session-local.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/typings/telegraf-session-local.d.ts -------------------------------------------------------------------------------- /typings/telegraf.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/typings/telegraf.d.ts -------------------------------------------------------------------------------- /utils/fromCSV.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hogart/deathline/HEAD/utils/fromCSV.ts --------------------------------------------------------------------------------