Fixed /warn
This commit is contained in:
parent
bbd45a77df
commit
8c4dd1c36a
2
index.js
2
index.js
|
@ -133,7 +133,7 @@ bot.onText(/^\/warn/, async(msg, match) => {
|
||||||
if(to.id == me.id) {
|
if(to.id == me.id) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (user.uid === msg.from.id) {
|
if (to.id === msg.from.id) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const warns = await Warning.find({user: to.id, chat: msg.chat.id, active: true})
|
const warns = await Warning.find({user: to.id, chat: msg.chat.id, active: true})
|
||||||
|
|
Loading…
Reference in New Issue