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

Custom Features

Cameron Rodriguez edited this page Jan 14, 2019 · 8 revisions

The following changes are not necessary to make, but can help you customize the bot to your preferences.

Making the source code and Tweets your own

There are a number of references within the source code that are specific to XKCDAltTextBot. You can change these to apply to your scenario, but you must be consistent with the changes. This includes any mention of a term as part of a variable. For example, if app becomes newapp, then app_payload becomes newapp_payload.

These are the changes to make:

Description of element to change Original Reference New Reference
Target account short reference comic target
Target account handle xkcdComic targetacc
Your account short reference alt bot
Your account handle XKCDAltTextBot botacc

You can also make custom changes to the logs on lines 176, 180, 184, 192, and 229. You can modify the standard prefix and suffix of the Tweets on line 196.

Next Steps

Your bot is now ready to run! In the next section, you'll learn how to launch your bot on a platform.

← Different Websites // Running your Bot →

Clone this wiki locally