Looking for the consolex1 profile instead of hosting? me.consolex1.com

Hosted in Paris — Equinix PA5

Free hosting for your apps, bots and websites.

consolex1 is a French free hosting provider for small Node.js apps, Python services and Discord bots, with infrastructure in Paris.

Check service status: status.consolex1.com

Practical guide

How to Deploy a discord.py Bot

A discord.py bot needs a supported Python runtime, installed discord.py dependency, a secure token and a process that remains running. Validate the bot locally, then deploy its files and configuration to the hosting panel.

The consolex1 custom egg

The Python Universal egg is developed by the consolex1 hosting provider. Its source code is public on GitHub.

1. Configure the Discord application

Create the bot in the Discord Developer Portal, enable only the gateway intents needed by your code and invite it to a test server with minimal permissions.

2. Prepare the Python project

Pin or specify dependencies in requirements.txt and confirm the correct entry-point file, for example bot.py. Test the startup command locally before deployment.

3. Store the token securely

Read the token from an environment variable such as DISCORD_TOKEN. Configure it privately in the panel, not in the Python file or a public repository.

4. Choose Python Universal and inspect startup

Python Universal supports Python 3.9 through 3.14 (3.9, 3.10, 3.11, 3.12, 3.13 and 3.14). Select the egg when creating the server, choose a version in the Startup tab, set the main file (for example bot.py) and start it. Python 3.9 is no longer maintained upstream and is provided for compatibility only. The egg creates a .venv and uses uv to install dependencies from requirements.txt, pyproject.toml or uv.lock.

5. Test and monitor

Verify the bot connects and handles a test interaction. Monitor memory use and keep separate backups of code and important data; the free plan has limited resources and no automated backups.

Frequently asked questions

What should requirements.txt contain?

List the Python packages required by the bot, including the discord.py package version compatible with your code.

How do I set the bot token?

Read it from an environment variable in your code and set that variable privately in the hosting panel.

What if the bot connects but slash commands are missing?

Check command registration, application scopes and bot permissions in Discord, then review the bot’s startup logs for synchronization errors.

More guides

Sponsorisé
Propulsé par TrafficTrade.fr