summaryrefslogtreecommitdiff
path: root/fix/fun
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-23 23:24:17 -0700
committer8cy <[email protected]>2020-07-23 23:24:17 -0700
commitbb511abc03bb66848947e37a999502b813c77269 (patch)
tree612c010fc8317e1cdf11471a18aad0270819d33e /fix/fun
parentfix: if clear amount equal or over 100, round down to 99 (diff)
downloaddep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz
dep-core-bb511abc03bb66848947e37a999502b813c77269.zip
goodbye old uwufier :cry:
Diffstat (limited to 'fix/fun')
-rw-r--r--fix/fun/dm.ts63
1 files changed, 0 insertions, 63 deletions
diff --git a/fix/fun/dm.ts b/fix/fun/dm.ts
deleted file mode 100644
index 73fa0b6..0000000
--- a/fix/fun/dm.ts
+++ /dev/null
@@ -1,63 +0,0 @@
-// TODO: remove mention from final msg
-
-import { Command, CommandoMessage } from 'discord.js-commando';
-import { MessageEmbed } from 'discord.js';
-
-module.exports = class DMFun extends Command {
- constructor(client) {
- super(client, {
- name: 'dm',
- aliases: [
- 'directmessage',
- 'directmsg',
- 'direct-message',
- 'direct-msg'
- ],
- group: 'fun',
- memberName: 'dm',
- description: 'Allows you to DM somebody as the bot.',
- guildOnly: true,
- args: [
- {
- key: 'msgContent',
- prompt: 'What message would you like to send?',
- type: 'string'
- }
- ],
- examples: [
- 'uwu!dm @sin#1337 hi',
- 'uwu!directmessage @sin#1337 hey',
- 'uwu!directmsg @sin#1337 hello',
- 'uwu!direct-message @sin#1337 yo',
- 'uwu!direct-msg @sin#1337 aye',
- ],
- userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'ADMINISTRATOR'],
- clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY']
- });
- }
- run(msg: CommandoMessage, { msgContent }) {
- if (msg.author.id == '217348698294714370') {
- if (!msg.mentions.users.first() && msgContent) {
- msg.reply('You haven\'t specified anyone to send a message to.');
- } else {
- var sendTo = msg.mentions.users.first().id;
- var d = new Date(msg.createdTimestamp);
-
- msg.guild.members.fetch(sendTo).then(messageUser => {
- messageUser.send(msgContent);
-
- var emb = new MessageEmbed()
- .setColor(0xFFCC4D)
- .setTitle('uwufier - DM')
- .addField('Message content', `${msgContent}`)
- .addField('Recipient', `${msg.mentions.users.first()}`)
- .addField('Sender', `${msg.author}`)
- .addField('Time sent', `Now`)
- msg.say(emb)
- });
- }
- } else {
- msg.reply('Insufficent permissions.');
- }
- }
-}; \ No newline at end of file