Stub out web command while tomasino works on rewrite to hopefully increase speed
As is, attempting to use the web command from cosmicbot causes a timeout.
This commit is contained in:
parent
f554a3bd27
commit
e21aff9f7f
|
@ -1,4 +1,7 @@
|
|||
import utils
|
||||
|
||||
utils.register_command_call("web","/usr/local/bin/web")
|
||||
#utils.register_command_call("web","/usr/local/bin/web")
|
||||
utils.register_command_call("gemini","/usr/local/bin/gemini")
|
||||
|
||||
utils.temp_disable("web")
|
||||
#utils.temp_disable("gemini")
|
||||
|
|
5
utils.py
5
utils.py
|
@ -22,3 +22,8 @@ class LazyLoadedDict(collections.UserDict):
|
|||
self.data[key]=self.func(key)
|
||||
return self.data[key]
|
||||
return self.data[key]
|
||||
|
||||
def temp_disable(command):
|
||||
@plugin.command(command)
|
||||
def on_call(self,channel,nick,*args):
|
||||
self.say(channel,"This command has been temporarily disabled. Try running the equivalent command on cosmic and you'll see why.")
|
||||
|
|
Loading…
Reference in New Issue