Commit Graph

6 Commits

Author SHA1 Message Date
Anna Schumaker c10fff756c Replace <@UID> strings with the target user's username
This makes it easier to know who is being spoken to.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-06-08 19:03:49 -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 29815fc28b slackpost: Properly strip out reply markers
Remove all lines beginning with ">", and the line immediately before
them.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2015-05-27 11:11:35 -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