diff --git a/dist/GoBot-linux b/dist/GoBot-linux index 365b850..dde9b0d 100755 Binary files a/dist/GoBot-linux and b/dist/GoBot-linux differ diff --git a/dist/GoBot-windows.exe b/dist/GoBot-windows.exe deleted file mode 100755 index 6c4afd7..0000000 Binary files a/dist/GoBot-windows.exe and /dev/null differ diff --git a/dist/sounds/50dkp.dca b/dist/sounds/50dkp.dca new file mode 100644 index 0000000..a7e5a73 Binary files /dev/null and b/dist/sounds/50dkp.dca differ diff --git a/dist/sounds/blewit.dca b/dist/sounds/blewit.dca new file mode 100644 index 0000000..eea2c32 Binary files /dev/null and b/dist/sounds/blewit.dca differ diff --git a/dist/sounds/lata.dca b/dist/sounds/lata.dca new file mode 100644 index 0000000..6e13ff3 Binary files /dev/null and b/dist/sounds/lata.dca differ diff --git a/dist/sounds/lying.dca b/dist/sounds/lying.dca new file mode 100644 index 0000000..209c06f Binary files /dev/null and b/dist/sounds/lying.dca differ diff --git a/dist/sounds/spaghet.dca b/dist/sounds/spaghet.dca new file mode 100644 index 0000000..eab176f Binary files /dev/null and b/dist/sounds/spaghet.dca differ diff --git a/dist/sounds/stop.dca b/dist/sounds/stop.dca new file mode 100644 index 0000000..c985d47 Binary files /dev/null and b/dist/sounds/stop.dca differ diff --git a/makefile b/makefile index d0bafb3..41a244c 100644 --- a/makefile +++ b/makefile @@ -14,5 +14,5 @@ copyconfig: @cp config.template.json ./dist/config.json @cp -r ./sounds ./dist/ -build: clean windows linux copyconfig +all: windows linux copyconfig \ No newline at end of file diff --git a/sounds/50dkp.dca b/sounds/50dkp.dca new file mode 100644 index 0000000..a7e5a73 Binary files /dev/null and b/sounds/50dkp.dca differ diff --git a/sounds/blewit.dca b/sounds/blewit.dca new file mode 100644 index 0000000..eea2c32 Binary files /dev/null and b/sounds/blewit.dca differ diff --git a/sounds/lata.dca b/sounds/lata.dca new file mode 100644 index 0000000..6e13ff3 Binary files /dev/null and b/sounds/lata.dca differ diff --git a/sounds/lying.dca b/sounds/lying.dca new file mode 100644 index 0000000..209c06f Binary files /dev/null and b/sounds/lying.dca differ diff --git a/sounds/spaghet.dca b/sounds/spaghet.dca new file mode 100644 index 0000000..eab176f Binary files /dev/null and b/sounds/spaghet.dca differ diff --git a/sounds/stop.dca b/sounds/stop.dca new file mode 100644 index 0000000..c985d47 Binary files /dev/null and b/sounds/stop.dca differ diff --git a/src/handlers/airhorn.go b/src/handlers/sounds.go similarity index 97% rename from src/handlers/airhorn.go rename to src/handlers/sounds.go index 551ec3b..d5b66ec 100644 --- a/src/handlers/airhorn.go +++ b/src/handlers/sounds.go @@ -17,7 +17,7 @@ var sounds = make(map[string][][]byte, 0) const SOUNDS_DIR string = "./sounds/" -func AirhornHandler(s *discordgo.Session, m *discordgo.MessageCreate) { +func SoundsHandler(s *discordgo.Session, m *discordgo.MessageCreate) { if strings.HasPrefix(m.Content, config.Config.Activator) { // Find the channel that the message came from. c, err := s.State.Channel(m.ChannelID) diff --git a/src/main.go b/src/main.go index aa1c433..f263a41 100644 --- a/src/main.go +++ b/src/main.go @@ -22,7 +22,7 @@ func main() { handlers.LoadSounds() //add handlers - bot.AddHandler(handlers.AirhornHandler) + bot.AddHandler(handlers.SoundsHandler) //start websock to listen for messages bot.Start()