An Mastodon bot to toot the currently playing Deezer track.
Go to file
2020-10-01 20:11:19 +02:00
deezer-tooter CSS fixes 2020-10-01 20:05:19 +02:00
.gitignore added API token and server as external config file 2020-10-01 18:56:57 +02:00
app.py fixed utf-8 decoding of toot content 2020-10-01 19:53:50 +02:00
config_default.py added API token and server as external config file 2020-10-01 18:56:57 +02:00
README.md update README 2020-10-01 20:11:19 +02:00
requirements.txt first draft of a bot using flask and Mastodon.py 2020-09-29 15:28:31 +02:00

DeezerTooter

Mastodon bot that toos the currently playing music on Deezer to Mastodon.

The bot is composed of :

  • a Flask-based bot that makes use of the Mastodon.py library to access the Mastodon API.
  • a Firefox add-on, enabled on Deezer.com only, that allows the one-click sharing of the current playing song, plus some configurable comment and hashtag.

⚙ Set up

Run the bot

  • clone the repo
  • install the dependencies : pip3 install requirements.txt. Consider using a virtual environment for your dependencies.
  • copy the config file : cp config_default.py config.py
  • edit config.py with your own server name and API token.
  • export environment variables and run the Flask app : export FLASK_APP = app.py then flask run

Set up the add-on

This add-on is not distributed, so for now you'll have to browse to about:debugging, "This firefox", then "Add temporary add-on".

And you shoud be good to go !