Added Test Mode
This commit is contained in:
9
bot.py
9
bot.py
@@ -1,3 +1,12 @@
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Parse command line arguments before loading any config
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "testing":
|
||||
os.environ["ENV_MODE"] = "testing"
|
||||
# Remove the argument so it doesn't interfere with other parsing
|
||||
sys.argv.pop(1)
|
||||
|
||||
import numba_config
|
||||
import asyncio
|
||||
import io
|
||||
|
||||
Reference in New Issue
Block a user