Code Monkey home page Code Monkey logo

metal-pipe-player's Introduction

Metal Pipe Player

A Discord bot that repeatedly plays an audio file in a random interval. You can invite the public version of the bot or self host it.

Installation

  1. Install Node.js
  2. Clone the GitHub repository
  3. Create a Discord application. (click here)
  4. Open the application and go to Bot (on the left sidebar) and click Add Bot
  5. Click Reset Token and enter 2FA code if you have it enabled and copy token
  1. Go to OAuth2 and URL Generator, on Scopes select bot and select Connect and Speak (located on the Voice Permissions section) and invite the bot using the generated url
  2. Create a .env file and type TOKEN=REPLACE_THIS_WITH_YOUR_TOKEN so it should look something like TOKEN=MTA2NjYyNTg0MzUyNDI3MjIxMg.GkLoPp.iA0UM1JXHp4FgK7952C_L9JNXrpXhMMyoL4Hfc
  3. On the terminal, run npm run start

Usage

Inviting the bot to a voice channel

Join a voice channel and use /play

Changing audio

Type /list to see a list of available audio(s) to play. Use /play <index> to play the selected audio.

Adding your own audio (self-host only)

  1. Add your audio to the audio folder
  2. Open audios.json located in the config folder
  3. Create a new object
  4. Fill the path with audio/FILE_NAME.mp3
  5. Fill the name and src with whatever you want
  6. Your audio should be visible in the library

Disconnecting the bot from a voice channel

Use /disconnect

Changing random interval delay

Use /delay show to show the current delay

Use /delay <min> <max> to set the random interval to a random value between min and max

metal-pipe-player's People

Contributors

aldenasf avatar kyhrii 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.