mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-12 04:55:01 +00:00
More rework progress, mostly done up to ModActions
This commit is contained in:
parent
52839cc9f3
commit
57893e7f76
38 changed files with 199 additions and 241 deletions
|
@ -2,11 +2,8 @@ import { typedGuildCommand } from "knub";
|
|||
import { CountersPluginType } from "../types";
|
||||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { sendErrorMessage, sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { resolveChannel, waitForReply } from "knub/dist/helpers";
|
||||
|
||||
import { confirm, MINUTES, noop, resolveUser, trimMultilineString, UnknownUser } from "../../../utils";
|
||||
import { changeCounterValue } from "../functions/changeCounterValue";
|
||||
import { setCounterValue } from "../functions/setCounterValue";
|
||||
import { confirm, MINUTES, noop, trimMultilineString } from "../../../utils";
|
||||
import { resetAllCounterValues } from "../functions/resetAllCounterValues";
|
||||
import { counterIdLock } from "../../../utils/lockNameHelpers";
|
||||
|
||||
|
@ -49,7 +46,7 @@ export const ResetAllCounterValuesCmd = typedGuildCommand<CountersPluginType>()(
|
|||
}
|
||||
|
||||
const loadingMessage = await message.channel
|
||||
.createMessage(`Resetting counter **${counterName}**. This might take a while. Please don't reload the config.`)
|
||||
.send(`Resetting counter **${counterName}**. This might take a while. Please don't reload the config.`)
|
||||
.catch(() => null);
|
||||
|
||||
const lock = await pluginData.locks.acquire(counterIdLock(counterId), 10 * MINUTES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue