Skip to content

Commit 1fc524b

Browse files
committed
chore: knub -> vety
Just a rename. Knub v32.0.0-next.28 = Vety v1.0.0-rc1.
1 parent 1694309 commit 1fc524b

430 files changed

Lines changed: 484 additions & 484 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

AGENTS.md

Lines changed: 1 addition & 1 deletion

backend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,13 @@
4343
"cors": "^2.8.5",
4444
"cross-env": "^7.0.3",
4545
"deep-diff": "^1.0.2",
46-
"discord.js": "14.23.2",
46+
"discord.js": "*",
4747
"emoji-regex": "^8.0.0",
4848
"escape-string-regexp": "^1.0.5",
4949
"express": "^4.20.0",
5050
"fp-ts": "^2.0.1",
5151
"humanize-duration": "^3.15.0",
5252
"js-yaml": "^4.1.0",
53-
"knub": "32.0.0-next.28",
5453
"knub-command-manager": "^9.1.0",
5554
"last-commit-log": "^2.1.0",
5655
"lodash-es": "^4.17.21",
@@ -75,6 +74,7 @@
7574
"typeorm": "^0.3.17",
7675
"utf-8-validate": "^5.0.5",
7776
"uuid": "^9.0.0",
77+
"vety": "1.0.0-rc1",
7878
"yawn-yaml": "github:dragory/yawn-yaml#string-number-fix-build",
7979
"zod": "^4.1.12"
8080
},

backend/src/RegExpRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CooldownManager } from "knub";
1+
import { CooldownManager } from "vety";
22
import { EventEmitter } from "node:events";
33
import { RegExpWorker, TimeoutError } from "regexp-worker";
44
import { MINUTES, SECONDS } from "./utils.js";

backend/src/commandTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
CommandContext,
1313
messageCommandBaseTypeConverters,
1414
TypeConversionError,
15-
} from "knub";
15+
} from "vety";
1616
import { createTypeHelper } from "knub-command-manager";
1717
import {
1818
channelMentionRegex,

backend/src/configValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseConfig, ConfigValidationError, GuildPluginBlueprint, PluginConfigManager } from "knub";
1+
import { BaseConfig, ConfigValidationError, GuildPluginBlueprint, PluginConfigManager } from "vety";
22
import { z, ZodError } from "zod";
33
import { availableGuildPlugins } from "./plugins/availablePlugins.js";
44
import { zZeppelinGuildConfig } from "./types.js";

backend/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
TextChannel,
1313
ThreadChannel,
1414
} from "discord.js";
15-
import { Knub, PluginError, PluginLoadError, PluginNotLoadedError } from "knub";
15+
import { Vety, PluginError, PluginLoadError, PluginNotLoadedError } from "vety";
1616
import moment from "moment-timezone";
1717
import { performance } from "perf_hooks";
1818
import process from "process";
@@ -293,7 +293,7 @@ connect().then(async () => {
293293
const allowedGuilds = new AllowedGuilds();
294294
const guildConfigs = new Configs();
295295

296-
const bot = new Knub(client, {
296+
const bot = new Vety(client, {
297297
guildPlugins: availableGuildPlugins.map((obj) => obj.plugin),
298298
globalPlugins: availableGlobalPlugins.map((obj) => obj.plugin),
299299

@@ -306,7 +306,7 @@ connect().then(async () => {
306306
* Plugins are enabled if they...
307307
* - are marked to be autoloaded, or
308308
* - are explicitly enabled in the guild config
309-
* Dependencies are also automatically loaded by Knub.
309+
* Dependencies are also automatically loaded by Vety.
310310
*/
311311
async getEnabledGuildPlugins(ctx, plugins): Promise<string[]> {
312312
if (!ctx.config || !ctx.config.plugins) {

backend/src/pluginUtils.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import {
2828
GuildPluginData,
2929
helpers,
3030
PluginConfigManager,
31-
} from "knub";
31+
Vety,
32+
} from "vety";
3233
import { z } from "zod";
3334
import { isStaff } from "./staff.js";
34-
import { TZeppelinKnub } from "./types.js";
3535
import { Tail } from "./utils/typeUtils.js";
3636

3737
const { getMemberLevel } = helpers;
@@ -168,7 +168,7 @@ export async function getConfigForContext<TPluginData extends BasePluginData<any
168168
context: GenericCommandSource,
169169
): Promise<z.output<TPluginData["_pluginType"]["configSchema"]>> {
170170
if (context instanceof ChatInputCommandInteraction) {
171-
// TODO: Support for modal interactions (here and Knub)
171+
// TODO: Support for modal interactions (here and Vety)
172172
return config.getForInteraction(context);
173173
}
174174
const channel = await getContextChannel(context);
@@ -181,15 +181,15 @@ export async function getConfigForContext<TPluginData extends BasePluginData<any
181181
}
182182

183183
export function getBaseUrl(pluginData: AnyPluginData<any>) {
184-
const knub = pluginData.getKnubInstance() as TZeppelinKnub;
184+
const vety = pluginData.getVetyInstance() as Vety;
185185
// @ts-expect-error
186-
return knub.getGlobalConfig().url;
186+
return vety.getGlobalConfig().url;
187187
}
188188

189189
export function isOwner(pluginData: AnyPluginData<any>, userId: string) {
190-
const knub = pluginData.getKnubInstance() as TZeppelinKnub;
190+
const vety = pluginData.getVetyInstance() as Vety;
191191
// @ts-expect-error
192-
const owners = knub.getGlobalConfig()?.owners;
192+
const owners = vety.getGlobalConfig()?.owners;
193193
if (!owners) {
194194
return false;
195195
}

backend/src/plugins/AutoDelete/AutoDeletePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { guildPlugin } from "knub";
1+
import { guildPlugin } from "vety";
22
import { GuildLogs } from "../../data/GuildLogs.js";
33
import { GuildSavedMessages } from "../../data/GuildSavedMessages.js";
44
import { LogsPlugin } from "../Logs/LogsPlugin.js";

backend/src/plugins/AutoDelete/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BasePluginType } from "knub";
1+
import { BasePluginType } from "vety";
22
import { z } from "zod";
33
import { GuildLogs } from "../../data/GuildLogs.js";
44
import { GuildSavedMessages } from "../../data/GuildSavedMessages.js";

backend/src/plugins/AutoDelete/util/addMessageToDeletionQueue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GuildPluginData } from "knub";
1+
import { GuildPluginData } from "vety";
22
import { SavedMessage } from "../../../data/entities/SavedMessage.js";
33
import { sorter } from "../../../utils.js";
44
import { AutoDeletePluginType } from "../types.js";

0 commit comments

Comments
 (0)