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 can 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 somexamples of more advanced bots.
You should be able to run the project anywhere where node.js is supported. Below are instructions for a few popular platforms.
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/fourtonfish/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.
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.