adityajat/QRgeneration_botPublic · Bot Template
AIQRcode Generator appears to be a Telegram automation bot. Commands include /qr, /*, /upi, /randomqr. Observed in code: messaging, storage, games.
Utilityutility
4 commands0 envUpdated 1mo agoCreated Sep 14, 2026
commands/_randomqr.js
javascript · 495 lines
1/**#command2name: /randomqr3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let sites = [13 ["Google", "https://www.google.com"],14 ["YouTube", "https://www.youtube.com"],15 ["Instagram", "https://www.instagram.com"],16 ["Facebook", "https://www.facebook.com"],17 ["Wikipedia", "https://www.wikipedia.org"],18 ["Telegram", "https://telegram.org"],19 ["WhatsApp", "https://www.whatsapp.com"],20 ["Spotify", "https://www.spotify.com"],21 ["GitHub", "https://github.com"],22 ["Reddit", "https://www.reddit.com"],23 ["LinkedIn", "https://www.linkedin.com"],24 ["Microsoft", "https://www.microsoft.com"],25 ["Bing", "https://www.bing.com"],26 ["DuckDuckGo", "https://duckduckgo.com"],27 ["Yahoo", "https://www.yahoo.com"],28 ["Amazon", "https://www.amazon.com"],29 ["eBay", "https://www.ebay.com"],30 ["Netflix", "https://www.netflix.com"],31 ["Canva", "https://www.canva.com"],32 ["Discord", "https://discord.com"],33 ["Twitch", "https://www.twitch.tv"],34 ["Pinterest", "https://www.pinterest.com"],35 ["TikTok", "https://www.tiktok.com"],36 ["Quora", "https://www.quora.com"],37 ["Medium", "https://medium.com"],38 ["Tumblr", "https://www.tumblr.com"],39 ["Flickr", "https://www.flickr.com"],40 ["Vimeo", "https://vimeo.com"],41 ["Stack Overflow", "https://stackoverflow.com"],42 ["GitLab", "https://gitlab.com"],43 ["CodePen", "https://codepen.io"],44 ["Replit", "https://replit.com"],45 ["npm", "https://www.npmjs.com"],46 ["PyPI", "https://pypi.org"],47 ["MDN Web Docs", "https://developer.mozilla.org"],48 ["W3Schools", "https://www.w3schools.com"],49 ["FreeCodeCamp", "https://www.freecodecamp.org"],50 ["Khan Academy", "https://www.khanacademy.org"],51 ["Coursera", "https://www.coursera.org"],52 ["edX", "https://www.edx.org"],53 ["Duolingo", "https://www.duolingo.com"],54 ["Quizlet", "https://quizlet.com"],55 ["Google Drive", "https://drive.google.com"],56 ["Google Docs", "https://docs.google.com"],57 ["Google Sheets", "https://sheets.google.com"],58 ["Google Slides", "https://slides.google.com"],59 ["Google Maps", "https://maps.google.com"],60 ["Google Translate", "https://translate.google.com"],61 ["Google News", "https://news.google.com"],62 ["Google Photos", "https://photos.google.com"],63 ["Google Calendar", "https://calendar.google.com"],64 ["Google Meet", "https://meet.google.com"],65 ["Google Play", "https://play.google.com"],66 ["Google Gemini", "https://gemini.google.com"],67 ["ChatGPT", "https://chatgpt.com"],68 ["OpenAI", "https://openai.com"],69 ["Claude", "https://claude.ai"],70 ["Perplexity", "https://www.perplexity.ai"],71 ["Hugging Face", "https://huggingface.co"],72 ["Kaggle", "https://www.kaggle.com"],73 ["NASA", "https://www.nasa.gov"],74 ["ISRO", "https://www.isro.gov.in"],75 ["ESA", "https://www.esa.int"],76 ["Britannica", "https://www.britannica.com"],77 ["Internet Archive", "https://archive.org"],78 ["Project Gutenberg", "https://www.gutenberg.org"],79 ["Wikimedia", "https://wikimedia.org"],80 ["Wiktionary", "https://www.wiktionary.org"],81 ["Wikiquote", "https://www.wikiquote.org"],82 ["Wikivoyage", "https://www.wikivoyage.org"],83 ["OpenStreetMap", "https://www.openstreetmap.org"],84 ["MapQuest", "https://www.mapquest.com"],85 ["Tripadvisor", "https://www.tripadvisor.com"],86 ["Booking.com", "https://www.booking.com"],87 ["Airbnb", "https://www.airbnb.com"],88 ["Uber", "https://www.uber.com"],89 ["Zoom", "https://zoom.us"],90 ["Slack", "https://slack.com"],91 ["Dropbox", "https://www.dropbox.com"],92 ["OneDrive", "https://onedrive.live.com"],93 ["Box", "https://www.box.com"],94 ["Notion", "https://www.notion.so"],95 ["Trello", "https://trello.com"],96 ["Asana", "https://asana.com"],97 ["Evernote", "https://evernote.com"],98 ["Grammarly", "https://www.grammarly.com"],99 ["Adobe", "https://www.adobe.com"],100 ["Figma", "https://www.figma.com"],101 ["Dribbble", "https://dribbble.com"],102 ["Behance", "https://www.behance.net"],103 ["WordPress", "https://wordpress.com"],104 ["Blogger", "https://www.blogger.com"],105 ["Wix", "https://www.wix.com"],106 ["Shopify", "https://www.shopify.com"],107 ["Squarespace", "https://www.squarespace.com"],108 ["Unsplash", "https://unsplash.com"],109 ["Pexels", "https://www.pexels.com"],110 ["Pixabay", "https://pixabay.com"],111 ["Imgur", "https://imgur.com"],112 ["Giphy", "https://giphy.com"],113 ["SoundCloud", "https://soundcloud.com"],114 ["Bandcamp", "https://bandcamp.com"],115 ["Deezer", "https://www.deezer.com"],116 ["Shazam", "https://www.shazam.com"],117 ["IMDb", "https://www.imdb.com"],118 ["Rotten Tomatoes", "https://www.rottentomatoes.com"],119 ["Goodreads", "https://www.goodreads.com"],120 ["TED", "https://www.ted.com"],121 ["Britannica", "https://www.britannica.com"],122 ["The Guardian", "https://www.theguardian.com"],123 ["BBC", "https://www.bbc.com"],124 ["Reuters", "https://www.reuters.com"],125 ["The New York Times", "https://www.nytimes.com"],126 ["National Geographic", "https://www.nationalgeographic.com"],127 ["The Weather Channel", "https://weather.com"],128 ["AccuWeather", "https://www.accuweather.com"],129 ["Speedtest", "https://www.speedtest.net"],130 ["Have I Been Pwned", "https://haveibeenpwned.com"],131 ["Archive.today", "https://archive.today"],132 ["TinyURL", "https://tinyurl.com"],133 ["Bitly", "https://bitly.com"],134 ["URLScan", "https://urlscan.io"],135 ["VirusTotal", "https://www.virustotal.com"],136 ["Cloudflare", "https://www.cloudflare.com"],137 ["DigitalOcean", "https://www.digitalocean.com"],138 ["Vercel", "https://vercel.com"],139 ["Netlify", "https://www.netlify.com"],140 ["Heroku", "https://www.heroku.com"],141 ["Firebase", "https://firebase.google.com"],142 ["Docker", "https://www.docker.com"],143 ["Python", "https://www.python.org"],144 ["Java", "https://www.java.com"],145 ["Rust", "https://www.rust-lang.org"],146 ["Go", "https://go.dev"],147 ["Node.js", "https://nodejs.org"],148 ["React", "https://react.dev"],149 ["Vue", "https://vuejs.org"],150 ["Angular", "https://angular.dev"],151 ["Tailwind CSS", "https://tailwindcss.com"],152 ["Bootstrap", "https://getbootstrap.com"],153 ["Android", "https://www.android.com"],154 ["Apple", "https://www.apple.com"],155 ["Samsung", "https://www.samsung.com"],156 ["OnePlus", "https://www.oneplus.com"],157 ["Xiaomi", "https://www.mi.com"],158 ["Dell", "https://www.dell.com"],159 ["HP", "https://www.hp.com"],160 ["Lenovo", "https://www.lenovo.com"],161 ["Intel", "https://www.intel.com"],162 ["NVIDIA", "https://www.nvidia.com"],163 ["AMD", "https://www.amd.com"],164 ["PlayStation", "https://www.playstation.com"],165 ["Xbox", "https://www.xbox.com"],166 ["Nintendo", "https://www.nintendo.com"],167 ["Steam", "https://store.steampowered.com"],168 ["Epic Games", "https://store.epicgames.com"],169 ["Roblox", "https://www.roblox.com"],170 ["Minecraft", "https://www.minecraft.net"],171 ["Unity", "https://unity.com"],172 ["Unreal Engine", "https://www.unrealengine.com"],173 ["Chess.com", "https://www.chess.com"],174 ["Lichess", "https://lichess.org"],175 ["ESPN", "https://www.espn.com"],176 ["FIFA", "https://www.fifa.com"],177 ["Olympics", "https://olympics.com"],178 ["Formula 1", "https://www.formula1.com"],179 ["Cricket Australia", "https://www.cricket.com.au"],180 ["BCCI", "https://www.bcci.tv"],181 ["Flipkart", "https://www.flipkart.com"],182 ["Myntra", "https://www.myntra.com"],183 ["Ajio", "https://www.ajio.com"],184 ["Meesho", "https://www.meesho.com"],185 ["Tata CLiQ", "https://www.tatacliq.com"],186 ["Nykaa", "https://www.nykaa.com"],187 ["Zomato", "https://www.zomato.com"],188 ["Swiggy", "https://www.swiggy.com"],189 ["Paytm", "https://paytm.com"],190 ["PhonePe", "https://www.phonepe.com"],191 ["Razorpay", "https://razorpay.com"],192 ["IRCTC", "https://www.irctc.co.in"],193 ["India.gov.in", "https://www.india.gov.in"],194 ["DigiLocker", "https://www.digilocker.gov.in"],195 ["UMANG", "https://web.umang.gov.in"],196 ["MyGov", "https://www.mygov.in"],197 ["CBSE", "https://www.cbse.gov.in"],198 ["NTA", "https://www.nta.ac.in"],199 ["SWAYAM", "https://swayam.gov.in"],200 ["DIKSHA", "https://diksha.gov.in"],201 ["National Scholarship Portal", "https://scholarships.gov.in"],202 ["Rajasthan Government", "https://rajasthan.gov.in"],203 ["Rajasthan SSO", "https://sso.rajasthan.gov.in"],204 ["LinkedIn Learning", "https://www.linkedin.com/learning"],205 ["Udemy", "https://www.udemy.com"],206 ["Udacity", "https://www.udacity.com"],207 ["MIT OpenCourseWare", "https://ocw.mit.edu"],208 ["WolframAlpha", "https://www.wolframalpha.com"],209 ["Desmos", "https://www.desmos.com"],210 ["GeoGebra", "https://www.geogebra.org"],211 ["Symbolab", "https://www.symbolab.com"],212 ["Google Scholar", "https://scholar.google.com"],213 ["ResearchGate", "https://www.researchgate.net"],214 ["ORCID", "https://orcid.org"],215 ["arXiv", "https://arxiv.org"],216 ["PubMed", "https://pubmed.ncbi.nlm.nih.gov"],217 ["World Health Organization", "https://www.who.int"],218 ["United Nations", "https://www.un.org"],219 ["World Bank", "https://www.worldbank.org"],220 ["IMF", "https://www.imf.org"],221 ["UNICEF", "https://www.unicef.org"],222 ["Red Cross", "https://www.icrc.org"],223 ["Amnesty International", "https://www.amnesty.org"],224 ["Greenpeace", "https://www.greenpeace.org"],225 ["Mozilla", "https://www.mozilla.org"],226 ["Firefox", "https://www.mozilla.org/firefox"],227 ["Chrome", "https://www.google.com/chrome"],228 ["Microsoft Edge", "https://www.microsoft.com/edge"],229 ["Opera", "https://www.opera.com"],230 ["Brave", "https://brave.com"],231 ["VLC", "https://www.videolan.org/vlc"],232 ["Audacity", "https://www.audacityteam.org"],233 ["OBS", "https://obsproject.com"],234 ["7-Zip", "https://www.7-zip.org"],235 ["LibreOffice", "https://www.libreoffice.org"],236 ["GIMP", "https://www.gimp.org"],237 ["Inkscape", "https://inkscape.org"],238 ["Blender", "https://www.blender.org"],239 ["Krita", "https://krita.org"],240 ["FileZilla", "https://filezilla-project.org"],241 ["Tor Project", "https://www.torproject.org"],242 ["Proton", "https://proton.me"],243 ["Signal", "https://signal.org"],244 ["Element", "https://element.io"],245 ["Matrix", "https://matrix.org"],246 ["Mastodon", "https://joinmastodon.org"],247 ["Bluesky", "https://bsky.app"],248 ["Threads", "https://www.threads.net"],249 ["Stack Exchange", "https://stackexchange.com"],250 ["Product Hunt", "https://www.producthunt.com"],251 ["Hacker News", "https://news.ycombinator.com"],252 ["DEV Community", "https://dev.to"],253 ["Hashnode", "https://hashnode.com"],254 ["CodeSandbox", "https://codesandbox.io"],255 ["JSFiddle", "https://jsfiddle.net"],256 ["Glitch", "https://glitch.com"],257 ["Postman", "https://www.postman.com"],258 ["Insomnia", "https://insomnia.rest"],259 ["Swagger", "https://swagger.io"],260 ["RapidAPI", "https://rapidapi.com"],261 ["API Ninjas", "https://api-ninjas.com"],262 ["JSONPlaceholder", "https://jsonplaceholder.typicode.com"],263 ["Public APIs", "https://publicapis.dev"],264 ["Awwwards", "https://www.awwwards.com"],265 ["CSS-Tricks", "https://css-tricks.com"],266 ["Smashing Magazine", "https://www.smashingmagazine.com"],267 ["SitePoint", "https://www.sitepoint.com"],268 ["GeeksforGeeks", "https://www.geeksforgeeks.org"],269 ["TutorialsPoint", "https://www.tutorialspoint.com"],270 ["W3C", "https://www.w3.org"],271 ["WHATWG", "https://whatwg.org"],272 ["Stack Printer", "https://stackprinter.com"],273 ["Pastebin", "https://pastebin.com"],274 ["Paste.ee", "https://paste.ee"],275 ["ImgBB", "https://imgbb.com"],276 ["Postimages", "https://postimages.org"],277 ["Remove.bg", "https://www.remove.bg"],278 ["Photopea", "https://www.photopea.com"],279 ["TinyWow", "https://tinywow.com"],280 ["iLovePDF", "https://www.ilovepdf.com"],281 ["Smallpdf", "https://smallpdf.com"],282 ["Canva", "https://www.canva.com"],283 ["Coolors", "https://coolors.co"],284 ["Google Fonts", "https://fonts.google.com"],285 ["Font Awesome", "https://fontawesome.com"],286 ["Unsplash", "https://unsplash.com"],287 ["Pexels", "https://www.pexels.com"],288 ["Pixabay", "https://pixabay.com"],289 ["Openverse", "https://openverse.org"],290 ["Flaticon", "https://www.flaticon.com"],291 ["Freepik", "https://www.freepik.com"],292 ["Iconify", "https://icon-sets.iconify.design"],293 ["Lorem Picsum", "https://picsum.photos"],294 ["Lorem Ipsum", "https://lipsum.com"],295 ["QR Code Generator", "https://www.qr-code-generator.com"],296 ["Internet Speed Test", "https://fast.com"],297 ["Is It Down Right Now", "https://www.isitdownrightnow.com"],298 ["Down For Everyone", "https://downforeveryoneorjustme.com"],299 ["What's My IP", "https://www.whatsmyip.org"],300 ["Time.is", "https://time.is"],301 ["World Time", "https://www.worldtimebuddy.com"],302 ["Currency Converter", "https://www.xe.com"],303 ["Google Finance", "https://www.google.com/finance"],304 ["TradingView", "https://www.tradingview.com"],305 ["Yahoo Finance", "https://finance.yahoo.com"],306 ["CoinMarketCap", "https://coinmarketcap.com"],307 ["NASA Images", "https://images.nasa.gov"],308 ["Google Arts & Culture", "https://artsandculture.google.com"],309 ["Smithsonian", "https://www.si.edu"],310 ["Louvre", "https://www.louvre.fr"],311 ["British Museum", "https://www.britishmuseum.org"],312 ["Met Museum", "https://www.metmuseum.org"],313 ["Google Arts", "https://artsandculture.google.com"],314 ["Internet Hall of Fame", "https://www.internethalloffame.org"],315 ["World Wide Web Consortium", "https://www.w3.org"],316 ["Internet Assigned Numbers Authority", "https://www.iana.org"],317 ["ICANN", "https://www.icann.org"],318 ["Cloudflare Learning", "https://www.cloudflare.com/learning"],319 ["MDN", "https://developer.mozilla.org"],320 ["GitHub Docs", "https://docs.github.com"],321 ["Microsoft Learn", "https://learn.microsoft.com"],322 ["Google Developers", "https://developers.google.com"],323 ["Android Developers", "https://developer.android.com"],324 ["Apple Developer", "https://developer.apple.com"],325 ["Firebase", "https://firebase.google.com"],326 ["Flutter", "https://flutter.dev"],327 ["Dart", "https://dart.dev"],328 ["Kotlin", "https://kotlinlang.org"],329 ["Swift", "https://www.swift.org"],330 ["TypeScript", "https://www.typescriptlang.org"],331 ["Svelte", "https://svelte.dev"],332 ["Next.js", "https://nextjs.org"],333 ["Astro", "https://astro.build"],334 ["Django", "https://www.djangoproject.com"],335 ["FastAPI", "https://fastapi.tiangolo.com"],336 ["Flask", "https://flask.palletsprojects.com"],337 ["Laravel", "https://laravel.com"],338 ["Ruby on Rails", "https://rubyonrails.org"],339 ["Spring", "https://spring.io"],340 ["Kubernetes", "https://kubernetes.io"],341 ["Linux", "https://www.linux.org"],342 ["Ubuntu", "https://ubuntu.com"],343 ["Debian", "https://www.debian.org"],344 ["Fedora", "https://fedoraproject.org"],345 ["Arch Linux", "https://archlinux.org"],346 ["Raspberry Pi", "https://www.raspberrypi.com"],347 ["Arduino", "https://www.arduino.cc"],348 ["Internet Archive", "https://archive.org"],349 ["Common Crawl", "https://commoncrawl.org"],350 ["Data.gov", "https://www.data.gov"],351 ["Our World in Data", "https://ourworldindata.org"],352 ["Gapminder", "https://www.gapminder.org"],353 ["Khan Academy", "https://www.khanacademy.org"],354 ["CK-12", "https://www.ck12.org"],355 ["OpenStax", "https://openstax.org"],356 ["Saylor Academy", "https://learn.saylor.org"],357 ["MIT OpenCourseWare", "https://ocw.mit.edu"],358 ["Stanford", "https://www.stanford.edu"],359 ["Harvard", "https://www.harvard.edu"],360 ["Oxford", "https://www.ox.ac.uk"],361 ["Cambridge", "https://www.cam.ac.uk"],362 ["IIT Delhi", "https://home.iitd.ac.in"],363 ["IIT Bombay", "https://www.iitb.ac.in"],364 ["IIT Madras", "https://www.iitm.ac.in"],365 ["IIT Kanpur", "https://www.iitk.ac.in"],366 ["IIT Kharagpur", "https://www.iitkgp.ac.in"],367 ["BHU", "https://www.bhu.ac.in"],368 ["University of Delhi", "https://www.du.ac.in"],369 ["IGNOU", "https://www.ignou.ac.in"],370 ["Rajasthan University", "https://www.uniraj.ac.in"],371 ["Jaipur", "https://jaipur.rajasthan.gov.in"],372["Rajasthan University", "https://www.erp.univraj.org"]373];374 375// =====================================376// SAVE A NEW WEBSITE377// =====================================378 379let input = params ? params.trim() : "";380 381if (input) {382 383 // Check that it is a URL384 if (!/^https?:\/\//i.test(input)) {385 Api.sendMessage({386 text:387 "❌ Please enter a complete website URL.\n\n" +388 "Example:\n" +389 "/randomqr https://example.com"390 });391 return;392 }393 394 // Get previously saved websites395 let savedSites = await db.bot.get("randomqr_saved_sites", []);396 397 // Check for duplicate URL398 let alreadyExists = savedSites.some(function(item) {399 return item[1].toLowerCase() === input.toLowerCase();400 });401 402 if (alreadyExists) {403 Api.sendMessage({404 text:405 "ℹ️ This website is already saved.\n\n" +406 "🔗 " + input407 });408 return;409 }410 411 // Save it412 savedSites.push([413 input,414 input415 ]);416 417 let saveResult = await db.bot.set(418 "randomqr_saved_sites",419 savedSites420 );421 422 if (!saveResult.ok) {423 Api.sendMessage({424 text:425 "❌ Couldn't save the website.\n\n" +426 saveResult.message427 });428 return;429 }430 431 Api.sendMessage({432 text:433 "✅ Website saved!\n\n" +434 "🔗 " + input + "\n\n" +435 "🎲 It can now appear in /randomqr."436 });437 438 return;439}440 441 442// =====================================443// LOAD SAVED WEBSITES444// =====================================445 446let savedSites = await db.bot.get(447 "randomqr_saved_sites",448 []449);450 451 452// =====================================453// ADD SAVED WEBSITES TO RANDOM LIST454// =====================================455 456for (let saved of savedSites) {457 sites.push(saved);458}459 460 461// =====================================462// PICK RANDOM WEBSITE463// =====================================464 465let randomIndex = Math.floor(466 Math.random() * sites.length467);468 469let selected = sites[randomIndex];470 471let name = selected[0];472let url = selected[1];473 474 475// =====================================476// GENERATE QR477// =====================================478 479let qrUrl =480 "https://api.qrserver.com/v1/create-qr-code/?" +481 "size=500x500" +482 "&data=" +483 encodeURIComponent(url);484 485await Api.sendPhoto({486 photo: qrUrl,487 caption:488 "🎲 RANDOM QR CODE\n\n" +489 "🌐 " + name + "\n" +490 "🔗 " + url + "\n\n" +491 "📊 Random pick: " +492 (randomIndex + 1) +493 "/" +494 sites.length495});