Anna Schumaker
ca89d98e3a
Add support for reading messages through the Thread class
...
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-09 10:22:58 -04:00
Anna Schumaker
6859f8c3ec
Add Group class
...
And pull more things out of the Channel class and into the Thread class.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-09 09:57:25 -04:00
Anna Schumaker
fcd2789c29
Create a new Thread class
...
I want to create a generic class to represent (public) channels and
(private) groups.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-09 09:34:33 -04:00
Anna Schumaker
8d38fffaf4
Fixes for merging messages
...
I noticed that a merged message reversed all the lines. This is due to
how slack returns messages in the history() call, so let's parse replies
in two steps to keep everything chronological.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-08 16:55:21 -04:00
Anna Schumaker
65e5403165
Merge consecutive messages with the same author
...
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 13:51:23 -04:00
Anna Schumaker
7b78e9d785
Move Message class into the chat namespace
...
It makes more sense to put it here, since it's related to chatting.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 13:24:36 -04:00
Anna Schumaker
dcd8650e1a
Message display improvements
...
- Put time and poster information on one line
- Wrap message text to 70 characters
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 13:21:38 -04:00
Anna Schumaker
193107574f
Simplify hour:minute:second display
...
Now it's a bit easier to read!
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-28 12:31:29 -04:00
Anna Schumaker
5fe26ca0e5
Send email with X-Slack-Header to specify channel
...
This is slightly more accurate than using channel names to lookup where
to post.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-27 16:37:37 -04:00
Anna Schumaker
6110e5ff3b
slackpost.py: Write a script for posting to slack
...
The idea is that postfix will pipe an email message into this script,
which will then post the reply to slack.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 21:21:46 -04:00
Anna Schumaker
d9a6858be8
Mark channels read when updated
...
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 21:21:45 -04:00
Anna Schumaker
253e0374f0
Mark channels read when updated
...
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 17:04:56 -04:00
Anna Schumaker
b5d715096e
Prepare text as an email message
...
Right now it's hardcoded to send to me. This should be made
configurable eventually ...
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 16:52:55 -04:00
Anna Schumaker
776ad5b1fa
slack: Add users.info support and a User class
...
For finding information about users.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 16:36:46 -04:00
Anna Schumaker
48baf65574
slack: Add the channels.history() function and a Message class
...
For finding unread messages.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 16:02:36 -04:00
Anna Schumaker
4eb177cd8f
slack: Find extra channel information if needed
...
This is mostly to find unread count and timestamp
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 15:44:52 -04:00
Anna Schumaker
23ac359ad7
slack: Add channels module and Channel class
...
This patch begins a new main loop using the new Channel class.
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-26 15:21:13 -04:00