Add command prefix environment variable
This commit is contained in:
parent
1e5fb1af71
commit
0f21810d2a
|
@ -1,2 +1,3 @@
|
||||||
DISCORD_BOT_TOKEN=
|
DISCORD_BOT_TOKEN=
|
||||||
|
DISCORD_CMD_PREFIX=!
|
||||||
YOUTUBE_COOKIES=youtube.com_cookies.txt
|
YOUTUBE_COOKIES=youtube.com_cookies.txt
|
|
@ -152,7 +152,7 @@ class Music(commands.Cog):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
|
Loading…
Reference in New Issue