Code Monkey home page Code Monkey logo

music-start-discord-bot's Introduction

Music Start!

Music Start 是一個可以於 Discord 語音頻道播放 Youtube 音樂的 Discord 機器人,該專案依賴於 Discord.js v12 該版本尚未支援 slash command。

目前已經有另一個專案支援 slash command:Music Start Pro

因此,這個專案即將停止更新

將機器人加入至 Discord 群組

控制機器人的相關語法,請見 help.md.

開發方法

STEP 1 安裝環境

  • node: 14.17.3
  • npm: 7.19.1
# 使用 npm install 做初始化
npm install

# 安裝 ffmpeg
npm i ffmpeg-static

STEP 2 申請 Discord Application

申請 Application 後複製 APP 的 Token,並於根目錄新增 token.js

{
    "token": "你的TOKEN"
}
  • /
    • node_modules
    • discord.ts
    • token.json
    • ... 其他

STEP 3 啟動

npm start

其他實用腳本

如果你在 Linux 環境開發,可以直接呼叫 build.sh 做環境建置。另外,開發完成後可以呼叫 deploy.sh 這個腳本會自動於背景運行 discord.ts,若前一次的程式仍在運行,deploy.sh會先 kill 掉先前的程式,才做佈署

music-start-discord-bot's People

Contributors

ksw2000 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.