summaryrefslogtreecommitdiff
path: root/commands/fun/emoji.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/fun/emoji.js')
-rw-r--r--commands/fun/emoji.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/commands/fun/emoji.js b/commands/fun/emoji.js
new file mode 100644
index 0000000..ab3e47c
--- /dev/null
+++ b/commands/fun/emoji.js
@@ -0,0 +1,21 @@
+const emoji = require('emoji-random');
+const { Command } = require('discord.js-commando');
+
+module.exports = class EmojiFun extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'emoji',
+ aliases: ['moji'],
+ group: 'fun',
+ memberName: 'emoji',
+ description: 'gives u a random emoji',
+ throttling: {
+ usages: 5,
+ duration: 30
+ }
+ });
+ }
+ run(msg) {
+ msg.reply(emoji.random());
+ }
+}; \ No newline at end of file