telk-music

3.0.0 • Public • Published

Telk Music Discord.js Music Module

Important Note: This module does not work for discord.js masters as embeds are differnt

The commands available are:

  • play [a url or search string]: Play a video/music
  • p [a url or search string]: Play a video/music
  • search [a url or search string]: making this command a bit different than play command
  • skip [number]: Skip some number of songs. Will skip 1 song if a number is not specified.
  • queue: Display the current queue.
  • volume [number]: Change the volume from 1-200(sometimes the quality is bad)
  • leave: Clears the song queue and leaves the channel.
  • clearqueue: Clears the song queue.
  • stop: Stops the bot from playing music
  • loop [on/off]: Loops the queue
  • np: shows the song that is currently playing
  • nowplaying: shows the song that is currently playing
  • about: eh. . . u think i don't put a command for credit?
  • lyrics: shows the current song lyrics

removed commands

  • pause: Pause music playback.
  • resume: Resume music playback.

How to use

npm packages you need

  • npm install node-opus or npm install opusscript: yay a voice support npm package lul
  • npm install ytdl-core: npm package for playing the video
  • npm install telk-music: why would u read this without downloading the npm package?
  • npm install ffmpeg-binaries
  • You will also need ffmpeg

code example

const Discord = require('discord.js');
const music = require('telk-music');
const client = new Discord.Client();
const token = "<bot_token>" //dont show this to anyone!
 
client.on('ready', () => {
    console.log(`Music Bot is now ready!`);
});
 
music(client, {
  apikey: 'ytapikey' //dont show this to anyone!
});
client.login(token);

options Name | type | example

  • apikey: string | 'google api key'
  • prefix: string | '-'
  • maxQueueSize: init | 100 (0 is unlimited)
  • deletemsg: true/false | false
  • play_is_search: true/false | true
  • messages: all strings
    • search | '🔎 Searching `{song}` . . .'
    • added | '🎵 Added {song} to the queue!'
    • play | '🎶 Now Playing {song}!'
    • loop | '✅ loop turned {toggle}!'
    • end_of_queue | '✅ We ran out of songs.'
    • channelerror | '❌ Sorry but you cannot use {command} in dms'
  • emotes: all strings
    • x | '❌'
    • check | '✅'
    • mag | '🔎'
  • othercmds: true/false | true

Extra Information

  • by telk
  • music commands are disabled in dms!
  • lyric command now works better
  • doesnt response to other bots
  • add me on discord Telk#7197
  • need help? join https://discord.gg/3FKGeFw

Readme

Keywords

Package Sidebar

Install

npm i telk-music

Weekly Downloads

6

Version

3.0.0

License

MIT

Unpacked Size

30.2 kB

Total Files

5

Last publish

Collaborators

  • telk