summaryrefslogtreecommitdiff
path: root/src/commands/user
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 /src/commands/user
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 'src/commands/user')
-rw-r--r--src/commands/user/age.ts42
-rw-r--r--src/commands/user/id.ts32
-rw-r--r--src/commands/user/nickname.ts36
-rw-r--r--src/commands/user/nitro.ts31
-rw-r--r--src/commands/user/pfp.ts45
5 files changed, 0 insertions, 186 deletions
diff --git a/src/commands/user/age.ts b/src/commands/user/age.ts
deleted file mode 100644
index 13ead86..0000000
--- a/src/commands/user/age.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-//@ts-ignore no types
-import emoji from 'emoji-random'
-import { formatDistance, formatRelative } from 'date-fns'
-//@ts-ignore no types
-import { stripIndents } from 'common-tags'
-
-module.exports = class AgeUser extends Command {
- constructor(client: CommandoClient) {
- super(client, {
- name: 'age',
- aliases: [
- 'account-age',
- 'accountage'
- ],
- group: 'user',
- 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 }: any) {
- const target = uUser || msg.author
- const { createdAt } = target
- return msg.reply(stripIndents`${formatDistance(createdAt, new Date())} old.
- Created on ${formatRelative(createdAt, new Date())} ${emoji.random()}`)
- }
-}; \ No newline at end of file
diff --git a/src/commands/user/id.ts b/src/commands/user/id.ts
deleted file mode 100644
index a4d974d..0000000
--- a/src/commands/user/id.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-//@ts-ignore no types
-import emoji from 'emoji-random';
-
-module.exports = class IDUser extends Command {
- constructor(client: CommandoClient) {
- 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: { author: any; }) => msg.author
- }
- ]
- });
- }
- run(msg: CommandoMessage, { uUser }: any) {
- return 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/nickname.ts b/src/commands/user/nickname.ts
deleted file mode 100644
index 09cf717..0000000
--- a/src/commands/user/nickname.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-/* import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-//@ts-ignore no types
-import emoji from 'emoji-random';
-
-module.exports = class NickNameUser extends Command {
- constructor(client: CommandoClient) {
- super(client, {
- name: 'nickname',
- aliases: ['nick', 'name'],
- group: 'user',
- memberName: 'nickname',
- description: 'Allows you to change your nickname in the current server.',
- args: [
- {
- key: 'userNick',
- prompt: 'What would you like to change your nickname to?',
- type: 'string'
- }
- ],
- examples: [
- 'uwu!nickname sinny',
- 'uwu!nick s1nical',
- 'uwu!name s1n'
- ],
- throttling: {
- usages: 5,
- duration: 30
- },
- guildOnly: true
- });
- }
- run(msg: CommandoMessage, { userNick }: any) {
- msg.member.setNickname(userNick)
- return msg.reply(`Your nickname has been changed to ${userNick}. ` + emoji.random())
- }
-}; */ \ No newline at end of file
diff --git a/src/commands/user/nitro.ts b/src/commands/user/nitro.ts
deleted file mode 100644
index a54eb38..0000000
--- a/src/commands/user/nitro.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
-import { MessageEmbed } from 'discord.js';
-//@ts-ignore no types
-import { stripIndents } from 'common-tags'
-
-module.exports = class NitroUser extends Command {
- constructor(client: CommandoClient) {
- 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)`)
- return msg.say(emb)
- }
-}; \ No newline at end of file
diff --git a/src/commands/user/pfp.ts b/src/commands/user/pfp.ts
deleted file mode 100644
index ac26a26..0000000
--- a/src/commands/user/pfp.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { Command, CommandoMessage } from 'discord.js-commando';
-import { MessageEmbed } from 'discord.js';
-import emoji from 'emoji-random';
-
-module.exports = class PFPServer extends Command {
- constructor(client) {
- super(client, {
- name: 'pfp',
- aliases: [
- 'profilepicture',
- 'profile-picture',
- 'profileimage',
- 'profile-image',
- 'avatar',
- 'avi'
- ],
- group: 'user',
- memberName: 'pfp',
- description: 'Grabs the profile picture of a specified user.',
- args: [
- {
- key: 'userID',
- prompt: 'Which user\'s profile picture would you like to grab?',
- type: 'string'
- }
- ],
- examples: ['uwu!pfp @sin#1337'],
- throttling: {
- usages: 5,
- duration: 30
- },
- guildOnly: true
- });
- }
- run(msg: CommandoMessage, { userID } ) {
- userID = msg.mentions.users.first()?.id;
- this.client.users.fetch(userID).then(user => {
- let emb = new MessageEmbed()
- .setColor(0xFFCC4D)
- .setTitle(`${msg.mentions.users.first()?.username}'s Profile Picture ` + emoji.random())
- .setImage(user.avatarURL())
- msg.say(emb)
- })
- }
-}; \ No newline at end of file