Skip to content

Commit

Permalink
Add ability to have Live streamers
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Jan 22, 2025
1 parent 8fd85f8 commit f78ee82
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conf/lila.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ kamon.influxdb.authentication.token = "secret"
plan.stripe.keys.public = "pk_test_123"
plan.stripe.keys.secret = "sk_test_123"
plan.payPal.keys.public = "sb"

streamer.streaming.twitch.endpoint = "http://nginx/static/twitch-streamers.json"
streamer.streaming.twitch.client_id = "twitch-client-id"
streamer.streaming.twitch.secret = "twitch-secret"
4 changes: 4 additions & 0 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ server {
alias /lila/public/font;
}

location /static {
alias /nginx/static;
}

location /websocket/ {
internal;

Expand Down
24 changes: 24 additions & 0 deletions nginx/static/twitch-streamers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"data":[
{
"id":"123456789",
"user_id":"98765",
"user_login":"lichessdotorg",
"user_name":"lichessdotorg",
"game_id":"743",
"game_name":"Chess",
"type":"live",
"title":"Taking challenges on lichess.org",
"tags":["English"],
"viewer_count":78365,
"started_at":"2021-03-10T15:04:21Z",
"language":"en",
"thumbnail_url":"https://static-cdn.jtvnw.net/previews-ttv/live_user_auronplay-{width}x{height}.jpg",
"tag_ids":[],
"is_mature":false
}
],
"pagination":{
"cursor":"eyJiIjp7IkN1cnNvciI6ImV5SnpJam8zT0RNMk5TNDBORFF4TlRjMU1UY3hOU3dpWkNJNlptRnNjMlVzSW5RaU9uUnlkV1Y5In0sImEiOnsiQ3Vyc29yIjoiZXlKeklqb3hOVGs0TkM0MU56RXhNekExTVRZNU1ESXNJbVFpT21aaGJITmxMQ0owSWpwMGNuVmxmUT09In19"
}
}

0 comments on commit f78ee82

Please sign in to comment.