Ok let's see what happens
This commit is contained in:
parent
22d79a0547
commit
21892a7c66
1 changed files with 2 additions and 14 deletions
16
bot/utils.go
16
bot/utils.go
|
@ -19,23 +19,11 @@ var client = github.NewClient(&http.Client{Transport: itr})
|
|||
var ctx = context.Background()
|
||||
|
||||
func initGitHubClient() {
|
||||
readme, _, err := client.Repositories.GetReadme(ctx, "rowbawts", "theopenestsource", nil)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
content, err := readme.GetContent()
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
|
||||
fmt.Println(content)
|
||||
log.Println("Initializing......")
|
||||
}
|
||||
|
||||
func listenForWebhook() {
|
||||
fmt.Println("Listening on :3333......")
|
||||
log.Println("Listening on :3333......")
|
||||
|
||||
http.HandleFunc("/", webhookHandler)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue