Skip to content

Commit f8915c2

Browse files
committed
minor changes
1 parent 75e3601 commit f8915c2

File tree

3 files changed

+49
-43
lines changed

3 files changed

+49
-43
lines changed

config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ TF2LaunchArguments = '''
2222
# Path to VLC Media Player
2323
VLCPath = 'C:\Program Files\VideoLAN\VLC\vlc.exe'
2424
# Path to your Christmas playlist
25-
PlaylistPath = 'E:\Hella Gud Christmas Playlist\christmas.m3u'
25+
PlaylistPath = 'E:\Hella Gud Christmas Playlist\christmas.m3u8'
2626
# Port for VLC to start its web server on
2727
VLCPort = 9090
2828
[Other]

main.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ async function readStreamAsText(stream, format) {
9494
}
9595

9696
async function readNewLines() {
97-
const conLogFileHandle = Deno.openSync(config.TF2.ConLogPath, {read: true});
97+
const conLogFileHandle = await Deno.open(config.TF2.ConLogPath, {read: true});
9898
await conLogFileHandle.seek(fileSize, Deno.SeekMode.Start);
9999
const streamData = await readStreamAsText(conLogFileHandle.readable, "utf-8");
100100
fileSize += streamData.size;
101101
const lines = streamData.text.split(config.TF2.LinuxLineEndings ? "\n" : "\r\n");
102102
getCVARAsBool("sv_alltalk").then((isAlltalk) => {
103-
isAlltalkEnabled = isAlltalk;
103+
if (isAlltalk !== null) {
104+
isAlltalkEnabled = isAlltalk;
105+
}
104106
}).catch(() => {
105107
isAlltalkEnabled = false;
106108
});
@@ -404,7 +406,8 @@ async function getCVAR(cvar) {
404406

405407
async function getCVARAsBool(cvar) {
406408
const CVARint = parseInt(await getCVAR(cvar));
407-
return (CVARint !== 0 && !isNaN(CVARint))
409+
if (isNaN(CVARint)) return null;
410+
return (CVARint !== 0)
408411
}
409412

410413
loadConfig()

playlist.txt

+42-39
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
1-
This is the playlist music I have used with the microphone, this is just to get the idea, you must still create a m3u file yourself and get music files yourself
1+
This is the playlist music I have used with the microphone, this is just to get the idea.
2+
You must still create a m3u8 file yourself and get music files yourself.
23

3-
Andy Williams - The Little Drummer Boy
4-
Bing Crosby - Silver Bells
5-
Bing Crosby - Frosty The Snowman
6-
Bobby Helms - Jingle Bell Rock
7-
Bon Jovi - I Wish Everyday Could Be Like Christmas
8-
Brenda Lee - Rockin' Around The Christmas Tree
9-
Burl Ives - Rudolph the Red-Nosed Reindeer
10-
Chris Rea - Driving Home For Christmas
11-
Dead Worker's Party - It's Beginning to Look Alot Like Dustbowl
12-
Dean Martin - The Christmas Blues
13-
Dean Martin - Let It Snow! Let It Snow! Let It Snow!
14-
Donny Hathaway - This Christmas
15-
Eartha Kitt & Henri Rene - Santa Baby
16-
Ed Sheeran & Elton John - Merry Christmas
17-
Elmo & Patsy - Grandma Got Run Over By A Reindeer
18-
Elvis Presley - Blue Christmas
19-
Frank Sinatra - Santa Claus Is Comin' To Town
20-
Frank Sinatra - Have Yourself A Merry Little Christmas
21-
Johnny Mathis - Have A Holly Jolly Christmas
22-
José Feliciano - Feliz Navidad
23-
jschlatt - It's the Most Wonderful Time of the Year
24-
jschlatt - Baby, It's Cold Outside
25-
jschlatt - White Christmas
26-
Kelly Clarkson - Underneath the Tree
27-
Michael Bublé - It's Beginning To Look A Lot Like Christmas
28-
Nat King Cole - The Christmas Song (Merry Christmas To You)
29-
Nat King Cole - Deck The Halls
30-
PATTI PAGE - Jingle Bells
31-
PAUL McCARTNEY - Wonderful Christmastime
32-
Peggy Lee - Happy Holiday
33-
The Beach Boys - Little Saint Nick
34-
The Carpenters - Merry Christmas Darling
35-
The Eagles - Please Come Home For Christmas
36-
The Ronettes - Sleigh Ride
37-
Thurl Ravenscroft - You're A Mean One, Mr. Grinch
38-
Tony Bennett - Winter Wonderland
39-
Vince Guaraldi Trio - Christmas Time Is Here
40-
Wham - Last Christmas
4+
Andy Williams - The Little Drummer Boy
5+
Bing Crosby - Frosty The Snowman
6+
Bing Crosby - Silver Bells
7+
Bobby Helms - Jingle Bell Rock
8+
Bon Jovi - I Wish Everyday Could Be Like Christmas
9+
Brenda Lee - Rockin' Around The Christmas Tree
10+
Burl Ives - Rudolph the Red-Nosed Reindeer
11+
Chris Rea - Driving Home For Christmas
12+
Dead Workers Party - Builders League United Wonderland
13+
Dead Workers Party - It's Beginning to Look Alot Like Dustbowl
14+
Dean Martin - Let It Snow! Let It Snow! Let It Snow!
15+
Dean Martin - The Christmas Blues
16+
Donny Hathaway - This Christmas
17+
Eartha Kitt & Henri Rene - Santa Baby
18+
Ed Sheeran & Elton John - Merry Christmas
19+
Elmo & Patsy - Grandma Got Run Over By A Reindeer
20+
Elvis Presley - Blue Christmas
21+
Frank Sinatra - Have Yourself A Merry Little Christmas
22+
Frank Sinatra - Santa Claus Is Comin' To Town
23+
Johnny Mathis - Have A Holly Jolly Christmas
24+
José Feliciano - Feliz Navidad
25+
jschlatt - Baby, It's Cold Outside
26+
jschlatt - It's the Most Wonderful Time of the Year
27+
jschlatt - White Christmas
28+
Kelly Clarkson - Run Run Rudolph
29+
Kelly Clarkson - Underneath the Tree
30+
Michael Bublé - It's Beginning To Look A Lot Like Christmas
31+
Nat King Cole - Deck The Halls
32+
Nat King Cole - The Christmas Song (Merry Christmas To You)
33+
Patti Page - Jingle Bells
34+
PAUL McCARTNEY - Wonderful Christmastime
35+
Peggy Lee - Happy Holiday
36+
The Beach Boys - Little Saint Nick
37+
The Carpenters - Merry Christmas Darling
38+
The Eagles - Please Come Home For Christmas
39+
The Ronettes - Sleigh Ride
40+
Thurl Ravenscroft - You're A Mean One, Mr. Grinch
41+
Tony Bennett - Winter Wonderland
42+
Vince Guaraldi Trio - Christmas Time Is Here
43+
Wham - Last Christmas

0 commit comments

Comments
 (0)