diff --git a/.env.template b/.env.template index 6613d8c..559a170 100644 --- a/.env.template +++ b/.env.template @@ -1,2 +1,3 @@ DISCORD_BOT_TOKEN= +DISCORD_CMD_PREFIX=! YOUTUBE_COOKIES=youtube.com_cookies.txt \ No newline at end of file diff --git a/src/bot.py b/src/bot.py index c18804a..0f0903e 100644 --- a/src/bot.py +++ b/src/bot.py @@ -152,7 +152,7 @@ class Music(commands.Cog): if __name__ == "__main__": - bot = commands.Bot(command_prefix=commands.when_mentioned_or("!"), description='Relatively simple music bot example') + bot = commands.Bot(command_prefix=commands.when_mentioned_or(os.environ.get("DISCORD_CMD_PREFIX", None)), description='Relatively simple music bot example') @bot.event async def on_ready():