개인 자료란 (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/268/789/003/262x150.crop.jpg?20240515192032

레드스톤

벌레먹은 돌 빠르게 제거하는 법

GlassesFilm

2024-05-15

0

/files/thumbnails/797/788/003/262x150.crop.jpg?20240515090924

건축

마인크래프트로 구현한 카르카손 보드게임

Warak

2024-05-15

1

/files/thumbnails/487/784/003/262x150.crop.jpg?20240508233607

모드

Windows Borderless 모드에서 악성코드 발견

학교가기싫다

2024-05-08

1

/files/thumbnails/384/778/003/262x150.crop.jpg?20240512002324

업데이트

마인크래프트 자바 에디션 스냅샷 24w18a

학교가기싫다

2024-05-06

0

/files/thumbnails/855/781/003/262x150.crop.jpg?20240505141129

레드스톤

레이저 클리너

GlassesFilm

2024-05-05

1