posaarchitects.blogg.se

Discord api python ffmpeg
Discord api python ffmpeg











discord api python ffmpeg

$ bot-env\Scripts\activate.bat # (Windows) # Install discord.py $ pip install -U discord.py $ python -m venv discordbot_env # Activate the environment $ source discordbot_env/bin/activate # (MacOS & Linux) # `discordbot_env`, but you can change it to whatever you want. Heads Up: # = comments (don't copy) $ = shell commands # Go into your directory, if you haven't done so $ cd # Create your virtual environment (venv). txt file and doing so saves you some hassle later on.

discord api python ffmpeg

Most deployment methods depend on this export in the form of a. In layman’s terms, a virtual environment keeps track of the Python packages that you use for the project so you can export them later. Why does this matter? Well, if you are making this bot then you’re likely going to deploy it elsewhere (otherwise, the bot is only online when you’re running the Python bot script). This should be a given - you’re making a discord bot with Python, right? Nonetheless, when installing discord.pyI recommend creating a Python virtual environment. I am assuming you are in a new, empty directory, (preferably git initialized) to put all your code for this bot.













Discord api python ffmpeg