all repos — disgord @ 16f4e50c22c4a5c266d06cb398d1eb66438c6d28

A simple Discord bot in Go.

make my username lowercase
Marco Andronaco andronacomarco@gmail.com
Thu, 24 Oct 2024 12:00:10 +0200
commit

16f4e50c22c4a5c266d06cb398d1eb66438c6d28

parent

4e114797ea18b405140d981382bc60855df8f874

M DockerfileDockerfile

@@ -21,7 +21,7 @@ COPY src ./src

# Build RUN commit_hash=$(cat commitID | cut -c1-7) && \ - CGO_ENABLED=0 go build -ldflags "-X github.com/BiRabittoh/disgord/src/globals.CommitID=$commit_hash" -trimpath -o /dist/app + CGO_ENABLED=0 go build -ldflags "-X github.com/birabittoh/disgord/src/globals.CommitID=$commit_hash" -trimpath -o /dist/app # Test
M MakefileMakefile

@@ -5,7 +5,7 @@ BUILD_DIR=dist

SRC_DIR=src # Build flags for versioning -LDFLAGS=-ldflags "-X github.com/BiRabittoh/disgord/src/globals.CommitID=$(COMMIT_HASH)" +LDFLAGS=-ldflags "-X github.com/birabittoh/disgord/src/globals.CommitID=$(COMMIT_HASH)" .PHONY: all build test run clean
M go.modgo.mod

@@ -1,4 +1,4 @@

-module github.com/BiRabittoh/disgord +module github.com/birabittoh/disgord go 1.23.1
M main.gomain.go

@@ -4,10 +4,10 @@ import (

"os" "os/signal" - "github.com/BiRabittoh/disgord/src" - g "github.com/BiRabittoh/disgord/src/globals" - "github.com/BiRabittoh/disgord/src/myconfig" - "github.com/BiRabittoh/disgord/src/mylog" + "github.com/birabittoh/disgord/src" + g "github.com/birabittoh/disgord/src/globals" + "github.com/birabittoh/disgord/src/myconfig" + "github.com/birabittoh/disgord/src/mylog" "github.com/bwmarrin/discordgo" )
M src/commands.gosrc/commands.go

@@ -4,9 +4,9 @@ import (

"fmt" "strings" - gl "github.com/BiRabittoh/disgord/src/globals" - "github.com/BiRabittoh/disgord/src/music" - "github.com/BiRabittoh/disgord/src/shoot" + gl "github.com/birabittoh/disgord/src/globals" + "github.com/birabittoh/disgord/src/music" + "github.com/birabittoh/disgord/src/shoot" "github.com/bwmarrin/discordgo" )
M src/globals/globals.gosrc/globals/globals.go

@@ -3,8 +3,8 @@

import ( "os" - "github.com/BiRabittoh/disgord/src/myconfig" - "github.com/BiRabittoh/disgord/src/mylog" + "github.com/birabittoh/disgord/src/myconfig" + "github.com/birabittoh/disgord/src/mylog" "github.com/bwmarrin/discordgo" )
M src/music/commands.gosrc/music/commands.go

@@ -3,7 +3,7 @@

import ( "fmt" - gl "github.com/BiRabittoh/disgord/src/globals" + gl "github.com/birabittoh/disgord/src/globals" "github.com/bwmarrin/discordgo" "github.com/kkdai/youtube/v2" )
M src/music/queue.gosrc/music/queue.go

@@ -3,7 +3,7 @@

import ( "os" - "github.com/BiRabittoh/disgord/src/mylog" + "github.com/birabittoh/disgord/src/mylog" "github.com/bwmarrin/discordgo" "github.com/kkdai/youtube/v2" )
M src/music/video.gosrc/music/video.go

@@ -3,7 +3,7 @@

import ( "strings" - gl "github.com/BiRabittoh/disgord/src/globals" + gl "github.com/birabittoh/disgord/src/globals" "github.com/kkdai/youtube/v2" )
M src/shoot/shoot.gosrc/shoot/shoot.go

@@ -5,8 +5,8 @@ "fmt"

"os" "time" - gl "github.com/BiRabittoh/disgord/src/globals" - "github.com/BiRabittoh/disgord/src/mylog" + gl "github.com/birabittoh/disgord/src/globals" + "github.com/birabittoh/disgord/src/mylog" "github.com/bwmarrin/discordgo" "golang.org/x/exp/rand" )