Comments (5)
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.
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.
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.
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.
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)
- Add Message Parser Class HOT 2
- Implement validation and error checking in IRCProtocol.Message HOT 1
- Build instructions HOT 1
- Fix code style using Eclipse
- Dependency injection
- YouTube handler
- Change MessageHandler from an abstract class to an interface HOT 1
- Convert folders, filenames and members to Java preferred case
- Move from java.io Sockets to Netty
- Use configuration file for bot parameters HOT 1
- Logging
- Fix removal of space characters from trailing in max parameters case of message
- General Bot Ideas HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botplate.