2
0
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:
Pouria Ezzati
2017-09-27 12:34:26 +03:30
parent 40720d8ff9
commit 7f27a30297
12 changed files with 92 additions and 53 deletions

View File

@@ -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)) {