test
This commit is contained in:
parent
c59a27bbb8
commit
d849a5620d
10
bot.go
10
bot.go
@ -679,13 +679,11 @@ func botVaultHelp(m *tb.Message) {
|
|||||||
func botVault(m *tb.Message) {
|
func botVault(m *tb.Message) {
|
||||||
b, _ := json.Marshal(m)
|
b, _ := json.Marshal(m)
|
||||||
log.Printf("botVault (msg) :\n%s\n", string(b))
|
log.Printf("botVault (msg) :\n%s\n", string(b))
|
||||||
/*
|
for _, e := range m.Entities {
|
||||||
for _, e := range m.Entities {
|
if e.Type == tb.EntityMention {
|
||||||
if e.Type == tb.EntityMention {
|
log.Printf("botVault (user) : %s\n", m.Text[e.Offset:e.Offset+e.Length])
|
||||||
log.Printf("botVault (user) : %s - %d\n", e.User.Username, e.User.ID)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*/
|
}
|
||||||
if !m.Private() {
|
if !m.Private() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user