[openstack-dev] [infra] Switch 'all?' openstack bots to errbot plugins?
Joshua Harlow
harlowja at fastmail.com
Fri Jul 29 18:12:13 UTC 2016
Ya, I was looking for how these get downloaded/assembled into an actual
bot, and from looking at errbot there appears to be a couple approaches,
some just do '!repos install https://github.com/YaroslavMolchan/lctv'
while others I've seen just install them and then setup the config.py
that errbot uses to ensure they are loaded.
It will probably be a little bit of learning to figure out what is the
best mechanism here.
Other things I've noticed is that errbot, to work with various backends
actually uses an interesting approach to message formatting. All
messages that u write to self.send() in a errbot plugin are expected to
be markdown, and then at the individual backend layer there is a
translation from that markdown to the backends supported 'syntax' (which
say for slack is a semi-limited version of markdown) or for IRC is well
not any version of markdown, ha.
So u'll see things like the following that do this conversion:
https://github.com/errbotio/errbot/blob/master/errbot/backends/slack.py#L66
-Josh
Doug Hellmann wrote:
> Excerpts from Joshua Harlow's message of 2016-07-29 10:35:18 -0700:
>> I prefer 'one bucket repo for OpenStack community Errbot plug-ins' since
>> I don't like a bunch of repos (seems like a premature optimization ~at
>> this time~), but I could see either way on this one.
>>
>> Jeremy Stanley wrote:
>>> On 2016-07-29 09:41:40 -0700 (-0700), Joshua Harlow wrote:
>>> [...]
>>>> What shall we name it???
>>> [...]
>>>
>>> Also, one bucket repo for OpenStack community Errbot plug-ins, or
>>> one repo per plug-in with a consistent naming scheme?
>
> I agree. How about "openstack/irc-bot-plugins"? If we need to build an
> artifact we can name that openstack-irc-bot-plugins and if we don't then
> we can just install directly from the git repo (the docs for errbot talk
> about installing from github, so I'm not sure what the "best practice"
> is for that).
>
> Doug
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
More information about the OpenStack-dev
mailing list