{"id":2828,"date":"2022-08-14T03:33:34","date_gmt":"2022-08-13T22:33:34","guid":{"rendered":"https:\/\/www.edopedia.com\/blog\/?p=2828"},"modified":"2022-08-14T04:08:10","modified_gmt":"2022-08-13T23:08:10","slug":"how-to-make-an-automatic-omegle-bot-using-javascript","status":"publish","type":"post","link":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/","title":{"rendered":"How To Make an Automatic Omegle Bot Using JavaScript"},"content":{"rendered":"\n<p>In this tutorial, we&#8217;ll use <strong>JavaScript<\/strong> to <strong>make an Omegle Bot<\/strong>. You don&#8217;t need to be a programmer to follow along with this article. I&#8217;ve already written the source code, you just need to copy\/paste it inside your web browser.<\/p>\n\n\n\n<p>Basically, an <strong>Omegle Bot<\/strong> allows us to automate some tasks. For example, today I&#8217;ll show you how to automatically send a message to a stranger using <strong>Omegle Chat Bot<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Open Omegle Website on Your Computer<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-21-21-PM-1024x623.png\" alt=\"Omegle.com Website\" class=\"wp-image-2832\" title=\"Omegle.com Website\" srcset=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-21-21-PM-1024x623.png 1024w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-21-21-PM-300x183.png 300w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-21-21-PM-768x467.png 768w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-21-21-PM.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Omegle.com Website<\/figcaption><\/figure>\n\n\n\n<p>Visit the <a href=\"https:\/\/www.omegle.com\/\">Omegle website<\/a> on your computer and then click the &#8220;Text&#8221; button given under &#8220;Start chatting&#8221;.<\/p>\n\n\n\n<p>A popup modal will appear, asking you to accept the Omegle\u2019s Terms of Service, Privacy Policy, and Community Guidelines. As well as confirm that you are 18+ or 13+ to use Omegle.<\/p>\n\n\n\n<p>Click the two checkboxes and then hit &#8220;Confirm &amp; continue&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"606\" src=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-38-11-PM.png\" alt=\"Confirm Omegle Policies\" class=\"wp-image-2833\" title=\"Confirm Omegle Policies\" srcset=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-38-11-PM.png 793w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-38-11-PM-300x229.png 300w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/scrnli_8_13_2022_11-38-11-PM-768x587.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><figcaption>Confirm Omegle Policies<\/figcaption><\/figure>\n\n\n\n<p>It will open a new webpage where a chat box is given (Just like Facebook Messenger, or WhatsApp).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Omegle Text Chat Page<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_page-1024x467.jpg\" alt=\"Omegle Chat Page\" class=\"wp-image-2834\" title=\"Omegle Chat Page\" srcset=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_page-1024x467.jpg 1024w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_page-300x137.jpg 300w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_page-768x350.jpg 768w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_page.jpg 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Omegle Chat Page<\/figcaption><\/figure>\n\n\n\n<p>Now, follow the below mentioned steps to automatically send a message to random stranger using <strong>Omegle Bot<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1:- Open Chrome DevTools<\/h3>\n\n\n\n<p>There are different ways to open <strong>Chrome DevTools<\/strong> in your Google Chrome browser. The quickest one is to press\u00a0<strong>Ctrl+Shift+J<\/strong>\u00a0on Windows or\u00a0<strong>\u2318+\u2325Option+J<\/strong>\u00a0on Mac.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2:- Copy\/Paste Omegle Bot Code in Browser<\/h2>\n\n\n\n<p>Copy the below code-snippet and paste it inside the Chrome DevTools &#8220;Console&#8221; tab. Now, hit the &#8220;Enter&#8221; button on your keyboard and see how <strong>Omegle Chatbot<\/strong> automatically send the message to stranger.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;javascript&quot;,&quot;mime&quot;:&quot;text\/javascript&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:true,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;JavaScript&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;js&quot;}\">function executeOmegle()\n{\n  let btn = document.querySelector('.disconnectbtn')\n  let messageBox = document.querySelector('.chatmsg')\n  let sendBtn = document.querySelector('.sendbtn')\n  btn.click()\n  messageBox.innerHTML=&quot;Hello, how are you? I'm Furqan. This message is sent by my automatic chatbot.&quot;\n  sendBtn.click()\n}\n\nsetInterval(executeOmegle,4000)<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Code Explanation<\/h3>\n\n\n\n<p>Basically, at first, I have defined a new JavaScript function called <code>executeOmegle()<\/code>. In this function, I&#8217;ve used <code>document.querySelector()<\/code> to select the &#8220;Start\/Stop chat&#8221; button, message textarea, and the &#8220;Send&#8221; button based on their HTML5 class attribute.<\/p>\n\n\n\n<p>I then call the <code>btn.click()<\/code> method to open a new chat with stranger.<\/p>\n\n\n\n<p>The <code>messageBox.innerHTML<\/code> is the main line of code where we need to specify the text message we want to send.<\/p>\n\n\n\n<p>After that, I called the <code>sendBtn.click()<\/code> method that enables us to click the &#8220;Send&#8221; button programmatically.<\/p>\n\n\n\n<p>Finally, we&#8217;ll execute our function every 4 seconds using <code>setInterval(executeOmegle,4000)<\/code> code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Omegle Bot Screenshot<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_bot-1024x469.jpg\" alt=\"Omegle Bot\" class=\"wp-image-2836\" title=\"Omegle Bot\" srcset=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_bot-1024x469.jpg 1024w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_bot-300x137.jpg 300w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_bot-768x351.jpg 768w, https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_chat_bot.jpg 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Omegle Bot<\/figcaption><\/figure>\n\n\n\n<p>As you can see that in the above screenshot our Omegle bot is working. Basically, our Omegle chatbot will continue to work as long as you are active on the Omegle chat page.<\/p>\n\n\n\n<p>If you want to turn off the Omegle bot, simply clear the &#8220;Console&#8221; tab and close Chrome DevTools.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we&#8217;ll use JavaScript to make an Omegle Bot. You don&#8217;t need to be a programmer to follow along with this article. I&#8217;ve already written the source code, you just need to copy\/paste it inside your web browser. Basically, an Omegle Bot allows us to automate some tasks. For example, today I&#8217;ll show &#8230; <a title=\"How To Make an Automatic Omegle Bot Using JavaScript\" class=\"read-more\" href=\"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/\" aria-label=\"Read more about How To Make an Automatic Omegle Bot Using JavaScript\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2843,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[112],"tags":[],"class_list":["post-2828","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Make an Automatic Omegle Bot Using JavaScript<\/title>\n<meta name=\"description\" content=\"In this tutorial, we&#039;ll use JavaScript to make an Omegle Bot. You don&#039;t need to be a programmer to follow along with this article. I&#039;ve already written\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Make an Automatic Omegle Bot Using JavaScript\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we&#039;ll use JavaScript to make an Omegle Bot. You don&#039;t need to be a programmer to follow along with this article. I&#039;ve already written\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Edopedia\" \/>\n<meta property=\"article:author\" content=\"trulyfurqan\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-13T22:33:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-13T23:08:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_bot.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"880\" \/>\n\t<meta property=\"og:image:height\" content=\"495\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Furqan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Furqan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Make an Automatic Omegle Bot Using JavaScript","description":"In this tutorial, we'll use JavaScript to make an Omegle Bot. You don't need to be a programmer to follow along with this article. I've already written","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/","og_locale":"en_US","og_type":"article","og_title":"How To Make an Automatic Omegle Bot Using JavaScript","og_description":"In this tutorial, we'll use JavaScript to make an Omegle Bot. You don't need to be a programmer to follow along with this article. I've already written","og_url":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/","og_site_name":"Edopedia","article_author":"trulyfurqan","article_published_time":"2022-08-13T22:33:34+00:00","article_modified_time":"2022-08-13T23:08:10+00:00","og_image":[{"width":880,"height":495,"url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_bot.jpg","type":"image\/jpeg"}],"author":"Furqan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Furqan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#article","isPartOf":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/"},"author":{"name":"Furqan","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/3951cb19e3aa56df09e408c98aa02339"},"headline":"How To Make an Automatic Omegle Bot Using JavaScript","datePublished":"2022-08-13T22:33:34+00:00","dateModified":"2022-08-13T23:08:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/"},"wordCount":414,"commentCount":0,"publisher":{"@id":"https:\/\/www.edopedia.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_bot.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/","url":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/","name":"How To Make an Automatic Omegle Bot Using JavaScript","isPartOf":{"@id":"https:\/\/www.edopedia.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_bot.jpg","datePublished":"2022-08-13T22:33:34+00:00","dateModified":"2022-08-13T23:08:10+00:00","description":"In this tutorial, we'll use JavaScript to make an Omegle Bot. You don't need to be a programmer to follow along with this article. I've already written","breadcrumb":{"@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#primaryimage","url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_bot.jpg","contentUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2022\/08\/omegle_bot.jpg","width":880,"height":495,"caption":"How To Make an Omegle Bot"},{"@type":"BreadcrumbList","@id":"https:\/\/www.edopedia.com\/blog\/how-to-make-an-automatic-omegle-bot-using-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.edopedia.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Make an Automatic Omegle Bot Using JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/www.edopedia.com\/blog\/#website","url":"https:\/\/www.edopedia.com\/blog\/","name":"Edopedia","description":"Coding\/Programming Blog","publisher":{"@id":"https:\/\/www.edopedia.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.edopedia.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.edopedia.com\/blog\/#organization","name":"Edopedia","url":"https:\/\/www.edopedia.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2017\/10\/edopedia_icon_text_10.jpg","contentUrl":"https:\/\/www.edopedia.com\/blog\/wp-content\/uploads\/2017\/10\/edopedia_icon_text_10.jpg","width":400,"height":100,"caption":"Edopedia"},"image":{"@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.edopedia.com\/blog\/#\/schema\/person\/3951cb19e3aa56df09e408c98aa02339","name":"Furqan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e5e68aef3ad8f0b83d56f4953c512c8e57bd2e6dc64daec33b5d0495d9058f51?s=96&d=mm&r=g","caption":"Furqan"},"description":"Well. I've been working for the past three years as a web designer and developer. I have successfully created websites for small to medium sized companies as part of my freelance career. During that time I've also completed my bachelor's in Information Technology.","sameAs":["http:\/\/www.edopedia.com\/blog\/","trulyfurqan"],"url":"https:\/\/www.edopedia.com\/blog\/author\/furqan\/"}]}},"_links":{"self":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/2828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/comments?post=2828"}],"version-history":[{"count":0,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/posts\/2828\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/media\/2843"}],"wp:attachment":[{"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/media?parent=2828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/categories?post=2828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edopedia.com\/blog\/wp-json\/wp\/v2\/tags?post=2828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}