next #3

Manually merged
sneak merged 7 commits from next into master 2020-09-09 04:34:12 +00:00
5 changed files with 15 additions and 7 deletions
Showing only changes of commit 98e9eb44d3 - Show all commits

View File

@ -29,6 +29,7 @@ default: fmt
fmt: fmt:
go fmt ./... go fmt ./...
goimports -l -w .
docker-build: docker-build:
docker build -t $(IMAGENAME) . docker build -t $(IMAGENAME) .

View File

@ -3,14 +3,15 @@ package bot
//import "github.com/kr/pretty" //import "github.com/kr/pretty"
import ( import (
"fmt" "fmt"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/rs/zerolog/log"
"os" "os"
"os/signal" "os/signal"
"regexp" "regexp"
"strings" "strings"
"syscall" "syscall"
"time" "time"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/rs/zerolog/log"
) )
type Bot struct { type Bot struct {

View File

@ -1,11 +1,12 @@
package bot package bot
import ( import (
"os"
"time"
"github.com/mattn/go-isatty" "github.com/mattn/go-isatty"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"os"
"time"
) )
func (b *Bot) setupLogging() { func (b *Bot) setupLogging() {

View File

@ -2,13 +2,15 @@ package bot
//import "github.com/kr/pretty" //import "github.com/kr/pretty"
import ( import (
"encoding/json"
"fmt" "fmt"
"github.com/rs/zerolog/log"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"os" "os"
"regexp" "regexp"
"time" "time"
"github.com/rs/zerolog/log"
) )
type MetarResponse struct { type MetarResponse struct {

View File

@ -1,7 +1,10 @@
package main package main
import "os" import (
import "git.eeqj.de/sneak/sco/bot" "os"
"git.eeqj.de/sneak/sco/bot"
)
var Version string var Version string
var Commit string var Commit string