What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-07 01:55:09
discord.js ticket system stackoverflow
const discord = require("discord.js"); module.exports.run = async (bot, message, args) => { // ID from the catogory channel tickets. const categoryId = "644626077704257546"; // Get username var userName = message.... Add solution -
Javascript 2021-11-06 22:48:09
live search using fetch api
const search_input = document.getElementById('search'); const results = document.getElementById('results'); let search_term = ''; let countries; const fetchCountries = async () => { countries = await fetch( 'https://restcountries.eu/rest/... Add solution -
Other 2021-11-06 18:51:07
validate email function
function validateEmail(email) { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(Stri... Add solution -
Javascript 2021-11-05 23:07:11
regular expression |
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
TypeScript 2021-11-05 13:56:18
bot stats discord.js
// - COMPLICATED SCRIPT DONT DISLIKE IF YOU CANT UNDERSTAND // client.on('message', message => { if (message.content.toLowerCase().startsWith(prefix + 'stats')) { if (message.author.bot) return; const ToTalSeconds = (client.uptime... Add solution