Server Help

ASSS Custom Projects - <C> ASSS Command List Module

Cheese - Sun Mar 08, 2009 5:12 am
Post subject: <C> ASSS Command List Module
I had nothing to do for half an hour, so I made this.

The Command List Module is simple:
Type ?cmdlist to display all core ASSS commands, in a 2 column list:
the command, and a very simple description of its function.
This is quite useful for those who want an in-game reference or for those who simply have trouble remembering all the commands.
Powers are limited by groupdef.
Source attached.

Ideas for future versions:
'?cmdlist A' would display all cmds that begin with A to reduce spam
group-aware programming to hide higher lvl cmds
Maverick - Sun Mar 08, 2009 6:28 pm
Post subject:
I thought ASSS already had this with the ?man command ?
Hakaku - Sun Mar 08, 2009 7:09 pm
Post subject:
Maverick wrote:
I thought ASSS already had this with the ?man command ?

Well the default ?help command only provides information on a particular command. That is, ?help setship provides information on what the ?setship command does, the targets, and the arguments. But if you don't even know what that command's name is, then it's not very useful, since then you have to search all over for the name. As an example, it would give a significant advantage for staff members (new or old) who aren't familiar with ASSS to know what they can do, since they may not necessarily have access to the groupdef directory, or have a copy of ASSS handy themselves. It's similar to how bots have !help, which lists every command available to that user. (though Cheese's module doesn't yet restrict per-group commands)
Maverick - Mon Mar 09, 2009 8:12 am
Post subject:
Oh, in that case, great idea! icon_wink.gif
Cheese - Mon Mar 09, 2009 5:09 pm
Post subject:
JoWie - Tue Mar 10, 2009 7:23 am
Post subject:
to bad it doesn't use the registered commands using cmdman
Cheese - Tue Mar 10, 2009 11:26 pm
Post subject:
it doesnt look like thats possible
Bak - Wed Mar 11, 2009 2:57 am
Post subject:
it doesn't list the command !cmdlist
Cheese - Wed Mar 11, 2009 12:00 pm
Post subject:
why would it need to, since thats its output, meaning you already know it =)
Initrd.gz - Wed Mar 11, 2009 9:24 pm
Post subject:
You could modify cmdman to have a function that gets the list of commands, but perhaps it could be a security breach (not to mention a pain to use on existing servers), and use their helptext.
Cheese - Sat Mar 14, 2009 5:22 pm
Post subject:
fixed minor error with bad unload log msg
Cheese - Tue Feb 23, 2010 3:36 am
Post subject:
recompiled for asss version 1.5

no changes were made

what this means:
some cmds might now be outdated or obsolete, and new cmds might not be on the list
Cheese - Mon Jan 31, 2011 1:14 am
Post subject:
i will now declare this module to be obsolete, as samapico has taken the time to sit down and make a superior cmdlist module.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group