Added command prefix to config

This commit is contained in:
socks 2021-03-09 02:22:45 +00:00
parent 9ed7008ada
commit 95956cc47c
2 changed files with 3 additions and 1 deletions

View file

@ -10,4 +10,6 @@ database = "stonks.txt"
mongodb_uri = "mongodb://localhost:27017"
mongodb_database = "stonks"
command_prefix = "$"
api_key = "Your Discord API Key"

View file

@ -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()