Code Monkey home page Code Monkey logo

24-7-discord-music-bot's Introduction

24-7-Discord-Music-Bot

A simple 24/7 Radio discord bot

Requirements

Setup

Run these scripts:

git clone https://github.com/CTK-WARRIOR/24-7-Discord-Music-Bot
cd 24-7-Discord-Music-Bot
npm install

Config

Change all placeholders at the config.json file:

  • TOKEN: Your Discord bot Token. Never publish your discord bot token or never give it to anyone, As it's your Login key for your bot.
  • CHANNEL: Your voice channel ID
  • SERVER: Your Server channel ID
  • STATUS: Your bot status
  • LIVE: YT Live Video URL

After that, run node index.js to start your bot.

Discord server

24-7-discord-music-bot's People

Contributors

choppymaster avatar ctk-warrior avatar thettayman avatar yonle avatar zerodiscord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

24-7-discord-music-bot's Issues

Repl.it waking up

Hello there. Nice work. I have a problem i made LoFi Radio and i use your code. It's working normal but when i turn on hosting it's working 5 minutes and he stop working and he is off again.

Stream not defined error @Node.js v15

Here,
// Play the radio
stream = ytdl(LIVE);
stream.on('error', console.error);
broadcast.play(stream);

While i tried to deploy at node v15, the console drops an Ref. error as stream not defined.

Solution:
// Play the radio
let stream = ytdl(LIVE);
stream.on('error', console.error);
broadcast.play(stream);

Error

(node:3705) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
channel_id: Value "VOICE CHANNEL ID" is not snowflake. HELP PLZZZZZZZZZZZZZ

The bot joins the VC but does not play music

MinigetError: Status code: 410
at ClientRequest. (/home/runner/24-7-Discord-Music-Bot/node_modules/miniget/dist/index.js:210:27)
at Object.onceWrapper (events.js:421:26)
at ClientRequest.emit (events.js:314:20)
at HTTPParser.parserOnIncomingClient (_http_client.js:601:27)
at HTTPParser.parserOnHeadersComplete (_http_common.js:122:17)
at TLSSocket.socketOnData (_http_client.js:474:22)
at TLSSocket.emit (events.js:314:20)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:272:9)
at TLSSocket.Readable.push (_stream_readable.js:213:10) {
statusCode: 410
}
Error code

Change activity

How do I change the activity from "PLAYING" to "LISTENING" ?

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.