You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
445 B
25 lines
445 B
package main |
|
|
|
import ( |
|
"fmt" |
|
|
|
"keybase/api" |
|
) |
|
|
|
func main() { |
|
// Create new keybase api instance |
|
k := api.New() |
|
|
|
// Get username, logged in status, and client version |
|
username := k.Username() |
|
loggedin := k.LoggedIn() |
|
version := k.Version() |
|
|
|
// Send current client version to self if client is logged in. |
|
if loggedin { |
|
c, _ := k.ChatSend(username, version) |
|
fmt.Println(c.Result.Message) |
|
} else { |
|
fmt.Println("Not logged in") |
|
} |
|
}
|
|
|