A modular Discord voice player with plugin system for @discordjs/voice.
- Message commands: !play, !skip, !stop, !pause, !resume,!volume, !queue, !np, !shuffle, !loop, !autoplay
- Buttons (Bplayer): refresh, previous, pause/resume, next,stop, search, autoPlay
- Select menus (S_player_Func): Loop, AutoPlay, Queue, Mute/Unmute, Vol±, Lyrics toggle, Shuffle, Lock,
- Player events: trackStart, trackEnd, queueEnd, playerStop,playerPause, playerResume, volumeChange, playerDestroy, playerError, queueAdd
npm install @ziplayer/express discord.js opusscriptimport { ZiMusicBot } from "@ziplayer/express";
import { Client, GatewayIntentBits } from "discord.js";
//discordjs Client
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessages,
],
});
const ZMusic = new ZiMusicBot(client, {
prefix: "!",
});
// for slash cmd:
await ZMusic.createPlayer(guildId, VoiceChannel, TextChannel, User);
ZMusic.play("QUERY");
client.login("YOUR BOT TOKEN");- search
- play
- skip
- stop
- pause
- resume
- queue
- vol, volume
- np, nowplaying
- shuffle
- loop
- autoplay
Example | Repo | Package | Plugin | Extension
MIT License
