mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-10-07 13:45:52 +00:00
merged warn db into user db & improved db methods
This commit is contained in:
@@ -12,9 +12,13 @@ const { masterID } = loadJSON('config.json');
|
||||
const { replyOptions } = require('../../bot/options');
|
||||
|
||||
// DB
|
||||
const { isAdmin, admin } = require('../../stores/user');
|
||||
const { isBanned } = require('../../stores/user');
|
||||
const { getWarns, nowarns } = require('../../stores/warn');
|
||||
const {
|
||||
isAdmin,
|
||||
admin,
|
||||
isBanned,
|
||||
getWarns,
|
||||
nowarns
|
||||
} = require('../../stores/user');
|
||||
|
||||
const adminHandler = async ({ message, reply }) => {
|
||||
if (message.from.id !== masterID) {
|
||||
|
Reference in New Issue
Block a user