Creative Bots

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.

Deployment

You should be able to run the project anywhere where node.js is supported. Below are instructions for a few popular platforms.

Glitch

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.

Heroku

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-sample to .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.

repl.it

Start by importing the creative-bots project. Use the command line to install dependencies with npm install.

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 doesn’t offer a way to keep projects running continuously, yet, but they do allow pinging, so you could set up a service like cron-job.org to keep your app alive by visiting its home page.

Personal VPS

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.

More projects

Browse all

Close

Adblocker not detected

Consider installing a browser extension that blocks ads and other malicious scripts in your browser to protect your privacy and security.