How Can We Help?

How to add a requirements.txt file on Pterodactyl

A requirements.txt file is a great way of telling Pterodactyl what Python modules to download before executing your bot file. This is the best way to manage Python modules.

1. In Pterodactyl, add a new file to the root of your file structure with the name of requirements.txt – Refer to this article for help on adding a file or, use this article if you are uploading an existing requirements.txt file

2. Open the file and begin adding the modules that you want to use in your Discord bot. Each module will be on its own line. There is an example below:

3. Go to the Startup page

4. Check that the Requirements parameter has been populated correctly with the value of “requirements.txt”

5. Start your Discord bot