Skip to content
プロジェクト

概要

Discord.js向けの包括的なDiscord音楽ボットライブラリです。シンプルな音楽コマンド、多様なソースからの手軽な再生、組み込みのオーディオフィルターを提供します。

デザイン・メディア

この数値の測り方

できること

  • Easy Integration: Built on top of discord.js v14 and @discordjs/voice.
  • Voice Management: Robust handling of voice connections and queue management.
  • Audio Filters: Built-in filters (bassboost, echo, karaoke, etc.) and custom filter support.
  • Plugin System: Extensible architecture supporting YouTube, Spotify, SoundCloud, and 700+ other sites.

計測したスター増加

24時間
0
7日間
0
15日間
-1
1か月
-1

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

GitHub Workflow Status node-current npm peer dependency version Codecov branch
npm GitHub Repo stars Discord

Buy Me a Coffee at ko-fi.com

DisTube

DisTube is a comprehensive Discord music bot library built for Discord.js, offering simplified music commands, effortless playback from diverse sources, and integrated audio filters.

🌟 Key Features

  • Easy Integration: Built on top of discord.js v14 and @discordjs/voice.
  • Voice Management: Robust handling of voice connections and queue management.
  • Audio Filters: Built-in filters (bassboost, echo, karaoke, etc.) and custom filter support.
  • Plugin System: Extensible architecture supporting YouTube, Spotify, SoundCloud, and 700+ other sites.
  • Type Safety: Written in TypeScript for a superior development experience.

📚 Resources

Resource Description
Ask DeepWiki Learn DisTube with AI-powered assistance.
Installation Detailed requirements and setup guide.
API Reference Complete technical documentation.
Discord Support Join our community for help and discussion.

🚀 Quick Start

npm install distube @discordjs/voice @discordjs/opus
const { DisTube } = require('distube');
const { Client, GatewayIntentBits } = require('discord.js');

const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildVoiceStates,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.MessageContent,
  ],
});

const distube = new DisTube(client, {
  emitNewSongOnly: true,
});

distube.on('playSong', (queue, song) =>
  queue.textChannel.send(`Playing \`${song.name}\` - \`${song.formatDuration()}\``)
);

client.on('messageCreate', message => {
  if (message.content.startsWith('!play')) {
    distube.play(message.member.voice.channel, message.content.slice(6), {
      message,
      textChannel: message.channel,
      member: message.member,
    });
  }
});

client.login('TOKEN');

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.

📄 License

Licensed under MIT License


Support me on Ko-fi

関連プロジェクトを探す

読み込み中…