Showing
1 changed file
with
11 additions
and
8 deletions
| ... | @@ -191,8 +191,8 @@ client.on("message", msg => { | ... | @@ -191,8 +191,8 @@ client.on("message", msg => { |
| 191 | 191 | ||
| 192 | 192 | ||
| 193 | 193 | ||
| 194 | - // 백색소음 틀기 | 194 | + // 음악재생 |
| 195 | - if (command === "재생") { | 195 | + if (command === "음악") { |
| 196 | if (msg.member.voice.channel) { | 196 | if (msg.member.voice.channel) { |
| 197 | msg.member.voice.channel.join() | 197 | msg.member.voice.channel.join() |
| 198 | .then(connection => { | 198 | .then(connection => { |
| ... | @@ -202,18 +202,21 @@ client.on("message", msg => { | ... | @@ -202,18 +202,21 @@ client.on("message", msg => { |
| 202 | }) | 202 | }) |
| 203 | .catch(console.log); | 203 | .catch(console.log); |
| 204 | } else { | 204 | } else { |
| 205 | - msg.reply("널 따라갈건데 너가 보이스채널에 없어."); | 205 | + msg.reply("먼저 보이스채널에 입장해주세요."); |
| 206 | } | 206 | } |
| 207 | - } | 207 | + } // 음악재생 end |
| 208 | - if (command === "보이스나가") { | 208 | + |
| 209 | + | ||
| 210 | + // 보이스채널 나가기 | ||
| 211 | + if (command === "나가") { | ||
| 209 | 212 | ||
| 210 | if (msg.member.voice.channel) { | 213 | if (msg.member.voice.channel) { |
| 211 | msg.member.voice.channel.leave(); | 214 | msg.member.voice.channel.leave(); |
| 212 | msg.reply('bye!'); | 215 | msg.reply('bye!'); |
| 213 | } else { | 216 | } else { |
| 214 | - msg.reply('이미 나왔는데..'); | 217 | + msg.reply('이미 나왔어요.'); |
| 215 | - } | ||
| 216 | } | 218 | } |
| 219 | + } // 보이스채널 나가기 end | ||
| 217 | 220 | ||
| 218 | 221 | ||
| 219 | 222 | ||
| ... | @@ -224,4 +227,4 @@ client.on("message", msg => { | ... | @@ -224,4 +227,4 @@ client.on("message", msg => { |
| 224 | 227 | ||
| 225 | 228 | ||
| 226 | //디스코드 봇 토큰 | 229 | //디스코드 봇 토큰 |
| 227 | -client.login('OTA3OTU2NjY1MTEzMDE4NDA4.YYuuiQ.Rn2yQ9lGPLr_24sky29TWQHLOYA'); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 230 | +client.login(token); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment