Put prefix in env

This commit is contained in:
Jimmy 2021-08-26 14:04:33 +12:00
parent 51a1fb1769
commit 5d386bd9b7
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1,2 @@
TOKEN= TOKEN=
PREFIX=!

View File

@ -1,7 +1,7 @@
from discord.ext import commands from discord.ext import commands
from os import getenv from os import getenv
bot = commands.Bot(command_prefix='@') bot = commands.Bot(command_prefix=getenv("PREFIX"))
@bot.command() @bot.command()
@ -15,4 +15,3 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()