A Telegram Bot, play IF(Interactive fiction)
npm install pnpm -g
pnpm install
cp .env.template .env
- overwrite config in
.env
file - run
pnpm start
to start the server
also you can overwrite config in start script:
TG_BOT_TOKEN={you_tg_bot_token} TG_PROXY={you_proxy} pnpm start
$env:TG_BOT_TOKEN="{you_tg_bot_token}"; $env:TG_PROXY="{you_proxy}"; pnpm.cmd start
set TG_BOT_TOKEN={you_tg_bot_token} && set TG_PROXY={you_proxy} && pnpm start
It will watch you code changed and restart server
pnpm start:watch
pnpm lint
pnpm build
default outdir is dist/
make sure installed nodejs
node dist/main.js