gkbts

command module
v0.0.0-...-63e3e3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2021 License: BSD-3-Clause Imports: 16 Imported by: 0

README

gkbts

Exports Slack GeekBot messages of work done into json.

installation

$ go get -u github.com/akrulq/gkbts \
go build github.com/akrulq/gkbts

usage

prerequisites: auth_cookie, token (obtain through slack web login from any request)

-auth_cookie string
    auth cookie value (d=<auth_cookie>)
-from string
    from date, example: 2021-01-31 (default <now -1 month>)
-token string
    auth token (default "xoxc-xxx")
-workspace string
    slack workspace

examples

./gkbts --workspace=sampleworkspace --token="xoxc-..." --auth_cookie="OpPGMw%..."

export to csv with formatting

./gkbts --workspace=sampleworkspace --token="xoxc-..." --auth_cookie="OpPGMw%..." | jq -r '.[] | ["Musk, Elon", (.timestamp | fromdate | strftime("%d.%m.%Y")), "spacex.Sales", "Twitting", .spent_hrs, .text] | @csv'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL