Creative Bots is a project template I originally created on Glitch to make it easier to reuse code between all of my creative online bots. With the source code also available on GitHub, you can easily host it on other services, like Heroku or DigitalOcean — see deployment instructions below.
You also see my own remix on Glitch that hosts most of my active bots. It also shows how the project lists all your bots, and has some examples of more advanced bots.
And be sure to check out my botmaking guide on Botwiki.
You should be able to run the project anywhere where node.js is supported. Below are instructions for a few popular platforms.
Since the project is hosted on Glitch, you can simply remix it and follow the instructions in the README.
Note that running this project on Glitch requires a paid subscription.
The following steps assume you already installed the Heroku command line tool and signed in. First, import the creative-bots project from Github. (I’ll use
creative-bots as the name of my imported project.)
After the project is deployed, you can download the code.
heroku git:clone -a creative-bots
Because you used the GitHub importer, you will see the following note:
Cloning into 'creative-bots'... warning: You appear to have cloned an empty repository.
You are going to have to run the following commands:
cd creative-bots git remote add origin https://github.com/stefanbohacek/creative-bots git pull origin master
You can now rename
.env, add your API keys, update your code, and push it back to Heroku.
git add . git commit -am "Updated my bot." git push heroku master
As your code runs, you can watch the logs:
heroku logs --tail -a creative-bots
Note that you will need at least the Hobby plan ($7/month) to keep your app running 24/7.
Start by importing the creative-bots project. Use the command line to install dependencies with
Next, rename the
.env-sample file to
.env and following instructions in the project’s README fill out your API keys.
If renaming the file causes any issues, you can create a new file called
.env and copy the content of
.env-sample into it.
Now you’re ready to update your code. When finished, click the Run button on top of the page.
Repl.it lets you pick five projects to keep always on as part of their paid plan, but they also allow pinging, so you could set up a service like cron-job.org to keep your app alive by visiting its home page.
Download the project from GitHub., rename the
.env-sample file to
.env and add your API keys. Add your own bot code and you’re ready to go.
- DigitalOcean (you can use my referral link for $100 starter credit)