Skip to content

Instantly share code, notes, and snippets.

View manhbi18112005's full-sized avatar
😀
Tớ có 2 chiếc kẹo 🍬 cậu có 1 chiếc kẹo 🍬. To hon cau mot cai nha. 🐰🐰🐰

Le Ngo Duc Manh manhbi18112005

😀
Tớ có 2 chiếc kẹo 🍬 cậu có 1 chiếc kẹo 🍬. To hon cau mot cai nha. 🐰🐰🐰
View GitHub Profile
@manhbi18112005
manhbi18112005 / index.js
Last active March 6, 2022 13:46
Moderate messages in your servers automatically using Artificial Intelligence. The code below was made to put in index.js, you can modify it to put in an event file.
//...
const GOOGLE_API_KEY = "CóCáiLồnĐịtConBàMày"
const snekfetch = require('snekfetch');
client.on("message", async message => {
if (message.author.bot) return; // return if message was sent from bot
const emojiId = message.content.replace(/<a?:(.*?):+/g, '');
let imageUrl = `https://cdn.discordapp.com/emojis/${emojiId}`;
if(message.content === imageUrl) return; // return if message only contains emojis
@manhbi18112005
manhbi18112005 / scrape.js
Created February 13, 2022 03:21
Scrape all the svg to steal a discord theme :V
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;