디스코드봇 (2) 썸네일형 리스트형 [JS] 디스코드 노래 봇 2 저번에 특정 노래만을 재생하도록 만들어놨으니 이번엔 URL을 받으면 그 노래를 반복재생하도록 추가해보았다.else if (command.indexOf('https://www.youtube.com') != -1) { const playUrl = command; voiceChannel = message.member.voice.channel; if (!voiceChannel) { return message.reply('채널에 먼저 들가라'); } const permissions = voiceChannel.permissionsFor(message.client.user); if (!permissions.has('CONNECT') || !perm.. [JS] 디스코드 노래 봇 디스코드에서 쓸만한 노래봇을 쓰려고 하는데 특정 기능을 사용하려 하니 유료결제가 필요하다길래 직접 만들어본다.일단 node js 사용하였다. npm init 로 세팅하며 시작 필요한 모듈은 아래와 같다npm install discord.js @discordjs/voice ytdl-core libsodium-wrappers discord.js 는 discord에서 제공하는 기능을 사용하기위해ytdl-core 는 youtube에서 url로 영상을 가져와 처리하기위해 사용한다 https://discord.com/developers/applications Discord Developer Portal — API Docs for Bots and DevelopersIntegrate your service with D.. 이전 1 다음