If you have a coding question, you can use stackoverflow with the tag 'errbot' and 'python'
sijis on master
Update README.md with new URL (… (compare)
extra_plugin_dir
variable but it is set to None by default and there is no way to alter that atm.
class TestCommands(FullStackTest):
def setUp(self, extra_plugin_dir=None, extra_test_file=None, loglevel=logging.DEBUG, extra_config=None):
super().setUp(extra_plugin_dir='/something')
def test_about(self):
self.push_message('!about')
self.assertIn('Err version', self.pop_message())
or you can use pytest which is easier:extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), 'dummy_plugin')
def test_root_help(testbot):
assert 'All commands' in testbot.exec_command('!help')
@gbin thanks for this :D
https://github.com/coala/corobo/issues/529#issuecomment-392229810
or you can use pytest which is easier:
Installing err-time...
Error installing the repo: Could not load this plugin:
────────────────────────────────────────────────────────────────────────────────
fatal: repository 'err-time' does not exist
That's the error message I'm getting despite having set my username in for allowing the admin privileges..
Just figured that there's another plugin for the same functionality.
Such as : !repos install https://github.com/Appleman1234/arisu
What I witness now is that; while this plugin is being installed, The entire Errbot functionality has come to a stand still.. (Right after I get the message- Installing https://github.com/Appleman1234/arisu... )
If I try issuing a
!help
on a different channel where the bot is a part of, I receive no response. I believe this isn't expected . Please correct me If I'm wrong.
[@admin ➡ @errbot] >>> !plugin config Samples
Default configuration for this plugin (you can copy and paste this directly as a command):
!plugin config Samples
{'ID_TOKEN': '00112233445566778899aabbccddeeff', 'USERNAME': 'changeme'}
[@admin ➡ @errbot] >>> !mycommand
Computer says nooo. See logs for details:
'NoneType' object is not subscriptable
hi, it seems that there is a missing '/' in the documentation in 14.6. Testing a webhook through chat
[@admin ➡ @errbot] >>> !webhook test github (...)
Computer says nooo. See logs for details:
PATH_INFO doesn't start with /: 'github'
It should be
[@admin ➡ @errbot] >>> !webhook test /github (...)
[@admin ➡ @errbot] >>> *** Test Report
URL : /github
Detected your post as : application/x-www-form-urlencoded
Status code : 200
I thought I was losing my mind. The hello world example in the documentation doesn't seem to work.
I'm getting this:
Some plugins failed to start during bot startup:
File "/usr/local/lib/python3.5/dist-packages/yapsy/PluginManager.py", line 488, in loadPlugins
candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
File "/usr/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 669, in exec_module
File "<frozen importlib._bootstrap_external>", line 775, in get_code
File "<frozen importlib._bootstrap_external>", line 735, in source_to_code
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed