mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-09-05 08:35:22 +00:00
merged warn db into user db & improved db methods
This commit is contained in:
@@ -10,8 +10,7 @@ const { replyOptions } = require('../../bot/options');
|
||||
|
||||
// DB
|
||||
const { listGroups } = require('../../stores/group');
|
||||
const { isBanned, ban } = require('../../stores/user');
|
||||
const { isAdmin } = require('../../stores/user');
|
||||
const { isAdmin, isBanned, ban } = require('../../stores/user');
|
||||
|
||||
const banHandler = async ({ chat, message, reply, telegram }) => {
|
||||
if (!await isAdmin(message.from)) {
|
||||
|
Reference in New Issue
Block a user