Git Product home page Git Product logo

crove-bot's Introduction

Crove Bot Build Status Node.js CI Known Vulnerabilities GitHub release (latest by date) GitHub repo size GitHub

Crove can play music from Youtube, Spotify, Soundcloud, Bandcamp and It has many other commands such as purge, kick, 8ball, sauce, gif, etc.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

  • Node.js 12.0.0 or newer is required.
  • Java 13 is required.
  • Follow instructions and Install Lavalink.
  • Linux (change package manager if necessary)
     $ sudo apt install autoconf libtool g++ make  
  • Windows
     npm install --global windows-build-tools

Installing

A step by step series of examples that tell you how to get a development env running

Clone this repo

$ git clone https://github.com/vladdenisov/crove-bot.git

Get into crove-bot folder

$ cd crove-bot

Install node modules

$ npm install 

Follow instructions and Install Lavalink. (If you haven't done this yet)

Edit application.yml and index.js (optional)

$ nano application.yml

Edit config.json (use example config and replace values)

$ nano config.json

Start Lavalink

$ java -jar Lavalink.jar

Start bot

$ npm run start

Deployment

  1. Install bot on your server.

  2. Firstly start Lavalink:

    $ java -jar Lavalink
  3. Then start the bot:

    $ npm run server

Built With

  • DiscordJS - The Discord API framework used
  • Lavalink - Standalone audio sending node based on Lavaplayer
  • Lavacord - Lavalink wrapper for Discord.js

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

crove-bot's People

Contributors

greenkeeper[bot] avatar snyk-bot avatar vladdenisov avatar

Stargazers

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

Watchers

 avatar

crove-bot's Issues

About Bot Code

I copy your purge command code,
My bot prefix is +
While running +purge 3 or +purge 10 or something : bot is only deleting one message and sending deleteing only one message

About code

I copy your purge command code,
My bot prefix is +
While running +purge 3 or +purge 10 or something : bot is only deleting one message and sending deleteing only one message

New guild join have problem

(node:27024) UnhandledPromiseRejectionWarning: TypeError: (intermediate value).setColor(...).setTitle(...).setAuthor(...).setDescription(...).setThumbnail(...).addField(...).addBlankField is not a function

its not an issue just a question

I tried adding a new reaction for a loop function but didn't work I know I am doing something wrong but don't know what

`/* eslint-disable no-console /
/
eslint-disable no-unused-vars */
// File to handle Reactions changes
const VOICE_API = require('./voice')

const handleReaction = async (client, message, reaction) => {
const server = servers[message.guild.id]
if (reaction.message.channel.name !== 'dancing_disco') return
if (!reaction.message.author.bot) return
if (reaction.emoji.name === '⏭') {
server.dispatcher.end()
}
if (reaction.emoji.name === '⏹') {
VOICE_API.leave(client, message)
}
if (reaction.emoji.name === '⏯') {
if (!server.dispatcher.isPaused) {
server.dispatcher.isPaused = true
server.dispatcher.pause()
} else {
server.dispatcher.isPaused = false
server.dispatcher.resume()
}
if (reaction.emoji.name === '🔁') {
if (server.dispatcher.loop === true) server.dispatcher.songs.push(server.dispatcher.songs.shift());
else server.dispatcher.songs.shift();
play(guild, server.dispatcher.songs[0]);
}
}
}

exports.hook = async (client, message) => {
client.on('messageReactionAdd', async (reaction, _user) => {
handleReaction(client, message, reaction)
})
client.on('messageReactionRemove', async (reaction, _user) => {
handleReaction(client, message, reaction)
})
}
`

enmap

When i try to npm install there is always an error with enmap i tried npm --force enmap and still have the same error

this is the error
`Error: Cannot find module 'enmap'
Require stack:

  • C:\Users\good\Desktop\crove-bot-mast\index.js`

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.