Code Monkey home page Code Monkey logo

icecast2discordbot's Introduction

Icecast2DiscordBot

This project includes a Discord bot capable of joining a voice channel and streaming music from an Icecast server. The bot's Discord status will reflect the currently playing track from the Icecast stream.

I created this specifically to stream the audio from SDRtrunk to my discord server.

Installation

Install required packages using pip:

pip install -r requirements.txt

on linux install ffmpeg using your package manager

on windows in the terminal run: winget install ffmpeg and then close and re-open your terminal.

Configuration

You will need to configure the bot before use. This is done using the config.yaml file. The file contains the following fields:

  • guild_id: The ID of your Discord server (guild).
  • voice_channel_id: The ID of the voice channel you want the bot to join.
  • icecast_url: The URL of your Icecast stream.
  • discord_bot_key: The bot token for your Discord bot.

Replace the placeholders with your actual data.

Usage

Once the bot is configured and running, it will automatically join the specified voice channel when a user enters and start streaming music from the Icecast server. The bot will leave the channel when no users are present.

icecast2discordbot's People

Contributors

captainmustard avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

akgbar had2020

icecast2discordbot's Issues

Error updating status: 0, message='Attempt to decode JSON

When you follow the installation steps and run it, it sends the following message infinitely and the bot does not work.

Error updating status: 0, message='Attempt to decode JSON with unexpected mimetype: text/xml

Is this script functional or is it a test prototype?
Is the project active or abandoned?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.