This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Modern Grade Calculator</title> | |
| <!-- Tailwind CSS CDN --> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import request from "request"; | |
| import fs from 'fs'; | |
| var arr = ["discord", "emote", "betterdiscord", "code_braces", "puzzle", "palette", "close", "file", "file_upload", "file_document", "file_archive", | |
| "file_code", "file_webcode", "file_image", "file_video", "file_table", "file_pdf", "file_music", "expand_more", "verified", "popout", "person", "user_profile", "security", | |
| "apps", "link", "nitro", "server_boost", "subscriptions", "gift", "payment", "camera", "accessibility", "mic", "chat", "notifications", "keyboard", "language", | |
| "windows", "linux", "videocam", "bugs", "games", "aspect_ratio", "history", "hypesquad", "exit" | |
| ]; | |
| var arrle = arr.length; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Author: Le Ngo Duc Manh | |
| ModifiedDate: 2024-10-14 | |
| Description: This code snippet is used to detect toxic messages in a Discord server using Google's Perspective API. It checks the toxicity of a message and deletes it if it exceeds a certain threshold. The message author is then notified about the toxic content. The code uses regular expressions to remove emojis and emotes from the message content before analyzing it for toxicity. The Google API key is required to make requests to the Perspective API. The maximum allowed toxicity threshold can be adjusted as needed. | |
| */ | |
| const axios = require('axios'); | |
| const GOOGLE_API_KEY = "Your Google API Key"; | |
| const EMOJIS_REGEX = /<a?:([^:]+):(\d+)>|\p{Emoji_Presentation}|\p{Extended_Pictographic}/gmu; |