discord bot node
Prebuilt client for hosting on replit
Discord Server
웹 UI
봇을 만들고 토큰을 얻고 불화 서버에 추가하십시오
node.js 16.13.0 또는 최신이 필요합니다.
CommandLine에서 .env 파일을 만들거나 환경 변수를 설정하고 node_env = production을 추가하여 .env 파일을 비활성화하십시오.
TOKEN=<discord token>
OWNER=<Discord owner User Id>
URL=<url/ip of this server in format http(s)://foo.bar:port>
PORT=<port to start server on, default: 3000>
DEFAULT_VOLUME=<0-150, default: 20>
RADIO_MAX_VIDEO_LENGTH=<length in seconds, 0 for no max length, default: 600, will exclude all songs longer than the duration from the radio.>
AUTO_LEAVE_TIMEOUT=<length in seconds, -1 to disable, Default: 60, will make the bot leave after the given amount of time, if he is alone.>
RESUME_ON_BOT_JOIN=<true/false, default: false, whether the bot resumes music playback when he joins a channel.>
PAUSE_ON_USER_LEAVE<true/false, default: true, whether the bots pauses music playback when he is alone.>
RESUME_ON_USER_JOIN=<true/false, default: true, whether the bots resumes music playback when he is no longer alone.>
서버를 먼저 빌드 한 다음 클라이언트를 구축하십시오.
> npm install
> npm run build
client> npm install
client> npm run build:prod
> node ./bin/www
클라이언트가 Prod 플래그없이 빌드 된 경우 항상 LocalHost : 3000 (개발)을 통해 서버에 액세스합니다.
REPLIT는 봇을 직접 배포하는 자유롭고 쉬운 방법입니다.
이 프로젝트는 Replit 용으로 설계되지 않았습니다. 제공된 구성은 배포하기위한 것입니다.
무료 버전의 경우 사용 가능한 리소스에 의해 제한 될 수 있습니다. 클라이언트는 RAM이 부족하기 때문에 구축 할 수 없습니다. 이로 인해 클라이언트는이 git repo의 릴리스에서 자동으로 다운로드됩니다.
또는 Docker와 함께 실행 :
docker run -d -p 80:80 --restart unless-stopped --name discord-bot-node -e NODE_ENV=production -e PORT=80 -e TOKEN=<discord token> -e OWNER=<discord owner id> -e URL=<url/ip e.g http(s)://foo.bar:port> alexanderwyss/discord-bot-node:latest
도커 허브
슬래시 명령은 불화를 통해 봇과 상호 작용하는 방법입니다. 사용 가능한 명령 목록을 참조하려면 입력을 시작합니다.
슬래시 명령은 처음에 "! RegisterCommands"에 등록되어야합니다.
웹 UI는 여러 사용자가 동시에 사용할 수 있습니다.
<ctrl> + f 초점 검색<enter> 검색<ctrl> + <enter> 지금 첫 번째 결과를 재생하십시오<ctrl> + <shift> + <enter> 첫 번째 결과를 재생합니다<shift> + <enter> 큐 첫 번째 결과Firefox & Chrome으로 테스트.