Code Monkey home page Code Monkey logo

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

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)
})
}
`

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

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`

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

New guild join have problem

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

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.