From 92eff92f11028f97efe01720ecfc331e028c2747 Mon Sep 17 00:00:00 2001 From: 4N0N_H4X0R||Emily <31042247+4n0nh4x0r@users.noreply.github.com> Date: Fri, 22 Apr 2022 00:19:03 +0200 Subject: [PATCH] Update README.md --- README.md | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce6a909..14b97a5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,42 @@ -# watchfox +# WatchFox Watchfox is a system that is supposed to be used as a discord server watchdog, but as fox + + +## Installation + +Use npm to install the package + +```bash +npm i watchfox +``` + +## Usage + +```javascript +const watchfox = require("watchfox") + +var wf = new watchfox("5780c40195ebd6e4e0aeca995f0665881fd0231e25c4dxxxxxxxxxxxxxxxxxxx") +wf.fetch("123456789123456789").then(r => { + console.log(r); +}) +``` +You will get this json object as response +```json +{ + responseCode: 0, + data: { + score: [ + 100, // Troll + 100, // Raider + 80 // Harasser + ], + flags: [ + "Possibly Harasser" + ] + } +} +``` +By default every user has a score of 100 on all fields, the more this value decreases, the higher the probability that this user acts in bad faith. + +## License +[MIT](https://choosealicense.com/licenses/mit/)