-
Notifications
You must be signed in to change notification settings - Fork 2
Local Hosting on a PC
The following instructions are designed for Windows, and as a result commands may vary slightly. If you need to host on another platform, make changes as necessary.
As previously described in Building Your Own Bot, you will need access to the following tools and locations:
- At least Python 3.7 (Python 3.9 required for Pipenv)
- Git
- Pipenv (optional, but recommended)
- Access and permission to run files and programs from the command line (Such as an administrator account)
- [For users of version 1.x.x] Access to account environmental variables
If you've been following the guide already, there is nothing you need to install, so you can skip the next section.
This bot relies on the Requests, Requests-Oauthlib, and BeautifulSoup libraries. You will need to install these to run the bot.
-
If you installed Pipenv, navigate to the folder containing the bot program, and run the command
pipenv install.
-
If you did not install Pipenv, navigate to the folder containing the bot program, and execute the command
pip install -r requirements.txt
.
For users on version 1.x.x, ensure that you have added the environmental variables.
After ensuring you are connected to the internet, open the folder with the bot program and run python BOT_PROGRAM.py
, where BOT_PROGRAM
is the name of your Python file. That's it! The bot will continue to run as long as the commmand line is open.
Your bot is now fully operational. If you'd like to contribute to the project, check out the next page.
← Running Your Bot // Forking and Contributing to XKCDAltTextBot →