Giter VIP home page Giter VIP logo

hacktobot's People

Contributors

ayushi8989 avatar g33tansh avatar ppap1771 avatar sagamantus avatar

Stargazers

 avatar  avatar

hacktobot's Issues

Make help menu interactions exclusive to the command author

Make help menu interactions exclusive to the command author

Currently, everyone can control the help menu using the buttons. We need to make sure that only the command author should be able to interact with the buttons to change the pages of the help menu.
Make necessary changes in utils/helper.py.

Make sure to read and follow Contributing Guidelines.

Feature: `.npm` command

Feature: .npm command

A .npm command can be useful to provide information about a specific package from npm.

Usage

.npm <package_name>

Example usage:

.npm react

Additional Details

We can use the registry npmjs for this.
I would like to implement this command.

Embedded message in `command_not_found` and `subcommand_not_found`

Embedded message in command_not_found and subcommand_not_found

# ./utils/helper.py

    async def subcommand_not_found(self, command: commands.Command, string: str, /) -> None:
        if isinstance(command, commands.Group) and len(command.all_commands) > 0:
            error_message = f"**Error 404**: Command `{command.qualified_name}` has no subcommand named `{string}`!\n"
            error_message += f"\nAvailable subcommands:\n`{'`, `'.join(command.all_commands.keys())}`"
        else: 
            error_message =  f"**Error 404**: Command `{command.qualified_name}` has no subcommands!"
        channel = self.get_destination()
        await channel.send(embed=Embed(description=error_message))

Using the above subcommand_not_found function to handle subcommand not found raises discord.ext.commands.errors.CommandInvokeError.

Similarly, command_not_found is raising the same error when written in a similar manner, i.e.,

# ./utils/helper.py

    async def command_not_found(self, string: str, /) -> None:
        error_message = f"**Error 404**: Command `{string}` not found!"
        channel = self.get_destination()
        await channel.send(embed=Embed(description=error_message))

Goal: We want to handle this error and send a response with an embedded message.

Don't forget to read the Contributing Guidelines.

Feature: `pypi` command

Feature: pypi command

A pypi command that provides information about a specific package from PyPI.

Usage

.pypi <package_name>

Example usage:

.pypi pandas

[Feature]: Add wikipedia command

Description

Reasoning

Proposed Implementation

Additional Details

Would you like to implement this yourself?

  • I'd like to implement this feature myself
  • Anyone can implement this feature

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.