How to use the playsound.utils.dataIO.dataIO.load_json function in playsound

To help you get started, we’ve selected a few playsound examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tmercswims / tmerc-cogs / playsound / playsound.py View on Github external
def __init__(self, bot: commands.Bot):
        self.bot = bot
        self.audio_players = {}
        self.sound_base = "data/playsound"

        self.settings_path = "data/playsound/settings.json"
        self.settings = dataIO.load_json(self.settings_path)