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
def setup(bot: MusicBot): bot.add_cog(MusicSettingsCog(bot))
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()
def setup(bot: MusicBot): bot.add_cog(VoiceChannelCog(bot))
def setup(bot: MusicBot): bot.add_cog(Commands(bot))
def main(): bot = MusicBot() bot.run()
def setup(bot: MusicBot): bot.add_cog(RoleAccessCog(bot))
def setup(bot: MusicBot): bot.add_cog(Events(bot))