Jeff Ammons
c81bdfec99
Fix unicode error in py2.7 for example plugin
...
Strings should now be passed to the plugins as unicode values in py2.7
so we have to make sure that we don't convert those into ascii by using
python str instead of u'' strings.
2016-06-05 13:49:00 -07:00
Jeff Ammons
2b9e9b752c
Add tests and bugfix for b'' messages appearing in python3.
...
I added unicode and non-unicode message testing for the output() method
on RTMBot. I'm concerned about why the encode('ascii', 'ignore') was
there in the first place, but not having it seems to do the right
thing...
2016-05-27 17:59:40 -07:00
Jeff Ammons
1a4b96584e
Adding testing/coverage files to gitignore
2016-05-11 15:10:47 -07:00
Jeff Ammons
ef76bd58d2
Adding initial test for rtmbot and hopefully coveralls
2016-05-11 15:03:15 -07:00
Jeff Ammons
60b7b2ebad
Change filename in tox to updated name
2016-04-29 17:31:09 -07:00
Jeff Ammons
1b51fe70ba
Merge pull request #40 from eyalev/patch-1
...
Thanks for fixing this! I forgot to fix the docs when I changed the file name back.
2016-04-29 17:21:05 -07:00
Eyal Levin
45e7293eb4
Fix startup command.
2016-04-26 17:20:05 +03:00
Jeff Ammons
61a6011d08
Merge pull request #38 from jammons/refactor
...
Renaming this for backwards compatibility.
2016-04-25 11:29:22 -07:00
Jeff Ammons
b9da306c8f
Renaming this for backwards compatibility.
2016-04-25 11:27:34 -07:00
Jeff Ammons
735d0d774a
Merge pull request #37 from jammons/tzakrajs-master
...
Merge and fix PR breaking out RtmBot into its own Module
2016-04-24 12:46:43 -07:00
Jeff Ammons
84db35fa6f
Improve debug state handling and error messaging
...
If debug=True:
- Most plugin methods (if not all) should end the script and report the
error to std.out
If debug=False:
- Plugin methods will log the error, data, and stack trace
Future planning:
- The debug=False case here has better behavior in my opinion, maybe
there's a better way of handling debug=True
2016-04-24 12:40:37 -07:00
Jeff Ammons
c7582a7098
Conform all self.debug values to False
...
I really want to remove this dbg() mess.
2016-04-17 18:42:54 -07:00
Jeff Ammons
e1d4816e55
Remove unused global site_config
2016-04-17 18:29:17 -07:00
Jeff Ammons
7d718fe54f
Adding start rtmbot to tox.ini for linting
...
Also updating gitignore to ignore some stuff on my machine.
2016-04-17 18:21:04 -07:00
Jeff Ammons
a0fdba13b4
Update readme file with new ./start_rtmbot.py file name
2016-04-17 17:59:22 -07:00
Jeff Ammons
561c3d521b
Change the location of file to lint
2016-04-17 17:50:50 -07:00
Jeff Ammons
f12a90ab0a
Fix missing debug context in Job
2016-04-17 17:34:17 -07:00
Jeff Ammons
4c7fa8b9ae
Merge branch 'master' of https://github.com/tzakrajs/python-rtmbot into tzakrajs-master
...
Also fixes some PEP8 issues and a number of small bugs.
2016-04-17 16:41:39 -07:00
Jeff Ammons
134710718b
Merge pull request #36 from jammons/master
...
Make bot code and plugin examples PEP8 compliant
2016-04-15 18:03:51 -07:00
Jeff Ammons
aa710d2d4e
Fix Python3 linting
2016-04-15 14:49:38 -07:00
Jeff Ammons
5898a37997
Remove spurious change unrelated to PEP8
2016-04-15 14:32:19 -07:00
Jeff Ammons
25ce082eac
Fix PEP8 compliance in example plugins and rtmbot
2016-04-15 14:03:20 -07:00
Jeff Ammons
6052333c64
Removing non-PEP8 changes to clean up PR
2016-04-15 12:42:29 -07:00
Quentin Nerden
aff0446b8f
adding deamon to requirements. It is needed in rtmbot.py
2016-04-15 12:42:29 -07:00
Quentin Nerden
05ca843d31
running pycharm code instpector and pycharm reformat code
2016-04-15 12:42:29 -07:00
Jeff Ammons
4441a56011
Merge pull request #35 from slackhq/adding_travis_ci
...
Adding Travis CI Integration
2016-04-15 12:28:39 -07:00
Jeff Ammons
a772615185
Adding correct directories to linting test
2016-04-15 12:25:29 -07:00
Jeff Ammons
c14aa88726
Adding TravisCI build status image
2016-04-15 12:21:54 -07:00
Jeff Ammons
7d81a404ed
Adding scaffolding and example testing file.
2016-04-15 12:18:31 -07:00
Thomas Zakrajsek
bfe7df401a
fixed regression, now self.debug exists in Plugin class context
2015-08-02 19:08:29 -04:00
Thomas Zakrajsek
08f9feacf6
fixing regression, adding back KeyboardInterrupt exception handler
2015-08-02 18:55:15 -04:00
Thomas Zakrajsek
96d84e4edf
ignore log files
2015-08-02 18:29:54 -04:00
Thomas Zakrajsek
54fe252eef
added setup.py for installing module now that RtmBot was refactored
2015-08-02 18:29:36 -04:00
Thomas Zakrajsek
45e9f7780c
refactored main into start_rtmbot.py, refactored so that RtmBot class is more self sufficient and can be imported and used more easily, removed unused objects from main
2015-08-02 18:29:11 -04:00
Thomas Zakrajsek
c6a8b30d2d
ignore build dirs from setup.py
2015-08-02 18:26:03 -04:00
Ryan Huber
22fb111bd5
add an example init script
2015-07-31 15:17:36 -07:00
Ryan Huber
ab8921c4e3
Merge pull request #11 from ClipCard/master
...
Specify location and name of config file
2015-06-20 01:52:47 -07:00
Michael Murray
7e4916777c
Merge pull request #1 from ClipCard/specify-conf-file
...
Specify location of clipbot conf file
2015-05-29 09:48:44 -07:00
Matt Skone
6191182cb3
Support optional command-line argument specifying full path to conf file.
2015-05-28 15:28:44 -07:00
Ryan Huber
a907737aa6
remove debug
2015-03-04 13:02:14 -08:00
Ryan Huber
fa6e0e1c77
ping the server to trigger reconnect on WS fail
2015-03-04 13:01:37 -08:00
Ryan Huber
82106deeaa
Lower sleep interval for faster replies.
2015-03-02 21:20:29 -08:00
Ryan Huber
93137f94cc
use slackclient from pypi not github
2015-02-21 11:24:23 -08:00
Ryan Huber
75309dde80
ignore unicode extended chars for now
2014-12-25 11:22:12 -08:00
Ryan Huber
d89b6e6d32
allow job registration after module loads
2014-12-11 22:35:06 -08:00
Ryan Huber
240400439e
allow for no logfile
2014-12-11 16:31:32 -08:00
Ryan Huber
49275291e1
Merge branch 'master' of github.com:slackhq/python-rtmbot
...
Conflicts:
requirements.txt
2014-12-11 16:28:06 -08:00
Ryan Huber
68d3784533
add shiny new daemonize mode
2014-12-11 16:25:41 -08:00
Ryan Huber
2b7145d0ed
Update README.md
2014-12-09 11:55:20 -08:00
Ryan Huber
749988b7c1
Update README.md
2014-12-09 11:52:59 -08:00