mirror of
https://github.com/arnaucube/argos.git
synced 2026-02-07 02:56:41 +01:00
minimal visual changes
This commit is contained in:
BIN
build/argos
BIN
build/argos
Binary file not shown.
36
main.go
36
main.go
@@ -7,23 +7,47 @@ import (
|
||||
"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)
|
||||
|
||||
@@ -27,14 +27,11 @@ func readConfigTokensAndConnect() (client *twitter.Client) {
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user