1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 19:40:21 +01:00
Commit Graph

30 Commits

Author SHA1 Message Date
2a2f58680b Adapt to Slack file atachement API changes
Couple of months ago, file attachments was treated differently, than
now - API provides attached files as a list, instead of single object,
and is directly coupled with a message object. This change provides
support for such cases.
2019-01-05 16:48:36 +01:00
431621edb0 Fix issue with url_file_to_attachment and generating raport. 2018-09-27 20:15:44 +02:00
40c896a01e Fix for raw format function 2018-07-17 09:06:55 +02:00
9aa79bfa89 Fix: Ignore deleted channels 2018-07-16 16:16:03 +02:00
93b0bc2dd7 Added raw-dir option
This option can be used to debug slack API responses - if set,
slack-backup will dump all of the data as a JSON in provided direcotry.
2018-07-16 16:11:27 +02:00
db8527e9af Added implementation for url_file_attachment option.
Using url_file_attachment user can specify if he like to change objects
like 'file_share' marked as external (in Slack servers point of view)
to attachments, so the only value would be remembered URL for the
"uploaded" document as an attachment. Or, treat it as is, and let the
slack-backup to produce file which contain the URLs and corresponding
local file names for such files.
2018-07-16 15:20:45 +02:00
5e7f4740ed Use utils fromtimestamp function for creating datetime objects.
This fixes OSError exception on Windows when timestamps returned by
slack API are set to 0.
2018-05-03 18:47:14 +02:00
43b830c3d1 Log data on failures. 2018-05-03 11:22:12 +02:00
03972e609f Fix for skipping messages for attachements. 2018-05-03 10:41:07 +02:00
641d67065c Treat bot user equally to regular users.
Currently, if messages are generated using bot users, such messages will
crash slack_backup, since user.list API method returns only regular
users. In this commit there is detected a situation, where we have
'bot_id' in the data, and in case there is no such user in local
database, create it using data from bot.info API call.
2018-05-03 10:24:57 +02:00
f2a78f4a52 Add message body to log 2017-11-01 11:27:01 +01:00
64d4b09468 Fix for handling messages of different types than 'message' 2017-08-06 09:22:38 +02:00
5f9f290ba4 Fix for message comment.
If comment is sent by the user, different structure of the data is sent.
First of all, the type of this message is "message", but it contain
dictionary under 'comment' key, which can be confusing, which contain
needed data (like user id). For this kind of messages, in case of lack
of 'user' in main dict, dict['comment']['user'] will be used for getting
user identifier, while dict['text'] remains as a message text.
2017-02-13 19:57:31 +01:00
Roman Dobosz
08a0a82435 Changed absolute to relative for filepaths stored in File objects 2016-12-03 18:43:49 +01:00
Roman Dobosz
0d7607cf3c Added log for updating specific channel messages 2016-12-02 17:46:27 +01:00
c79d8ae0e1 Small fixes, version bump, alpha stage, added emoji map. 2016-11-26 17:57:58 +01:00
137f9bbac6 Fix for files object db store 2016-11-26 15:13:43 +01:00
97069e0a83 Added reporters module 2016-11-25 07:45:37 +01:00
9c616b8da6 Update messages to call for download assets 2016-11-24 08:50:15 +01:00
87f6eb4d3a Changing the way how arguments are passed 2016-11-23 22:02:49 +01:00
bea61d3b45 Added File objects, some fixes, and download module 2016-11-22 09:27:59 +01:00
f7fb9d32a8 Added message model, moving updates of users and channels as public methods 2016-11-21 14:03:19 +01:00
c3ae7607eb Renamed get_hostory to update_history 2016-11-21 09:35:30 +01:00
25d4de0ca3 Refactoring _update_channels method 2016-11-20 16:09:10 +01:00
9d0582a82f Updates to channel creation 2016-11-20 15:15:01 +01:00
2476af0555 Adjusted get_history method 2016-11-20 15:13:47 +01:00
71c0866699 Removed shebang 2016-11-20 15:11:56 +01:00
162010ac1e Implemented storage and update of User data 2016-11-19 10:38:45 +01:00
3055edd0de Added db connection 2016-11-19 09:12:01 +01:00
1e1d5cb38c Added executable script and client class 2016-11-18 19:11:12 +01:00