Merge branch 'master' of https://github.com/SemblanceOfSense/mazesolver
merge
This commit is contained in:
commit
14600f3fa1
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
testing/
|
testing/
|
||||||
bin/
|
bin/
|
||||||
start.sh
|
start.sh
|
||||||
|
crash.txt
|
||||||
|
log.out
|
||||||
|
@ -62,6 +62,8 @@ func Run(BotToken string) {
|
|||||||
responseData = "You must provide an image! Select the maze, click \"open in browser\", and copy the link of the image"
|
responseData = "You must provide an image! Select the maze, click \"open in browser\", and copy the link of the image"
|
||||||
} else {
|
} else {
|
||||||
outputmaze.EditMaze(points, "/tmp/maze.png", "/tmp/outputmaze.png")
|
outputmaze.EditMaze(points, "/tmp/maze.png", "/tmp/outputmaze.png")
|
||||||
|
maze = nil
|
||||||
|
points = nil
|
||||||
}}}}
|
}}}}
|
||||||
|
|
||||||
if responseData == "" {
|
if responseData == "" {
|
||||||
@ -130,6 +132,8 @@ func Run(BotToken string) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
s.ChannelMessageSendReply(m.ChannelID, "server error", m.Reference())
|
s.ChannelMessageSendReply(m.ChannelID, "server error", m.Reference())
|
||||||
}
|
}
|
||||||
|
maze = nil
|
||||||
|
points = nil
|
||||||
f, _ := os.Open("/tmp/outputmaze.png")
|
f, _ := os.Open("/tmp/outputmaze.png")
|
||||||
_, err = s.ChannelMessageSendComplex(m.ChannelID, &discordgo.MessageSend{
|
_, err = s.ChannelMessageSendComplex(m.ChannelID, &discordgo.MessageSend{
|
||||||
Files: []*discordgo.File{
|
Files: []*discordgo.File{
|
||||||
|
Loading…
Reference in New Issue
Block a user