{"repo":"GreenScreen410/GreenBot-Discord","free":true,"listed":false,"github":"https://github.com/GreenScreen410/GreenBot-Discord","clone":"git clone https://github.com/GreenScreen410/GreenBot-Discord.git","description":"Information for All, GreenBot.","language":"TypeScript","stars":18,"topics":["discord","discord-bot","discord-js","nodejs","music-bot-discord","discord-slash-commands","javascript","slash-commands","typescript","typescript-discord-bot"],"license":"MIT","category":"chat-messaging","readme_excerpt":"그린Bot 2022.02.01 파일 설명 - assets - 이미지, 음성 파일 등 자료가 들어있습니다. - commands - 빗금 명령어(Slash Command)가 들어있습니다. 텍스트 형태의 명령어는 모두 삭제하였습니다. - commands - 텍스트 명령어가 들어있습니다. 접두사는 G이며, 잘 사용되지 않습니다. - events - 빗금, 텍스트 명령어 , 음악 명령어 탐지 파일이 들어있습니다. - handler - 명령어 폴더 내에 있는 파일을 불러올때 쓰입니다. - models - mongodb(데이터베이스) 관련 파일이 들어있습니다. - .gitignore - Github에 업로드 시, 무시할 파일들이 들어있습니다. 이 파일은 봇 실행에 영향을 주지 않습니다. - Procfile - Heroku에서 실행시킬 명령어를 담고있습니다. Heroku에서 호스팅하지 않는다면 해당 파일은 삭제하셔도 괜찮습니다. - index.js - 봇을 실행시킬 때 쓰이는 파일입니다. - package-lock.json - npm 패키지 관련 파일입니다. - package.json - npm 패키지 관련 파일입니다. Q&A Q: 왜 파일을 불러올 때 path 모듈도 같이 사용하나요? A: 그린Bot은 v1.9.0부터 TypeScript로 변경되게 되었고, 이에 따라 자바스크립트로의 컴파일 과정이 필요해졌습니다. 컴파일 시에는 dist 라는 폴더가 생기게 되는데, 폴더 경로가 고장날 수 있으므로 path 모듈을 사용하였습니다. Q: 재생 명령어 입력 시, 봇이 채널에 접속하긴 하지만 즉시 접속을 끊어요. A: npm의 ffmpeg-static 는 상당히 불안정합니다. 윈도우에서는 작동될 수 있지만, 리눅스 환경에서는 작동되지 않을 수 있습니다. 기존에 있던 ffmpeg-static 을 제거하고, sudo apt-get install ffmpeg 로 설치해 보세요. 그래도 안 된다면 Issue를 남겨주세요. 1.12.3 이후 버전부터는 윈도우에서도 ffmpeg 바이너리를 사용하도록 설정되었으므로, 를 통해 설치해 주세요.","default_branch":null,"files":null,"tree":[],"storefront":"/r/GreenScreen410","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GreenScreen410/GreenBot-Discord/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}