miku

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2023 License: LGPL-3.0

README

miku

A Discord bot to convert media links (e.g., Spotify, Apple Music) between each other.

Usage

  1. Create a new Discord bot with the following scopes:
  • bot
  • Send Messages
  • Read Messages
  1. Invite the bot to your server using the following URL (change the client ID to your bot's client ID): <https://discord.com/api/oauth2/authorize?client_id=<client_id>&permissions=3072&scope=bot>

Apple Music:

TODO

go run \
  github.com/minchao/go-apple-music/examples/token-generator@latest \
  -l 15777000 -t "<Team_ID>" -pf "$HOME/Downloads/AuthKey_<Key_ID>.p8" \
  -k "<Key_ID>"

Development

Export env vars from .env.development:

set -o allexport && source .env.development && set +o allexport

License

GPL-3.0-only

Directories

Path Synopsis
cmd
miku
Package main implements the CLI wrapper for the miku discord bot.
Package main implements the CLI wrapper for the miku discord bot.
internal
handler
Package handler contains the main Discord-related logic for handling messages.
Package handler contains the main Discord-related logic for handling messages.
streamingproviders
Package streamingproviders implements a generic interface and types for interacting with various Music streaming providers.
Package streamingproviders implements a generic interface and types for interacting with various Music streaming providers.
streamingproviders/applemusic
Package applemusic implements a streamingproviders.Provider for the Apple Music streaming service.
Package applemusic implements a streamingproviders.Provider for the Apple Music streaming service.
streamingproviders/spotify
Package spotify implements a streamingprovider for Spotify.
Package spotify implements a streamingprovider for Spotify.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL