mirror of
https://github.com/sigmasternchen/wikitil
synced 2025-03-15 08:09:00 +00:00
renamed to wikitil & set tick time to 24 hours
This commit is contained in:
parent
a22502f299
commit
9dbb96e99d
4 changed files with 7 additions and 7 deletions
|
@ -2,10 +2,10 @@ package main
|
|||
|
||||
import (
|
||||
"log"
|
||||
. "randomarticle/internal/config"
|
||||
"randomarticle/internal/twitter"
|
||||
"randomarticle/internal/wikipedia"
|
||||
"time"
|
||||
. "wikitil/internal/config"
|
||||
"wikitil/internal/twitter"
|
||||
"wikitil/internal/wikipedia"
|
||||
)
|
||||
|
||||
const configPath = "config.json"
|
||||
|
@ -46,7 +46,7 @@ func main() {
|
|||
access := getAccessConfig(config)
|
||||
twitter.Init(config, access)
|
||||
|
||||
for range time.Tick(time.Minute * 1) {
|
||||
for range time.Tick(time.Hour * 24) {
|
||||
log.Println("tick")
|
||||
|
||||
page, err := wikipedia.Get()
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module randomarticle
|
||||
module wikitil
|
||||
|
||||
go 1.16
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ package twitter
|
|||
|
||||
import (
|
||||
"github.com/dghubble/go-twitter/twitter"
|
||||
appConfig "randomarticle/internal/config"
|
||||
appConfig "wikitil/internal/config"
|
||||
)
|
||||
import "github.com/dghubble/oauth1"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"github.com/dghubble/oauth1"
|
||||
twauth "github.com/dghubble/oauth1/twitter"
|
||||
. "randomarticle/internal/config"
|
||||
. "wikitil/internal/config"
|
||||
)
|
||||
|
||||
const outOfBand = "oob"
|
||||
|
|
Loading…
Reference in a new issue