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
- Host: GitHub
- URL: https://github.com/dxnter/lasty
- Owner: dxnter
- License: gpl-3.0
- Created: 2018-10-01T20:19:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T01:51:15.000Z (over 3 years ago)
- Last Synced: 2025-06-02T02:13:30.381Z (about 1 year ago)
- Topics: discord, discord-bot, discord-js, discordjs-commando, lastfm, lastfm-api
- Language: TypeScript
- Homepage:
- Size: 819 KB
- Stars: 7
- Watchers: 0
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Discord bot for fetching Last.FM data.
## 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)