Example #1
0
def process_audio(bot: MusicBot, ctx: Context, audio: AudioSequence) -> AudioSequence:
    cog: MusicSettingsCog = bot.get_cog('MusicSettingsCog')
    ct = cog.contexts[ctx.guild.id]
    for name, ext in ct.items():
        if ext.enabled:
            audio = ext.process(audio)
    return audio
Example #2
0
def setup(bot: MusicBot):
    bot.add_cog(MusicSettingsCog(bot))
Example #3
0
from bot.bot import MusicBot
from bot.structures.config import Config
import os

if __name__ == "__main__":

    if not os.path.exists("config.json"):
        cfg = Config.from_environment()
    else:
        cfg = Config.from_file("config.json")

    bot = MusicBot(cfg)
    bot.run()
Example #4
0
def setup(bot: MusicBot):
    bot.add_cog(VoiceChannelCog(bot))
Example #5
0
def setup(bot: MusicBot):
    bot.add_cog(Commands(bot))
Example #6
0
def main():
    bot = MusicBot()
    bot.run()
Example #7
0
def setup(bot: MusicBot):
    bot.add_cog(RoleAccessCog(bot))
Example #8
0
def setup(bot: MusicBot):
    bot.add_cog(Events(bot))