This page walks you through everything you need to get Noxie running on your own machine or server — from installing Python dependencies and editingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/developer51709/Noxie/llms.txt
Use this file to discover all available pages before exploring further.
config.json, to starting the bot process and keeping it alive in the background. Noxie runs entirely on Python and a local SQLite file, so there is no external database or cloud service to provision.
Prerequisites
Before you begin, make sure you have the following ready:- Python 3.10 or later — Noxie uses modern type-hint syntax and
asynciopatterns that require 3.10+. - pip — the standard Python package manager, bundled with Python.
- A Discord bot application — you will need a token from the Discord Developer Portal. See the Discord Setup page for step-by-step instructions.
Installation Steps
Clone or download the project
Clone the repository with Git, or download and unzip the source archive:All commands on this page assume your working directory is the project root (the folder that contains
main.py).Install Python dependencies
Noxie has exactly two runtime dependencies. Install them from the included This installs:
If you are working inside a virtual environment (recommended), activate it before running this command.
requirements.txt:| Package | Minimum version | Purpose |
|---|---|---|
discord.py | >=2.3.0 | Discord gateway, intents, Components V2, slash commands |
aiohttp | >=3.9.0 | Async HTTP client used for OxaPay API calls |
Configure config.json
Open You can leave all other fields at their defaults for a standard setup. See the OxaPay Setup page if you want to enable the
config.json in the project root and fill in your values. At minimum you must set bot_token:/donate command.What Happens on First Run
When Noxie starts for the first time it performs several automatic setup steps before connecting to Discord:db/noxie.dbis created —get_db_conn()inutils/helpers.pycreates thedb/directory and the SQLite file if they do not already exist.- All database tables are initialized —
init_economy_db(conn)andinit_prefix_table(conn)runCREATE TABLE IF NOT EXISTSstatements, so they are safe to re-run on every start. - Slash commands are synced globally —
setup_hookcallsawait self.tree.sync()which registers all application commands with Discord’s API. Global command propagation can take up to one hour to reach all servers. - Bot presence is set — once the gateway connection is ready, Noxie sets its activity to “Watching the vibe”.
Using an Environment Variable for the Token
Instead of writing your token directly intoconfig.json, you can pass it as an environment variable. Noxie checks NOXIE_TOKEN first; if it is set, it takes precedence over the bot_token field in the config file:
NOXIE_TOKEN always takes precedence over bot_token in config.json. If both are set, the environment variable wins. If neither is set (or bot_token is still the placeholder string "YOUR_BOT_TOKEN_HERE"), Noxie will print an error and exit without connecting.Platform-Specific Notes
Linux / macOS
Standard Python and pip usage applies. If your system has both Python 2 and Python 3 installed, usepython3 and pip3 explicitly:
Windows
Python is typically aliased aspython or py on Windows. If python is not recognized, try:
Termux (Android)
Noxie runs on Android via Termux. Install the required packages and run the bot with the following commands:Keeping Noxie Running
If you close your terminal the bot process will stop. For persistent operation, use one of the following approaches: Quick background process (Linux / Termux):/etc/systemd/system/noxie.service: