Browse Source

minimal visual changes

master
arnaucode 7 years ago
parent
commit
3c1f3d7a62
4 changed files with 30 additions and 9 deletions
  1. BIN
      argos
  2. BIN
      build/argos
  3. +30
    -6
      main.go
  4. +0
    -3
      readConfigTokensAndConnect.go

BIN
argos


BIN
build/argos


+ 30
- 6
main.go

@ -7,23 +7,47 @@ import (
"strings" "strings"
) )
const version = "0.1-dev"
const version = "0.2-beta"
const minNumWords = 10 const minNumWords = 10
const minNumHashtag = 2 const minNumHashtag = 2
const minNumUserInteractions = 1 const minNumUserInteractions = 1
const iterationsCount = 3 const iterationsCount = 3
func main() { 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("---------------") fmt.Println("---------------")
c.Cyan("argos initialized")
fmt.Print("source code: ")
c.Purple("https://github.com/arnaucode/argos") c.Purple("https://github.com/arnaucode/argos")
fmt.Print("project page: ")
c.Purple("http://arnaucode/argos") 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() client := readConfigTokensAndConnect()
fmt.Println("---------------")
fmt.Println("Getting user data...") fmt.Println("Getting user data...")
user := getUserData(client) user := getUserData(client)
printUserData(user) printUserData(user)

+ 0
- 3
readConfigTokensAndConnect.go

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

Loading…
Cancel
Save