As music bots such as Groovy and Rythm ended their service, we thought:
If we don't have one, we gon' make one - Sun Tsu (probably)
And thats how the mu_sick_bot
was born.
mu_sick_bot
is a discord music bot written in Python, using discord.py
.
It is a passion project coded by m4ch374 and n0t-4m17h.
This bot is compatible for both Linux
and Windows
.
To run the bot, we must first install python.
Note: Python 3.8 or higher is required.
- For Linux users:
$ sudo apt-get install python
- For Windows users:
Download Python via this link
In order for the bot to play music properly, we also need to install FFmpeg.
Note: FFmpeg has to be in PATH.
- For Linux users:
$ sudo apt-get install ffmpeg
- For Windows users:
Download FFmpeg via this link
To install discord.py and requests, run the following command:
# Linux users
$ python3 -m pip install -U "discord.py[voice]"
$ python3 -m pip install requests
# Windows users
$ py -3 -m pip install -U discord.py[voice]
$ py -3 -m pip install requests
To install these libraries, run the following commands:
# Linux users
$ python3 -m pip install youtube-search-python
$ python3 -m pip install youtube-dl
# Windows users
$ py -3 -m pip install youtube-search-python
$ py -3 -m pip install youtube-dl
To run the bot, navigate to the directory containing the srouce file,
then, navigate to /settings/settings.json
and change this line:
{
"bot_token": "", # <--- Type in your application's token
"fileIgnoreList": [
Navigate back to the original directory and run this command:
# Linux users
$ python3 src/mu_sick_bot.py
# Windows users
$ py src/mu_sick_bot.py
-
help Optional[command / category]
Displays all commands for the bot / category if it is provided.
Displays the usage of a command if it is provided.
The mu_sick_bot
provides commands in these 4 main categories:
- Music
- API
- Common commands
- Moderation
-
play [link / title]
Plays the music from the given link or title
Cooldown: 5 times max every 30secs, per Member -
disconnect
Disconnects from voice channel
-
np
Shows the info of the music that's currently playing
Cooldown: once every 30secs, per Member -
queue
Displays the music queue
Cooldown: once every 30secs, per Member -
remove [index]
Removes a song from queue at specified index (Note: index starts at 1)
Cooldown: 5 times max every 15secs, per Member -
skip
Skips the current song and plays the next song
-
covid Optional[country_slug]
Displays global covid data, displays data for specific country if
country slug
is provided
Cooldown: 5 times max every 30secs, per Member
Note: The data retrieved is kinda inaccurate. -
anime [title]
Displays info on the specified anime
Cooldown: 5 times max every 30secs, per Member -
manga [title]
Displays info on the specified manga
Cooldown: 5 times max every 30secs, per Member -
waifu
Displays an image of a random waifu
-
fbi
Naughty stuff 👀
Note: Only sends out image in NSFW channels
-
hello Optional[n]
Prints "Hello World" n times
Cooldown: 4 times max every 60secs, per Member -
echo [args]
Repeats the provided args
Cooldown: 5 times max every 60secs, per Member -
yt [arg]
Gives the top 5 youtube links that best matches the given input
Cooldown: 3 times max every 30secs, per Member -
sesh [user]
Displays the discord activities that a certain member has
Cooldown: 5 times max every 60secs, per Member
-
setPrefix [new_prefix]
Sets the prefix for the bot
Note: mentions are not allowed -
kick [member] Optional[reason]
Kicks a member
-
ban [member] Optional[reason]
Bans a member
-
whitelist [role]
Whitelist a role such that the role has access to Moderation commands
Cooldown: 5 times max every 30secs, per Member
-
✅ Supported sources
Unfortunately, at this stage we only support sources fromyoutube
-
❌ Restrictions
- The video provided cannot be live
- Playlist is not supported, once provided, it will only add the first song in the playlist to the queue
We plan to further expand the capabilities of this bot, when we have time.