Skip to content

Black Friday

Annual Pro is $90 for the first year, normally $120. Or start monthly at $6 for two months, then $12.

Ends Dec 4, 11:59 PM PT.

Create an account
← Public packages

@noah/mega-radio

MEGA Radio (the WAKE album) for members of the MEGA.dev Discord: sign in with Kody, verify with Discord, listen with repeat.

FollowForkOpen app

Files

index.ts

20 lines · 703 B · TypeScript
import { HOSTED_URL, GUILD_INVITE, GUILD_NAME, SIGNUP_URL } from './config.ts'
import { loadView } from './catalog.ts'

/**
 * MEGA Radio overview: album, track list (titles, lengths, open dates) and where to listen. Never returns
 * audio; the MP3s stream only from the hosted app to verified MEGA.dev Discord members.
 *
 * @returns album info, tracks and the app, sign-up and Discord links
 */
export default async function megaRadio() {
	const radio = await loadView()
	return {
		album: radio.album,
		page: radio.page,
		tracks: radio.tracks,
		listen: `${HOSTED_URL}/`,
		access: `Sign in with Kody, then verify you're in the ${GUILD_NAME} Discord (${GUILD_INVITE}).`,
		signUp: SIGNUP_URL,
	}
}