Put prefix in env
This commit is contained in:
parent
51a1fb1769
commit
5d386bd9b7
|
@ -1 +1,2 @@
|
|||
TOKEN=
|
||||
PREFIX=!
|
|
@ -1,7 +1,7 @@
|
|||
from discord.ext import commands
|
||||
from os import getenv
|
||||
|
||||
bot = commands.Bot(command_prefix='@')
|
||||
bot = commands.Bot(command_prefix=getenv("PREFIX"))
|
||||
|
||||
|
||||
@bot.command()
|
||||
|
@ -15,4 +15,3 @@ def main():
|
|||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
Loading…
Reference in New Issue