Browse Source

Put prefix in env

master
Jimmy 3 months ago
parent
commit
5d386bd9b7
  1. 3
      .env.sample
  2. 3
      command.py

3
.env.sample

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

3
command.py

@ -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…
Cancel
Save