Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Guillaume Binet
@gbin
We need this because plugins are instantiated with a reference to the bot. I am thinking about passing an instantiation callback to the plugin manager to do this. The immediate gain would be that I can add type annotations without creating circular imports.
Guillaume Binet
@gbin
^^^ ok did it ;)
Nitanshu
@nvzard
Is it possible to provide additional configuration by setting variables at module level or as class attributes while using FullStackTest to test the plugin?
I want to set extra_plugin_dir variable but it is set to None by default and there is no way to alter that atm.
Guillaume Binet
@gbin
      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')
@nvzard ^
Nitanshu
@nvzard

@gbin thanks for this :D
https://github.com/coala/corobo/issues/529#issuecomment-392229810

or you can use pytest which is easier:

geethadm
@geethadm

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..

geethadm
@geethadm

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.

Mohamed Fouly
@mofouly
Hello :)
just wanted to quickly find out where the requirements.txt file needs to be and if there's any special formatting for it
Mohamed Fouly
@mofouly
nvm, just found it in the documentation
mks617
@mks617
In HipChat, the link in the cards that I create are not clickable, whereas if I just type a URL into the chat room they are. Does anyone know why this is?
Priyabrata Dash
@bobquest33
hi how to use errbot with email
Lisandro
@lacha
hi, how to disable !help command?
Starli0n
@Starli0n
hi, I am trying 9.1. Plugin configuration through the built-in !config command but it does not work as expected
Computer says nooo. See logs for details: 'NoneType' object is not subscriptable
More specifically
[@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
Starli0n
@Starli0n
I am not sure if it is a bug or not ?
Guillaume Binet
@gbin
@Starli0n you need to execute the configuration once:
Say " !plugin config Samples
{'ID_TOKEN': '00112233445566778899aabbccddeeff', 'USERNAME': 'realpass'}
"
To the bot
Guillaume Binet
@gbin
6.0.0-alpha has been released.
Julien Tanay
@Djiit
Wooooh
Guillaume Binet
@gbin
Please have it a shot and report back if you can, I'd love to stabilize this branch.
Once I get some time I'll backport the series of fixes included in there to 5.2.x
Julien Tanay
@Djiit
Do we have a link to a changelog?
Julien Tanay
@Djiit
Thx
Sebastian
@Betriebsrat
!get changelog :)
Starli0n
@Starli0n
@gbin Thank you it works !
Starli0n
@Starli0n

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
Starli0n
@Starli0n
hi, I encountered some difficulty in unit testing of my plugins, I described my issue here:
https://stackoverflow.com/questions/50800498/how-to-configure-properly-unit-testing-with-errbot
Starli0n
@Starli0n
(I edited the post)
tejaswivinod
@tejaswivinod
hello, How do I change the icon for errbot, i have built new plugins and want to have new image to be icon. I have integrated errbot with slack. Thanks
Andrew
@andrewthetechie
@tejaswivinod you would change that in the Slack bot configuration page, in the slack admin portal. There is an option to set the bot's slack profile picture
Dylan Page
@GenPage
Oh man, I haven't used Gitter in some time :smile:
Dylan Page
@GenPage
Hey @zoni, any reason why errbotio/errbot#1203 was reverted?
nvm found #1198
Dylan Page
@GenPage
@gbin You mentioned backporting fixes to 5.2.0, anything I can help with?
Chris Teodorski
@cteodorski

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

any suggestions?
I did a copy paste -- direct from documentation
What did I miss?
Andrew
@andrewthetechie
@cteodorski Can you link your code in a gist so we can look at it?
Guillaume Binet
@gbin
@cteodorski are you sure the copy paste did not generate strange indentations? (it happens when you copy paste from a web page)
Chris Teodorski
@cteodorski
@andrewthetechie and @gbin I did something really really dumb. Sorry for bothering you guys....It was total my F'up.
Guillaume Binet
@gbin
np @cteodorski
Andrew
@andrewthetechie
Its ok, totally happens . :D