Rearranged command categories

This commit is contained in:
WatDuhHekBro 2021-03-30 22:22:25 -05:00
parent 945102b7cf
commit 974985586d
20 changed files with 26 additions and 26 deletions

View file

@ -1,8 +1,8 @@
import Command from "../../core/command";
import {isAuthorized, getMoneyEmbed} from "./subcommands/eco-utils";
import {DailyCommand, PayCommand, GuildCommand, LeaderboardCommand} from "./subcommands/eco-core";
import {BuyCommand, ShopCommand} from "./subcommands/eco-shop";
import {MondayCommand} from "./subcommands/eco-extras";
import {isAuthorized, getMoneyEmbed} from "./modules/eco-utils";
import {DailyCommand, PayCommand, GuildCommand, LeaderboardCommand} from "./modules/eco-core";
import {BuyCommand, ShopCommand} from "./modules/eco-shop";
import {MondayCommand} from "./modules/eco-extras";
import {callMemberByUsername} from "../../core/libd";
export default new Command({

View file

@ -1,12 +1,12 @@
/// @ts-nocheck
import Command from "../../core/command";
import {getContent} from "../../core/libd";
import {getContent} from "../../core/lib";
import {URL} from "url";
export default new Command({
description: "OwO-ifies the input.",
async run($) {
let url = new URL(`https://nekos.life/api/v2/owoify?text=${$.args.join(" ")}`);
const content = await getContent(url.toString());
const content = (await getContent(url.toString())) as any; // Apparently, the object in question is {owo: string}.
$.channel.send(content.owo);
}
});

View file

@ -1,10 +1,10 @@
import Command, {handler} from "../core/command";
import {clean} from "../core/lib";
import {botHasPermission} from "../core/libd";
import {Config, Storage} from "../core/structures";
import {getPermissionLevel, getPermissionName} from "../core/permissions";
import Command, {handler} from "../../core/command";
import {clean} from "../../core/lib";
import {botHasPermission} from "../../core/libd";
import {Config, Storage} from "../../core/structures";
import {getPermissionLevel, getPermissionName} from "../../core/permissions";
import {Permissions} from "discord.js";
import {logs} from "../globals";
import {logs} from "../../globals";
function getLogBuffer(type: string) {
return {

View file

@ -1,7 +1,7 @@
import Command from "../core/command";
import {toTitleCase} from "../core/lib";
import {loadableCommands, categories} from "../core/command";
import {getPermissionName} from "../core/permissions";
import Command from "../../core/command";
import {toTitleCase} from "../../core/lib";
import {loadableCommands, categories} from "../../core/command";
import {getPermissionName} from "../../core/permissions";
export default new Command({
description: "Lists all commands. If a command is specified, their arguments are listed as well.",

View file

@ -1,5 +1,5 @@
import Command from "../../core/command";
import {queryClosestEmoteByName} from "./subcommands/emote-utils";
import {queryClosestEmoteByName} from "./modules/emote-utils";
import {botHasPermission} from "../../core/libd";
import {Permissions} from "discord.js";

View file

@ -1,10 +1,10 @@
import {MessageEmbed, version as djsversion} from "discord.js";
import ms from "ms";
import os from "os";
import Command from "../core/command";
import {formatBytes, trimArray} from "../core/lib";
import {getMemberByUsername} from "../core/libd";
import {verificationLevels, filterLevels, regions} from "../defs/info";
import Command from "../../core/command";
import {formatBytes, trimArray} from "../../core/lib";
import {getMemberByUsername} from "../../core/libd";
import {verificationLevels, filterLevels, regions} from "../../defs/info";
import moment from "moment";
import utc from "moment";
import {Guild} from "discord.js";

View file

@ -1,6 +1,6 @@
import Command from "../../core/command";
import {Message, Channel, TextChannel} from "discord.js";
import {queryClosestEmoteByName} from "./subcommands/emote-utils";
import {queryClosestEmoteByName} from "./modules/emote-utils";
export default new Command({
description:

View file

@ -1,5 +1,5 @@
import Command, {handler} from "../core/command";
import {pluralise} from "../core/lib";
import Command, {handler} from "../../core/command";
import {pluralise} from "../../core/lib";
import moment from "moment";
import {Collection, TextChannel} from "discord.js";

View file

@ -63,6 +63,6 @@ export function getPermissionLevel(member: GuildMember): number {
}
export function getPermissionName(level: number) {
if (level > length || length < 0) return "N/A";
if (level > length || level < 0) return "N/A";
else return PermissionLevels[level].name;
}