개인 자료란 (JE)

  서버 커뮤니티

Profile ENCE 대표칭호 없음

I3396 83afcc84f84f44ed811e268863d53eb3

Profile

디스코드 연동 애드온

[ 스크립트 애드온 - VIXIO ( 14-5 ) ] 노래봇 만들기

2020.02.25 조회 수 644 추천 수 1

8184c20a5ad5bbc8c1401cbe98aad642.png

안녕하세요 DC입니다.

더이상 할건 없나보네요 ㅎㅎ;

24번을 마지막으로 "디스코드 연동강좌" 는 막을 내립니다.

간단하게 노래봇 배포라고 보시면 되요!



discord command ./play [<text>]:
>bots: {@name}
>executable in: guild
>trigger:
>>delete event-message with event-bot
>>if voice channel of event-member is not set:
>>>reply with "고객님은 통화방에 들어가 있으셔야 해요!"
>>>stop
>>search youtube for arg-1 and store the results in {results::*} # 노래 재생 - {results::*} 가 결과 ( ::1이 결과의 1번 .. )
>>if {results::1} is not set:
>>>reply with "%arg-1%를 검색하였으나, 아무 결과가 나오지 않았습니다 :("
>>>stop
>>if {track::*} is not set:
>>>join voice channel of event-member
>>>wait 1.5 seconds
>>>play {results::1}
>>>reply with "%{results::1}%를 재생합니다."
>>>set {nowmusic::1} to {results::1}
>>>set {nowmusic::2} to arg-1
>>>add "%{results::1}%DCISGREAT%arg-1%" to {track::*}
>>>create embed:
>>>>set the title of embed to title with text "현재 음악 목록"
>>>>set the colour of the embed to GOLD
>>>>loop {track::*}:
>>>>>add 1 to {count}
>>>>>set {ttrack::*} to {track::%{count}%} split at "DCISGREAT"
>>>>>add split field named "%{count}%" with value "**[ %{ttrack::2}% ]**%nl%``%{ttrack::1}%``" to embed
>>>>>add split field named " " with value " " to embed
>>>>>add split field named " " with value " " to embed
>>>>>send "콘솔" to console
>>>>delete {ttrack::*}
>>>>delete {count}
>>>>reply with last created embed
>>else:
>>>add "%{results::1}%DCISGREAT%arg-1%" to {track::*}
>>>create embed:
>>>>set the title of embed to title with text "현재 음악 목록"
>>>>set the colour of the embed to GOLD
>>>>loop {track::*}:
>>>>>add 1 to {count}
>>>>>set {ttrack::*} to {track::%{count}%} split at "DCISGREAT"
>>>>>add split field named "%{count}%" with value "**[ %{ttrack::2}% ]**%nl%``%{ttrack::1}%``" to embed
>>>>>add split field named " " with value " " to embed
>>>>>add split field named " " with value " " to embed
>>>>>send "d%{count}%" to console
>>>>>send {ttrack::2} to console
>>>>reply with last created embed
>>>>delete {count}
>>>>delete {ttrack::*}
on track end seen by "{@name}":
>remove "%{nowmusic::1}%DCISGREAT%{nowmusic::2}%" from {track::*}
>if {track::*} is set:
>>loop {track::*}:
>>>add 1 to {count}
>>>set {ttrack::*} to loop-value split at "DCISGREAT"
>>>stop the track event-bot is playing
>>>search youtube for {ttrack::1} and store the results in {rresults::*}
>>>play {rresults::1}
>>>set {nowmusic::1} to {ttrack::1}
>>>set {nowmusic::2} to {ttrack::2}
>>>delete {count}
>>>delete {ttrack::*}
>>>delete {rresults::*}
>>>stop
>else:
>>make event-bot leave vc
>>delete {count}
>>delete {ttrack::*}
>>delete {rresults::*}
>>delete {nowmusic::*}

musicbot.sk

지금까지 디스코드  연동강좌를 사랑해주신 모든 분께 진심으로 감사드립니다. 


https://discord.gg/2gxSqWu - 마인크래프트 개발자 디스코드

2개의 댓글

히리지
2020.02.25

지금까지 좋은 강좌 감사했습니다!!

ENCE
2020.02.26
@히리지

뉴스 및 창작물
/files/thumbnails/483/916/003/262x150.crop.jpg?20241127115329

레드스톤

[노트블럭 커버] 뉴진스 - ETA 2

노트블럭전문가

2024-11-27

0

/files/thumbnails/150/925/003/262x150.crop.jpg?20241123005717

건축

응답하라 1988 ?

팀뉴일리시

2024-11-23

4

/files/thumbnails/761/908/003/262x150.crop.jpg?20241025153749

건축

서울 숭례문(崇禮門) 6

KHC

2024-10-25

2

/files/thumbnails/578/899/003/262x150.crop.jpg?20241010142350

건축

경주 월정교 1

KHC

2024-10-10

2

/files/thumbnails/219/899/003/262x150.crop.jpg?20241009200950

건축

송전탑+도시 2

dbasd12

2024-10-09

2