1. 28 May, 2018 1 commit
  2. 25 May, 2018 1 commit
  3. 24 May, 2018 1 commit
  4. 23 May, 2018 1 commit
    • Guillaume Binet's avatar
      Yapsictomy - part 1: botplugins and flows (#1219) · 9a03b72a
      Guillaume Binet authored
      * Intermediate state.
      
      * Added a separate plugin info dataclass
      
      * add dataclasses as dep from python < 3.7
      
      * version2array -> version2tuple
      
      * version2tuple -> version2array
      
      * Pass on PluginInfo
      
      * temp
      
      * another pass, running not working
      
      * State where it starts to load plugins
      
      * Cleanup for flows.
      
      * A little bit more tests pass.
      
      * Every tests passes except flows.
      
      * Working on flows
      
      * All tests passes.
      
      * make the linter happy.
      
      * Dataclasses backport doesn't support 3.4+3.5.
      
      * remove 3.4 and 3.5
      
      * error in the travis.yml.
      9a03b72a
  5. 12 May, 2018 1 commit
  6. 01 May, 2018 1 commit
  7. 20 Apr, 2017 1 commit
    • Guillaume Binet's avatar
      utils.py cleanup. (#991) · f1408654
      Guillaume Binet authored
      * utils.py cleanup.
      
      I just applied a couple principles:
      
      - This should not be an API of Errbot
      - If not used in Errbot, it is removed
      - If is it used only once in Errbot, it is moved to the spot where it is
      used
      - If it is used a couple times in Errbot and doesn't have a natural spot
      within the source tree, it stays.
      
      * linting
      f1408654
  8. 20 Nov, 2016 1 commit
  9. 10 Jun, 2016 3 commits
  10. 06 May, 2016 2 commits
  11. 10 Mar, 2016 3 commits
  12. 01 Mar, 2016 1 commit
  13. 28 Feb, 2016 1 commit
  14. 20 Feb, 2016 2 commits
  15. 25 Dec, 2015 1 commit
  16. 26 Oct, 2015 1 commit
    • Nick Groenen's avatar
      Re-fix warn_admins() on Telegram · 4ed92ff2
      Nick Groenen authored
      It appears the webhook decorator was relying on the quirk of compat_str
      returning None for non-string objects. I think that is undesirable
      behavior so made the webhook decorator smarter, so the same changes as
      in the original PR (#514) can be applied to compat_str again.
      4ed92ff2
  17. 25 Oct, 2015 2 commits
    • Guillaume Binet's avatar
      Revert "Fix warn_admins() on Telegram" · 3def07ee
      Guillaume Binet authored
      This reverts commit 60ae6091.
      3def07ee
    • Nick Groenen's avatar
      Fix warn_admins() on Telegram · 60ae6091
      Nick Groenen authored
      Telegram uses numbers to denote people on the network, so admin
      configuration uses integers in `config.py`.
      
      This currently breaks the `warn_admins()` function (and possibly other
      rare corner cases) with the following traceback:
      
      ```
      2015-10-25 20:24:13,002 ERROR    errbot.backends.base      Exception occurred in serve_once:
      Traceback (most recent call last):
        File "/srv/errbot/repository/errbot/backends/base.py", line 579, in serve_forever
          if self.serve_once():
        File "/srv/errbot/repository/errbot/backends/telegram.py", line 149, in serve_once
          self.connect_callback()
        File "/srv/errbot/repository/errbot/errBot.py", line 583, in connect_callback
          loading_errors = self.activate_non_started_plugins()
        File "/srv/errbot/repository/errbot/plugin_manager.py", line 379, in activate_non_started_plugins
          self.warn_admins(errors)
        File "/srv/errbot/repository/errbot/errBot.py", line 512, in warn_admins
          self.send(admin, warning)
        File "/srv/errbot/repository/errbot/errBot.py", line 135, in send
          mess.to = user
        File "/srv/errbot/repository/errbot/backends/base.py", line 89, in to
          % (to, to.__class__))
      Exception: `to` not an Identifier as it misses the "person" property. `to` : 123669037 (<class 'int'>)
      ```
      
      This happens because a utility function only expects `bytes` or `str`
      types right now. With this change, the value is cast to `str` when it is
      neither, fixing the issue.
      60ae6091
  18. 23 Oct, 2015 3 commits
  19. 05 Aug, 2015 1 commit
  20. 04 Aug, 2015 1 commit
  21. 29 Jul, 2015 1 commit
  22. 23 Jul, 2015 2 commits
  23. 22 Jul, 2015 1 commit
    • Guillaume Binet's avatar
      Squashed commit of the following: · fd2afbe1
      Guillaume Binet authored
      commit 4fb5635a8bbbfde8a07f571e5196db21308096d1
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 17:01:38 2015 -0700
      
          html support for hipchat
      
      commit 2f8270ec709f6e906e06cfe92894c26bff0d7305
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 16:38:34 2015 -0700
      
          pep8
      
      commit 833c27546072f7d5baa9fbf2f53a8050e814d2e9
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 16:37:47 2015 -0700
      
          send html notifications to rooms on hipchat.
      
      commit 0c304d81760a3f5145de5fe4e3e67c37bf091750
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 15:58:50 2015 -0700
      
          Slack formatting.
      
      commit 9b333b0a5b26e261732f68bd14956523cd1b27f0
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 15:42:25 2015 -0700
      
          pep8
      
      commit 3c51cecdfd51de752e77de83b71aba6812eeab79
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 15:41:08 2015 -0700
      
          added imtext format (skype, gtalk, slack ...)
      
      commit 82f438faaccf10beb9bd732f562fec2d309515ab
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 15:06:11 2015 -0700
      
          again ...
      
      commit ed2660bfa4980033e1c13341e6089ba17b2ea1f5
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:54:20 2015 -0700
      
          again trying ...
      
      commit 27edf707909996c7ca204fcdadb92e5b48b8dec8
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:51:29 2015 -0700
      
          Try to fix this terrible py packages conflicting specs
      
      commit 4569b83ff5c9f1a37a8d2b2bb3188dddcfb5837c
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:35:20 2015 -0700
      
          ported and adapted tests to md
      
      commit a90573745717de6e5550e7f71e8edb3d960c3ad4
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:34:41 2015 -0700
      
          escape config commands ({} everywhere)
      
      commit 79882c4161e0a42bcedf2f91692bf5c631ba1802
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:34:16 2015 -0700
      
          spurrious space
      
      commit 90e9c2eef66bba3faec9c5813c5adc5c0f8710a9
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:33:50 2015 -0700
      
          ported webstatus to md
      
      commit bb02395e2b1cbc62d6bcc3680db2006dded5823e
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:33:00 2015 -0700
      
          ported the templates to markdown
      
      commit cbae00ff324e435337b6f45e771df37e488a3894
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:31:47 2015 -0700
      
          added an md escaping function
      
          this is an helper for plugin designer to be sure their {} are not
          interpreted
      
      commit d198662f9f6c994b511e42b80578d070243fcd61
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:30:42 2015 -0700
      
          forces the test backend to render pure text
      
          This makes the tests more minimal as it avoids all the presentation
          noise.
      
      commit 6c43e1621a2b22ed7845a37b0e17831ada80ed1f
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:28:55 2015 -0700
      
          bug: ansi was gobbling trailing text.
      
      commit 9d4acf6c552d8c8b7420a045c60bb10e336ec0ce
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 14:27:37 2015 -0700
      
          Add syntax coloring to debug output on text
      
          This will help our plugins developers to see what will happen in various
          backends to their plugin output.
      
      commit 999e95a66d089267e65f480ffa332c46d4ff043b
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 13:35:29 2015 -0700
      
          switched colors
      
      commit 4e0dd94c529c98da880c58756cbe0c18a4dc9033
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 10:21:37 2015 -0700
      
          Moved the templating to markdown
      
      commit 280a39f253bb69e96dab21cb64d3180704e9bfa9
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 10:21:10 2015 -0700
      
          remove a couple of useless html-im functions
      
      commit 0b6d9ec34cdbad22cd4372242f20fb1936412846
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 10:19:26 2015 -0700
      
          Add the original markdown to the text backend
      
          This is to help debug your markdown when you develop a plugin.
      
      commit 75f2d1151c43d51f587a3c91d98dd044c0732d40
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 10:18:26 2015 -0700
      
          remove the html-text-xhtml-im transformation
      
      commit 93f374d9f14e53b013c59a3dce94edf93324d50b
      Author: Guillaume Binet <gbin@google.com>
      Date:   Tue Jul 21 09:25:40 2015 -0700
      
          fixed and put the irc backend to ansi
      
      commit 5da547fcd68964237d826cd6ca63406184b8f028
      Author: Guillaume Binet <gbin@google.com>
      Date:   Mon Jul 20 16:59:54 2015 -0700
      
          nightly is broken
      
      commit 4eb8b8f9f91d1e800ac55e4c59b8b7a67316b7f0
      Merge: c9195f1 acde354
      Author: Guillaume Binet <gbin@google.com>
      Date:   Mon Jul 20 16:50:28 2015 -0700
      
          Merge branch 'md-experiment' of github.com:gbin/err into md-experiment
      
      commit c9195f17c7037ade7eb1d397cd20df3562da4d44
      Author: Guillaume Binet <gbin@google.com>
      Date:   Mon Jul 20 16:48:55 2015 -0700
      
          md extra to md converter.
      
          Some backend with only pure md support need to be fed with a compatible
          md.
      
          This strips the attributes.
      
      commit acde3540db37ddc3cfd1cbc672ddd37f88797f74
      Author: Guillaume Binet <gbin@gootz.net>
      Date:   Sat Jul 18 20:10:22 2015 -0700
      
          ported the graphic backend to xhtml
      
      commit 8ff925156685921c9ebc0de88efe57fac572fef2
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 13:13:33 2015 -0700
      
          pep8
      
      commit a84ac62053b6b13dddb0ba4954a2fcc72e14764a
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 12:57:44 2015 -0700
      
          Added md rendering to the text backend.
      
      commit 389027d069a792d4226cbe8271ece6d58cfcc93e
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 12:41:32 2015 -0700
      
          more elegant imports
      
      commit 88991cf553f71fb92c9fe00116b9e9231d6320d0
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 12:40:32 2015 -0700
      
          fix 2.7
      
      commit 83246d773accd0c3233e14cbe9343d198873f40b
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 12:38:59 2015 -0700
      
          3.5 -> nightly maybe ?
      
      commit bce3e2f25cac711663d5dfbd6c33048fed8846e3
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 11:56:11 2015 -0700
      
          3.5 still not there ?
      
      commit 188abd141aca51f581091ddd9694eb9b83a0435e
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 11:54:22 2015 -0700
      
          better resilience on python versions
      
      commit 36546cc62eebf36a4f53ce985d10d02fa107657a
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 11:46:21 2015 -0700
      
          try to push python 3.4/3.5 instead of 3.3/3.4
      
      commit be2d76c6fdefed47c160f6062621a98dc19a5aeb
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 11:41:51 2015 -0700
      
          missing rendering dependencies
      
      commit bf26ec11eca329dc051a44b6b9e6f52b534ffcce
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 11:33:06 2015 -0700
      
          cleanup access to renderers + minimal tests
      
      commit 5a7944fc4543208f372eb0e402e057f1632966d7
      Merge: d3dde14 98ff73bf
      Author: Guillaume Binet <gbin@google.com>
      Date:   Fri Jul 17 10:42:39 2015 -0700
      
          Merge branch 'master' into md-experiment
      
      commit d3dde14a6b89d8e7e92df11cbc3cde2edf926931
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 16:49:08 2015 -0700
      
          missing test file
      
      commit 576f8da1e39248988811012ac4d8d1af025b46c3
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 16:46:27 2015 -0700
      
          added pure text support too
      
      commit ac105ee9a4619298478850ffff0305a316cdd452
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 15:34:21 2015 -0700
      
          moved to a test file.
      
      commit 3ffe39709ef9894817164df3363e2e6c6a42e116
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 14:42:00 2015 -0700
      
          better formatting, support for inline images.
      
      commit fd60615a571c76d58b00c51f7d1742be3da971a2
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 13:28:22 2015 -0700
      
          added html unescaping and generic colors
      
      commit 3647fe7749428235b255e5b63b3335ac31a3de99
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 10:21:12 2015 -0700
      
          autopep8'd
      
      commit 6479b0ea85a6eccf0ffe1e326bbd682f77283b24
      Author: Guillaume Binet <gbin@google.com>
      Date:   Thu Jul 16 10:16:42 2015 -0700
      
          added table support
      
      commit 65731deda1df1d013f538b479abf7f21aecaf289
      Author: Guillaume Binet <gbin@gootz.net>
      Date:   Thu Jul 16 08:21:47 2015 -0700
      
          table
      
      commit a9c6350f4a25201112bb5d9b066e592163c76ce4
      Author: Guillaume Binet <gbin@google.com>
      Date:   Wed Jul 15 17:00:24 2015 -0700
      
          embrio of md renderer for ansi.
      
          supports lists, 2 colors, horizontal lines
      fd2afbe1
  24. 14 Jul, 2015 1 commit
    • Guillaume Binet's avatar
      moved help to its own plugin. · e2397df9
      Guillaume Binet authored
      This is the first part of a refactoring that will move out all the
      bot commands out of the base.backend-errbot-backend hierarchy.
      e2397df9
  25. 04 Jul, 2015 2 commits
    • Guillaume Binet's avatar
      docstrings · 036445a4
      Guillaume Binet authored
      036445a4
    • Guillaume Binet's avatar
      Ported backends as plugins. · e375d60c
      Guillaume Binet authored
      This allows third party backends to be run by err.
      
      backends have the same .plug as a normal err plugin.
      The backend has to be a subclass of ErrBot.
      
      The port had a ripple effect across the codebase that had to be cleaned
      nup, especially tests were we were doing dodgy things like globals
      (this is because yapsy loads plugins in a virtual modules).
      
      err can now be started with a backend name with -b or --backend.
      
      Another new command line parameter -l to list the available backends
      will be added in another PR.
      e375d60c
  26. 20 Jun, 2015 3 commits
  27. 23 May, 2015 1 commit