<reponame>kaylode/KAI<gh_stars>1-10
from .food_api import FoodAPI
from .dictionary import Dictionary
from .translate_api import GoogleTranslationAPI
from .helper import Helper
from .voice_api import GoogleVoiceAPI
from .kaylode_api import KaylodeAPI
from .covid_api import CovidAPI
from .openai_api import OpenAIAPI
from .alarm import Alarm
from .music import MusicAPI
from .wikipedia_api import WikipediaAPI
from .speech import SpeechToTextAPI
from .lyrics import LyricsAPI
from .together import DicordTogetherAPI

def get_api(name, client):
    if name == 'dictionary':
        return Dictionary()
    if name == 'foodapi':
        return FoodAPI()
    if name == 'translateapi':
        return GoogleTranslationAPI()
    if name == 'helper':
        return Helper()
    if name == 'voiceapi':
        return GoogleVoiceAPI()
    if name == 'kaylodeapi':
        return KaylodeAPI()
    if name == 'covidapi':
        return CovidAPI()
    if name == 'openai':
        return OpenAIAPI()
    if name == 'wikipedia':
        return WikipediaAPI()
    if name == 'lyricsapi':
        return LyricsAPI()
    if name == 'together':
        return DicordTogetherAPI(client)
    if name == 'music':
        return MusicAPI(client)
        
    print("[Error] Wrong features name. Check .yaml file")
    raise
from .food_api import FoodAPI
from .dictionary import Dictionary
from .translate_api import GoogleTranslationAPI
from .helper import Helper
from .voice_api import GoogleVoiceAPI
from .kaylode_api import KaylodeAPI
from .covid_api import CovidAPI
from .openai_api import OpenAIAPI
from .alarm import Alarm
from .music import MusicAPI
from .wikipedia_api import WikipediaAPI
from .speech import SpeechToTextAPI
from .lyrics import LyricsAPI
from .together import DicordTogetherAPI

def get_api(name, client):
    if name == 'dictionary':
        return Dictionary()
    if name == 'foodapi':
        return FoodAPI()
    if name == 'translateapi':
        return GoogleTranslationAPI()
    if name == 'helper':
        return Helper()
    if name == 'voiceapi':
        return GoogleVoiceAPI()
    if name == 'kaylodeapi':
        return KaylodeAPI()
    if name == 'covidapi':
        return CovidAPI()
    if name == 'openai':
        return OpenAIAPI()
    if name == 'wikipedia':
        return WikipediaAPI()
    if name == 'lyricsapi':
        return LyricsAPI()
    if name == 'together':
        return DicordTogetherAPI(client)
    if name == 'music':
        return MusicAPI(client)
        
    print("[Error] Wrong features name. Check .yaml file")
    raise