Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
configでImagesを切れるように
Browse files Browse the repository at this point in the history
  • Loading branch information
takejohn committed May 2, 2024
1 parent 31901a6 commit b5f1845
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"features": {
"admin": true,
"cdn": true,
"images": true,
"misc": true,
"player": true,
"templink": true,
Expand Down
1 change: 1 addition & 0 deletions core/internal/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const configSchema = z
.object({
admin: z.boolean().optional(),
cdn: z.boolean().optional(),
images: z.boolean().optional(),
misc: z.boolean().optional(),
player: z.boolean().optional(),
templink: z.boolean().optional(),
Expand Down
4 changes: 2 additions & 2 deletions packages/images/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { CommandManager, Feature } from 'core';
import { CommandManager, Config, Feature } from 'core';
import { registerConfiguredFont } from './util/canvasUtils';
import { Client } from 'discord.js';
import path from 'path';

class ImagesFeature extends Feature {
enabled: boolean = true;
enabled: boolean = Config.features?.images ?? true;

name: string = 'images';

Expand Down

0 comments on commit b5f1845

Please sign in to comment.