From ed53a03979bd30a774bf6ea766977fcf21355253 Mon Sep 17 00:00:00 2001 From: Killian Date: Fri, 28 Aug 2020 21:12:15 +0200 Subject: [PATCH] Added like and/remove event + fixed folowRequest --- Events/followRequest.js | 2 +- Events/likeAdd.js | 9 +++++++++ Events/likeRemove.js | 9 +++++++++ package.json | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 Events/likeAdd.js create mode 100644 Events/likeRemove.js diff --git a/Events/followRequest.js b/Events/followRequest.js index 0f35b0b..4e03efb 100644 --- a/Events/followRequest.js +++ b/Events/followRequest.js @@ -4,7 +4,7 @@ module.exports = class { } async emit(user) { - console.log(`${user.fullName} (${username}) wants to follow you.`) + console.log(`${user.fullName} (${user.username}) wants to follow you.`) user.approveFollow(); } } diff --git a/Events/likeAdd.js b/Events/likeAdd.js new file mode 100644 index 0000000..53fb06f --- /dev/null +++ b/Events/likeAdd.js @@ -0,0 +1,9 @@ +module.exports = class { + constructor(client) { + this.client = client; + } + + async emit(user, message) { + console.log(`${user.fullName} (${user.username}) liked a message from ${message.author.fullName} (${message.author.username})`) + } +} diff --git a/Events/likeRemove.js b/Events/likeRemove.js new file mode 100644 index 0000000..6fa0a73 --- /dev/null +++ b/Events/likeRemove.js @@ -0,0 +1,9 @@ +module.exports = class { + constructor(client) { + this.client = client; + } + + async emit(user, message) { + console.log(`${user.fullName} (${user.username}) disliked a message from ${message.author.fullName} (${message.author.username})`) + } +} diff --git a/package.json b/package.json index 3c3b89b..f6e8a18 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "author": "Mr¤KayJayDee (https://github.com/Mr-KayJayDee)", "license": "MIT", "dependencies": { - "@androz2091/insta.js": "github:androz2091/insta.js#develop", + "@androz2091/insta.js": "github:androz2091/insta.js", "@discordjs/collection": "^0.1.6", "chalk": "^4.1.0", "discord-image-generation": "^1.3.7",