package main import ( "fmt" "os" "tweetdistributor/discord" "tweetdistributor/output" ) func main() { fmt.Println("Hello, World!") d := discord.Discord(os.Getenv("DISCORD_TOKEN"), os.Getenv("DISCORD_CHANNEL")) tweetchannel := make(chan string, 1) d.BeginRead(tweetchannel) output := output.TwitterOutput(os.Getenv("TW_ACCESS_TOKEN"), os.Getenv("TW_ACCESS_SECRET")) for tweet := range tweetchannel { fmt.Println(tweet) output.Write(tweet) } }