Rearranged command categories
This commit is contained in:
parent
945102b7cf
commit
974985586d
|
@ -1,8 +1,8 @@
|
||||||
import Command from "../../core/command";
|
import Command from "../../core/command";
|
||||||
import {isAuthorized, getMoneyEmbed} from "./subcommands/eco-utils";
|
import {isAuthorized, getMoneyEmbed} from "./modules/eco-utils";
|
||||||
import {DailyCommand, PayCommand, GuildCommand, LeaderboardCommand} from "./subcommands/eco-core";
|
import {DailyCommand, PayCommand, GuildCommand, LeaderboardCommand} from "./modules/eco-core";
|
||||||
import {BuyCommand, ShopCommand} from "./subcommands/eco-shop";
|
import {BuyCommand, ShopCommand} from "./modules/eco-shop";
|
||||||
import {MondayCommand} from "./subcommands/eco-extras";
|
import {MondayCommand} from "./modules/eco-extras";
|
||||||
import {callMemberByUsername} from "../../core/libd";
|
import {callMemberByUsername} from "../../core/libd";
|
||||||
|
|
||||||
export default new Command({
|
export default new Command({
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
/// @ts-nocheck
|
|
||||||
import Command from "../../core/command";
|
import Command from "../../core/command";
|
||||||
import {getContent} from "../../core/libd";
|
import {getContent} from "../../core/lib";
|
||||||
|
import {URL} from "url";
|
||||||
|
|
||||||
export default new Command({
|
export default new Command({
|
||||||
description: "OwO-ifies the input.",
|
description: "OwO-ifies the input.",
|
||||||
async run($) {
|
async run($) {
|
||||||
let url = new URL(`https://nekos.life/api/v2/owoify?text=${$.args.join(" ")}`);
|
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);
|
$.channel.send(content.owo);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import Command, {handler} from "../core/command";
|
import Command, {handler} from "../../core/command";
|
||||||
import {clean} from "../core/lib";
|
import {clean} from "../../core/lib";
|
||||||
import {botHasPermission} from "../core/libd";
|
import {botHasPermission} from "../../core/libd";
|
||||||
import {Config, Storage} from "../core/structures";
|
import {Config, Storage} from "../../core/structures";
|
||||||
import {getPermissionLevel, getPermissionName} from "../core/permissions";
|
import {getPermissionLevel, getPermissionName} from "../../core/permissions";
|
||||||
import {Permissions} from "discord.js";
|
import {Permissions} from "discord.js";
|
||||||
import {logs} from "../globals";
|
import {logs} from "../../globals";
|
||||||
|
|
||||||
function getLogBuffer(type: string) {
|
function getLogBuffer(type: string) {
|
||||||
return {
|
return {
|
|
@ -1,7 +1,7 @@
|
||||||
import Command from "../core/command";
|
import Command from "../../core/command";
|
||||||
import {toTitleCase} from "../core/lib";
|
import {toTitleCase} from "../../core/lib";
|
||||||
import {loadableCommands, categories} from "../core/command";
|
import {loadableCommands, categories} from "../../core/command";
|
||||||
import {getPermissionName} from "../core/permissions";
|
import {getPermissionName} from "../../core/permissions";
|
||||||
|
|
||||||
export default new Command({
|
export default new Command({
|
||||||
description: "Lists all commands. If a command is specified, their arguments are listed as well.",
|
description: "Lists all commands. If a command is specified, their arguments are listed as well.",
|
|
@ -1,5 +1,5 @@
|
||||||
import Command from "../../core/command";
|
import Command from "../../core/command";
|
||||||
import {queryClosestEmoteByName} from "./subcommands/emote-utils";
|
import {queryClosestEmoteByName} from "./modules/emote-utils";
|
||||||
import {botHasPermission} from "../../core/libd";
|
import {botHasPermission} from "../../core/libd";
|
||||||
import {Permissions} from "discord.js";
|
import {Permissions} from "discord.js";
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import {MessageEmbed, version as djsversion} from "discord.js";
|
import {MessageEmbed, version as djsversion} from "discord.js";
|
||||||
import ms from "ms";
|
import ms from "ms";
|
||||||
import os from "os";
|
import os from "os";
|
||||||
import Command from "../core/command";
|
import Command from "../../core/command";
|
||||||
import {formatBytes, trimArray} from "../core/lib";
|
import {formatBytes, trimArray} from "../../core/lib";
|
||||||
import {getMemberByUsername} from "../core/libd";
|
import {getMemberByUsername} from "../../core/libd";
|
||||||
import {verificationLevels, filterLevels, regions} from "../defs/info";
|
import {verificationLevels, filterLevels, regions} from "../../defs/info";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import utc from "moment";
|
import utc from "moment";
|
||||||
import {Guild} from "discord.js";
|
import {Guild} from "discord.js";
|
|
@ -1,6 +1,6 @@
|
||||||
import Command from "../../core/command";
|
import Command from "../../core/command";
|
||||||
import {Message, Channel, TextChannel} from "discord.js";
|
import {Message, Channel, TextChannel} from "discord.js";
|
||||||
import {queryClosestEmoteByName} from "./subcommands/emote-utils";
|
import {queryClosestEmoteByName} from "./modules/emote-utils";
|
||||||
|
|
||||||
export default new Command({
|
export default new Command({
|
||||||
description:
|
description:
|
|
@ -1,5 +1,5 @@
|
||||||
import Command, {handler} from "../core/command";
|
import Command, {handler} from "../../core/command";
|
||||||
import {pluralise} from "../core/lib";
|
import {pluralise} from "../../core/lib";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import {Collection, TextChannel} from "discord.js";
|
import {Collection, TextChannel} from "discord.js";
|
||||||
|
|
|
@ -63,6 +63,6 @@ export function getPermissionLevel(member: GuildMember): number {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getPermissionName(level: 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;
|
else return PermissionLevels[level].name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue