Skip to content
This repository was archived by the owner on Nov 19, 2022. It is now read-only.

Local Hosting on a PC

Cameron Rodriguez edited this page Dec 23, 2020 · 10 revisions

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.

Necessary Tools

As previously described in Building Your Own Bot, you will need access to the following tools and locations:

If you've been following the guide already, there is nothing you need to install, so you can skip the next section.

Installing dependencies

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.

Launching the bot

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.

Contributing

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 →