1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 11:30:25 +01:00

Implemented storage and update of User data

This commit is contained in:
2016-11-19 10:38:45 +01:00
parent 810b7bf002
commit 162010ac1e
3 changed files with 45 additions and 12 deletions

View File

@@ -15,10 +15,11 @@ def main():
parser.add_argument("token", help="Slack token - a string, which can be"
" generated/obtained via "
"https://api.slack.com/docs/oauth-test-tokens page")
# parser.add_argument("channel", help="Slack channel name")
parser.add_argument('-d', '--database', default='',
help='Path to the database file')
args = parser.parse_args()
slack = client.Client(args.token)
slack = client.Client(args.token, args.database)
pprint.pprint(slack.get_hisotry(selected_channels=['elysium']))