Code Monkey home page Code Monkey logo

hurricanodev / hurricano Goto Github PK

View Code? Open in Web Editor NEW
92.0 5.0 32.0 2.07 MB

An amazing open-source Discord bot using MongoDB with many features such as a customizable prefix, a reaction menu, music, role requirement giveaways and much more!

Home Page: https://dsc.gg/hurricano

License: GNU General Public License v3.0

JavaScript 98.63% EJS 1.36% Procfile 0.01%
bot mongodb discord-js discord-bot discordjs discord-api music giveaways contributions-welcome discord hacktoberfest

hurricano's Introduction

Development for this bot has been paused indefinitely. It probably will not be continued. Feel free to hit me up at dragonizedpizza on Discord if you want to hire me for a commission.

Hurricano™ 🌀

GitHub license GitHub stars GitHub forks GitHub forks

An open source Discord bot!

Invite Hurricano 🌀

Features⭐ :

⭐ Mongoose-Based Command Cooldowns
⭐ Command Permissions
⭐ Slash Command Handler
⭐ Subcommands system
⭐ OwnerOnly Commands
⭐ Args required or not Option
⭐ Permissions handler
⭐ Role-Requirement Giveaways
⭐ Customizable server settings using MongoDB
⭐ Button help-menu
⭐ Starboard
⭐ Logging
⭐ a lot of / commands
⭐ ...And many interesting commands!

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 📋

You'll need Git and Node.js (which comes with NPM) installed on your computer.


Bot setup 🔧

1. Lets get started by cloning Hurricano on your local machine.

# cloning the repository
$ git clone https://github.com/HurricanoBot/Hurricano.git

# go into the repository
$ cd Hurricano
  1. Now rename the config.example.json file to config.json and the required enviromental variables like bot token, ownerIds etc.
{
	"token": "Your bot token",
	"mongouri": "Mongodb uri",
	"prefix": "Your prefix",
	"ownerIds": ["Owner's USER IDs", "Like this", "can be as many"],
	"statcordKey": "optional, leave empty if you don't want statcord",
	"website": {
		"enabled": false,
		"ip": "Website IP",
		"port": "Port"
	},
	"topgg": {
		"enabled": false,
		"token": "only put something here if you set top.gg api to true",
		"webhook": {
			"enabled": false,
			"webhookPassword": "top.gg vote webhook password",
			"webhookPort": 1234,
			"channel": "vote webhook channel ID",
			"webhookIP": "vote webhook IP"
		}
	},
	"botChannels": {
		"bugReport": "...",
		"feedback": "...",
		"serverJoinChannel": "..."
	}
}
  1. Now install all the required dependecies for the bot and run the bot.
# install the required dependencies
$ npm install

# Run the bot
$ node .

Hosting ☁️

heroku

So you might be thinking how to host your bot on a cloud service so that it remains active 24/7 so currently we are hosting Hurricano on heroku which supports node v14.0.0 and npm v7.0.0 and above.

Star Chart 🌟

HurricanoBot

Project Maintainers ✨


Dragonizedpizza

Militia21

Achal Jhawar

🤝 Contributing

Any idea on how we can make this more awesome ? Open a new issue! We need all the help we can get to make this project awesome! You can also join the discord server to give suggestions. You can read the Contributing guidelines.







All Stargazers ✨

Stargazers repo roster for @Hurricanobot/Hurricano

License 📝

Hurricano™ Bot is licensed under the GPL 3.0 license. See the file LICENSE for more information. If you plan to use any part of this source code in your own bot, We would be grateful if you would include some form of credit somewhere.

hurricano's People

Contributors

achaljhawar avatar anogh297 avatar dragonizedpizza avatar jeydin21 avatar militia21 avatar nigamanthsrivatsan avatar oadpoaw avatar superzackx avatar xheaveny 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  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

hurricano's Issues

1 error and 1 question

First off, the Support Server invite link is expired, and 2nd, what does this mean? const Command = require("@Command");

"stack": "TypeError: Cannot read properties of undefined (reading 'join')

Hello, I have a problem with the open source code an error is displayed and since I'm using the nodeJS I'm a little lost I send you the error below:

"stack": "TypeError: Cannot read properties of undefined (reading 'join')

at generateHelpEmbed (C:\Users\IRdark\Desktop\Hurricano-main\Hurricano-main\bot\commands\information\help.js:201:50)

at Command.run (C:\Us\ers\\IRdark\Desktop\Hurricano-main\Hurricano-main\bot\commands\information\help.js:237:21)

at MessageEvent.run (C:\Us\ers\\IRdark\\Desktop\Hurricano-main\Hurricano-main\bot\events\information\message.js:433:21)

at processTicksAndRejections (node:internal/process/task_queues:96:5)"

Here's the error ^^"

Better Eval Command o.O

