randyhkim / sharur

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sharur

Sharur is a multipurposed discord bot that can get Youtube videos and play it in a voice chat so music can be shared among users. In addition to music, it can also store important reminders that can remind one to everyone in the server so that nobody misses any events or important dates that is not in calendars. If on windows, install ffmpeg manually by downloading the ffmpeg executable file and putting it in the scripts folder. https://stackoverflow.com/questions/30770155/ffprobe-or-avprobe-not-found-please-install-one

Functions

$join and $leave

join.mov

$join commands the Sharur bot to join the channel the user is at. If the user is in no channel, the bot declines, saying "I am not in a voice channel!" $leave commands the bot to leave the channel.

$play

play.mov

$play allows user to input a Youtube video link and the Discord bot will automatically join the voice channel and play the audio of that Youtube video. If you call $play again, the music being played will be aborted and the audio of the new Youtube video will be played immediately.

$ping

ping.mov

$ping is a command that returns a message saying "pong" as a demonstration purpose for development.

$add_birthday

add_birthday.mov

$add_birthday allows user to interactively add an entry to the birthday database. If any of the inputs are invalid, the bot will return an "Internal server error." response. If the user fails to respond within 30 seconds since the last prompt, the interaction is aborted. When successful, a rich, embedded Discord message highlights that the addition was successful.

$remove_birthday

remove_birthday.mov

$remove_birthday removes all birthday entries with the name inputted by the user. If none is found or the input is invalid, the bot will return an "Internal server error." response. If the user fails to respond within 30 seconds since the last prompt, the interaction is aborted. When successful, a rich, embedded Discord message highlights that the removal was successful.

$fetch_birthdays

fetch_birthdays.mov

$fetch_birthdays returns a list of tuples where each tuple represents all rows in the birthday database. This function is left for development purposes.

$birthdays_today

birthdays_today.mov

$birthdays_today tags @everyone and returns a rich, embedded Discord message that highlights people whose birthday is today, along with the birthday message that was written when creating the birthday database entry.

About


Languages

Language:Python 100.0%