chore: fix location message
This commit is contained in:
parent
27b2f70f8a
commit
572cabb9c8
@ -80,7 +80,7 @@ docker: Error response from daemon: Container command
|
|||||||
|
|
||||||
Execute from the working directory:
|
Execute from the working directory:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e PLUGIN_TOKEN=xxxxxxx \
|
-e PLUGIN_TOKEN=xxxxxxx \
|
||||||
-e PLUGIN_TO=xxxxxxx \
|
-e PLUGIN_TO=xxxxxxx \
|
||||||
@ -90,8 +90,8 @@ docker run --rm \
|
|||||||
-e PLUGIN_STICKER=tests/github-logo.png \
|
-e PLUGIN_STICKER=tests/github-logo.png \
|
||||||
-e PLUGIN_AUDIO=tests/audio.mp3 \
|
-e PLUGIN_AUDIO=tests/audio.mp3 \
|
||||||
-e PLUGIN_VOICE=tests/voice.ogg \
|
-e PLUGIN_VOICE=tests/voice.ogg \
|
||||||
-e PLUGIN_LOCATION=24.9163213,121.1424972 \
|
-e PLUGIN_LOCATION="24.9163213 121.1424972" \
|
||||||
-e PLUGIN_VENUE=24.9163213,121.1424972,title,address \
|
-e PLUGIN_VENUE="24.9163213 121.1424972 title address" \
|
||||||
-e PLUGIN_VIDEO=tests/video.mp4 \
|
-e PLUGIN_VIDEO=tests/video.mp4 \
|
||||||
-e PLUGIN_DEBUG=true \
|
-e PLUGIN_DEBUG=true \
|
||||||
-e PLUGIN_ONLY_MATCH_EMAIL=false \
|
-e PLUGIN_ONLY_MATCH_EMAIL=false \
|
||||||
|
@ -142,11 +142,10 @@ func globList(keys []string) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func convertLocation(value string) (Location, bool) {
|
func convertLocation(value string) (Location, bool) {
|
||||||
log.Println(value)
|
|
||||||
var latitude, longitude float64
|
var latitude, longitude float64
|
||||||
var title, address string
|
var title, address string
|
||||||
var err error
|
var err error
|
||||||
values := trimElement(strings.Split(value, ","))
|
values := trimElement(strings.Split(value, " "))
|
||||||
|
|
||||||
if len(values) < 2 {
|
if len(values) < 2 {
|
||||||
return Location{}, true
|
return Location{}, true
|
||||||
|
Loading…
Reference in New Issue
Block a user