Update to new Knub 30 beta. Code clean-up.
This commit is contained in:
parent
5d579446c5
commit
2f470dc37a
299 changed files with 1075 additions and 1004 deletions
|
@ -1,11 +1,11 @@
|
|||
import { locateUserCommand } from "../types";
|
||||
import { locateUserCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import moment from "moment-timezone";
|
||||
import humanizeDuration from "humanize-duration";
|
||||
import { MINUTES, SECONDS } from "src/utils";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "src/pluginUtils";
|
||||
import { MINUTES, SECONDS } from "../../../utils";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
|
||||
export const FollowCmd = locateUserCommand({
|
||||
export const FollowCmd = locateUserCmd({
|
||||
trigger: ["follow", "f"],
|
||||
description: "Sets up an alert that notifies you any time `<member>` switches or joins voice channels",
|
||||
usage: "!f 108552944961454080",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { locateUserCommand } from "../types";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "src/pluginUtils";
|
||||
import { locateUserCmd } from "../types";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { createChunkedMessage, sorter } from "src/utils";
|
||||
import { createChunkedMessage, sorter } from "../../../utils";
|
||||
|
||||
export const ListFollowCmd = locateUserCommand({
|
||||
export const ListFollowCmd = locateUserCmd({
|
||||
trigger: ["follows", "fs"],
|
||||
description: "Displays all of your active alerts ordered by expiration time",
|
||||
usage: "!fs",
|
||||
|
@ -29,7 +29,7 @@ export const ListFollowCmd = locateUserCommand({
|
|||
},
|
||||
});
|
||||
|
||||
export const DeleteFollowCmd = locateUserCommand({
|
||||
export const DeleteFollowCmd = locateUserCmd({
|
||||
trigger: ["follows delete", "fs d"],
|
||||
description:
|
||||
"Deletes the alert at the position <num>.\nThe value needed for <num> can be found using `!follows` (`!fs`)",
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { locateUserCommand } from "../types";
|
||||
import { locateUserCmd } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { resolveMember } from "src/utils";
|
||||
import { resolveMember } from "../../../utils";
|
||||
import { sendWhere } from "../utils/sendWhere";
|
||||
|
||||
export const WhereCmd = locateUserCommand({
|
||||
export const WhereCmd = locateUserCmd({
|
||||
trigger: ["where", "w"],
|
||||
description: "Posts an instant invite to the voice channel that `<member>` is in",
|
||||
usage: "!w 108552944961454080",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue