Managing Dependencies for Your Discord Bot on Witchly’s Hosting Platform

Dependency management is crucial for Discord bots, especially if your bot uses libraries like discord.js or requests.

Installing Node.js or Python Libraries
If your bot is written in Node.js, install dependencies listed in package.json by running npm install via the control panel’s terminal. For Python bots, use requirements.txt and run pip install -r requirements.txt.

Updating Dependencies
Use the terminal to run npm update or pip install --upgrade to keep dependencies current, which can prevent compatibility issues.

This approach simplifies maintaining and updating your bot’s dependencies directly on the control panel.

Scroll to Top