Skip to content

A simple discord music bot to stream from a local library of files

License

Notifications You must be signed in to change notification settings

TannerShmoog/MALEBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MALEBOT

A simple discord music bot to stream from a local library of files

REQUIREMENTS

Python Libraries: discord.py, pysox (https://github.com/rabitt/pysox), requires sox to be installed)

Binaries: FFMPEG, FFPROBE (https://www.ffmpeg.org/download.html), SOX (updated link can be found in the pysox github readme)

SETUP

  1. Install Sox, ffmpeg, and ffprobe binaries **THESE MUST BE IN YOUR OS PATH**
  2. Go to https://discord.com/developers/applications and create an application, then add a bot to it.
  3. Ensure both message and server member intents are enabled, then generate a client authentication token
  4. Create ‘songdir.txt’, and enter a windows URL pointing to the directory containing your music files.
  5. Create ‘key.txt’, and enter your bot’s authentication key from the discord developer portal.
  6. Place these files in the same directory as the bot.
  7. Add your client ID into this link to invite your bot: https://discord.com/oauth2/authorize?client_id=YOUR_APPLICATION_ID&permissions=274881432640&scope=bot

COMMANDS (case sensitive)

Command NameAliasesDescription
Joingetoverhere, join, cConnects the bot to the voice channel the author is connected to.
Leavefuckyou, leave, dcDisconnects the bot from voice.
Shuffle Playshuffle, sPlays random song on loop until stopped, clears the queue on activation.
Stopstop, stStops shuffling and clears the queue.
Skipskip, skSkips the current song.
Pausepause, pPauses the currently playing song.
Resumeresume, rResumes the currently playing song.
Volumevolume, vSets the volume to a decimal value 0.01 to 1.00.
Seekseek, seSeek to time given an integer value in seconds.
Now Playingnowplaying, npShow a progress bar for the current song.
Replayreplay, reReplays current song.
Fuzzyfuzzy, fDoes a simple fuzzy search for the argument in quotes, adds the result to the queue and stops shuffling.
Keyword Searchkeyword, keySearches for matches containing all keywords, adds the result to the queue and stops shuffling.
Distortdistort, LOUDERHeavily distorts current song, and toggles distorted mode on or off. Optionally takes an integer 5-50 as an argument to set magnitude.
Looploop, lToggle continuous playback of the currently playing song on or off.
Queue Removeqremove, qrRemoves the song at the specified integer position in the queue.
Queue Clearqclear, qcClears the queue.
Queue Swapqswap, qsSwaps the positions of 2 songs in the queue given their integer positions as arguments.
Queue Removeqview, qvDisplay all songs currently in queue and their positions.

About

A simple discord music bot to stream from a local library of files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages