Add help/usage to factoids.py
This commit is contained in:
parent
130da6f769
commit
ec373cf667
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@ from src import ModuleManager, utils
|
|||
class Module(ModuleManager.BaseModule):
|
||||
@utils.hook("received.command.factoid", min_args=1)
|
||||
def factoid(self, event):
|
||||
"""
|
||||
:help: Set/get a factoid
|
||||
:usage: <key> [= value]
|
||||
"""
|
||||
if "=" in event["args"]:
|
||||
key, _, value = event["args"].partition("=")
|
||||
factoid = key.lower().strip()
|
||||
|
|
Loading…
Reference in a new issue