Skip to content

Commit

Permalink
discoed
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Dec 5, 2023
1 parent 700b04c commit f9eac7d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
24 changes: 16 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ version: 1

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

builds:
- id: bot-utils
main: cmd/japella-bot-utils/main.go
binary: japella-bot-utils
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
env: [CGO_ENABLED=0]
goos: [linux]
goarch: [amd64]

- id: adaptor-discord
main: ./cmd/japella-adaptor-discord/main.go
binary: japella-adaptor-discord
env: [CGO_ENABLED=0]
goos: [linux]
goarch: [amd64]

archives:
- builds:
Expand All @@ -31,6 +33,12 @@ dockers:
image_templates:
- ghcr.io/jamesread/japella-bot-utils

- id: adaptor-discord
dockerfile: Dockerfile.japella-adaptor-discord
image_templates:
- ghcr.io/jamesread/japella-adaptor-discord


changelog:
sort: asc
filters:
Expand Down
3 changes: 2 additions & 1 deletion cmd/japella-adaptor-discord/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
log "github.com/sirupsen/logrus"
"github.com/jamesread/japella/internal/runtimeconfig"
"github.com/jamesread/japella/internal/amqp"
"github.com/jamesread/japella/internal/adaptor/discord"
"time"

"gopkg.in/yaml.v2"
Expand All @@ -28,7 +29,7 @@ func main() {

log.Infof("cfg: %+v", cfg)

Start(cfg.AppId, cfg.PublicKey, cfg.Token)
discord.Start(cfg.AppId, cfg.PublicKey, cfg.Token)

for {
time.Sleep(1 * time.Second)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main
package discord

import (
"github.com/bwmarrin/discordgo"
Expand Down

0 comments on commit f9eac7d

Please sign in to comment.