arnaucube
arnaucube/argosPublic Self-hosted repository
minimal visual changes
arnaucode idoctnef@openmailbox.org
Mon, 22 May 2017 12:36:00 +0200
commit

3c1f3d7a62208622b004e66e760edc86077bae06

parent

4c15739249278dbdfe22d853e21b9148e6c9bc99

4 files changed, 30 insertions(+), 9 deletions(-)

jump to
M argos → argos

          
M main.go → main.go

@@ -7,23 +7,47 @@ "os"

"strings" ) -const version = "0.1-dev" +const version = "0.2-beta" const minNumWords = 10 const minNumHashtag = 2 const minNumUserInteractions = 1 const iterationsCount = 3 func main() { - c.Yellow("Argos Panoptes") + eye := ` + ___________ + .-=d88888888888b=-. + .:d8888pr |\|/-\| rq8888b. + ,:d8888P^//\-\/_\ /_\/^q888/b. + ,;d88888/~-/ .-~ _~-. |/-q88888b, + //8888887-\ _/ (#) \\-\/Y88888b\ + \8888888|// T Y _/|888888 o + \q88888|- \l !\_/|88888p/ + q8888l\-//\ / /\|!8888P + q888\/-| -,___.-^\/-\/888P + =88\./-/|/ |-/!\/-!/88= + ^^ ------------- ^ + _____ _____ ____ _____ + /\ | __ \ / ____|/ __ \ / ____| + / \ | |__) | | __| | | | (___ + / /\ \ | _ /| | |_ | | | |\___ \ + / ____ \| | \ \| |__| | |__| |____) | + /_/ \_\_| \_\\_____|\____/|_____/ + + Open source twitter entropic toolkit + ` + c.Cyan(eye) + c.DarkGray("--Be half bot and half human, a new generation of cyborgs--") fmt.Println("---------------") - c.Cyan("argos initialized") + fmt.Print("source code: ") c.Purple("https://github.com/arnaucode/argos") + fmt.Print("project page: ") c.Purple("http://arnaucode/argos") - fmt.Println("version " + version) - fmt.Println("Reading twitterConfig.json file") + fmt.Print("version ") + c.Purple(version) + fmt.Println("---------------") client := readConfigTokensAndConnect() - fmt.Println("---------------") fmt.Println("Getting user data...") user := getUserData(client) printUserData(user)
M readConfigTokensAndConnect.go → readConfigTokensAndConnect.go

@@ -27,14 +27,11 @@ content := string(file)

json.Unmarshal([]byte(content), &config) fmt.Println("twitterConfig.json read comlete") - fmt.Print("connecting to twitter api --> ") configu := oauth1.NewConfig(config.Consumer_key, config.Consumer_secret) token := oauth1.NewToken(config.Access_token_key, config.Access_token_secret) httpClient := configu.Client(oauth1.NoContext, token) // twitter client client = twitter.NewClient(httpClient) - - fmt.Println("connection successfull") return client }