diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6ef3ede --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +config.json +gottdad diff --git a/bot.go b/bot.go index b5d7f79..0c50fe8 100644 --- a/bot.go +++ b/bot.go @@ -475,7 +475,7 @@ func botQuery(q *tb.Query) { } func botText(m *tb.Message) { - r := regexp.MustCompile("^/delete_(?[a-f0-9]{16})$") + r := regexp.MustCompile("^/delete_(?P[a-f0-9]{16})$") if r.MatchString(m.Text) { ref := r.ReplaceAllString(m.Text, "${Ref}") d, ok := companyDeleteMap[ref]