Skip to content

heksaani/LASTFMBOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LASTFM Telegram bot

This is a simple Telegram bot that uses the Last.fm API to get information about the music you have listened to.

Current features

/monthartists - prints out the top 10 artists you have listened to during the last 30 days and the number of scrobbles

/monthtracks - prints out the top 10 tracks you have listened to during the last 30 days and the number of scrobbles

/weekartists - prints out the top 10 artists you have listened to during the last 7 days and the number of scrobbles

/weektracks - prints out the top 10 tracks you have listened to during the last 7 days and the number of scrobbles

/nowplaying - prints out the track you are currently listening to

How to use

  1. Clone the repository
git clone https://github.com/heksaani/LASTFMBOT.git
  1. Create a .env file in the root directory with the following content:
LASTFM_API_KEY=YOUR_LASTFM_API_KEY
TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN
LASTFM_USERNAME=YOUR_LASTFM_USERNAME

Instructions on how to obtain the API key and the bot token :

LASTFM
TELEGRAM

  1. Using the Dockerfile
docker build -t lastfmbot .
docker run -d --name lastfmbot lastfmbot

About

LASTFM bot for telegram to get updates on favorite tracks and artists

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published