1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

new sounds

This commit is contained in:
2017-01-18 20:35:22 +00:00
parent 42486b7f33
commit 403151fa6f
17 changed files with 3 additions and 3 deletions

BIN
dist/GoBot-linux vendored

Binary file not shown.

BIN
dist/GoBot-windows.exe vendored

Binary file not shown.

BIN
dist/sounds/50dkp.dca vendored Normal file

Binary file not shown.

BIN
dist/sounds/blewit.dca vendored Normal file

Binary file not shown.

BIN
dist/sounds/lata.dca vendored Normal file

Binary file not shown.

BIN
dist/sounds/lying.dca vendored Normal file

Binary file not shown.

BIN
dist/sounds/spaghet.dca vendored Normal file

Binary file not shown.

BIN
dist/sounds/stop.dca vendored Normal file

Binary file not shown.

View File

@@ -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

BIN
sounds/50dkp.dca Normal file

Binary file not shown.

BIN
sounds/blewit.dca Normal file

Binary file not shown.

BIN
sounds/lata.dca Normal file

Binary file not shown.

BIN
sounds/lying.dca Normal file

Binary file not shown.

BIN
sounds/spaghet.dca Normal file

Binary file not shown.

BIN
sounds/stop.dca Normal file

Binary file not shown.

View File

@@ -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)

View File

@@ -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()