This guide helps you setup a configuration like: mopidy -> icecast -> listner (bot) Where you can use mopidy to play from a wide selection of sources for example Spotify. At the moment I know of no Discord bots capable of controlling an mpd/mopidy server so the adding of playlists have to go through a webinterface or similar. In this guide I will focus on setting up Spotify. The full config files will also be in the gist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import puppeteer from 'puppeteer'; | |
Import { LoggingService, LogLevel } from './LoggingService'; | |
const Logger: LoggingService = LoggingService.getInstance(); | |
export class Browser implements IBrowser { | |
private browser: puppeteer.Browser; | |
private readonly TIMEOUT: number; | |
private readonly USER_AGENT = 'INSERT_USERAGENT'; | |
constructor(_timeout: number = 30000) { |