Code Monkey home page Code Monkey logo

ice2dis'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

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.
  • icecast_status_url: The URL to the status-json.xsl endpoint of your Icecast server.

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.

ice2dis's People

Contributors

captainmustard avatar

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.