[WIP]
This commit is contained in:
parent
0e45085f2a
commit
c5ef99b731
|
@ -115,9 +115,13 @@ func (p *procTranslateCoords) process(ctx *commandCtx, m *discordgo.MessageCreat
|
|||
if ctx.server.CoordsTranslation == "" {
|
||||
return
|
||||
}
|
||||
|
||||
coords := coordsRegex.FindAllString(m.Content, -1)
|
||||
coordsLen := len(coords)
|
||||
if coordsLen > 0 {
|
||||
if coordsLen <= 0 {
|
||||
return
|
||||
}
|
||||
|
||||
version, err := p.cfg.API.Version.Read(twmodel.VersionCodeFromServerKey(ctx.server.CoordsTranslation))
|
||||
if err != nil || version == nil {
|
||||
return
|
||||
|
@ -177,4 +181,3 @@ func (p *procTranslateCoords) process(ctx *commandCtx, m *discordgo.MessageCreat
|
|||
SetTitle(title).
|
||||
SetFields(bldr.ToMessageEmbedFields()))
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue