summaryrefslogtreecommitdiff
path: root/src/commands/user
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-29 04:36:14 -0700
committer8cy <[email protected]>2020-04-29 04:36:14 -0700
commit68d32ab1fa9c79e848038ca1c451e7d8f368531b (patch)
tree6142669ecc054e8a94bad4723dc6fb5c83f8cee1 /src/commands/user
parentThe Return, v8.2.0 (diff)
downloaddep-core-68d32ab1fa9c79e848038ca1c451e7d8f368531b.tar.xz
dep-core-68d32ab1fa9c79e848038ca1c451e7d8f368531b.zip
Cerasus, v9.0.0
basically just add an insane amount of things - all new animal commands - waifu cmds - change/ move clientid, invite, uwufy, support, howify, say, pfp - add ip, security key, vote, datefacts, githubzen, fmk, fml, offsptring, facts, rate, opinion, onion, quantum coin, rolldie, romannumerals, russianrullete, smashorpass, spoiler, sub - minecraft cmds - SERVER check cmds - lewd cmds - roleplay commands - fun commands and games - utils
Diffstat (limited to 'src/commands/user')
-rw-r--r--src/commands/user/age.ts40
-rw-r--r--src/commands/user/id.ts32
-rw-r--r--src/commands/user/nitro.ts30
-rw-r--r--src/commands/user/pfp.ts2
4 files changed, 103 insertions, 1 deletions
diff --git a/src/commands/user/age.ts b/src/commands/user/age.ts
new file mode 100644
index 0000000..0ba4515
--- /dev/null
+++ b/src/commands/user/age.ts
@@ -0,0 +1,40 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import emoji from 'emoji-random'
+import { formatDistance, formatRelative } from 'date-fns'
+import { stripIndents } from 'common-tags'
+
+module.exports = class AgeFun extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'age',
+ aliases: [
+ 'account-age',
+ 'accountage'
+ ],
+ group: 'fun',
+ memberName: 'age',
+ description: 'Checks when a specified Discord account was created.',
+ examples: ['uwu!age', 'uwu!age @sin#1337'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ args: [
+ {
+ key: 'uUser',
+ prompt: 'Who\'s age would you like to check?',
+ type: 'user',
+ default: ''
+ }
+ ]
+ });
+ }
+ async run(msg: CommandoMessage, { uUser }) {
+ const target = uUser || msg.author
+ const { createdAt } = target
+ msg.reply(stripIndents`${formatDistance(createdAt, new Date())} old.
+ Created on ${formatRelative(createdAt, new Date())}`)
+ }
+}; \ No newline at end of file
diff --git a/src/commands/user/id.ts b/src/commands/user/id.ts
new file mode 100644
index 0000000..b5d9060
--- /dev/null
+++ b/src/commands/user/id.ts
@@ -0,0 +1,32 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import emoji from 'emoji-random';
+import { MessageEmbed } from 'discord.js';
+
+module.exports = class IDUser extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'id',
+ group: 'user',
+ memberName: 'id',
+ description: 'Tells you the your ID.',
+ examples: ['uwu!id'],
+ userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ args: [
+ {
+ key: 'uUser',
+ prompt: 'Which user would you like to get the ID of?',
+ type: 'user',
+ default: msg => msg.author
+ }
+ ]
+ });
+ }
+ run(msg: CommandoMessage, { uUser }) {
+ msg.reply(`**${uUser.id === msg.author.id ? 'Your' : `${uUser.username}'s`}** ID is **${uUser.id}**. ${emoji.random()}`)
+ }
+}; \ No newline at end of file
diff --git a/src/commands/user/nitro.ts b/src/commands/user/nitro.ts
new file mode 100644
index 0000000..1302a0a
--- /dev/null
+++ b/src/commands/user/nitro.ts
@@ -0,0 +1,30 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import { MessageEmbed } from 'discord.js';
+import { stripIndents } from 'common-tags'
+
+module.exports = class NitroUser extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'nitro',
+ group: 'user',
+ memberName: 'nitro',
+ description: 'This message can only be viewed by users with Discord Nitro.',
+ examples: ['uwu!nitro'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ }
+ });
+ }
+ run(msg: CommandoMessage) {
+ let emb = new MessageEmbed()
+ .setColor(0xFFCC4D)
+ .setAuthor('Discord Nitro', 'https://cdn.discordapp.com/emojis/314068430611415041.png', 'https://discordapp.com/nitro')
+ .setThumbnail('https://cdn.discordapp.com/emojis/314068430611415041.png')
+ .setTimestamp(new Date())
+ .setDescription(stripIndents`
+ This message can only be viewed by users with Discord Nitro.
+ [Lift off with Discord Nitro today](https://discordapp.com/nitro)`)
+ msg.say(emb)
+ }
+}; \ No newline at end of file
diff --git a/src/commands/user/pfp.ts b/src/commands/user/pfp.ts
index 6efba76..f4fdee5 100644
--- a/src/commands/user/pfp.ts
+++ b/src/commands/user/pfp.ts
@@ -39,7 +39,7 @@ module.exports = class PFPServer extends Command {
.setColor(0xFFCC4D)
.setTitle(`${msg.mentions.users.first()?.username}'s Profile Picture ` + emoji.random())
.setImage(user.avatarURL())
- msg.reply(emb)
+ msg.say(emb)
})
}
}; \ No newline at end of file