Add friend: @SauceNAO_Search_bot
Make sure you have Heroku CLI installed beforehand.
- Create a app on Heroku
- Add Heroku Postgres to your app
- Clone this repo
- Create a .env file with following details
SAUCENAO_APIKEY=
TG_TOKEN=
WEBHOOK_URL=
DEBUG=saucenao-tg:*
DATABASE_URL=
MINIUM_SIMILARITY=50
MAX_RESULT_COUNT=3
- Remove
.env
from.gitignore
and commit heroku git -a YOUR_APP_NAME
git push heroku master
It should be https://your-app-name.herokuapp.com
.
In the dashboard of your Heroku app, click the Heroku Postgres addon and go to the setting page and find the value of URI. Simply fill it to DATABASE_URL
.
- Clone this repo
- Create a .env file with following details
SAUCENAO_APIKEY=
TG_TOKEN=
WEBHOOK_URL=
DEBUG=saucenao-tg:*
DATABASE_URL=
MINIUM_SIMILARITY=50
MAX_RESULT_COUNT=3
yarn start
ornpm start
It is some URL that is publicly accessible through the Internet. For example, http://your.domain.com or http://123.45.67.89 (Your ip)
You can install a PostgreSQL on your local computer or find some PostgreSQL as a service to use.
The format of DATABASE_URL
should be: postgresql://DB_USER:DB_USER_PASS@DB_URL:DB_PORT/DB_NAME
Replace this line with polling: true
, and remove these lines too.