@ziplayer/express
v0.2.3
Published
A modular Discord voice player with plugin system
Maintainers
Readme
ZiplayerExpress
A modular Discord voice player with plugin system for @discordjs/voice.
Features
- 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
Installation
npm install @ziplayer/express discord.js opusscriptQuick Start
import { 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");CMD:
- search
- play
- skip
- stop
- pause
- resume
- queue
- vol, volume
- np, nowplaying
- shuffle
- loop
- autoplay
Useful Links
Example | Repo | Package | Plugin | Extension
License
MIT License
