next #3
1
Makefile
1
Makefile
@ -29,6 +29,7 @@ default: fmt
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
||||
goimports -l -w .
|
||||
|
||||
docker-build:
|
||||
docker build -t $(IMAGENAME) .
|
||||
|
@ -3,14 +3,15 @@ package bot
|
||||
//import "github.com/kr/pretty"
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/mattermost/mattermost-server/v5/model"
|
||||
"github.com/rs/zerolog/log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"regexp"
|
||||
"strings"
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/mattermost/mattermost-server/v5/model"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
type Bot struct {
|
||||
|
@ -1,11 +1,12 @@
|
||||
package bot
|
||||
|
||||
import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/mattn/go-isatty"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
"os"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (b *Bot) setupLogging() {
|
||||
|
@ -2,13 +2,15 @@ package bot
|
||||
|
||||
//import "github.com/kr/pretty"
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/rs/zerolog/log"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"regexp"
|
||||
"time"
|
||||
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
type MetarResponse struct {
|
||||
|
@ -1,7 +1,10 @@
|
||||
package main
|
||||
|
||||
import "os"
|
||||
import "git.eeqj.de/sneak/sco/bot"
|
||||
import (
|
||||
"os"
|
||||
|
||||
"git.eeqj.de/sneak/sco/bot"
|
||||
)
|
||||
|
||||
var Version string
|
||||
var Commit string
|
||||
|
Loading…
Reference in New Issue
Block a user