Compare commits

..

2 commits

Author SHA1 Message Date
2f3ff092c2 updated packages
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
2020-11-11 01:55:18 +01:00
9eb3005211 intents, fetch all members
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
2020-11-11 01:55:04 +01:00
3 changed files with 48 additions and 50 deletions

View file

@ -3,8 +3,12 @@ if (!fs.existsSync('./config.json')) {
throw new Error('I could not find config.json, are you sure you have it?'); throw new Error('I could not find config.json, are you sure you have it?');
} }
const { AkairoClient, CommandHandler, InhibitorHandler, ListenerHandler } = require('discord-akairo'); const { AkairoClient, CommandHandler, InhibitorHandler, ListenerHandler } = require('discord-akairo');
const { Intents } = require('discord.js');
const { token, prefix, ownerID } = require('./config.json'); const { token, prefix, ownerID } = require('./config.json');
let intents = new Intents(Intents.ALL);
intents.remove('GUILD_PRESENCES');
class hahaYesClient extends AkairoClient { class hahaYesClient extends AkairoClient {
constructor() { constructor() {
super({ super({
@ -17,8 +21,10 @@ class hahaYesClient extends AkairoClient {
} }
} }
}, { }, {
partials: ['MESSAGE', 'REACTION'], partials: ['MESSAGE'],
disableMentions: 'everyone', disableMentions: 'everyone',
ws: { intents: intents },
fetchAllMembers: true
}); });
this.commandHandler = new CommandHandler(this, { this.commandHandler = new CommandHandler(this, {

84
package-lock.json generated
View file

@ -809,9 +809,9 @@
"integrity": "sha512-XO6INPbZCxdprl+9qa/AAbFFOMzzwqYxpjPgLICrMD6C2FCw6qfJOPcBk6JqqPLSaZ/Qx87qn4rpPmPMwaAK6w==" "integrity": "sha512-XO6INPbZCxdprl+9qa/AAbFFOMzzwqYxpjPgLICrMD6C2FCw6qfJOPcBk6JqqPLSaZ/Qx87qn4rpPmPMwaAK6w=="
}, },
"@types/bytebuffer": { "@types/bytebuffer": {
"version": "5.0.41", "version": "5.0.42",
"resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.41.tgz", "resolved": "https://registry.npmjs.org/@types/bytebuffer/-/bytebuffer-5.0.42.tgz",
"integrity": "sha512-Mdrv4YcaHvpkx25ksqqFaezktx3yZRcd51GZY0rY/9avyaqZdiT/GiWRhfrJhMpgzXqTOSHgGvsumGxJFNiZZA==", "integrity": "sha512-lEgKojWUAc/MG2t649oZS5AfYFP2xRNPoDuwDBlBMjHXd8MaGPgFgtCXUK7inZdBOygmVf10qxc1Us8GXC96aw==",
"requires": { "requires": {
"@types/long": "*", "@types/long": "*",
"@types/node": "*" "@types/node": "*"
@ -1309,9 +1309,9 @@
"integrity": "sha1-FK1hE4EtLTfXLme0ystLtyZQXxE=" "integrity": "sha1-FK1hE4EtLTfXLme0ystLtyZQXxE="
}, },
"bl": { "bl": {
"version": "1.2.2", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz",
"integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==",
"requires": { "requires": {
"readable-stream": "^2.3.5", "readable-stream": "^2.3.5",
"safe-buffer": "^5.1.1" "safe-buffer": "^5.1.1"
@ -1785,12 +1785,9 @@
} }
}, },
"commander": { "commander": {
"version": "2.8.1", "version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
"requires": {
"graceful-readlink": ">= 1.0.0"
}
}, },
"compare-func": { "compare-func": {
"version": "2.0.0", "version": "2.0.0",
@ -2413,9 +2410,9 @@
}, },
"dependencies": { "dependencies": {
"ws": { "ws": {
"version": "7.3.1", "version": "7.4.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.0.tgz",
"integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==" "integrity": "sha512-kyFwXuV/5ymf+IXhS6f0+eAFvydbaBW3zjpT6hUdAh/hbVjTIB5EHBGi0bPoCLSK2wcuz3BrEkB9LrYv1Nm4NQ=="
} }
} }
}, },
@ -2949,9 +2946,9 @@
"dev": true "dev": true
}, },
"eslint-plugin-standard": { "eslint-plugin-standard": {
"version": "4.0.2", "version": "4.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.2.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.1.0.tgz",
"integrity": "sha512-nKptN8l7jksXkwFk++PhJB3cCDTcXOEyhISIN86Ue2feJ1LFyY3PrY3/xT2keXlJSY5bpmbiTG0f885/YKAvTA==", "integrity": "sha512-ZL7+QRixjTR6/528YNGyDotyffm5OQst/sGxKDwGb9Uqs4In5Egi4+jbobhqJoyoCM6/7v/1A5fhQ7ScMtDjaQ==",
"dev": true "dev": true
}, },
"eslint-scope": { "eslint-scope": {
@ -3757,28 +3754,23 @@
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz",
"integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA=="
}, },
"graceful-readlink": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",
"integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU="
},
"grpc": { "grpc": {
"version": "1.24.3", "version": "1.24.4",
"resolved": "https://registry.npmjs.org/grpc/-/grpc-1.24.3.tgz", "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.24.4.tgz",
"integrity": "sha512-EDemzuZTfhM0hgrXqC4PtR76O3t+hTIYJYR5vgiW0yt2WJqo4mhxUqZUirzUQz34Psz7dbLp38C6Cl7Ij2vXRQ==", "integrity": "sha512-mHRAwuitCMuSHo1tp1+Zc0sz3cYa7pkhVJ77pkIXD5gcVORtkRiyW6msXYqTDT+35jazg98lbO3XzuTo2+XrcA==",
"requires": { "requires": {
"@types/bytebuffer": "^5.0.40", "@types/bytebuffer": "^5.0.40",
"lodash.camelcase": "^4.3.0", "lodash.camelcase": "^4.3.0",
"lodash.clone": "^4.5.0", "lodash.clone": "^4.5.0",
"nan": "^2.13.2", "nan": "^2.13.2",
"node-pre-gyp": "^0.15.0", "node-pre-gyp": "^0.16.0",
"protobufjs": "^5.0.3" "protobufjs": "^5.0.3"
}, },
"dependencies": { "dependencies": {
"needle": { "needle": {
"version": "2.5.0", "version": "2.5.2",
"resolved": "https://registry.npmjs.org/needle/-/needle-2.5.0.tgz", "resolved": "https://registry.npmjs.org/needle/-/needle-2.5.2.tgz",
"integrity": "sha512-o/qITSDR0JCyCKEQ1/1bnUXMmznxabbwi/Y4WwJElf+evwJNFNwIDMCCt5IigFVxgeGBJESLohGtIS9gEzo1fA==", "integrity": "sha512-LbRIwS9BfkPvNwNHlsA41Q29kL2L/6VaOJ0qisM5lLWsTV3nP15abO5ITL6L81zqFhzjRKDAYjpcBcwM0AVvLQ==",
"requires": { "requires": {
"debug": "^3.2.6", "debug": "^3.2.6",
"iconv-lite": "^0.4.4", "iconv-lite": "^0.4.4",
@ -3786,9 +3778,9 @@
} }
}, },
"node-pre-gyp": { "node-pre-gyp": {
"version": "0.15.0", "version": "0.16.0",
"resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.15.0.tgz", "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.16.0.tgz",
"integrity": "sha512-7QcZa8/fpaU/BKenjcaeFF9hLz2+7S9AqyXFhlH/rilsQ/hPZKK32RtR5EQHJElgu+q5RfbJ34KriI79UWaorA==", "integrity": "sha512-4efGA+X/YXAHLi1hN8KaPrILULaUn2nWecFrn1k2I+99HpoyvcOGEbtcOxpDiUwPF2ZANMJDh32qwOUPenuR1g==",
"requires": { "requires": {
"detect-libc": "^1.0.2", "detect-libc": "^1.0.2",
"mkdirp": "^0.5.3", "mkdirp": "^0.5.3",
@ -3827,17 +3819,17 @@
} }
}, },
"handbrake-js": { "handbrake-js": {
"version": "5.0.0", "version": "5.0.2",
"resolved": "https://registry.npmjs.org/handbrake-js/-/handbrake-js-5.0.0.tgz", "resolved": "https://registry.npmjs.org/handbrake-js/-/handbrake-js-5.0.2.tgz",
"integrity": "sha512-NtmYKTVAWxrCwKBJ4j/952bKneBWfOzJ6vMxPoEl2MqAgHrNZOWlRT67f7ftfZ8X2S1GsrZ1AgfMdkaDYx8QcA==", "integrity": "sha512-g1ldBrD/h9tcn99flPVgNLRwwLg+UqXWVQqzbr1sQErNvV4LnP5/S9FKRAl7OIGTTt3Qf0KhZw6SBOESRWEzNw==",
"requires": { "requires": {
"ansi-escape-sequences": "^5.1.2", "ansi-escape-sequences": "^5.1.2",
"command-line-args": "^5.1.1", "command-line-args": "^5.1.1",
"decompress": "^4.2.0", "decompress": "^4.2.1",
"node-fetch": "^2.6.1",
"node-version-matches": "^2.0.1", "node-version-matches": "^2.0.1",
"object-to-spawn-args": "^2.0.0", "object-to-spawn-args": "^2.0.0",
"request": "^2.88.0", "rimraf": "^3.0.2"
"rimraf": "^3.0.0"
}, },
"dependencies": { "dependencies": {
"rimraf": { "rimraf": {
@ -6263,11 +6255,11 @@
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==" "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
}, },
"seek-bzip": { "seek-bzip": {
"version": "1.0.5", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.5.tgz", "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz",
"integrity": "sha1-z+kXyz0nS8/6x5J1ivUxc+sfq9w=", "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==",
"requires": { "requires": {
"commander": "~2.8.1" "commander": "^2.8.1"
} }
}, },
"semantic-release": { "semantic-release": {
@ -7311,9 +7303,9 @@
"optional": true "optional": true
}, },
"unbzip2-stream": { "unbzip2-stream": {
"version": "1.4.2", "version": "1.4.3",
"resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.2.tgz", "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz",
"integrity": "sha512-pZMVAofMrrHX6Ik39hCk470kulCbmZ2SWfQLPmTWqfJV/oUm0gn1CblvHdUu4+54Je6Jq34x8kY6XjTy6dMkOg==", "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==",
"requires": { "requires": {
"buffer": "^5.2.1", "buffer": "^5.2.1",
"through": "^2.3.8" "through": "^2.3.8"

View file

@ -19,8 +19,8 @@
"file-type": "^14.6.2", "file-type": "^14.6.2",
"fluent-ffmpeg": "^2.1.2", "fluent-ffmpeg": "^2.1.2",
"gm": "^1.23.1", "gm": "^1.23.1",
"grpc": "^1.24.3", "grpc": "^1.24.4",
"handbrake-js": "^5.0.0", "handbrake-js": "^5.0.2",
"jimp": "^0.10.3", "jimp": "^0.10.3",
"libsodium-wrappers": "^0.7.6", "libsodium-wrappers": "^0.7.6",
"md5-file": "^5.0.0", "md5-file": "^5.0.0",
@ -47,7 +47,7 @@
"eslint-plugin-import": "^2.22.1", "eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^8.0.1", "eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.2.1", "eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.2" "eslint-plugin-standard": "^4.1.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",