fart plugin is real
Signed-off-by: duke dennis <duke@splt.dev>
This commit is contained in:
commit
653c8479c8
1 changed files with 82 additions and 0 deletions
82
index.ts
Normal file
82
index.ts
Normal file
|
@ -0,0 +1,82 @@
|
|||
/*
|
||||
* Vencord, a Discord client mod
|
||||
* Copyright (c) 2024 Vendicated and contributors
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
import { ApplicationCommandOptionType } from "@api/Commands/types.js";
|
||||
import { makeRange } from "@components/PluginSettings/components/SettingSliderComponent.jsx";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { UserStore } from "@webpack/common";
|
||||
|
||||
import { Settings } from "../../Vencord.js";
|
||||
|
||||
export default definePlugin({
|
||||
name: "fart",
|
||||
description: "Fart Plugin Is Finally Here‼️",
|
||||
authors: [{
|
||||
id: 728342296696979526n,
|
||||
name: "splatter"
|
||||
}],
|
||||
commands: [
|
||||
{
|
||||
name: "fart",
|
||||
description: "This command allows you to expel a toot or kindly request that a Discord™ user farts for you.",
|
||||
options: [{
|
||||
name: "user",
|
||||
description: "The Discord™ user to request a toot from",
|
||||
type: ApplicationCommandOptionType.USER,
|
||||
required: false
|
||||
}],
|
||||
execute(args) {
|
||||
const fart = new Audio("https://raw.githubusercontent.com/ItzOnlyAnimal/AliuPlugins/main/fart.mp3");
|
||||
fart.volume = Settings.plugins.fart.volume;
|
||||
fart.play();
|
||||
|
||||
return {
|
||||
content: (args[0]) ? `<@${args[0].value}> fart` : "fart"
|
||||
};
|
||||
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "betterfart2",
|
||||
description: "A new and improved version of the old and inferior /betterfart command",
|
||||
options: [{
|
||||
name: "user",
|
||||
description: "The Discord™ to kindly implore upon to send a fart your way",
|
||||
type: ApplicationCommandOptionType.USER,
|
||||
required: true
|
||||
}],
|
||||
execute(args) {
|
||||
const fart = new Audio("https://raw.githubusercontent.com/ItzOnlyAnimal/AliuPlugins/main/fart.mp3");
|
||||
fart.volume = Settings.plugins.fart.volume;
|
||||
fart.play();
|
||||
|
||||
const user = UserStore.getCurrentUser();
|
||||
|
||||
return {
|
||||
content: `My dear fellow Discord user <@${args[0].value}>, would you be so kind as to, in due course, without interrupting or interfering with your normal duties, emit a toot in my general direction? I would greatly appreciate it. I look forward to a reply at your earliest convenience. Kind regards, <@${user.id}>`
|
||||
};
|
||||
}
|
||||
},
|
||||
{
|
||||
name: "venmybeloved",
|
||||
description: "VEN HOW DO I GET FREE NITRO.",
|
||||
execute() {
|
||||
return {
|
||||
content: "veeee 😭"
|
||||
};
|
||||
}
|
||||
}
|
||||
],
|
||||
options: {
|
||||
volume: {
|
||||
description: "how putrid and loud your toot will be",
|
||||
type: OptionType.SLIDER,
|
||||
markers: makeRange(0, 1, 0.1),
|
||||
default: 0.5,
|
||||
stickToMarkers: false,
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in a new issue