Skip to content
/ twir Public

Twitch chat bot written in Golang and TypeScript.

Notifications You must be signed in to change notification settings

twirapp/twir

Folders and files

NameName
Last commit message
Last commit date
Apr 4, 2025
Dec 13, 2024
Mar 10, 2025
Feb 7, 2025
Nov 24, 2024
Apr 9, 2025
Apr 4, 2025
Apr 7, 2025
Apr 7, 2025
Apr 7, 2025
Apr 7, 2025
Mar 6, 2025
Mar 9, 2025
Oct 16, 2024
May 31, 2024
Mar 8, 2025
Dec 26, 2024
Dec 2, 2024
Mar 9, 2025
Feb 11, 2025
Mar 8, 2025
Sep 12, 2023
Mar 9, 2025
Apr 7, 2025
Feb 9, 2025
Mar 20, 2024
Apr 7, 2025
Apr 4, 2025
Sep 12, 2023
May 5, 2024
Apr 4, 2025
Mar 27, 2025
Mar 9, 2025
Jun 10, 2022
Jun 1, 2022
Nov 20, 2023

Repository files navigation

Development

Requirements

Development

Note

For MOST of project management tasks we use own written cli. You can use bun cli help for print cli usage

  • Create twitch application https://dev.twitch.tv/console/apps

  • Set http://localhost:3005/login and https://tokens-generator.twir.app as your redirect url's for twitch application

  • Go to https://tokens-generator.twir.app, set clientID and clientSecret from your app and generate initial token WITH ALL SCOPES

  • cp .env.example .env and fill required envs

  • Run needed services (Postgres, Adminer, Redis, Minio, e.t.c)

docker compose -f docker-compose.dev.yml up -d
  • Start project
bun dev

Writing migrations

  • Use command for create new migration
bun cli migrations create
  • Navigate to folder and edit new migration file
cd libs/migrations/migrations
  • Run new created migrations (optional, because it's running when you execute bun dev)
bun cli migrations run

Https on localhost (optional)

We'll use twir.localhost domain, which is enables ability to grant ssl out of the box, but you can use any other domain and deal with ssl yourself.

  • Add https://twir.localhost/login to your twitch application redirect url's

  • Edit .env, change site base url:

SITE_BASE_URL=https://twir.localhost
  • Start application as usual:
bun dev