From 95956cc47c36dfb31acbdafa874c2c21c8c8fa9b Mon Sep 17 00:00:00 2001 From: socks Date: Tue, 9 Mar 2021 02:22:45 +0000 Subject: [PATCH] Added command prefix to config --- config.example.py | 2 ++ main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.example.py b/config.example.py index 4bb7de5..74f1100 100644 --- a/config.example.py +++ b/config.example.py @@ -10,4 +10,6 @@ database = "stonks.txt" mongodb_uri = "mongodb://localhost:27017" mongodb_database = "stonks" +command_prefix = "$" + api_key = "Your Discord API Key" diff --git a/main.py b/main.py index a9ad889..2657eac 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ else: intents = discord.Intents.default() -bot = commands.Bot(command_prefix="$", intents=intents) +bot = commands.Bot(command_prefix=cfg.command_prefix, intents=intents) @bot.command()