Skip to content

Commit

Permalink
feat: support plugin search types (#31)
Browse files Browse the repository at this point in the history
* feat: support plugin search types

* refactor: rename yandex to yandex_music

* refactor(search): rename speech to tts
  • Loading branch information
ooliver1 committed Feb 4, 2023
1 parent 3e72635 commit 1985484
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion mafic/search_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,37 @@


class SearchType(Enum):
"""Represents a search type for Lavalink."""
"""Represents a search type for Lavalink.
.. danger::
Many of these require plugins to be used.
`LavaSrc <https://github.com/TopiSenpai/LavaSrc>`_:
- :attr:`SPOTIFY_SEARCH`
- :attr:`SPOTIFY_RECOMMENDATIONS`
- :attr:`APPLE_MUSIC`
- :attr:`DEEZER_SEARCH`
- :attr:`DEEZER_ISRC`
- :attr:`YANDEX`
`DuncteBot <https://github.com/DuncteBot/skybot-lavalink-plugin>`_:
- :attr:`SPEECH`
"""

YOUTUBE = "ytsearch"
YOUTUBE_MUSIC = "ytmsearch"
SOUNDCLOUD = "scsearch"

# Plugins

# LavaSrc
SPOTIFY_SEARCH = "spsearch"
SPOTIFY_RECOMMENDATIONS = "sprec"
APPLE_MUSIC = "amsearch"
DEEZER_SEARCH = "dzsearch"
DEEZER_ISRC = "dzisrc"
YANDEX_MUSIC = "ymsearch"

# DuncteBot
TTS = "speak"

0 comments on commit 1985484

Please sign in to comment.