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:
Robert Miles 2021-04-21 00:49:48 +00:00
parent f554a3bd27
commit e21aff9f7f
2 changed files with 9 additions and 1 deletions

View File

@ -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")

View File

@ -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.")