Database

Stark Userbot uses a SQL Database like Oracle and PostgreSQL which helps in functioning of various plugins. It is compulsory to have a DATABASE_URL environment variable.

Important

If you are using Heroku, you can/should skip this section

Note

You can’t use Redis here because it is a NoSQL Database

The preferred database here is PostgreSQL but any SQL database will work.

How to get Database URL

If you don’t know about Databases and you are not deploying on Heroku, below is the easiest way to get the needed URL.

  1. Go to ElephantSQl.

  1. Tap on ‘Log In’ or Sign Up.

  1. After a successfull account creation, Tap on Create New Instance.

  1. Give any name, Select any region, Tap Review and Finally tap ‘Create Instance’.

  1. Click on the newly made instance.

  1. Copy the needed URL and that’s it.