mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 15:06:58 +01:00
disabled items can no longer be used with !use, admingive is now disableable, removed command specific intents, simplified command permission system
This commit is contained in:
@@ -2,10 +2,8 @@ import { Command, sendMessage } from ".";
|
||||
import { addAdmin } from "../lib/admins";
|
||||
import parseCommandArgs from "../lib/parseCommandArgs";
|
||||
import { User } from "../user";
|
||||
import { unbannableUsers } from "..";
|
||||
|
||||
export default new Command('addadmin', ['addadmin'], [], async msg => {
|
||||
if (!unbannableUsers.includes(msg.chatterId)) return;
|
||||
export default new Command('addadmin', ['addadmin'], 'unbannable', async msg => {
|
||||
const args = parseCommandArgs(msg.messageText);
|
||||
if (!args[0]) { await sendMessage('Please specify a target', msg.messageId); return; };
|
||||
const target = await User.initUsername(args[0].toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user