Skip to content

This is a discord bot with the aim objective to play intro music when a person joins a voice channel.

Notifications You must be signed in to change notification settings

KevinShek/Discord-Bot-Python-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Music Bot Discord (Python)

This is a discord bot project made in 2021 with the aim to play intro music when a person joins a voice channel. Up till 2023 new commands/features has been added to the Discord Bot which are listed down below.

The music player that was used within this repository was by EvieePy.

Commands/Features

Intro Music Commands

An intro will be played when you join a voice channel the bot is in. The information regarding the intro music are stored within the database, where the bot was hosted and interacted with sqlite3 library, which can be found within the cogs folder when you first run the bot and join a voice channel.

!intro this command will get the bot to play the intro music of the user who issued the command.

!set url timestamp duration this command will set the specific intro music you have chosen and will play when you join a voice channel of your choosing. (Optional arguments) The optional arguments are the timestamp when to play the song and the duration of the intro (both in seconds).

!switch this command will enable/disable the intro music to play within a specific discord server if the bot was utilised within multiple servers.

Music Commands

!play url this command is to allow the bot to play the sound coming from the given url within the current voice channel the user who issued the command is in.

!pause, !resume, !skip, !stop, now_playing, and !quene these commands are used to interact with the music player.

!super url this command will override the current song and clear the queue to play url you gave.

FF14 Map Search Command

The following command is related to the critically acclaimed MMORPG Final Fantasy XIV. This was a fun side project to understand more about template matching techniques and pre-processing of images. This was aimed at the activity called Treasure Hunt, the objective was to find the location of the treasure from a map fragment and the area name given by the game. This will only work from the base game maps up to the Stormblood expansions of maps. If you want to try this out and use it for maps pass the Stormblood expansion then you need to add the map images into cogs/map_check/location/ folder. The output of this will be sent into the discord channel of a single image containing all the template matching techniques' best estimation of where the location of the treasure might be.

!map to use this command, you need to attach the image/screenshot of only the map fragment before issuing the command.

Quiz Commands

This is a feature that was used for the ease of sending out questions, hints and tallying points and sorting teams for quiz nights. To use the hints and questions, it assumed you are using your own hints and questions, in terms of hints like images or sounds they must be located within the questions/ folder

!timer time this command is to set a timer with a specified time for how long the players has for the question.

!teams this command shows the current teams there are, who's in it and how many points each team has.

!scores shows the scores of all teams.

!empty clears all teams created.

!chose_team team_name *names this will current the team with a unique team name and add the *names (players) within that team.

!random_teams number_of_teams *names this will create x number of teams specified by the user, otherwise the default is 3 teams and randomise the *names (players) into those teams.

!points team_name gets the points of the specified team.

!image name this will send an image to the discord server of the provided name of the PNG image.

!ran_quest number this will send out a random question (image), unless provided a number. (I have numbered each questions with their associated hint)

!fixed_quest *names this will setup a list of your *names (questions) you want for this quiz session.

!next_quest this will send out the next question within the list.

!sample this will play a music hint of the question.

Misc Commands

!roll Give you a random value between 1-99.

!pain This plays the Pain Peko Sound.

!hello the bot will reply "hello" in text.

!join and !leave these commands allows for the bot to join/leave the voice channel of the user who issued those commands.

The requirements are shown within the pipfile.

About

This is a discord bot with the aim objective to play intro music when a person joins a voice channel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages