Giter Site home page Giter Site logo

xmdb / hypixel-guild-chat-bot Goto Github PK

View Code? Open in Web Editor NEW
30.0 1.0 9.0 722 KB

A simple yet modern Discord bot that allows you to bridge between Hypixel guild chat and Discord chat.

License: GNU General Public License v3.0

JavaScript 99.23% Shell 0.77%
hypixel hypixel-api mineflayer mineflayer-bot discord self-hosted discord-js bot nodejs hypixel-discord-bot

hypixel-guild-chat-bot's Issues

Add interactions

The bot currently does not use any button or message interactions

Broken guild quest regex

image
image

&f    &r&6The guild has completed Tier 1 of this week's Guild Quest!&r&f                         &r&2+50000 Guild Experience&r
&f&l                 GUILD QUEST TIER 1 COMPLETED!&r

feature request: improved help command

Improved Help Command

I propose that the help command lists all the commands by category when it is ran as well as allows you to view usage and description of any command by doing ${prefix}help <command>

Implementation Method

  • First assign each command a category when it gets registered
const commandFolders = fs.readdirSync('./commands');
for (const folder of commandFolders) {
  const commandFiles = fs.readdirSync(`./commands/${folder}`).filter(file => file.endsWith('.js'));
  for (const file of commandFiles) {
    const command = require(`./commands/${folder}/${file}`);
    bot.commands.set(command.name, {
      aliases: command.aliases,
      description: command.description,
      usage: command.usage,
      slowmode: command.slowmode,
      cooldown: commnad.cooldown,
      execute: command.execute, 
      category: folder // <---------
    });
  }
}
  • In the help command you can loop through all the commands and generate a list of every unique category.
  • Loop through the list of each category and add a new field to the embed named after that category and add all commands to that field formatted command, command, etc
  • If the command has a first argument check if that argument is the name of a command and if so display info such as usage description aliases etc
  • If there is no command found say no command found named args[0] do ${prefix}help to see all commands

Reasons for implementation

  • No need to manually enter each new command in when you make it
  • No need to have to separate commands for info about commands (commands & help)
  • Improved experience for users
  • Put categories to use

I am offering to PR this myself, please tell me if you want me to

Add static or dynamic status

Static - changes between set values randomly (current)
Dynamic - display members online in guild and on Hypixel

question

what are the emojis? can you link a zip file with the emoji images? thanks

Fail to send to Limbo

This is a big problem as the other way to get in limbo efficiently is to spam. To avoid mutes you can make it spam a command that does not exist (ex /limbospam)

To solve this, go to the guild chat bot folder and go to events/minecraft/handler/login.js and add some spam like this:
image

Add slash commands

The bot currently does not support slash commands

Message commands will be deprecated in 2022

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.