From ffca9afa9f20edcfa20065d89048456f98072854 Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 14:24:45 +0100 Subject: [PATCH 1/7] Update README.md --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 83d1c57..991f514 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,10 @@ Alternatively, you can self-host the bot (complicated). To self-host the bot, you would need to create the following environmental variables: ``` -{ - "TOKEN": "your discord bot token", - "STATCORD": "statcord token (optional)", - "ID": "bot client ID", - "DEEPAI": "deepAI API key" -} + TOKEN=your discord bot token, + STATCORD=statcord token (optional), + ID=bot client ID, + DEEPAI=deepAI API key ``` As well as the following file: From ede1f949c1d34d7e770e50dfadd6c97ccf531285 Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 14:29:31 +0100 Subject: [PATCH 2/7] README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 991f514..9d1afbb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # detoxAI A simple AI-powered moderation Discord Bot! PRs & issues are welcome :) -# Quickstart +# Self-Hosting You can either install the bot into your Discord community, or self-host a version of the bot. We would **recommend installing our instance of the bot** as it is already configured with our database and is more reliable. **Invite/Install here:** https://dsc.gg/detox @@ -21,7 +21,7 @@ To self-host the bot, you would need to create the following environmental varia As well as the following file: - `firestoreKey.json`: a service account key to your [Firestore](https://cloud.google.com/firestore) database. - +Also, keep in mind that you have Visual S[tudio Community 2022](https://visualstudio.microsoft.com/) installed with "Development with C++" on it. The bot won't be able to run if you use a normal Visual Studio Code. # Features - Uses TensorflowJS's Toxicity model to delete toxic Discord messages. - Deletes small set of blacklisted reactions on messages. From 26ffbd3cb7d680e678a92815f652167be9403433 Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 14:29:57 +0100 Subject: [PATCH 3/7] README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d1afbb..fdb6107 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ To self-host the bot, you would need to create the following environmental varia As well as the following file: - `firestoreKey.json`: a service account key to your [Firestore](https://cloud.google.com/firestore) database. -Also, keep in mind that you have Visual S[tudio Community 2022](https://visualstudio.microsoft.com/) installed with "Development with C++" on it. The bot won't be able to run if you use a normal Visual Studio Code. +Also, keep in mind that you have Visual [Studio Community 2022](https://visualstudio.microsoft.com/) installed with "Development with C++" on it. The bot won't be able to run if you use a normal Visual Studio Code. # Features - Uses TensorflowJS's Toxicity model to delete toxic Discord messages. - Deletes small set of blacklisted reactions on messages. From 49fe1046262f4d45bb66912127184fadbd218857 Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 18:12:07 +0100 Subject: [PATCH 4/7] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fdb6107..9bb2336 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,9 @@ Alternatively, you can self-host the bot (complicated). To self-host the bot, you would need to create the following environmental variables: ``` - TOKEN=your discord bot token, - STATCORD=statcord token (optional), - ID=bot client ID, + TOKEN=your discord bot token + STATCORD=statcord token (optional) + ID=bot client ID DEEPAI=deepAI API key ``` From 0fc1bded670354bda78867595bd228cb4335156f Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 20:09:12 +0100 Subject: [PATCH 5/7] Update to README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9bb2336..b13fb8c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,16 @@ To self-host the bot, you would need to create the following environmental varia As well as the following file: - `firestoreKey.json`: a service account key to your [Firestore](https://cloud.google.com/firestore) database. + +To obtain the firestoreKey.json file, you need to follow these steps: + +1. to the Firebase Console and select your project. +2. Click on the gear icon in the top left corner and select "Project settings". +3. In the "Project settings" page, go to the "Service accounts" tab. +4. Scroll down to the section titled "Firestore Database Admin SDK" and click on "Generate new private key". +5. A JSON file containing your project's service account credentials will be downloaded to your computer. This is your firestoreKey.json file. +Note: Keep the firestoreKey.json file secure and do not share it with anyone. It contains sensitive information that can grant access to your Firebase project + Also, keep in mind that you have Visual [Studio Community 2022](https://visualstudio.microsoft.com/) installed with "Development with C++" on it. The bot won't be able to run if you use a normal Visual Studio Code. # Features - Uses TensorflowJS's Toxicity model to delete toxic Discord messages. From 3d22278aceaf0eff56194b6b52f707bbeb6c469a Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 20:11:18 +0100 Subject: [PATCH 6/7] Update bot.js --- bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index a8ecda4..90e6ba9 100644 --- a/bot.js +++ b/bot.js @@ -25,7 +25,7 @@ const client = new Client({ activities: [{ name: '/help | Click Me!', type: 'STREAMING', - url: 'https://youtu.be/zYD2VBgabX8', + url: 'https://www.youtube.com/watch?v=zYD2VBgabX8', }], }, }); @@ -70,4 +70,4 @@ for (const file of eventFiles) { console.log('Loaded commands!'); -process.on('unhandledRejection', error => console.error('Uncaught Promise Rejection', error)); \ No newline at end of file +process.on('unhandledRejection', error => console.error('Uncaught Promise Rejection', error)); From 3e50ace0614f9b04de3da5499980e3b689d97651 Mon Sep 17 00:00:00 2001 From: KylePrograms <99099360+KylePrograms2by2@users.noreply.github.com> Date: Tue, 14 Mar 2023 20:13:48 +0100 Subject: [PATCH 7/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b13fb8c..606dffc 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ As well as the following file: To obtain the firestoreKey.json file, you need to follow these steps: -1. to the Firebase Console and select your project. +1. to the [Firebase Console](https://console.firebase.google.com/) and select your project. 2. Click on the gear icon in the top left corner and select "Project settings". 3. In the "Project settings" page, go to the "Service accounts" tab. 4. Scroll down to the section titled "Firestore Database Admin SDK" and click on "Generate new private key".