Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to Display all available functionalities #110

Closed
0x15F9 opened this Issue Apr 15, 2019 · 13 comments

Comments

Projects
None yet
6 participants
@0x15F9
Copy link

0x15F9 commented Apr 15, 2019

add a command to display all the functionalities of the bot.
eg: .help should list the commands followed by a brief description

@Abdur-rahmaanJ

This comment has been minimized.

Copy link
Owner

Abdur-rahmaanJ commented Apr 15, 2019

or the link to a page

@RiceAbove

This comment has been minimized.

Copy link
Collaborator

RiceAbove commented Apr 15, 2019

I’m actually working on this right now. Will get it done soon 👍🏼

@Abdur-rahmaanJ

This comment has been minimized.

Copy link
Owner

Abdur-rahmaanJ commented Apr 15, 2019

@RiceAbove leave it for first timers ^^_

@RiceAbove

This comment has been minimized.

Copy link
Collaborator

RiceAbove commented Apr 15, 2019

👍🏼

@edumello

This comment has been minimized.

Copy link
Contributor

edumello commented Apr 15, 2019

Can I work on this?

@Abdur-rahmaanJ

This comment has been minimized.

Copy link
Owner

Abdur-rahmaanJ commented Apr 16, 2019

@edumello yes

@edumello

This comment has been minimized.

Copy link
Contributor

edumello commented Apr 16, 2019

Since actually there is no way to automatically get a brief description of all plugins installed, I've thought in two options:

  • Hard code all commands on a plugin Help

  • Add variables "plugin_name", "description", "commands" on all Plugins (maybe a superclass?) and read it from a plugin Help

Which option should I follow?

@Abdur-rahmaanJ

This comment has been minimized.

Copy link
Owner

Abdur-rahmaanJ commented Apr 16, 2019

@edumello there is, we have a script to generate plugins info . md, enhance it to show commands as well and ... on .help show the github link of that file

@edumello

This comment has been minimized.

Copy link
Contributor

edumello commented Apr 16, 2019

I've opened a PR #117

@0x15F9

This comment has been minimized.

Copy link
Author

0x15F9 commented Apr 17, 2019

Since actually there is no way to automatically get a brief description of all plugins installed, I've thought in two options:

  • Hard code all commands on a plugin Help
  • Add variables "plugin_name", "description", "commands" on all Plugins (maybe a superclass?) and read it from a plugin Help

Which option should I follow?

Maybe a .md file would help here. Use the file to store information about each functions (the name, command, description, author)

@GlennToms

This comment has been minimized.

Copy link
Collaborator

GlennToms commented Apr 17, 2019

I think we should go with a Abstract Class (SuperClass) with Name, Description, Run, Alias and a Alternate Language. We can easily do a Plugins_V2 folder and slowly migrate the code over. This will allow the bot to query the plugins that are enabled and we can disable them by name... This will be very helpful on the GUI side.
Also maybe we should be passing in the Command_Prefix so if we or the user wants to change it to anything else like a '/' they can.
Lastly we should pass in the logging function so we use it from the plugins.

@AngeloGiacco

This comment has been minimized.

Copy link
Collaborator

AngeloGiacco commented Apr 17, 2019

agree but command_prefix is tricky because some symbols like "/" are reserved for IRC commands

@Abdur-rahmaanJ

This comment has been minimized.

Copy link
Owner

Abdur-rahmaanJ commented Apr 17, 2019

@AngeloGiacco actually after you get msgs, / in messages matters not
@GlennToms open two issues for those points
@0x15F9 issue resolved since long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.