This repository has been archived on 2022-10-14. You can view files and clone it, but cannot push or open issues/pull-requests.
melonybot/commands/ivy.js

25 lines
661 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

let { Command } = require("discord-akairo")
module.exports = class extends Command {
constructor() {
super("ivy", {
aliases: ["ivy"],
description: "@s the person with the discord id:(346862223135735808) and dms them with a heart and I love you message.",
typing: true,
ownerOnly: true
})
}
async exec(message, args) {
let ivy = await message.client.users.fetch('346862223135735808')
if (ivy) {
try {
await ivy.send(`:heart: I love you`)
await message.channel.send(ivy.toString())
} catch (error) {
await message.channel.send("I can't dm Ivy :cry:")
}
}
else await message.reply("I can't find Ivy :cry:")
}
}