개인 자료란 (JE)

  서버 커뮤니티

Profile ENCE 대표칭호 없음

I3396 83afcc84f84f44ed811e268863d53eb3

Profile

디스코드 연동 애드온

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

2020.02.25 조회 수 614 추천 수 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/115/774/003/262x150.crop.jpg?20240424234825

업데이트

마인크래프트 1.20.5 정식 업데이트

학교가기싫다

2024-04-24

0

/files/thumbnails/762/770/003/262x150.crop.jpg?20240418073724

레드스톤

T.B.H (고민중독) | 노트블럭 버전 | NoteBlock Cover [한국어 영어 중국어 가사 추가]

노트블럭전문가

2024-04-18

0

/files/thumbnails/218/767/003/262x150.crop.jpg?20240412130213

레드스톤

우리의 꿈 - 원피스 오프닝

노트블럭전문가

2024-04-12

0

/files/thumbnails/505/766/003/262x150.crop.jpg?20240411122306

레드스톤

기동전사 건담 수성의 마녀 | 노트블럭 커버 1

노트블럭전문가

2024-04-11

1

/files/thumbnails/932/765/003/262x150.crop.jpg?20240410124459

레드스톤

마인크래프트 노트블록으로 만든 『 밤양갱 (Bam Yang Gang) 』

노트블럭전문가

2024-04-10

0