Deploy to AWS Lambda / deploy (push) Successful in 5m20s
Details
Co-authored-by: Renovate Bot <renovate.bot@chrisb.xyz> Co-committed-by: Renovate Bot <renovate.bot@chrisb.xyz> |
||
---|---|---|
.gitea/workflows | ||
src/functions | ||
typings | ||
.eslintignore | ||
.eslintrc.cjs | ||
.gitignore | ||
.npmignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc.json | ||
README.md | ||
handler.ts | ||
package-lock.json | ||
package.json | ||
renovate.json | ||
serverless.yml | ||
tsconfig.json |
README.md
Last.fm Mastodon Poster
Very simple node.js app that queries Last.FM for a user's top artists and posts them in the form
Top artists this week: ArtistA (90), ArtistB (31), ArtistC (27), and ArtistD (18)
(via http://last.fm/user/[username])
Run the app with npm run start -- [initialArtistCount] [lastFmTimePeriod]
.
e.g npm run start -- 6 7day
.env setup:
MASTODON_ACCESS_TOKEN=AAA
MASTODON_API_URL='https://mastodon.social/api/v1/'
LASTFM_TOKEN=BBB
LASTFM_SECRET=CCC
LASTFM_USER_NAME=DDD