Format
This commit is contained in:
2
bot.go
2
bot.go
@@ -84,7 +84,7 @@ func main() {
|
|||||||
// Cite command
|
// Cite command
|
||||||
b.Handle("/cite", func(m *tb.Message) {
|
b.Handle("/cite", func(m *tb.Message) {
|
||||||
quotes, err := index.Search(m.Text)
|
quotes, err := index.Search(m.Text)
|
||||||
if err != nil || len(quotes) == 0{
|
if err != nil || len(quotes) == 0 {
|
||||||
b.Send(m.Chat, "Pas de citation trouvée")
|
b.Send(m.Chat, "Pas de citation trouvée")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user