Giter VIP home page Giter VIP logo

Comments (5)

lnanglin avatar lnanglin commented on August 10, 2024

Would this include things it can help with, such as certain commands you can run with help?

For example, if you just ran "help" or "botname help" (or it could support both), it would list the different commands it can help you with. I guess sort of like --usage but instead of different arguments you can include, it lists the different commands you can run, and a short description of each.

And then if you run "help command" it handles that command.

The only problem I can think is that you then have to hard code in each command that it handles.

What do you think? Too much?

Just throwing around ideas.

from botplate.

mgaut72 avatar mgaut72 commented on August 10, 2024

it is common for IRC bot commands to be prefaced with a '!'

I suggested !<botname> help since this would account for the case where there are multiple bots in the channel (though this is still up for discussion).

If we did not support !<botname> help <command> I think adding the String getHelpMessage() would be sufficient to add to the bot interface. Adding support for a command is a bigger question, but I think hard coding should not be the answer. Does there need to be a distinction between a generic handler and a command?

from botplate.

lnanglin avatar lnanglin commented on August 10, 2024

I guess then I'm just not understanding how the getHelpMessage() would work.

I was thinking along the lines of the bots being able to help with different things and so I thought if you just said !<botname> help, it wouldn't know what to help you with. And if it doesn't know what to help you with, then I guess I just don't see the point of including it.

Also, I'm not seeing how you would be able to do things with these help messages if you don't include cases for responding appropriately. But maybe I'm just over thinking the issue.

from botplate.

gizmo385 avatar gizmo385 commented on August 10, 2024

The help message could be expressed similarly to a usage statement on command line application. It doesn't necessarily need to provide a long detailed response on how to perform an action. Stuff like that would probably be left to wiki documentation.

from botplate.

lnanglin avatar lnanglin commented on August 10, 2024

Oh so it would be sort of like a man page that says what the bot can do?

I was thinking you would ask the bot !<botname> help calculator 4 + 5 or something like that. That's why I was confused on why you wouldn't specify what it can help you with.

But sort of listing everything the bot does makes a lot more sense.

from botplate.

Related Issues (14)

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.