mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-12 13:12:36 +01:00
ServiceBot: remove request/remove stubs for now
This commit is contained in:
parent
7f7c8a8b51
commit
e56c9640dc
@ -8,3 +8,5 @@ This folder contains general documentation for PyLink IRC services.
|
|||||||
- [PyLink Relay Tutorial & Oper Guide](pylink-opers.md)
|
- [PyLink Relay Tutorial & Oper Guide](pylink-opers.md)
|
||||||
- [Automode & Exttargets Guide](automode.md)
|
- [Automode & Exttargets Guide](automode.md)
|
||||||
- [Developer documentation](technical/)
|
- [Developer documentation](technical/)
|
||||||
|
|
||||||
|
There is also a (WIP) Doxygen-powered API reference at https://pylink.github.io/
|
||||||
|
12
utils.py
12
utils.py
@ -159,7 +159,7 @@ class ServiceBot():
|
|||||||
PyLink IRC Service class.
|
PyLink IRC Service class.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, name, default_help=True, default_request=False, default_list=True,
|
def __init__(self, name, default_help=True, default_list=True,
|
||||||
nick=None, ident=None, manipulatable=False, extra_channels=None,
|
nick=None, ident=None, manipulatable=False, extra_channels=None,
|
||||||
desc=None):
|
desc=None):
|
||||||
# Service name
|
# Service name
|
||||||
@ -194,10 +194,6 @@ class ServiceBot():
|
|||||||
if default_help:
|
if default_help:
|
||||||
self.add_cmd(self.help)
|
self.add_cmd(self.help)
|
||||||
|
|
||||||
if default_request:
|
|
||||||
self.add_cmd(self.request)
|
|
||||||
self.add_cmd(self.remove)
|
|
||||||
|
|
||||||
if default_list:
|
if default_list:
|
||||||
self.add_cmd(self.listcommands, 'list')
|
self.add_cmd(self.listcommands, 'list')
|
||||||
|
|
||||||
@ -318,12 +314,6 @@ class ServiceBot():
|
|||||||
else:
|
else:
|
||||||
self._show_command_help(irc, command)
|
self._show_command_help(irc, command)
|
||||||
|
|
||||||
def request(self, irc, source, args):
|
|
||||||
self.reply(irc, "Request command stub called.")
|
|
||||||
|
|
||||||
def remove(self, irc, source, args):
|
|
||||||
self.reply(irc, "Remove command stub called.")
|
|
||||||
|
|
||||||
def listcommands(self, irc, source, args):
|
def listcommands(self, irc, source, args):
|
||||||
"""takes no arguments.
|
"""takes no arguments.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user