diff --git a/go.mod b/go.mod deleted file mode 100644 index d335179..0000000 --- a/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module keybase - -go 1.12 diff --git a/main.go b/main.go deleted file mode 100644 index a60ca6e..0000000 --- a/main.go +++ /dev/null @@ -1,34 +0,0 @@ -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 { - chatList, _ := k.ChatList() - allChats := "" - for _, chat := range chatList { - if chat.Channel.MembersType == "team" { - allChats += fmt.Sprintf("%s#%s\n", chat.Channel.Name, chat.Channel.TopicName) - } else { - allChats += fmt.Sprintf("%s\n", chat.Channel.Name) - } - } - c, _ := k.ChatSendText(username, fmt.Sprintf("Version: %s\nConversations:\n```%s```\n", version, allChats)) - fmt.Println(c.Message, "-", c.ID) - } else { - fmt.Println("Not logged in") - } -}