summaryrefslogtreecommitdiff
path: root/src/commands/bot/npm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/bot/npm.ts')
-rw-r--r--src/commands/bot/npm.ts26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/commands/bot/npm.ts b/src/commands/bot/npm.ts
new file mode 100644
index 0000000..fcb84a5
--- /dev/null
+++ b/src/commands/bot/npm.ts
@@ -0,0 +1,26 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import emoji from 'emoji-random';
+import { MessageEmbed } from 'discord.js';
+
+module.exports = class NPMBot extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'npm',
+ group: 'bot',
+ memberName: 'npm',
+ description: 'Gives you a link to the bot author\'s (Sin) NPM profile.',
+ examples: ['uwu!npm'],
+ userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ });
+ }
+ run(msg: CommandoMessage) {
+ let emb = new MessageEmbed()
+ .setDescription(`Here is <@217348698294714370>'s [NPM profile](https://www.npmjs.com/~sinny). ${emoji.random()}`)
+ msg.say(emb)
+ }
+}; \ No newline at end of file