dustinblackman / speakerbot

A simple Discord music bot written in Go
MIT License
51 stars 8 forks source link

speakerbot no longer compiles #3

Closed ghost closed 7 years ago

ghost commented 7 years ago
# github.com/dustinblackman/speakerbot
src/github.com/dustinblackman/speakerbot/pcm.go:25: undefined: discordgo.Voice
src/github.com/dustinblackman/speakerbot/voice.go:71: vi.discord.Voice undefined (type *discordgo.Session has no field or method Voice)
src/github.com/dustinblackman/speakerbot/voice.go:72: vi.discord.Voice undefined (type *discordgo.Session has no field or method Voice)
src/github.com/dustinblackman/speakerbot/voice.go:131: multiple-value vi.discord.ChannelVoiceJoin() in single-value context
src/github.com/dustinblackman/speakerbot/voice.go:139: vi.discord.Voice undefined (type *discordgo.Session has no field or method Voice)
src/github.com/dustinblackman/speakerbot/voice.go:164: vi.discord.Voice undefined (type *discordgo.Session has no field or method Voice)
src/github.com/dustinblackman/speakerbot/voice.go:182: vi.discord.Voice undefined (type *discordgo.Session has no field or method Voice)
dustinblackman commented 7 years ago

Doesn't look like you used Glide to install dependencies.

https://github.com/dustinblackman/speakerbot/blob/master/Makefile#installation

ghost commented 7 years ago

this was before the makefile was used, during go get ...

dustinblackman commented 7 years ago

go get gets the latest versions of dependencies, which is probably not compatible with. This is why things like glide exist for version management. Do a git pull and use the make file.