Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이준성
/
khuwitch
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대연
2020-12-08 22:49:38 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f66ddf03b44f775ead3bae7473593201cada93e4
f66ddf03
1 parent
3151102f
Update channel list API
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
571 additions
and
13 deletions
server/env example
server/package-lock.json
server/package.json
server/socket_server.js
server/env example
View file @
f66ddf0
FRONT_URI =
FRONT_PORT =
HOST_URI = [twitch end point url]
SOCKET_PORT= [backend socket server port]
TWITCH_CLIENT= [twitch dev client id]
...
...
server/package-lock.json
View file @
f66ddf0
...
...
@@ -89,6 +89,14 @@
"@types/node"
:
"*"
}
},
"abs"
:
{
"version"
:
"1.3.14"
,
"resolved"
:
"https://registry.npmjs.org/abs/-/abs-1.3.14.tgz"
,
"integrity"
:
"sha512-PrS26IzwKLWwuURpiKl8wRmJ2KdR/azaVrLEBWG/TALwT20Y7qjtYp1qcMLHA4206hBHY5phv3w4pjf9NPv4Vw=="
,
"requires"
:
{
"ul"
:
"^5.0.0"
}
},
"accepts"
:
{
"version"
:
"1.3.7"
,
"resolved"
:
"https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz"
,
...
...
@@ -217,6 +225,11 @@
"resolved"
:
"https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz"
,
"integrity"
:
"sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg=="
},
"capture-stack-trace"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz"
,
"integrity"
:
"sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw=="
},
"caseless"
:
{
"version"
:
"0.12.0"
,
"resolved"
:
"https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz"
,
...
...
@@ -300,6 +313,14 @@
"vary"
:
"^1"
}
},
"create-error-class"
:
{
"version"
:
"3.0.2"
,
"resolved"
:
"https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz"
,
"integrity"
:
"sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y="
,
"requires"
:
{
"capture-stack-trace"
:
"^1.0.0"
}
},
"dashdash"
:
{
"version"
:
"1.14.1"
,
"resolved"
:
"https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz"
,
...
...
@@ -316,6 +337,19 @@
"ms"
:
"2.0.0"
}
},
"deep-extend"
:
{
"version"
:
"0.6.0"
,
"resolved"
:
"https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz"
,
"integrity"
:
"sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="
},
"deffy"
:
{
"version"
:
"2.2.4"
,
"resolved"
:
"https://registry.npmjs.org/deffy/-/deffy-2.2.4.tgz"
,
"integrity"
:
"sha512-pLc9lsbsWjr6RxmJ2OLyvm+9l4j1yK69h+TML/gUit/t3vTijpkNGh8LioaJYTGO7F25m6HZndADcUOo2PsiUg=="
,
"requires"
:
{
"typpy"
:
"^2.0.0"
}
},
"delayed-stream"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz"
,
...
...
@@ -336,6 +370,14 @@
"resolved"
:
"https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz"
,
"integrity"
:
"sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
"duplexer2"
:
{
"version"
:
"0.1.4"
,
"resolved"
:
"https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz"
,
"integrity"
:
"sha1-ixLauHjA1p4+eJEFFmKjL8a93ME="
,
"requires"
:
{
"readable-stream"
:
"^2.0.2"
}
},
"ecc-jsbn"
:
{
"version"
:
"0.1.2"
,
"resolved"
:
"https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz"
,
...
...
@@ -402,6 +444,22 @@
"resolved"
:
"https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-4.0.1.tgz"
,
"integrity"
:
"sha512-v5aZK1hlckcJDGmHz3W8xvI3NUHYc9t8QtTbqdR5OaH3S9iJZilPubauOm+vLWOMMWzpE3hiq92l9lTAHamRCg=="
},
"err"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/err/-/err-1.1.1.tgz"
,
"integrity"
:
"sha1-65KOLhGjFmSPeCgz0PlyWLpDwvg="
,
"requires"
:
{
"typpy"
:
"^2.2.0"
}
},
"error-ex"
:
{
"version"
:
"1.3.2"
,
"resolved"
:
"https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz"
,
"integrity"
:
"sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g=="
,
"requires"
:
{
"is-arrayish"
:
"^0.2.1"
}
},
"escape-html"
:
{
"version"
:
"1.0.3"
,
"resolved"
:
"https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz"
,
...
...
@@ -417,6 +475,15 @@
"resolved"
:
"https://registry.npmjs.org/etag/-/etag-1.8.1.tgz"
,
"integrity"
:
"sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc="
},
"exec-limiter"
:
{
"version"
:
"3.2.13"
,
"resolved"
:
"https://registry.npmjs.org/exec-limiter/-/exec-limiter-3.2.13.tgz"
,
"integrity"
:
"sha512-86Ri699bwiHZVBzTzNj8gspqAhCPchg70zPVWIh3qzUOA1pUMcb272Em3LPk8AE0mS95B9yMJhtqF8vFJAn0dA=="
,
"requires"
:
{
"limit-it"
:
"^3.0.0"
,
"typpy"
:
"^2.1.0"
}
},
"express"
:
{
"version"
:
"4.17.1"
,
"resolved"
:
"https://registry.npmjs.org/express/-/express-4.17.1.tgz"
,
...
...
@@ -526,6 +593,19 @@
"resolved"
:
"https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz"
,
"integrity"
:
"sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
},
"function-bind"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
,
"integrity"
:
"sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
},
"function.name"
:
{
"version"
:
"1.0.13"
,
"resolved"
:
"https://registry.npmjs.org/function.name/-/function.name-1.0.13.tgz"
,
"integrity"
:
"sha512-mVrqdoy5npWZyoXl4DxCeuVF6delDcQjVS9aPdvLYlBxtMTZDR2B5GVEQEoM1jJyspCqg3C0v4ABkLE7tp9xFA=="
,
"requires"
:
{
"noop6"
:
"^1.0.1"
}
},
"getpass"
:
{
"version"
:
"0.1.7"
,
"resolved"
:
"https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz"
,
...
...
@@ -534,6 +614,80 @@
"assert-plus"
:
"^1.0.0"
}
},
"git-package-json"
:
{
"version"
:
"1.4.10"
,
"resolved"
:
"https://registry.npmjs.org/git-package-json/-/git-package-json-1.4.10.tgz"
,
"integrity"
:
"sha512-DRAcvbzd2SxGK7w8OgYfvKqhFliT5keX0lmSmVdgScgf1kkl5tbbo7Pam6uYoCa1liOiipKxQZG8quCtGWl/fA=="
,
"requires"
:
{
"deffy"
:
"^2.2.1"
,
"err"
:
"^1.1.1"
,
"gry"
:
"^5.0.0"
,
"normalize-package-data"
:
"^2.3.5"
,
"oargv"
:
"^3.4.1"
,
"one-by-one"
:
"^3.1.0"
,
"r-json"
:
"^1.2.1"
,
"r-package-json"
:
"^1.0.0"
,
"tmp"
:
"0.0.28"
}
},
"git-source"
:
{
"version"
:
"1.1.10"
,
"resolved"
:
"https://registry.npmjs.org/git-source/-/git-source-1.1.10.tgz"
,
"integrity"
:
"sha512-XZZ7ZgnLL35oLgM/xjnLYgtlKlxJG0FohC1kWDvGkU7s1VKGXK0pFF/g1itQEwQ3D+uTQzBnzPi8XbqOv7Wc1Q=="
,
"requires"
:
{
"git-url-parse"
:
"^5.0.1"
}
},
"git-up"
:
{
"version"
:
"1.2.1"
,
"resolved"
:
"https://registry.npmjs.org/git-up/-/git-up-1.2.1.tgz"
,
"integrity"
:
"sha1-JkSAoAax2EJhrB/gmjpRacV+oZ0="
,
"requires"
:
{
"is-ssh"
:
"^1.0.0"
,
"parse-url"
:
"^1.0.0"
}
},
"git-url-parse"
:
{
"version"
:
"5.0.1"
,
"resolved"
:
"https://registry.npmjs.org/git-url-parse/-/git-url-parse-5.0.1.tgz"
,
"integrity"
:
"sha1-/j15xnRq4FBIz6UIyB553du6OEM="
,
"requires"
:
{
"git-up"
:
"^1.0.0"
}
},
"got"
:
{
"version"
:
"5.7.1"
,
"resolved"
:
"https://registry.npmjs.org/got/-/got-5.7.1.tgz"
,
"integrity"
:
"sha1-X4FjWmHkplifGAVp6k44FoClHzU="
,
"requires"
:
{
"create-error-class"
:
"^3.0.1"
,
"duplexer2"
:
"^0.1.4"
,
"is-redirect"
:
"^1.0.0"
,
"is-retry-allowed"
:
"^1.0.0"
,
"is-stream"
:
"^1.0.0"
,
"lowercase-keys"
:
"^1.0.0"
,
"node-status-codes"
:
"^1.0.0"
,
"object-assign"
:
"^4.0.1"
,
"parse-json"
:
"^2.1.0"
,
"pinkie-promise"
:
"^2.0.0"
,
"read-all-stream"
:
"^3.0.0"
,
"readable-stream"
:
"^2.0.5"
,
"timed-out"
:
"^3.0.0"
,
"unzip-response"
:
"^1.0.2"
,
"url-parse-lax"
:
"^1.0.0"
}
},
"gry"
:
{
"version"
:
"5.0.8"
,
"resolved"
:
"https://registry.npmjs.org/gry/-/gry-5.0.8.tgz"
,
"integrity"
:
"sha512-meq9ZjYVpLzZh3ojhTg7IMad9grGsx6rUUKHLqPnhLXzJkRQvEL2U3tQpS5/WentYTtHtxkT3Ew/mb10D6F6/g=="
,
"requires"
:
{
"abs"
:
"^1.2.1"
,
"exec-limiter"
:
"^3.0.0"
,
"one-by-one"
:
"^3.0.0"
,
"ul"
:
"^5.0.0"
}
},
"har-schema"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz"
,
...
...
@@ -548,11 +702,24 @@
"har-schema"
:
"^2.0.0"
}
},
"has"
:
{
"version"
:
"1.0.3"
,
"resolved"
:
"https://registry.npmjs.org/has/-/has-1.0.3.tgz"
,
"integrity"
:
"sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw=="
,
"requires"
:
{
"function-bind"
:
"^1.1.1"
}
},
"has-flag"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz"
,
"integrity"
:
"sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
},
"hosted-git-info"
:
{
"version"
:
"2.8.8"
,
"resolved"
:
"https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz"
,
"integrity"
:
"sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg=="
},
"http-errors"
:
{
"version"
:
"1.7.2"
,
"resolved"
:
"https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz"
,
...
...
@@ -588,21 +755,72 @@
"resolved"
:
"https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz"
,
"integrity"
:
"sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4="
},
"ini"
:
{
"version"
:
"1.3.5"
,
"resolved"
:
"https://registry.npmjs.org/ini/-/ini-1.3.5.tgz"
,
"integrity"
:
"sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
},
"ipaddr.js"
:
{
"version"
:
"1.9.1"
,
"resolved"
:
"https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz"
,
"integrity"
:
"sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="
},
"is-arrayish"
:
{
"version"
:
"0.2.1"
,
"resolved"
:
"https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz"
,
"integrity"
:
"sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0="
},
"is-core-module"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz"
,
"integrity"
:
"sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ=="
,
"requires"
:
{
"has"
:
"^1.0.3"
}
},
"is-redirect"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz"
,
"integrity"
:
"sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ="
},
"is-retry-allowed"
:
{
"version"
:
"1.2.0"
,
"resolved"
:
"https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz"
,
"integrity"
:
"sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg=="
},
"is-ssh"
:
{
"version"
:
"1.3.2"
,
"resolved"
:
"https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.2.tgz"
,
"integrity"
:
"sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ=="
,
"requires"
:
{
"protocols"
:
"^1.1.0"
}
},
"is-stream"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz"
,
"integrity"
:
"sha1-EtSj3U5o4Lec6428hBc66A2RykQ="
},
"is-typedarray"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz"
,
"integrity"
:
"sha1-5HnICFjfDBsR3dppQPlgEfzaSpo="
},
"isarray"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
,
"integrity"
:
"sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
"isstream"
:
{
"version"
:
"0.1.2"
,
"resolved"
:
"https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz"
,
"integrity"
:
"sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo="
},
"iterate-object"
:
{
"version"
:
"1.3.4"
,
"resolved"
:
"https://registry.npmjs.org/iterate-object/-/iterate-object-1.3.4.tgz"
,
"integrity"
:
"sha512-4dG1D1x/7g8PwHS9aK6QV5V94+ZvyP4+d19qDv43EzImmrndysIl4prmJ1hWWIGCqrZHyaHBm6BSEWHOLnpoNw=="
},
"jake"
:
{
"version"
:
"10.8.2"
,
"resolved"
:
"https://registry.npmjs.org/jake/-/jake-10.8.2.tgz"
,
...
...
@@ -645,6 +863,19 @@
"verror"
:
"1.10.0"
}
},
"limit-it"
:
{
"version"
:
"3.2.10"
,
"resolved"
:
"https://registry.npmjs.org/limit-it/-/limit-it-3.2.10.tgz"
,
"integrity"
:
"sha512-T0NK99pHnkimldr1WUqvbGV1oWDku/xC9J/OqzJFsV1jeOS6Bwl8W7vkeQIBqwiON9dTALws+rX/XPMQqWerDQ=="
,
"requires"
:
{
"typpy"
:
"^2.0.0"
}
},
"lowercase-keys"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz"
,
"integrity"
:
"sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA=="
},
"media-typer"
:
{
"version"
:
"0.3.0"
,
"resolved"
:
"https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz"
,
...
...
@@ -686,6 +917,11 @@
"brace-expansion"
:
"^1.1.7"
}
},
"minimist"
:
{
"version"
:
"1.2.5"
,
"resolved"
:
"https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz"
,
"integrity"
:
"sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw=="
},
"ms"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/ms/-/ms-2.0.0.tgz"
,
...
...
@@ -696,11 +932,49 @@
"resolved"
:
"https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz"
,
"integrity"
:
"sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
},
"node-status-codes"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/node-status-codes/-/node-status-codes-1.0.0.tgz"
,
"integrity"
:
"sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8="
},
"noop6"
:
{
"version"
:
"1.0.9"
,
"resolved"
:
"https://registry.npmjs.org/noop6/-/noop6-1.0.9.tgz"
,
"integrity"
:
"sha512-DB3Hwyd89dPr5HqEPg3YHjzvwh/mCqizC1zZ8vyofqc+TQRyPDnT4wgXXbLGF4z9YAzwwTLi8pNLhGqcbSjgkA=="
},
"normalize-package-data"
:
{
"version"
:
"2.5.0"
,
"resolved"
:
"https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz"
,
"integrity"
:
"sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA=="
,
"requires"
:
{
"hosted-git-info"
:
"^2.1.4"
,
"resolve"
:
"^1.10.0"
,
"semver"
:
"2 || 3 || 4 || 5"
,
"validate-npm-package-license"
:
"^3.0.1"
}
},
"oargv"
:
{
"version"
:
"3.4.10"
,
"resolved"
:
"https://registry.npmjs.org/oargv/-/oargv-3.4.10.tgz"
,
"integrity"
:
"sha512-SXaMANv9sr7S/dP0vj0+Ybipa47UE1ntTWQ2rpPRhC6Bsvfl+Jg03Xif7jfL0sWKOYWK8oPjcZ5eJ82t8AP/8g=="
,
"requires"
:
{
"iterate-object"
:
"^1.1.0"
,
"ul"
:
"^5.0.0"
}
},
"oauth-sign"
:
{
"version"
:
"0.9.0"
,
"resolved"
:
"https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz"
,
"integrity"
:
"sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ=="
},
"obj-def"
:
{
"version"
:
"1.0.8"
,
"resolved"
:
"https://registry.npmjs.org/obj-def/-/obj-def-1.0.8.tgz"
,
"integrity"
:
"sha512-tU8EVxli5fm0BhPjoHoiyKieZBfUYbkxHQatVEyoYkd1oFQdwDx8qMRG2bTcFq1bJi4laE+xJvk6uTKnrxNK3g=="
,
"requires"
:
{
"deffy"
:
"^2.2.2"
}
},
"object-assign"
:
{
"version"
:
"4.1.1"
,
"resolved"
:
"https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz"
,
...
...
@@ -714,11 +988,66 @@
"ee-first"
:
"1.1.1"
}
},
"one-by-one"
:
{
"version"
:
"3.2.8"
,
"resolved"
:
"https://registry.npmjs.org/one-by-one/-/one-by-one-3.2.8.tgz"
,
"integrity"
:
"sha512-HR/pSzZdm46Xqj58K+Bu64kMbSTw8/u77AwWvV+rprO/OsuR++pPlkUJn+SmwqBGRgHKwSKQ974V3uls7crIeQ=="
,
"requires"
:
{
"obj-def"
:
"^1.0.0"
,
"sliced"
:
"^1.0.1"
}
},
"os-tmpdir"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz"
,
"integrity"
:
"sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
},
"package-json"
:
{
"version"
:
"2.4.0"
,
"resolved"
:
"https://registry.npmjs.org/package-json/-/package-json-2.4.0.tgz"
,
"integrity"
:
"sha1-DRW9Z9HLvduyyiIv8u24a8sxqLs="
,
"requires"
:
{
"got"
:
"^5.0.0"
,
"registry-auth-token"
:
"^3.0.1"
,
"registry-url"
:
"^3.0.3"
,
"semver"
:
"^5.1.0"
}
},
"package-json-path"
:
{
"version"
:
"1.0.9"
,
"resolved"
:
"https://registry.npmjs.org/package-json-path/-/package-json-path-1.0.9.tgz"
,
"integrity"
:
"sha512-uNu7f6Ef7tQHZRnkyVnCtzdSYVN9uBtge/sG7wzcUaawFWkPYUq67iXxRGrQSg/q0tzxIB8jSyIYUKjG2Jn//A=="
,
"requires"
:
{
"abs"
:
"^1.2.1"
}
},
"parse-json"
:
{
"version"
:
"2.2.0"
,
"resolved"
:
"https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz"
,
"integrity"
:
"sha1-9ID0BDTvgHQfhGkJn43qGPVaTck="
,
"requires"
:
{
"error-ex"
:
"^1.2.0"
}
},
"parse-url"
:
{
"version"
:
"1.3.11"
,
"resolved"
:
"https://registry.npmjs.org/parse-url/-/parse-url-1.3.11.tgz"
,
"integrity"
:
"sha1-V8FUKKuKiSsfQ4aWRccR0OFEtVQ="
,
"requires"
:
{
"is-ssh"
:
"^1.3.0"
,
"protocols"
:
"^1.4.0"
}
},
"parseurl"
:
{
"version"
:
"1.3.3"
,
"resolved"
:
"https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz"
,
"integrity"
:
"sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
},
"path-parse"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz"
,
"integrity"
:
"sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw=="
},
"path-to-regexp"
:
{
"version"
:
"0.1.7"
,
"resolved"
:
"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
,
...
...
@@ -729,6 +1058,44 @@
"resolved"
:
"https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz"
,
"integrity"
:
"sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
},
"pinkie"
:
{
"version"
:
"2.0.4"
,
"resolved"
:
"https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz"
,
"integrity"
:
"sha1-clVrgM+g1IqXToDnckjoDtT3+HA="
},
"pinkie-promise"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz"
,
"integrity"
:
"sha1-ITXW36ejWMBprJsXh3YogihFD/o="
,
"requires"
:
{
"pinkie"
:
"^2.0.0"
}
},
"pkg.json"
:
{
"version"
:
"2.0.8"
,
"resolved"
:
"https://registry.npmjs.org/pkg.json/-/pkg.json-2.0.8.tgz"
,
"integrity"
:
"sha512-iIBceNPwO452wLbF73GCV5z/TY9UydLWEV+wBjegAObPF/PihDL9ZUr2g2EFI7XqPFMTLEX/QtL63Z+zzFZ7yA=="
,
"requires"
:
{
"git-package-json"
:
"^1.4.0"
,
"git-source"
:
"^1.1.0"
,
"package-json"
:
"^2.3.1"
}
},
"prepend-http"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz"
,
"integrity"
:
"sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw="
},
"process-nextick-args"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz"
,
"integrity"
:
"sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
},
"protocols"
:
{
"version"
:
"1.4.8"
,
"resolved"
:
"https://registry.npmjs.org/protocols/-/protocols-1.4.8.tgz"
,
"integrity"
:
"sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg=="
},
"proxy-addr"
:
{
"version"
:
"2.0.6"
,
"resolved"
:
"https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz"
,
...
...
@@ -753,6 +1120,20 @@
"resolved"
:
"https://registry.npmjs.org/qs/-/qs-6.7.0.tgz"
,
"integrity"
:
"sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ=="
},
"r-json"
:
{
"version"
:
"1.2.10"
,
"resolved"
:
"https://registry.npmjs.org/r-json/-/r-json-1.2.10.tgz"
,
"integrity"
:
"sha512-hu9vyLjSlHXT62NAS7DjI9WazDlvjN0lgp3n431dCVnirVcLkZIpzSwA3orhZEKzdDD2jqNYI+w0yG0aFf4kpA=="
},
"r-package-json"
:
{
"version"
:
"1.0.9"
,
"resolved"
:
"https://registry.npmjs.org/r-package-json/-/r-package-json-1.0.9.tgz"
,
"integrity"
:
"sha512-G4Vpf1KImWmmPFGdtWQTU0L9zk0SjqEC4qs/jE7AQ+Ylmr5kizMzGeC4wnHp5+ijPqNN+2ZPpvyjVNdN1CDVcg=="
,
"requires"
:
{
"package-json-path"
:
"^1.0.0"
,
"r-json"
:
"^1.2.1"
}
},
"range-parser"
:
{
"version"
:
"1.2.1"
,
"resolved"
:
"https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz"
,
...
...
@@ -769,6 +1150,57 @@
"unpipe"
:
"1.0.0"
}
},
"rc"
:
{
"version"
:
"1.2.8"
,
"resolved"
:
"https://registry.npmjs.org/rc/-/rc-1.2.8.tgz"
,
"integrity"
:
"sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw=="
,
"requires"
:
{
"deep-extend"
:
"^0.6.0"
,
"ini"
:
"~1.3.0"
,
"minimist"
:
"^1.2.0"
,
"strip-json-comments"
:
"~2.0.1"
}
},
"read-all-stream"
:
{
"version"
:
"3.1.0"
,
"resolved"
:
"https://registry.npmjs.org/read-all-stream/-/read-all-stream-3.1.0.tgz"
,
"integrity"
:
"sha1-NcPhd/IHjveJ7kv6+kNzB06u9Po="
,
"requires"
:
{
"pinkie-promise"
:
"^2.0.0"
,
"readable-stream"
:
"^2.0.0"
}
},
"readable-stream"
:
{
"version"
:
"2.3.7"
,
"resolved"
:
"https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz"
,
"integrity"
:
"sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw=="
,
"requires"
:
{
"core-util-is"
:
"~1.0.0"
,
"inherits"
:
"~2.0.3"
,
"isarray"
:
"~1.0.0"
,
"process-nextick-args"
:
"~2.0.0"
,
"safe-buffer"
:
"~5.1.1"
,
"string_decoder"
:
"~1.1.1"
,
"util-deprecate"
:
"~1.0.1"
}
},
"registry-auth-token"
:
{
"version"
:
"3.4.0"
,
"resolved"
:
"https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz"
,
"integrity"
:
"sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A=="
,
"requires"
:
{
"rc"
:
"^1.1.6"
,
"safe-buffer"
:
"^5.0.1"
}
},
"registry-url"
:
{
"version"
:
"3.1.0"
,
"resolved"
:
"https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz"
,
"integrity"
:
"sha1-PU74cPc93h138M+aOBQyRE4XSUI="
,
"requires"
:
{
"rc"
:
"^1.0.1"
}
},
"request"
:
{
"version"
:
"2.88.2"
,
"resolved"
:
"https://registry.npmjs.org/request/-/request-2.88.2.tgz"
,
...
...
@@ -803,6 +1235,15 @@
}
}
},
"resolve"
:
{
"version"
:
"1.19.0"
,
"resolved"
:
"https://registry.npmjs.org/resolve/-/resolve-1.19.0.tgz"
,
"integrity"
:
"sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg=="
,
"requires"
:
{
"is-core-module"
:
"^2.1.0"
,
"path-parse"
:
"^1.0.6"
}
},
"safe-buffer"
:
{
"version"
:
"5.1.2"
,
"resolved"
:
"https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
,
...
...
@@ -813,6 +1254,11 @@
"resolved"
:
"https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz"
,
"integrity"
:
"sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
},
"semver"
:
{
"version"
:
"5.7.1"
,
"resolved"
:
"https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
,
"integrity"
:
"sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
},
"send"
:
{
"version"
:
"0.17.1"
,
"resolved"
:
"https://registry.npmjs.org/send/-/send-0.17.1.tgz"
,
...
...
@@ -856,6 +1302,11 @@
"resolved"
:
"https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz"
,
"integrity"
:
"sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw=="
},
"sliced"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz"
,
"integrity"
:
"sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
},
"socket.io"
:
{
"version"
:
"3.0.3"
,
"resolved"
:
"https://registry.npmjs.org/socket.io/-/socket.io-3.0.3.tgz"
,
...
...
@@ -917,6 +1368,34 @@
}
}
},
"spdx-correct"
:
{
"version"
:
"3.1.1"
,
"resolved"
:
"https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz"
,
"integrity"
:
"sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w=="
,
"requires"
:
{
"spdx-expression-parse"
:
"^3.0.0"
,
"spdx-license-ids"
:
"^3.0.0"
}
},
"spdx-exceptions"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz"
,
"integrity"
:
"sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A=="
},
"spdx-expression-parse"
:
{
"version"
:
"3.0.1"
,
"resolved"
:
"https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz"
,
"integrity"
:
"sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q=="
,
"requires"
:
{
"spdx-exceptions"
:
"^2.1.0"
,
"spdx-license-ids"
:
"^3.0.0"
}
},
"spdx-license-ids"
:
{
"version"
:
"3.0.7"
,
"resolved"
:
"https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz"
,
"integrity"
:
"sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ=="
},
"sshpk"
:
{
"version"
:
"1.16.1"
,
"resolved"
:
"https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz"
,
...
...
@@ -938,6 +1417,19 @@
"resolved"
:
"https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz"
,
"integrity"
:
"sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow="
},
"string_decoder"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
,
"integrity"
:
"sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="
,
"requires"
:
{
"safe-buffer"
:
"~5.1.0"
}
},
"strip-json-comments"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz"
,
"integrity"
:
"sha1-PFMZQukIwml8DsNEhYwobHygpgo="
},
"supports-color"
:
{
"version"
:
"5.5.0"
,
"resolved"
:
"https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz"
,
...
...
@@ -946,6 +1438,11 @@
"has-flag"
:
"^3.0.0"
}
},
"timed-out"
:
{
"version"
:
"3.1.3"
,
"resolved"
:
"https://registry.npmjs.org/timed-out/-/timed-out-3.1.3.tgz"
,
"integrity"
:
"sha1-lYYL/MXHbCd/j4Mm/Q9bLiDrohc="
},
"tmi.js"
:
{
"version"
:
"1.5.0"
,
"resolved"
:
"https://registry.npmjs.org/tmi.js/-/tmi.js-1.5.0.tgz"
,
...
...
@@ -1011,6 +1508,14 @@
}
}
},
"tmp"
:
{
"version"
:
"0.0.28"
,
"resolved"
:
"https://registry.npmjs.org/tmp/-/tmp-0.0.28.tgz"
,
"integrity"
:
"sha1-Fyc1t/YU6nrzlmT6hM8N5OUV0SA="
,
"requires"
:
{
"os-tmpdir"
:
"~1.0.1"
}
},
"toidentifier"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz"
,
...
...
@@ -1047,11 +1552,33 @@
"mime-types"
:
"~2.1.24"
}
},
"typpy"
:
{
"version"
:
"2.3.12"
,
"resolved"
:
"https://registry.npmjs.org/typpy/-/typpy-2.3.12.tgz"
,
"integrity"
:
"sha512-VginyZYxadNyFnB763lvFGNUqsIRtJt2V33pLfdnjRreObbKaxexUC+39EVb3MavWU9ggekvT1ojEU0kvtumfA=="
,
"requires"
:
{
"function.name"
:
"^1.0.3"
}
},
"ul"
:
{
"version"
:
"5.2.15"
,
"resolved"
:
"https://registry.npmjs.org/ul/-/ul-5.2.15.tgz"
,
"integrity"
:
"sha512-svLEUy8xSCip5IWnsRa0UOg+2zP0Wsj4qlbjTmX6GJSmvKMHADBuHOm1dpNkWqWPIGuVSqzUkV3Cris5JrlTRQ=="
,
"requires"
:
{
"deffy"
:
"^2.2.2"
,
"typpy"
:
"^2.3.4"
}
},
"unpipe"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz"
,
"integrity"
:
"sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
},
"unzip-response"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.2.tgz"
,
"integrity"
:
"sha1-uYTwh3/AqJwsdzzB73tbIytbBv4="
},
"uri-js"
:
{
"version"
:
"4.4.0"
,
"resolved"
:
"https://registry.npmjs.org/uri-js/-/uri-js-4.4.0.tgz"
,
...
...
@@ -1060,6 +1587,19 @@
"punycode"
:
"^2.1.0"
}
},
"url-parse-lax"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz"
,
"integrity"
:
"sha1-evjzA2Rem9eaJy56FKxovAYJ2nM="
,
"requires"
:
{
"prepend-http"
:
"^1.0.1"
}
},
"util-deprecate"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
,
"integrity"
:
"sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
"utils-merge"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz"
,
...
...
@@ -1070,6 +1610,15 @@
"resolved"
:
"https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz"
,
"integrity"
:
"sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
},
"validate-npm-package-license"
:
{
"version"
:
"3.0.4"
,
"resolved"
:
"https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz"
,
"integrity"
:
"sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew=="
,
"requires"
:
{
"spdx-correct"
:
"^3.0.0"
,
"spdx-expression-parse"
:
"^3.0.0"
}
},
"vary"
:
{
"version"
:
"1.1.2"
,
"resolved"
:
"https://registry.npmjs.org/vary/-/vary-1.1.2.tgz"
,
...
...
server/package.json
View file @
f66ddf0
...
...
@@ -10,11 +10,12 @@
"author"
:
"Daeyeonkim97"
,
"license"
:
"ISC"
,
"dependencies"
:
{
"cors"
:
"^2.8.5"
,
"axios"
:
"^0.21.0"
,
"cors"
:
"^2.8.5"
,
"dotenv"
:
"^8.2.0"
,
"ejs"
:
"^3.1.5"
,
"express"
:
"^4.17.1"
,
"pkg.json"
:
"^2.0.8"
,
"request"
:
"^2.88.2"
,
"socket.io"
:
"^3.0.3"
,
"tmi.js"
:
"^1.5.0"
...
...
server/socket_server.js
View file @
f66ddf0
...
...
@@ -19,7 +19,7 @@ var opts = {
username
:
process
.
env
.
BOT_USERNAME
,
password
:
process
.
env
.
OAUTH_TOKEN
},
channels
:
[
"tmwardo"
]
channels
:
[]
};
// Create a client with our options
var
client
=
new
tmi
.
client
(
opts
);
//twitch chatbot client
...
...
@@ -31,20 +31,15 @@ app.use(bodyParser.json());
app
.
set
(
'view engine'
,
'ejs'
);
app
.
set
(
'views'
,
'./testviews'
);
// client.opts.channels;
let
a
=
0
;
app
.
get
(
'/'
,
(
req
,
res
)
=>
{
res
.
render
(
'chat'
);
});
app
.
get
(
'/list'
,(
req
,
res
)
=>
{
var
result
=
[]
for
(
var
i
=
0
;
i
<
client
.
channels
.
length
;
i
++
){
result
.
push
(
client
.
channels
[
i
].
slice
(
1
))
}
res
.
send
(
result
)
app
.
get
(
'/channels'
,(
req
,
res
)
=>
{
//console.log(channels)
res
.
send
(
channels
)
});
app
.
post
(
'/jointest'
,
async
(
req
,
res
)
=>
{
...
...
@@ -52,8 +47,10 @@ app.post('/jointest',async (req,res)=>{
JoinChannel
(
req
.
body
.
streamer
);
res
.
send
(
req
.
body
.
streamer
)
});
console
.
log
(
`https://id.twitch.tv/oauth2/authorize?response_type=code&approval_prompt=auto&redirect_uri=
${
process
.
env
.
HOST_URI
+
':'
+
process
.
env
.
SOCKET_PORT
}
/join&client_id=
${
process
.
env
.
TWITCH_CLIENT
}
`
)
////////////////////////oauth////////////////////////
var
channels
=
[]
const
axios
=
require
(
'axios'
)
app
.
get
(
'/oauth'
,(
req
,
res
)
=>
{
let
codeAddr
=
`https://id.twitch.tv/oauth2/authorize?response_type=code&approval_prompt=auto&redirect_uri=
${
process
.
env
.
HOST_URI
+
':'
+
process
.
env
.
SOCKET_PORT
}
/join&client_id=
${
process
.
env
.
TWITCH_CLIENT
}
`
...
...
@@ -72,7 +69,17 @@ app.get('/join', async (req,res)=>{
}
).
then
(
resp2
=>
{
JoinChannel
(
resp2
.
data
.
login
)
res
.
redirect
(
"http://localhost:8000?authenticated=true"
)
// 이거 프론트 유알엘임
axios
.
get
(
`https://api.twitch.tv/kraken/channels/
${
resp2
.
data
.
user_id
}
`
,
{
headers
:{
'Accept'
:
'application/vnd.twitchtv.v5+json'
,
'Client-ID'
:
process
.
env
.
TWITCH_CLIENT
}
}
).
then
(
resp3
=>
{
channels
.
push
(
resp3
.
data
);
})
res
.
redirect
(
`
${
process
.
env
.
FRONT_URI
}
:
${
process
.
env
.
FRONT_PORT
}
/?authenticated=true`
)
// 이거 프론트 유알엘임
})
})
...
...
Please
register
or
login
to post a comment