Spaces:
Build error
Build error
Commit
•
f071343
1
Parent(s):
f64b6db
preparing some audio files
Browse files- .gitignore +2 -1
- Dockerfile +2 -0
- package-lock.json +207 -0
- package.json +1 -0
- scripts/downloadmusic.sh +7 -0
- scripts/init.sh +2 -0
- src/twitchBot.mts +24 -0
.gitignore
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
node_modules
|
2 |
*.log
|
3 |
*.bin
|
@@ -6,4 +7,4 @@ node_modules
|
|
6 |
models/
|
7 |
sandbox/
|
8 |
audio.pipe
|
9 |
-
video.pipe
|
|
|
1 |
+
*.zip
|
2 |
node_modules
|
3 |
*.log
|
4 |
*.bin
|
|
|
7 |
models/
|
8 |
sandbox/
|
9 |
audio.pipe
|
10 |
+
video.pipe
|
Dockerfile
CHANGED
@@ -5,6 +5,8 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|
5 |
|
6 |
RUN apt update
|
7 |
|
|
|
|
|
8 |
RUN apt --yes install ffmpeg libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0
|
9 |
|
10 |
# Set up a new user named "user" with user ID 1000
|
|
|
5 |
|
6 |
RUN apt update
|
7 |
|
8 |
+
RUN apt --yes install wget unzip
|
9 |
+
|
10 |
RUN apt --yes install ffmpeg libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0
|
11 |
|
12 |
# Set up a new user named "user" with user ID 1000
|
package-lock.json
CHANGED
@@ -11,6 +11,7 @@
|
|
11 |
"dependencies": {
|
12 |
"@gradio/client": "^0.1.3",
|
13 |
"@huggingface/inference": "^2.5.2",
|
|
|
14 |
"@types/express": "^4.17.17",
|
15 |
"@types/uuid": "^9.0.2",
|
16 |
"fluent-ffmpeg": "^2.1.2",
|
@@ -165,6 +166,29 @@
|
|
165 |
"@jridgewell/sourcemap-codec": "^1.4.10"
|
166 |
}
|
167 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
"node_modules/@puppeteer/browsers": {
|
169 |
"version": "1.4.3",
|
170 |
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.4.3.tgz",
|
@@ -738,6 +762,14 @@
|
|
738 |
"ms": "2.0.0"
|
739 |
}
|
740 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
741 |
"node_modules/deep-is": {
|
742 |
"version": "0.1.4",
|
743 |
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
@@ -787,6 +819,17 @@
|
|
787 |
"node": ">=0.3.1"
|
788 |
}
|
789 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
790 |
"node_modules/ee-first": {
|
791 |
"version": "1.1.1",
|
792 |
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
@@ -899,6 +942,11 @@
|
|
899 |
"node": ">= 0.6"
|
900 |
}
|
901 |
},
|
|
|
|
|
|
|
|
|
|
|
902 |
"node_modules/express": {
|
903 |
"version": "4.18.2",
|
904 |
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
|
@@ -1464,6 +1512,16 @@
|
|
1464 |
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
1465 |
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
1466 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1467 |
"node_modules/lru-cache": {
|
1468 |
"version": "7.18.3",
|
1469 |
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
@@ -1477,6 +1535,14 @@
|
|
1477 |
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
1478 |
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="
|
1479 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1480 |
"node_modules/media-typer": {
|
1481 |
"version": "0.3.0",
|
1482 |
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
@@ -1949,11 +2015,38 @@
|
|
1949 |
"url": "https://github.com/sponsors/ljharb"
|
1950 |
}
|
1951 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1952 |
"node_modules/queue-tick": {
|
1953 |
"version": "1.0.1",
|
1954 |
"resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
|
1955 |
"integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="
|
1956 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1957 |
"node_modules/range-parser": {
|
1958 |
"version": "1.2.1",
|
1959 |
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
@@ -1976,6 +2069,19 @@
|
|
1976 |
"node": ">= 0.8"
|
1977 |
}
|
1978 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1979 |
"node_modules/require-directory": {
|
1980 |
"version": "2.1.1",
|
1981 |
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
@@ -2016,6 +2122,14 @@
|
|
2016 |
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
2017 |
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
2018 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019 |
"node_modules/semiver": {
|
2020 |
"version": "1.1.0",
|
2021 |
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
@@ -2084,6 +2198,73 @@
|
|
2084 |
"url": "https://github.com/sponsors/ljharb"
|
2085 |
}
|
2086 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2087 |
"node_modules/smart-buffer": {
|
2088 |
"version": "4.2.0",
|
2089 |
"resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
@@ -2154,6 +2335,14 @@
|
|
2154 |
"node": ">=0.10.0"
|
2155 |
}
|
2156 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2157 |
"node_modules/statuses": {
|
2158 |
"version": "2.0.1",
|
2159 |
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
@@ -2162,6 +2351,11 @@
|
|
2162 |
"node": ">= 0.8"
|
2163 |
}
|
2164 |
},
|
|
|
|
|
|
|
|
|
|
|
2165 |
"node_modules/streamx": {
|
2166 |
"version": "2.15.0",
|
2167 |
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.0.tgz",
|
@@ -2171,6 +2365,14 @@
|
|
2171 |
"queue-tick": "^1.0.1"
|
2172 |
}
|
2173 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2174 |
"node_modules/string-width": {
|
2175 |
"version": "4.2.3",
|
2176 |
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
@@ -2360,6 +2562,11 @@
|
|
2360 |
"node": ">= 0.8"
|
2361 |
}
|
2362 |
},
|
|
|
|
|
|
|
|
|
|
|
2363 |
"node_modules/utils-merge": {
|
2364 |
"version": "1.0.1",
|
2365 |
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
|
|
11 |
"dependencies": {
|
12 |
"@gradio/client": "^0.1.3",
|
13 |
"@huggingface/inference": "^2.5.2",
|
14 |
+
"@kararty/dank-twitch-irc": "^6.0.0",
|
15 |
"@types/express": "^4.17.17",
|
16 |
"@types/uuid": "^9.0.2",
|
17 |
"fluent-ffmpeg": "^2.1.2",
|
|
|
166 |
"@jridgewell/sourcemap-codec": "^1.4.10"
|
167 |
}
|
168 |
},
|
169 |
+
"node_modules/@kararty/dank-twitch-irc": {
|
170 |
+
"version": "6.0.0",
|
171 |
+
"resolved": "https://registry.npmjs.org/@kararty/dank-twitch-irc/-/dank-twitch-irc-6.0.0.tgz",
|
172 |
+
"integrity": "sha512-sOsJzATZWnLxM3OX1dgkCqyVN4/lyOgJQ/e2E/9DsrxiIPwV6fX1eG5QsjOpkuyEYx3L4UkGvIPI1V7idkrQug==",
|
173 |
+
"dependencies": {
|
174 |
+
"debug-logger": "^0.4.1",
|
175 |
+
"duplexify": "^4.1.2",
|
176 |
+
"eventemitter3": "^4.0.7",
|
177 |
+
"lodash.camelcase": "^4.3.0",
|
178 |
+
"lodash.pickby": "^4.6.0",
|
179 |
+
"make-error-cause": "^2.3.0",
|
180 |
+
"ms": "^2.1.3",
|
181 |
+
"randombytes": "^2.1.0",
|
182 |
+
"semaphore-async-await": "^1.5.1",
|
183 |
+
"simple-websocket": "^9.1.0",
|
184 |
+
"split2": "^4.1.0"
|
185 |
+
}
|
186 |
+
},
|
187 |
+
"node_modules/@kararty/dank-twitch-irc/node_modules/ms": {
|
188 |
+
"version": "2.1.3",
|
189 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
190 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
191 |
+
},
|
192 |
"node_modules/@puppeteer/browsers": {
|
193 |
"version": "1.4.3",
|
194 |
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-1.4.3.tgz",
|
|
|
762 |
"ms": "2.0.0"
|
763 |
}
|
764 |
},
|
765 |
+
"node_modules/debug-logger": {
|
766 |
+
"version": "0.4.1",
|
767 |
+
"resolved": "https://registry.npmjs.org/debug-logger/-/debug-logger-0.4.1.tgz",
|
768 |
+
"integrity": "sha512-bLX6pxuWO6KMXBRk6vpLgHqWXiuLbKp8kLL/wNEA4rgU8wsNLaw3UNz0NfOi1bcN0JwjFwSfxhldzU5Bc6P5RQ==",
|
769 |
+
"dependencies": {
|
770 |
+
"debug": "^2.1.0"
|
771 |
+
}
|
772 |
+
},
|
773 |
"node_modules/deep-is": {
|
774 |
"version": "0.1.4",
|
775 |
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
|
|
|
819 |
"node": ">=0.3.1"
|
820 |
}
|
821 |
},
|
822 |
+
"node_modules/duplexify": {
|
823 |
+
"version": "4.1.2",
|
824 |
+
"resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.2.tgz",
|
825 |
+
"integrity": "sha512-fz3OjcNCHmRP12MJoZMPglx8m4rrFP8rovnk4vT8Fs+aonZoCwGg10dSsQsfP/E62eZcPTMSMP6686fu9Qlqtw==",
|
826 |
+
"dependencies": {
|
827 |
+
"end-of-stream": "^1.4.1",
|
828 |
+
"inherits": "^2.0.3",
|
829 |
+
"readable-stream": "^3.1.1",
|
830 |
+
"stream-shift": "^1.0.0"
|
831 |
+
}
|
832 |
+
},
|
833 |
"node_modules/ee-first": {
|
834 |
"version": "1.1.1",
|
835 |
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
|
|
942 |
"node": ">= 0.6"
|
943 |
}
|
944 |
},
|
945 |
+
"node_modules/eventemitter3": {
|
946 |
+
"version": "4.0.7",
|
947 |
+
"resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz",
|
948 |
+
"integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="
|
949 |
+
},
|
950 |
"node_modules/express": {
|
951 |
"version": "4.18.2",
|
952 |
"resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",
|
|
|
1512 |
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
1513 |
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
1514 |
},
|
1515 |
+
"node_modules/lodash.camelcase": {
|
1516 |
+
"version": "4.3.0",
|
1517 |
+
"resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
|
1518 |
+
"integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA=="
|
1519 |
+
},
|
1520 |
+
"node_modules/lodash.pickby": {
|
1521 |
+
"version": "4.6.0",
|
1522 |
+
"resolved": "https://registry.npmjs.org/lodash.pickby/-/lodash.pickby-4.6.0.tgz",
|
1523 |
+
"integrity": "sha512-AZV+GsS/6ckvPOVQPXSiFFacKvKB4kOQu6ynt9wz0F3LO4R9Ij4K1ddYsIytDpSgLz88JHd9P+oaLeej5/Sl7Q=="
|
1524 |
+
},
|
1525 |
"node_modules/lru-cache": {
|
1526 |
"version": "7.18.3",
|
1527 |
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
|
|
1535 |
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
1536 |
"integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw=="
|
1537 |
},
|
1538 |
+
"node_modules/make-error-cause": {
|
1539 |
+
"version": "2.3.0",
|
1540 |
+
"resolved": "https://registry.npmjs.org/make-error-cause/-/make-error-cause-2.3.0.tgz",
|
1541 |
+
"integrity": "sha512-etgt+n4LlOkGSJbBTV9VROHA5R7ekIPS4vfh+bCAoJgRrJWdqJCBbpS3osRJ/HrT7R68MzMiY3L3sDJ/Fd8aBg==",
|
1542 |
+
"dependencies": {
|
1543 |
+
"make-error": "^1.3.5"
|
1544 |
+
}
|
1545 |
+
},
|
1546 |
"node_modules/media-typer": {
|
1547 |
"version": "0.3.0",
|
1548 |
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
|
|
2015 |
"url": "https://github.com/sponsors/ljharb"
|
2016 |
}
|
2017 |
},
|
2018 |
+
"node_modules/queue-microtask": {
|
2019 |
+
"version": "1.2.3",
|
2020 |
+
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
|
2021 |
+
"integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
|
2022 |
+
"funding": [
|
2023 |
+
{
|
2024 |
+
"type": "github",
|
2025 |
+
"url": "https://github.com/sponsors/feross"
|
2026 |
+
},
|
2027 |
+
{
|
2028 |
+
"type": "patreon",
|
2029 |
+
"url": "https://www.patreon.com/feross"
|
2030 |
+
},
|
2031 |
+
{
|
2032 |
+
"type": "consulting",
|
2033 |
+
"url": "https://feross.org/support"
|
2034 |
+
}
|
2035 |
+
]
|
2036 |
+
},
|
2037 |
"node_modules/queue-tick": {
|
2038 |
"version": "1.0.1",
|
2039 |
"resolved": "https://registry.npmjs.org/queue-tick/-/queue-tick-1.0.1.tgz",
|
2040 |
"integrity": "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="
|
2041 |
},
|
2042 |
+
"node_modules/randombytes": {
|
2043 |
+
"version": "2.1.0",
|
2044 |
+
"resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
|
2045 |
+
"integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
|
2046 |
+
"dependencies": {
|
2047 |
+
"safe-buffer": "^5.1.0"
|
2048 |
+
}
|
2049 |
+
},
|
2050 |
"node_modules/range-parser": {
|
2051 |
"version": "1.2.1",
|
2052 |
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
|
|
2069 |
"node": ">= 0.8"
|
2070 |
}
|
2071 |
},
|
2072 |
+
"node_modules/readable-stream": {
|
2073 |
+
"version": "3.6.2",
|
2074 |
+
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
|
2075 |
+
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
|
2076 |
+
"dependencies": {
|
2077 |
+
"inherits": "^2.0.3",
|
2078 |
+
"string_decoder": "^1.1.1",
|
2079 |
+
"util-deprecate": "^1.0.1"
|
2080 |
+
},
|
2081 |
+
"engines": {
|
2082 |
+
"node": ">= 6"
|
2083 |
+
}
|
2084 |
+
},
|
2085 |
"node_modules/require-directory": {
|
2086 |
"version": "2.1.1",
|
2087 |
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
|
|
|
2122 |
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
2123 |
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
2124 |
},
|
2125 |
+
"node_modules/semaphore-async-await": {
|
2126 |
+
"version": "1.5.1",
|
2127 |
+
"resolved": "https://registry.npmjs.org/semaphore-async-await/-/semaphore-async-await-1.5.1.tgz",
|
2128 |
+
"integrity": "sha512-b/ptP11hETwYWpeilHXXQiV5UJNJl7ZWWooKRE5eBIYWoom6dZ0SluCIdCtKycsMtZgKWE01/qAw6jblw1YVhg==",
|
2129 |
+
"engines": {
|
2130 |
+
"node": ">=4.1"
|
2131 |
+
}
|
2132 |
+
},
|
2133 |
"node_modules/semiver": {
|
2134 |
"version": "1.1.0",
|
2135 |
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
|
|
2198 |
"url": "https://github.com/sponsors/ljharb"
|
2199 |
}
|
2200 |
},
|
2201 |
+
"node_modules/simple-websocket": {
|
2202 |
+
"version": "9.1.0",
|
2203 |
+
"resolved": "https://registry.npmjs.org/simple-websocket/-/simple-websocket-9.1.0.tgz",
|
2204 |
+
"integrity": "sha512-8MJPnjRN6A8UCp1I+H/dSFyjwJhp6wta4hsVRhjf8w9qBHRzxYt14RaOcjvQnhD1N4yKOddEjflwMnQM4VtXjQ==",
|
2205 |
+
"funding": [
|
2206 |
+
{
|
2207 |
+
"type": "github",
|
2208 |
+
"url": "https://github.com/sponsors/feross"
|
2209 |
+
},
|
2210 |
+
{
|
2211 |
+
"type": "patreon",
|
2212 |
+
"url": "https://www.patreon.com/feross"
|
2213 |
+
},
|
2214 |
+
{
|
2215 |
+
"type": "consulting",
|
2216 |
+
"url": "https://feross.org/support"
|
2217 |
+
}
|
2218 |
+
],
|
2219 |
+
"dependencies": {
|
2220 |
+
"debug": "^4.3.1",
|
2221 |
+
"queue-microtask": "^1.2.2",
|
2222 |
+
"randombytes": "^2.1.0",
|
2223 |
+
"readable-stream": "^3.6.0",
|
2224 |
+
"ws": "^7.4.2"
|
2225 |
+
}
|
2226 |
+
},
|
2227 |
+
"node_modules/simple-websocket/node_modules/debug": {
|
2228 |
+
"version": "4.3.4",
|
2229 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
2230 |
+
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
2231 |
+
"dependencies": {
|
2232 |
+
"ms": "2.1.2"
|
2233 |
+
},
|
2234 |
+
"engines": {
|
2235 |
+
"node": ">=6.0"
|
2236 |
+
},
|
2237 |
+
"peerDependenciesMeta": {
|
2238 |
+
"supports-color": {
|
2239 |
+
"optional": true
|
2240 |
+
}
|
2241 |
+
}
|
2242 |
+
},
|
2243 |
+
"node_modules/simple-websocket/node_modules/ms": {
|
2244 |
+
"version": "2.1.2",
|
2245 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
2246 |
+
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
2247 |
+
},
|
2248 |
+
"node_modules/simple-websocket/node_modules/ws": {
|
2249 |
+
"version": "7.5.9",
|
2250 |
+
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
|
2251 |
+
"integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
|
2252 |
+
"engines": {
|
2253 |
+
"node": ">=8.3.0"
|
2254 |
+
},
|
2255 |
+
"peerDependencies": {
|
2256 |
+
"bufferutil": "^4.0.1",
|
2257 |
+
"utf-8-validate": "^5.0.2"
|
2258 |
+
},
|
2259 |
+
"peerDependenciesMeta": {
|
2260 |
+
"bufferutil": {
|
2261 |
+
"optional": true
|
2262 |
+
},
|
2263 |
+
"utf-8-validate": {
|
2264 |
+
"optional": true
|
2265 |
+
}
|
2266 |
+
}
|
2267 |
+
},
|
2268 |
"node_modules/smart-buffer": {
|
2269 |
"version": "4.2.0",
|
2270 |
"resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz",
|
|
|
2335 |
"node": ">=0.10.0"
|
2336 |
}
|
2337 |
},
|
2338 |
+
"node_modules/split2": {
|
2339 |
+
"version": "4.2.0",
|
2340 |
+
"resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
|
2341 |
+
"integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
|
2342 |
+
"engines": {
|
2343 |
+
"node": ">= 10.x"
|
2344 |
+
}
|
2345 |
+
},
|
2346 |
"node_modules/statuses": {
|
2347 |
"version": "2.0.1",
|
2348 |
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
|
|
2351 |
"node": ">= 0.8"
|
2352 |
}
|
2353 |
},
|
2354 |
+
"node_modules/stream-shift": {
|
2355 |
+
"version": "1.0.1",
|
2356 |
+
"resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz",
|
2357 |
+
"integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ=="
|
2358 |
+
},
|
2359 |
"node_modules/streamx": {
|
2360 |
"version": "2.15.0",
|
2361 |
"resolved": "https://registry.npmjs.org/streamx/-/streamx-2.15.0.tgz",
|
|
|
2365 |
"queue-tick": "^1.0.1"
|
2366 |
}
|
2367 |
},
|
2368 |
+
"node_modules/string_decoder": {
|
2369 |
+
"version": "1.3.0",
|
2370 |
+
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
|
2371 |
+
"integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
|
2372 |
+
"dependencies": {
|
2373 |
+
"safe-buffer": "~5.2.0"
|
2374 |
+
}
|
2375 |
+
},
|
2376 |
"node_modules/string-width": {
|
2377 |
"version": "4.2.3",
|
2378 |
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
|
|
|
2562 |
"node": ">= 0.8"
|
2563 |
}
|
2564 |
},
|
2565 |
+
"node_modules/util-deprecate": {
|
2566 |
+
"version": "1.0.2",
|
2567 |
+
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
|
2568 |
+
"integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="
|
2569 |
+
},
|
2570 |
"node_modules/utils-merge": {
|
2571 |
"version": "1.0.1",
|
2572 |
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
package.json
CHANGED
@@ -15,6 +15,7 @@
|
|
15 |
"dependencies": {
|
16 |
"@gradio/client": "^0.1.3",
|
17 |
"@huggingface/inference": "^2.5.2",
|
|
|
18 |
"@types/express": "^4.17.17",
|
19 |
"@types/uuid": "^9.0.2",
|
20 |
"fluent-ffmpeg": "^2.1.2",
|
|
|
15 |
"dependencies": {
|
16 |
"@gradio/client": "^0.1.3",
|
17 |
"@huggingface/inference": "^2.5.2",
|
18 |
+
"@kararty/dank-twitch-irc": "^6.0.0",
|
19 |
"@types/express": "^4.17.17",
|
20 |
"@types/uuid": "^9.0.2",
|
21 |
"fluent-ffmpeg": "^2.1.2",
|
scripts/downloadmusic.sh
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
echo "Downloading music files.."
|
3 |
+
wget https://www.dropbox.com/s/fzxqbu87ul3ctqa/pack1.zip
|
4 |
+
unzip -o pack1.zip -d .
|
5 |
+
cp *.m4a $WEBTV_AUDIO_STORAGE_PATH_CHANNEL_1
|
6 |
+
mv *.m4a $WEBTV_AUDIO_STORAGE_PATH_CHANNEL_2
|
7 |
+
rm -Rf __MACOSX
|
scripts/init.sh
CHANGED
@@ -5,6 +5,8 @@ echo "creating the storage folders for channel 1.."
|
|
5 |
mkdir -p $WEBTV_VIDEO_STORAGE_PATH_CHANNEL_1
|
6 |
mkdir -p $WEBTV_AUDIO_STORAGE_PATH_CHANNEL_1
|
7 |
|
|
|
|
|
8 |
echo "creating the playlists for channel 1.."
|
9 |
echo "ffconcat version 1.0" > channel_1_video_list_a.txt
|
10 |
echo "ffconcat version 1.0" > channel_1_video_list_b.txt
|
|
|
5 |
mkdir -p $WEBTV_VIDEO_STORAGE_PATH_CHANNEL_1
|
6 |
mkdir -p $WEBTV_AUDIO_STORAGE_PATH_CHANNEL_1
|
7 |
|
8 |
+
bash downloadmusic.sh
|
9 |
+
|
10 |
echo "creating the playlists for channel 1.."
|
11 |
echo "ffconcat version 1.0" > channel_1_video_list_a.txt
|
12 |
echo "ffconcat version 1.0" > channel_1_video_list_b.txt
|
src/twitchBot.mts
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { ChatClient } from "@kararty/dank-twitch-irc"
|
2 |
+
|
3 |
+
const client = new ChatClient({
|
4 |
+
username: process.env.WEBTV_TWITCH_USERNAME,
|
5 |
+
password: `oauth:${process.env.WEBTV_TWITCH_API_KEY}`,
|
6 |
+
})
|
7 |
+
|
8 |
+
client.on("ready", () => {
|
9 |
+
console.log("Successfully connected to chat")
|
10 |
+
})
|
11 |
+
|
12 |
+
client.on("close", (error) => {
|
13 |
+
if (error != null) {
|
14 |
+
console.error("Client closed due to error", error)
|
15 |
+
}
|
16 |
+
})
|
17 |
+
|
18 |
+
client.on("PRIVMSG", (msg) => {
|
19 |
+
console.log(`[#${msg.channelName}] ${msg.displayName}: ${msg.messageText}`)
|
20 |
+
})
|
21 |
+
|
22 |
+
// See below for more events
|
23 |
+
client.connect()
|
24 |
+
client.join("flngr")
|