const Discord = require ("discord.js");
const sourcebin = require('sourcebin_js')

module.exports = {
    name: "eval",
    description: "Evaluates arbituary JavaScript.",
    ownerOnly: true,
    args: true,
    run: async (client, message, args) => {

  const clean = text => {
  if (typeof(text) === "string")
    return text.replace(/`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));
  else
      return text;
}
  const args2 = message.content.split(' ').slice(1).join(' ');

    if (!args2) {
      message.channel.send("What do you want me to evaluate?");
      return;
  }

        const code = args.join(" ");
      let evaled = eval(code);

      if (typeof evaled !== "string")
        evaled = require("util").inspect(evaled);


        if (clean(evaled).length > 1024 || code.length > 1024) {
          sourcebin.create([{
            name: `Code by ${message.author.tag}`,
            content: clean(evaled),
            languageId: 'js'
          }]).then(src => {
         var embed = new Discord.MessageEmbed()
         .setTitle("Evaluation Overload!")
         .setColor("#4CEF8B")
         .setDescription("The evaluation was more than 1,024 characters")
         .addField("Click on the link below to view the eval result", `${src.url}`)
         message.channel.send({ embed: embed })
          }).catch(e => {
            message.channel.send(`Error: ${e}`)
      });
} else {
        var embed2 = new Discord.MessageEmbed()
        .setTitle("Evaled:")
        .setColor("#4CEF8B")
        .addField("Evaled: :inbox_tray:",  `\`\`\`js\n${code}\n\`\`\``)
        .addField("Output: :outbox_tray:", `\`\`\`js\n${clean(evaled)}\n\`\`\``)
        message.channel.send({embed : embed2 });
}
    } catch (err) {
        const code = args.join(" ");
                if (clean(err).length > 1024 || code.length > 1024) {
                  sourcebin.create([{
                    name: `Code by ${message.author.tag}`,
                    content: clean(err),
                    languageId: 'js'
                  }]).then(src => {
                 var embed = new Discord.MessageEmbed()
                 .setTitle("Evaluation Overload!")
                 .setColor("#4CEF8B")
                 .setDescription("The evaluation was more than 1,024 characters")
                 .addField("Click on the link below to view the eval result", `${src.url}`)
                 message.channel.send({ embed: embed })
                  }).catch(e => {
                    message.channel.send(`Error: ${e}`)
              });
};
      var embed3 = new Discord.MessageEmbed()
      .setTitle("ERROR:")
      .setColor("#f44242")
      .addField("Evaled: :inbox_tray:", `\`\`\`js\n${code}\n\`\`\``)
      .addField("Output: :outbox_tray:", `\`ERROR\` \`\`\`xl\n${clean(err)}\n\`\`\``)
      message.channel.send({embed: embed3 });
    }
  }
}

Maybe try this for long output handling, if it doesn't work then o.O

Problem with help command

[2021-07-16 15:27:25] - [warn]: Cannot read property 'join' of undefined
{
"stack": "TypeError: Cannot read property 'join' of undefined
at generateHelpEmbed (C:\Users
ikol\OneDrive\Imágenes\Escritorio\botki now live\Hurricano-main\bot\comma
nds\information\help.js:201:50)
at Command.run (C:\Users
ikol\OneDrive\Imágenes\Escritorio\botki now live\Hurricano-main\bot\comma
nds\information\help.js:237:21)
at MessageEvent.run (C:\Users
ikol\OneDrive\Imágenes\Escritorio\botki now live\Hurricano-main\bot\event
s\bot\message.js:433:21)
at processTicksAndRejections (internal/process/task_queues.js:93:5)"
}

At the console

and the help command with mention or prefix dont work in the chat pls help me!!

Invalid

Mmm Yes your Discord invite link is Invalid should look into that :)

I deployed the main branch in heroku...

i deployed the main branch in heroku with the config.json file completely filled and deployed, the deployment succeeded, but the bot didn't come only, i can't figure how to see the deploy logs, can someone help?

Play command failure

Hey, I'm self-hosting this bot. Just made a several changes to no "copy-paste" it. At the first music commands were working fine but now whenever i put in music name, it says "There are no more songs in the queue.". How can I fix that?

Playing Music

Whenever I run the command hr!play (name) it wont give me a response back and it wont play anything in vc, it doesnt even join vc. Im using the bot hosted by you. Any fix?

Music Problem

Whenever I run the command hr!play (name) it wont give me a response back and it wont play anything in vc, it doesnt even join vc. Im using the bot hosted by you. Any fix?

this bot destroyed my server

Hey, so my server recently got purged by this bot. I had no idea that the creators had malicious intentions, so I've banned the bot. I'm disgusted at your attempts to actively destroy my Discord server and then blame it on some "raiders" since I've checked the audit log, and Hurricano deleted all the channels in my server.

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.