music_bot

Module Contents

Classes

PlayArguments

Parsed play arguments.

InputParser

Parses music bot commands.

MusicBot

Music related collection of commands.

class music_bot.PlayArguments

Parsed play arguments.

shuffle : bool
search : bool
query : List[str]
class music_bot.InputParser

Parses music bot commands.

__parser : argparse.ArgumentParser
parse_play(args: Iterable[str]) PlayArguments | None

Parse play music command.

Parameters:
args: Iterable[str]

List of arguments to parse.

Returns:

Parsed arguments, None in case of error.

Return type:

Optional[PlayArguments]

class music_bot.MusicBot(bot, channel_id: str, voice_channel_id: str)

Bases: discord.ext.commands.Cog

Music related collection of commands.

Discord music bot to play audio. Functionality includes: - playing music from youtube video/playlist urls; - clear, skip, pause & resume audio.

_logger : logging.Logger
__input_parser : InputParser
async play(ctx, *query)
async clear(ctx)
async pause(ctx)
async resume(ctx)
async skip(ctx)
async status(ctx)
async reboot(ctx)