Skip to content

Commit 1c3e72d

Browse files
committed
fixed issues
1 parent 9e4b638 commit 1c3e72d

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A userbot that syncs your Spotify playlist with your Telegram channel and
55
updates your bio and a pinned message on your channel based on your
66
current playback.
77

8-
[![image](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/Allerter/spotify-telegram-sync/tree/master)
8+
[![image](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/allerter/spotify-telegram-sync/tree/master)
99

1010
Table of Contents
1111
-----------------
@@ -231,12 +231,11 @@ failures in `failures.log` in the same directory of the script.
231231

232232
Deploying to Heroku
233233
-------------------
234-
Using the *Deploy to Heroku* button above is the easiest way to set the bot up. After clicking on the link
235-
you will enter the value of the variables mentioned below, and if all the values are correct the bot will
236-
set itself up. After the deployment succeeds, all you need to to is go to the *Resource* and turn the
237-
*worker* process on by clicking on its button on the right. After that the bot will be all set up. If you
238-
need to change any of the environment variables, you can do so using the *Config Vars* section in the
239-
*Settings* tab.
234+
Using the *Deploy to Heroku* button above is the easiest way to set the
235+
bot up. After clicking on the link you will enter the value of the environment
236+
variables mentioned above, and if all the values are correct the bot will
237+
set itself up and start running. If you need to change any of the environment
238+
variables, you can do so using the *Config Vars* section in the *Settings* tab.
240239

241240
Starting the Bot
242241
----------------

app.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"description": "Needed to set database URL. Leave this on TRUE.",
6464
"value": "TRUE",
6565
"required": true
66-
},
66+
}
6767
},
6868
"addons": [
6969
{
@@ -73,7 +73,9 @@
7373
}
7474
}
7575
],
76-
"scripts": {
77-
"postdeploy": "pip3 install asyncpg"
76+
"formation": {
77+
"worker": {
78+
"quantity": 1
79+
}
7880
}
7981
}

bin/post_compile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip install -r heroku-requirements.txt

heroku-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
asyncpg>=0.22.0,<0.23.0

runtime.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.8.6
1+
python-3.8.9

spotify_telegram_sync/bot.py

-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,6 @@ async def exception_handler(loop: asyncio.AbstractEventLoop, context: dict) -> N
666666
if platform.system() == "Linux":
667667
signals = (
668668
signal.SIGHUP,
669-
signal.SIGKILL,
670669
signal.SIGTERM,
671670
signal.SIGINT,
672671
signal.SIGQUIT,

0 commit comments

Comments
 (0)