Put prefix in env
This commit is contained in:
parent
51a1fb1769
commit
5d386bd9b7
|
@ -1 +1,2 @@
|
||||||
TOKEN=
|
TOKEN=
|
||||||
|
PREFIX=!
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue