Skip to content

Commit

Permalink
ok added gay command 🥰
Browse files Browse the repository at this point in the history
  • Loading branch information
raluvy95 committed Apr 12, 2023
1 parent 3213ef2 commit 8014458
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/commands/fun/gay.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Message, User } from "eris";
import { client } from "../../client/Client";
import { MovCommand } from "../../client/Command";
import { MovEmbed } from "../../client/Embed";
import { getUser } from "../../utils/get";

async function generator(msg: Message, args: string[]) {

let author: User | undefined = msg.author

if (args.length != 0) {
author = await getUser(msg, args.join(" "))
if (!author) {
author = msg.author
}
}

const e = new MovEmbed()
.setTimestamp(undefined)
.setDesc(`${author.username} is **${Math.floor(Math.random() * 100)}%** gay! 🏳️‍🌈`)
.build()
client.createMessage(msg.channel.id, e)
}

class Gay extends MovCommand {
constructor() {
super("gay", generator, {
aliases: ["homo", "homosexual"]
})
}
}

export default new Gay();

0 comments on commit 8014458

Please sign in to comment.