dylwylie / slackmultiteam Goto Github PK
View Code? Open in Web Editor NEWAllows Slack communication across different teams, effectively creating 'shared channels'
License: GNU General Public License v2.0
Allows Slack communication across different teams, effectively creating 'shared channels'
License: GNU General Public License v2.0
Hacked together Slack's web API rather than use their RTC one. Probably should change this at some point.
Should attempt to find a username match in the shared channel, default to plaintext if failed.
Some frontendy thing to launch and manage bots would be cool
When things break messages that were sent during downtime are never shared with the other channel.
Doesn't currently handle edited messages
Allow users to choose whether or not their message is shared. Something like 'secret:'?
Example: @U03HG4QD4|dylan uploaded a file: Screen Shot 2015-04-20 at 19.29.45.png
Got the below exception, did Slack go down or just get pissed at us for pinging them so often? Either way should catch the error and restart the service.
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "run.py", line 22, in run
self.ListenerObject.runListener(messageHandler=self.callback)
File "/home/dylan/SlackIRC/SlackBot.py", line 56, in runListener
r = self.call('channels.history',arguments)
File "/home/dylan/SlackIRC/SlackBot.py", line 22, in call
return requests.get(URL)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 55, in get
return request('get', url, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, *_send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, *_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 378, in send
raise ConnectionError(e)
ConnectionError: HTTPSConnectionPool(host='slack.com', port=443): Max retries exceeded with url: /api/channels.history?token=REDACTED&channelREDACTEDJ&inclusive=0&oldest=1427847109.24 (Caused by <class 'socket.error'>: [Errno 104] Connection reset by peer)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.