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

Added File objects, some fixes, and download module

This commit is contained in:
2016-11-22 09:27:59 +01:00
parent 85a42ef143
commit bea61d3b45
6 changed files with 224 additions and 47 deletions

View File

@@ -28,12 +28,15 @@ def main():
parser.add_argument('-c', '--channels', default=[], nargs='+',
help='List of channels to perform actions on. '
'Default is all channels')
parser.add_argument('-t', '--team', default='', help='team name, which is'
' part of slack url, for example: if url is '
'"https://team.slack.com" than "team" is a name of '
'the team.')
args = parser.parse_args()
slack = client.Client(args.token, args.database)
slack.update_users()
slack.update_channels()
slack.update_history(selected_channels=args.channels)
slack = client.Client(args)
slack.update()
# slack.generate_history(Reporter(args.format))
if __name__ == "__main__":