An open API service indexing awesome lists of open source software.

https://github.com/dxnter/lasty

A Discord bot for fetching Last.fm analytics
https://github.com/dxnter/lasty

discord discord-bot discord-js discordjs-commando lastfm lastfm-api

Last synced: 12 months ago
JSON representation

A Discord bot for fetching Last.fm analytics

Awesome Lists containing this project

README

          



lasty logo


A Discord bot for fetching Last.FM data.





shield.png


License shield



## About
Lasty is a Discord bot intended to interact with [Last.FM](https://last.fm/) to provide real time listening data.


_A public instance of Lasty is currently not available. Follow [Installation](https://github.com/dxnter/lasty#installation) to get started._


For comments and support contact me on Discord: dxnter#0001

## 🚀 Getting Started
### Requirements
- [Discord Bot Token](https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token)
- [Discord User ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID-)
- [Last.FM API Key](https://last.fm/api)

### Installation
```bash
# Clone the repository
git clone https://github.com/dxnter/lasty

# Enter into the directory
cd lasty

# Install dependencies
npm install
```

### Configuration
Rename `config.example.json` to `config.json` in the root directory and enter in the correct information for each property.

`EMBED_COLOR` can either be left as the default or changed to a valid hex color code.

`OWNERS` can either be a single Discord User ID or multiple ID's separated by a comma. Owners will have complete control over Lasty and bypass command throttling.
```json
{
"PREFIX": "",
"EMBED_COLOR": "#E31C23",
"OWNERS": "",
"DISCORD_BOT_TOKEN": "",
"LASTFM_API_KEY": ""
}
```

### Starting the bot

```bash
npm start
```

#### Advanced
This section is completely optional but suggested if hosting Lasty on a VPS.


Globally install `pm2`, this enables Lasty to run as a daemon process.
```bash
npm install --global pm2
```

Start / stop the bot
```bash
pm2 start npm -- start
AND
pm2 stop all
```

## 📝 Commands
[Commands Wiki](https://github.com/dxnter/lasty/wiki/Commands)