From 5d386bd9b7d8e7e350265050a0f22a30f6929751 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 26 Aug 2021 14:04:33 +1200 Subject: [PATCH] Put prefix in env --- .env.sample | 3 ++- command.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index f74c661..1eb9935 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,2 @@ -TOKEN= \ No newline at end of file +TOKEN= +PREFIX=! \ No newline at end of file diff --git a/command.py b/command.py index cc04c6c..741a51b 100644 --- a/command.py +++ b/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() - \ No newline at end of file