๐ฑ Iโm currently using & learning ...
- TypeScript(node.js) / React / Angular
- Java / Spring Boot / Android (just a little!)
- C# / WinForm / WPF (just a little!)
- Python / Django / Flask ...
- MySQL(MariaDB)
- Docker
JavaScript(TypeScript) version of DJ Yurika
License: Other
์ ํํ ์ด๋ ๋ฌธ์ ์ธ์ง ์ ํฐ๋ ์๋จ...tq
How about using ytpl?
๋ฒ์ ์
๊ทธ๋ ์ด๋ํ๋ฉด์ voice ๊ด๋ จ ์ค๋ธ์ ํธ๊ฐ ๋ฐ๋
๊ธฐ์กด์ dispatcher.streamTime ์ ๋์ฒดํ ์ ์๋ ์์์ด ์๋ค
AudioResource.playbackDuration ์ผ๋ก ์ ์ฒด ๊ธธ์ด๋ ์ ์ ์๋๋ฐ, ํ์ฌ ์ผ๋ง๋ ์ฌ์ํ๋์ง๋ฅผ ์ ์๊ฐ ์์
์ฌ์ ์์ ์์ ์ Date์ ํ์ฌ๋ฅผ ๋น๊ตํ๋ ค ํ์ผ๋, ์ผ์์ ์ง ํ ๊ฒฝ์ฐ ๊ผฌ์.
play/pause/end ๋ก ์ ์ด ๊ฐ๋ฅํ flag์ ํจ๊ป <1s ๋จ์๋ก setInterval ์ฌ์ฉํ ๊น ์๊ฐ๋ ํ๋๋ฐ, ๋งค์ฐ ๋นํจ์จ์ ์ธ ์ฐ์ฐ์ด ๋ ๊ฒ์ผ๋ก ์์...
๋ญ๊ฐ ํ์ ์ ์ธ(?) ๋ฐฉ๋ฒ์ ์ฐพ์์ผ ํ ๊ฒ ๊ฐ์
์๋ ๋๋ค์ฌ์ ํ๊ฒฝ์ค์ ๊ฐ์ด ์์ง ๊ตฌํ ์๋ ๊ฒ์ ์ ์ ๋ก ํจ
์๋ฒ ๋ณ๋ก ๋ค๋ฅธ ๋๋ค์ ์ ๊ณตํ ํ์๊ฐ ์์ ๋ฏ
Repository from GitHub is changed to MIT at 2021-02-01 UTC+9,
but not published to npm yet
pause develop at this branch.
๋์ค๋ ๊ณก์ด ์ ๋ํ ์์ฃผ ๋์ค๋ ๋ฏ
๋น์ฅ ๋์ ๋๋ ํฌ๋ฆฌํฐ์ปฌํ ๋ฌธ์ ๋ ์๋๋ฐ node.js ์์ฒด์์ ์ค๋ฃจ์ํค๋๊ฑด์ง๋ ๋ชจ๋ฅด๊ฒ ์ (์ฐ์ฐ
์ ํ๋ธ ๋ก๋๊ด๋ จ dispatcher ๋ฌธ์ ์ธ์ค ์๊ณ 07c4d27 ์์ try catch๊น์ง ๊ฐ์ธ๋จ๋๋ฐ ๊ทธ๊ฒ ์๋๋ฏ
UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown Message
at RequestHandler.execute (/home/djyurika/djyurika_js/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (/home/djyurika/djyurika_js/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).
[DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
discordjs์์๋ 400๋ฒ๋ ์๋ต ์์ ์ ์๋ฌ๋ฅผ ๋ฐ์์ํค๋๋ก ์ ์๋์ด ์์.
๋ฉ์์ง ๋ฑ discord api๋ก ์ฒ๋ฆฌํ๋ ๋ชจ๋ ๋น๋๊ธฐ ๋ฉ์๋ ์ฒดํฌํ ๊ฒ
๊ฒ์๊ฒฐ๊ณผ์์ ๋ด์ด ์๋ฌด ์ด๋ชจ์ง์๋ ๋ฐ์ํจ (๋ด์ด ์ ์ํ ์ ํ์ง ์ธ์ ์ด๋ชจ์ง๋ฅผ ๋ฌด์ํ์ง ์์)
~p ํค์๋๊ฒ์ ํ ๋ค๋ฅธ ์ด๋ชจ์ง ์ถ๊ฐ
์ด๊ฒ ๊ทธ ์ค๊ฐ์ ๊ถํ? ์ญํ ? ๋๋ฌธ์ ๊ทธ๋ฐ๊ฑด์ง ๋ชจ๋ฅด๊ฒ ๋๋ฐ ๋ค๋ฅธ์ฌ๋์ด ๊ทธ๋ด๋๊ฐ ์๊ณ ์๊ทธ๋ด๋๊ฐ ์์
์์ฑ๋ฐฉ์ ๋ค์ด๊ฐ์์ผ๋ฉด ์๋ฌด๋ฐ์ ์ํ๋๋ฐ ์๋ค์ด๊ฐ์์ผ๋ฉด ์๋ฌด ์ด๋ชจ์ง์์ ๋ค ๋ฐ์ํจ
์์ฑ์ฑํ
์ ์์๋, ๋ด์ด ๋ฌ์๋ ๊ฒ์๋ง ๋ฐ์ํด์ผ ํ๊ณ ,
๋๋จธ์ง๋ ์ ๋ถ ๋ฌด์ IGNORE
(draft)
์ฝ๋๊น๋ด์ผ์๊ฒ ์ง๋ง... ์ ํด์ง ๋ฒ์ ์์์๋ง ์๋ตํ๊ฑฐ๋ ์๋ตํด๋ ์ด๋ชจ์ง ๋ฒ์๋ฅผ ๊ฐ๊ณ ์๊ฑฐ๋...
์์ฑ์ฑ๋ ์ ์ํ๋์ง ์ฌ๋ถ? ๋ ์์ ๊ณ ๋ คํด๋ณผ ํ์๋ ์์ ๋ฏ
move ์ฌ์ฉ๋ถ๊ฐ๋ฅ
await voiceChannel.guild.me.voice.setChannel(voiceChannel);
์์ Missing Permission ๋ฐ์
์ผ์์ ์ง ์ํ์์ ~r ํน์ ~s ๋ฅผ ํตํด ๊ณก์ด ์๋ก ์ฌ์๋์ด์ผ ํ ๋ ํ๋ฆ์ ์ผ์์ ์ง ์ํ๊ฐ ํ๋ ค์ผ ๋ง๋๋ฐ ํ๋ฆฌ์ง ์์
๋์ถฉ ๋๋ค์ฌ์์ ๊ณ ๋ฅด๊ธฐ๋ง ํ๊ณ ์ฌ์ ์ํ ๊ณก๋ ์ ํ๋๋ค๋ ๋ป
use @types directory
tsc ๋๋ฆฌ๋ฉด ๋์ค๋ ๊ผฌ๋ผ์ง๊ฐ ๋ญ๋ ๊ทธ๊ฒ
A์์ B๋ก ๊ฐ๋ฉด ์์ง๋ ๋ด์ A์ ์๋ ์ค ์
Topic of idea: ์ด์ฌํ ์ฌ์๋ชฉ๋ก ์์๊น์ง ์กฐ์ ํด์ ๋ง๋ค์ด๋จ๋๋ฐ, ์ด๊ฑฐ ์ ํ๋ธ ํ๋ ์ด๋ฆฌ์คํธ ์์ด ๋ด๋ง๋๋ก ์ฐ๊ณ ์ถ๋ค๋ฉด?
keyword:
db playlist table
ํ์ฌ ๋๊ธฐ์ด ์ค๋
์ท(?) ํน์ index ์ง์ ํด์ ์ ์ฅ + ์ด๋ฆ์ง์
์ ์ฅ๋ ํ๋ ์ด๋ฆฌ์คํธ ์ ๊ณต, ์ด๋ฆ๋ฐ๊พธ๊ธฐ?, ์ญ์ (์์ ์ ํ๋ค๋ค ์๋ฒ)
๋๊ธฐ์ด์ ํ๋ ์ด๋ฆฌ์คํธ ์ถ๊ฐ (id param)
Slash Commands ๊ฐ ์๋ก ์ถ๊ฐ๋จ์ ๋ฐ๋ผ ๋์
๊ฒํ
๊ถํ ๋ฐ ๋ช
๋ น์ด ๋ฑ๋ก ๋ฑ ์ ๊ฒฝ์ธ๊ฒ ๋ง์๋ฐ ์์ธํ ๊ฒ์ ๋ํ๋จผํธ ์ฐธ์กฐ
https://blog.discord.com/slash-commands-are-here-8db0a385d9e6
https://discord.com/developers/docs/interactions/slash-commands
more than 70 songs (*can't count exactly)
[2021/05/03 22:05:07.327] [ERROR] (node:64) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
embed: Embed size exceeds maximum size of 6000
at RequestHandler.execute (/home/djyurika/djyurika_js/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async RequestHandler.push (/home/djyurika/djyurika_js/node_modules/discord.js/src/rest/RequestHandler.js:39:14)
(Use `node --trace-warnings ...` to show where the warning was created)
100๊ณก ๋์ผ๋ฉด ์๋๊ณ ํ 70๊ณก ์ด์์ ๋์ถฉ ๋์๋ ์ ์์
์ถ๊ฐํ ๋ ๋ช ๋ น์ด ๋ฐ์ ์ฑ๋ ๋ฑ ์ด๋ป๊ฒ ํ ์ง..
๋์ค์ฝ๋์์ ๊ธธ๋ ์ ๋ณด๊ฐ ๋ฐ๋๊ฑฐ๋, ๋ถ๊ฐ์ ์ผ๋ก ์๋ฒ(๊ธธ๋)๊ด๋ฆฌ์๊ฐ ๋ช
๋ น์ด์ฑ๋ ๋ฑ์ ํ์์ ๋ณด ๋ณ๊ฒฝํ์์ ๋ฑ...
(์ด๋ฒคํธ ํธ๋ค๋ฌ ๋ฑ๋ก๋ง ํด๋ )
#14 ๋ฐ 54c94d3 ์์ ๋์จ ์ต๊ทผ ์ฌ์ ๋ฆฌ์คํธ๋ ์ฑ ๋ด์์ ์ถ๊ฐํ๊ณ ์์ด์,
๋ด ์ธ์คํด์ค๊ฐ ์ฌ์์๋๋ฉด ๋์ค์ง ์์
์ต๋ 5๊ฐ ํ์ ๊ธฐ์ค, DB ์์ last_played_at ๋ด๋ฆผ์ฐจ์์ผ๋ก 6๊ฐ๋ง.
ํ์ฌ ์ฌ์์ค์ธ ๊ณก์ด ์์ผ๋ฉด (์ฒซ๋ฒ์งธ row์ ํ์ธํ ํ) ๋๋ฒ์งธ row (list index 1)๋ถํฐ ์ถ๋ ฅํ๋ ๋ฐฉ๋ฒ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.