mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 21:53:04 -04:00
feat: rename CuteAnimeGirls plugin to Memes and update functionality to send Reddit memes
This commit is contained in:
parent
3b7e853eb0
commit
8edb31478e
1 changed files with 6 additions and 15 deletions
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
import { EquicordDevs } from "@utils/constants";
|
import { EquicordDevs } from "@utils/constants";
|
||||||
|
|
||||||
import { ApplicationCommandOptionType } from "../../api/Commands";
|
|
||||||
import definePlugin from "../../utils/types";
|
import definePlugin from "../../utils/types";
|
||||||
|
|
||||||
function rand(min, max) {
|
function rand(min, max) {
|
||||||
|
@ -28,27 +27,19 @@ async function fetchReddit(sub: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "CuteAnimeGirls",
|
name: "Memes",
|
||||||
authors: [EquicordDevs.ShadyGoat],
|
authors: [EquicordDevs.ShadyGoat],
|
||||||
description: "Add a command to send cute anime girls in the chat",
|
description: "Add a command to send Reddit memes in the chat (I know its not the best)",
|
||||||
commands: [{
|
commands: [{
|
||||||
name: "anime-girls",
|
name: "memes",
|
||||||
description: "Send cute anime girls",
|
description: "Send Reddit memes",
|
||||||
options: [
|
|
||||||
{
|
|
||||||
name: "cat",
|
|
||||||
description: "If set, this will send exclusively cute anime cat girls",
|
|
||||||
type: ApplicationCommandOptionType.BOOLEAN,
|
|
||||||
required: false,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
async execute(args) {
|
async execute(args) {
|
||||||
let sub = "cuteanimeboys";
|
let sub = "memes";
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
const v = args[0].value as any as boolean;
|
const v = args[0].value as any as boolean;
|
||||||
if (v) {
|
if (v) {
|
||||||
sub = "animecatboys";
|
sub = "memes";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue