Skip to content

Commit bc9dcc1

Browse files
committed
Added more slash image commands as well as restructure to adhere to discord's limits
1 parent 25b8372 commit bc9dcc1

File tree

24 files changed

+530
-164
lines changed

24 files changed

+530
-164
lines changed
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import { Interaction } from 'detritus-client';
2-
3-
import { Formatter } from '../../../../utils';
4-
5-
import { BaseInteractionImageCommandOption } from '../../basecommand';
6-
7-
8-
export const COMMAND_NAME = 'blur';
9-
10-
export class ImageBlurCommand extends BaseInteractionImageCommandOption {
11-
description = 'Blur an Image';
12-
metadata = {
13-
id: Formatter.Commands.ImageBlur.COMMAND_ID,
14-
};
15-
name = COMMAND_NAME;
16-
17-
constructor() {
18-
super({
19-
options: [
20-
{name: 'scale', description: 'Blur Scale', type: Number},
21-
],
22-
});
23-
}
24-
25-
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageBlur.CommandArgs) {
26-
return Formatter.Commands.ImageBlur.createMessage(context, args);
27-
}
28-
}
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'blur';
9+
10+
export class ImageBlurCommand extends BaseInteractionImageCommandOption {
11+
description = 'Blur an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageBlur.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
{name: 'scale', description: 'Blur Scale', type: Number},
21+
],
22+
});
23+
}
24+
25+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageBlur.CommandArgs) {
26+
return Formatter.Commands.ImageBlur.createMessage(context, args);
27+
}
28+
}
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import { Interaction } from 'detritus-client';
2-
3-
import { Formatter } from '../../../../utils';
4-
5-
import { BaseInteractionImageCommandOption } from '../../basecommand';
6-
7-
8-
export const COMMAND_NAME = 'circle';
9-
10-
export class ImageCircleCommand extends BaseInteractionImageCommandOption {
11-
description = 'Put a Radial Blur on an Image';
12-
metadata = {
13-
id: Formatter.Commands.ImageCircle.COMMAND_ID,
14-
};
15-
name = COMMAND_NAME;
16-
17-
constructor() {
18-
super({
19-
options: [
20-
{name: 'scale', description: 'Blur Scale', type: Number},
21-
],
22-
});
23-
}
24-
25-
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageCircle.CommandArgs) {
26-
return Formatter.Commands.ImageCircle.createMessage(context, args);
27-
}
28-
}
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'circle';
9+
10+
export class ImageCircleCommand extends BaseInteractionImageCommandOption {
11+
description = 'Put a Radial Blur on an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageCircle.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
{name: 'scale', description: 'Blur Scale', type: Number},
21+
],
22+
});
23+
}
24+
25+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageCircle.CommandArgs) {
26+
return Formatter.Commands.ImageCircle.createMessage(context, args);
27+
}
28+
}
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import { Interaction } from 'detritus-client';
2-
3-
import { Formatter } from '../../../../utils';
4-
5-
import { BaseInteractionImageCommandOption } from '../../basecommand';
6-
7-
8-
export const COMMAND_NAME = 'deepfry';
9-
10-
export class ImageDeepfryCommand extends BaseInteractionImageCommandOption {
11-
description = 'Deepfry an Image';
12-
metadata = {
13-
id: Formatter.Commands.ImageDeepfry.COMMAND_ID,
14-
};
15-
name = COMMAND_NAME;
16-
17-
constructor() {
18-
super({
19-
options: [
20-
{name: 'scale', description: 'Deepfry Scale', type: Number},
21-
],
22-
});
23-
}
24-
25-
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageDeepfry.CommandArgs) {
26-
return Formatter.Commands.ImageDeepfry.createMessage(context, args);
27-
}
28-
}
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'deepfry';
9+
10+
export class ImageDeepfryCommand extends BaseInteractionImageCommandOption {
11+
description = 'Deepfry an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageDeepfry.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
{name: 'scale', description: 'Deepfry Scale', type: Number},
21+
],
22+
});
23+
}
24+
25+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageDeepfry.CommandArgs) {
26+
return Formatter.Commands.ImageDeepfry.createMessage(context, args);
27+
}
28+
}
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
import { Interaction } from 'detritus-client';
2-
3-
import { Formatter } from '../../../../utils';
4-
5-
import { BaseInteractionImageCommandOption } from '../../basecommand';
6-
7-
8-
export const COMMAND_NAME = 'explode';
9-
10-
export class ImageExplodeCommand extends BaseInteractionImageCommandOption {
11-
description = 'Explode an Image from the center';
12-
metadata = {
13-
id: Formatter.Commands.ImageExplode.COMMAND_ID,
14-
};
15-
name = COMMAND_NAME;
16-
17-
constructor() {
18-
super({
19-
options: [
20-
{name: 'scale', description: 'Explode Scale', type: Number},
21-
],
22-
});
23-
}
24-
25-
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageExplode.CommandArgs) {
26-
return Formatter.Commands.ImageExplode.createMessage(context, args);
27-
}
28-
}
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'explode';
9+
10+
export class ImageExplodeCommand extends BaseInteractionImageCommandOption {
11+
description = 'Explode an Image from the center';
12+
metadata = {
13+
id: Formatter.Commands.ImageExplode.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
{name: 'scale', description: 'Explode Scale', type: Number},
21+
],
22+
});
23+
}
24+
25+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageExplode.CommandArgs) {
26+
return Formatter.Commands.ImageExplode.createMessage(context, args);
27+
}
28+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'glitch';
9+
10+
export class ImageGlitchCommand extends BaseInteractionImageCommandOption {
11+
description = 'Glitch an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageGlitch.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageGlitch.CommandArgs) {
18+
return Formatter.Commands.ImageGlitch.createMessage(context, args);
19+
}
20+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'implode';
9+
10+
export class ImageImplodeCommand extends BaseInteractionImageCommandOption {
11+
description = 'Implode an Image from the center';
12+
metadata = {
13+
id: Formatter.Commands.ImageImplode.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
{name: 'scale', description: 'Implode Scale', type: Number},
21+
],
22+
});
23+
}
24+
25+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageImplode.CommandArgs) {
26+
return Formatter.Commands.ImageImplode.createMessage(context, args);
27+
}
28+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { BaseInteractionCommandOptionGroup } from '../../../basecommand';
2+
3+
import { ImageBlurCommand } from './blur';
4+
import { ImageCircleCommand } from './circle';
5+
import { ImageDeepfryCommand } from './deepfry';
6+
import { ImageExplodeCommand } from './explode';
7+
import { ImageGlitchCommand } from './glitch';
8+
import { ImageImplodeCommand } from './implode';
9+
import { ImageLegofyCommand } from './legofy';
10+
import { ImageMagikCommand } from './magik';
11+
import { ImagePixelateCommand } from './pixelate';
12+
import { ImageWallCommand } from './wall';
13+
14+
15+
export class ImageFunGroupCommand extends BaseInteractionCommandOptionGroup {
16+
description = '.';
17+
name = 'fun';
18+
19+
constructor() {
20+
super({
21+
options: [
22+
new ImageBlurCommand(),
23+
new ImageCircleCommand(),
24+
new ImageDeepfryCommand(),
25+
new ImageExplodeCommand(),
26+
new ImageGlitchCommand(),
27+
new ImageImplodeCommand(),
28+
new ImageLegofyCommand(),
29+
new ImageMagikCommand(),
30+
new ImagePixelateCommand(),
31+
new ImageWallCommand(),
32+
],
33+
});
34+
}
35+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'legofy';
9+
10+
export class ImageLegofyCommand extends BaseInteractionImageCommandOption {
11+
description = 'Legofy an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageLegofy.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
// add palette
21+
{name: 'dither', description: 'Add Random Noise', type: Boolean},
22+
{name: 'size', description: 'Size of each Lego Block', type: Number},
23+
],
24+
});
25+
}
26+
27+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageLegofy.CommandArgs) {
28+
return Formatter.Commands.ImageLegofy.createMessage(context, args);
29+
}
30+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'magik';
9+
10+
export class ImageMagikCommand extends BaseInteractionImageCommandOption {
11+
description = 'Magikfy an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageMagik.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImageMagik.CommandArgs) {
18+
return Formatter.Commands.ImageMagik.createMessage(context, args);
19+
}
20+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Interaction } from 'detritus-client';
2+
3+
import { Formatter } from '../../../../../utils';
4+
5+
import { BaseInteractionImageCommandOption } from '../../../basecommand';
6+
7+
8+
export const COMMAND_NAME = 'pixelate';
9+
10+
export class ImagePixelateCommand extends BaseInteractionImageCommandOption {
11+
description = 'Pixelate an Image';
12+
metadata = {
13+
id: Formatter.Commands.ImageLegofy.COMMAND_ID,
14+
};
15+
name = COMMAND_NAME;
16+
17+
constructor() {
18+
super({
19+
options: [
20+
{name: 'width', description: 'Size of each pixel', type: Number},
21+
],
22+
});
23+
}
24+
25+
async run(context: Interaction.InteractionContext, args: Formatter.Commands.ImagePixelate.CommandArgs) {
26+
return Formatter.Commands.ImagePixelate.createMessage(context, args);
27+
}
28+
}

0 commit comments

Comments
 (0)