- Clone the repository:
git clone <repository_url> - Navigate to the project directory:
cd <project_directory> - Install the required Python packages:
pip install -r requirements.txt - Setup your Supabase URL:
- Open the
utils/constants.pyfile. - Set the
SUPABASE_URLvariable to your Supabase URL. - Set the
SUPABASE_KEYvariable to your Supabase Key. - Save and close the file.
- Open the
- Import the dump schema.sql into your supabase database.
We use Nuitka to package the application as an executable. Run the following command:
nuitka --clang --mingw64 --onefile --follow-imports --windows-icon-from-ico=.\Item_Gem.ico --remove-output --output-filename=Bot --windows-company-name=Unknown --windows-product-version=1.0 --onefile-tempdir-spec=C:\Users\Default\AppData\Local\Temp\bot_unknown .\app.pyBefore packaging the application, we need to ensure all imports are correct. To do this, run the following command:
py -3.11 import_verification.pyThis command runs a script that checks all file imports in the project.
We also provide a PowerShell script (compile_bot.ps1) that automates the process of activating the virtual environment, verifying imports, packaging the application with Nuitka, and moving the resulting executable to a new directory with the current date.