fart: lazy Audio, moyai: fix cors issues
This commit is contained in:
parent
0d996633f2
commit
c8d87da62d
2 changed files with 6 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
||||||
import { ApplicationCommandOptionType } from "../api/Commands";
|
import { ApplicationCommandOptionType } from "../api/Commands";
|
||||||
import { Devs } from "../utils/constants";
|
import { Devs } from "../utils/constants";
|
||||||
import definePlugin from "../utils/types";
|
import definePlugin from "../utils/types";
|
||||||
|
import { makeLazy } from "../utils/misc";
|
||||||
const sound = { fart: new Audio("https://raw.githubusercontent.com/ItzOnlyAnimal/AliuPlugins/main/fart.mp3") };
|
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "Fart2",
|
name: "Fart2",
|
||||||
|
@ -22,8 +21,10 @@ export default definePlugin({
|
||||||
],
|
],
|
||||||
|
|
||||||
execute(args) {
|
execute(args) {
|
||||||
sound.fart.volume = 0.3;
|
const fart = new Audio("https://raw.githubusercontent.com/ItzOnlyAnimal/AliuPlugins/main/fart.mp3");
|
||||||
sound.fart.play();
|
fart.volume = 0.3;
|
||||||
|
fart.play();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
content: (args[0]) ? `<@${args[0].value}> fart` : "fart"
|
content: (args[0]) ? `<@${args[0].value}> fart` : "fart"
|
||||||
};
|
};
|
||||||
|
|
|
@ -23,7 +23,7 @@ interface IReactionAdd {
|
||||||
|
|
||||||
const MOYAI = "🗿";
|
const MOYAI = "🗿";
|
||||||
const MOYAI_URL =
|
const MOYAI_URL =
|
||||||
"https://github.com/MeguminSama/VencordPlugins/raw/main/plugins/moyai/moyai.mp3";
|
"https://raw.githubusercontent.com/MeguminSama/VencordPlugins/main/plugins/moyai/moyai.mp3";
|
||||||
|
|
||||||
// Implement once Settings are a thing
|
// Implement once Settings are a thing
|
||||||
const ignoreBots = true;
|
const ignoreBots = true;
|
||||||
|
|
Loading…
Reference in a new issue