Favourites ========== The Favourites cog allows the users to have **one** playlist *without* using a database like the Playlist cog does. .. hint:: To enable this cog, set the :envvar:`ENABLE_JSONFAV` variable. Packages -------- No package is required! env variables ------------- .. csv-table:: :file: favourites-vars.csv :header-rows: 1 :delim: , .. versionadded:: 3.0.0 The configuration script creates this file from the provided example. How it works ------------ The cog stores the playlists in a JSON file, using the following template: .. code-block:: json { "discord_user_id_1": [ { "title": "song_name_1", "url": "song_url_1", "thumbnail": "thumbnail_url_1" }, { "title": "song_name_2", "url": "song_url_2", "thumbnail": "thumbnail_url_2" } ] } This cog is compatible with the Music cog: - The ``now`` command allows to save the currently playing song to the user's playlist. - The ``play`` commands allows to play a song directly from the user's playlist. .. seealso:: The :doc:`Playlist ` cog uses a PostgreSQL database to store as many playlists per user as needed.