{"id":79201,"date":"2022-01-31T21:30:02","date_gmt":"2022-01-31T21:30:02","guid":{"rendered":"http:\/\/www.quintadosilval.pt\/?p=79201"},"modified":"2022-01-31T21:45:12","modified_gmt":"2022-01-31T21:45:12","slug":"the-bot-you-only-generated-is-ok-its-not-very","status":"publish","type":"post","link":"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/","title":{"rendered":"The bot you only generated is ok, it\u2019s not very interesting."},"content":{"rendered":"<p><title>The bot you only generated is ok, it\u2019s not very interesting.<\/title><\/p>\n<p>The fundamental parts are there, therefore you can exchange all of them completely and increase all of them conveniently.<\/p>\n<p>The elements to concentrate on whenever customizing include whenever \/command\/i contours, plus the book within prices from the answer.txt contours. These represent the inputs the bot accepts, and also the meages they directs straight back as feedback.<\/p>\n<p>So, should you decide wanted to say something else as a response on the \/greet demand, you\u2019d alter the value of answer.text within the welcome order range ( when \/greet\/i ). Here\u2019s a variation you could try:<\/p>\n<p>Here, I\u2019ve produced a wide range with a few different methods to say hello, and then extra a person to the meage randomly utilizing the trial process.<\/p>\n<h2>Turning your own robot into anything amazing<\/h2>\n<p>You could add as numerous directions, replies, and features to your bot as you like. Most of really creative imagination, and a lot of Googling whenever run. Should you want to learn several things which are relevant for this bot, focus on practice Ruby the tough method of getting to grips using concepts with the code. With a touch of practise and a healthy reliance on StackOverflow, you\u2019ll manage to:<\/p>\n<ul>\n<li>Connect other APIs to pull data from options like Airtable, Slack, R, or Twitter. This is when the really exciting features will come in \u2014 you can produce a robot that will act as a conversational interface to a set of information or qualities, like a bot that returns search engine results from Twitter or articles to Slack.<!--more--><\/li>\n<li>Store user insight in a databases. You could build a Telegram robot that provides automatic support to people or reacts to inquiries, and stores their own e-mail addrees in a database. The follow up jewel allows you to generate, write, modify, and study sources.<\/li>\n<li>Create a book adventure.Coloal cavern Adventure, among the first terminal video games, has become ported over to Telegram as a bot. Go here right here, and discover the foundation right here.<\/li>\n<\/ul>\n<p>If you want motivation, look for some other people\u2019s bot provider laws, and look a summary of Telegram bots \u2014 you will need to work out how <a href=\"https:\/\/hookupwebsites.org\/meetmindful-review\/\"><img decoding=\"async\" src=\"https:\/\/www.bravotv.com\/sites\/bravo\/files\/field_blog_image\/2016\/12\/dish-090816-tom-ariana.jpg\" alt=\"\"><\/a> they work and replicate all of them as practice.<\/p>\n<h2>Running your bot 24\/7<\/h2>\n<p>Today, the bot try run in your terminal on your computer. That\u2019s good until such time you need to restart your computer, your own wi-fi falls, or your personal computer visits rest. When that occurs, they terminates the bot\u2019s proce and users won\u2019t bring a reply from this.<\/p>\n<p>The proce of moving their robot from a development atmosphere (your computers where you utilized Atom to create the robot) to a production atmosphere (a machine) is recognized as deployment. There are some options for deploying the robot, in both instances we\u2019re gonna begin by uploading the records to Bitbucket. Bitbucket enables you to utilize git, a version controls program that helps that securely generate and monitor modifications your bot\u2019s rule. By uploading your bot\u2019s data to Bitbucket, you can make use of Bitbucket in order to seize the bot\u2019s documents when you\u2019re logged into the number.<\/p>\n<p>Join Bitbucket and develop an innovative new repository.<\/p>\n<p>With terminal available along with exactly the same directory since your bot\u2019s resource signal, kind the following:<\/p>\n<p>git init git combine . git commit -m &#8216;initial devote&#8217;<\/p>\n<p>Today, proceed with the directions revealed by Bitbucket after putting some newer repository. Mine include:<\/p>\n<p>After getting into those two highlighted commands during my terminal and offering my personal Bitbucket paword when required, the data files become uploaded. Along with your laws staying in the affect, it is time to pick an effective way to deploy.<\/p>\n<h2>Deploying with a Raspberry Pi<\/h2>\n<p>A Raspberry Pi is a good expense if you are planning on promoting and deploying spiders \u2014 you can acquire one from only $7 and the price of a facts. It makes use of little electricity, so you can ensure that it it is on constantly and never be worried about the fee. It will be appealing purchasing a lot of money that include a keyboard, mouse, and instance but you simply need a USB charger, SD card, ethernet cable tv and the computers by itself. It is likely you posses many of these issues within workplace already.<\/p>\n<h2>Deploying with a cloud servers<\/h2>\n<p>Your don\u2019t want to own the pc your bot is operating on, you can make use of the memory and electricity of somebody else\u2019s machine to operate the robot from another location. Well-known assistance for deploying during the cloud consist of Amazon internet treatments (AWS), DigitalOcean, and Heroku.<\/p>\n<p>Out of the three, the essential entry-level are DigitalOcean and Heroku. View here in order to get a DigitalOcean levels that comes with ten bucks of credit score rating \u2014 adequate to work a server for just two period although you try it out.<\/p>\n<p>Whenever you sign up for online sea and develop a new droplet, you\u2019ll discover ways to connect with the machine via H and release the system.<\/p>\n<p>From here, it\u2019s the exact same proce whenever did in your local maker regardle with the server you\u2019re utilizing. All things considered, it\u2019s only a bash terminal. With some particular server set-up, let\u2019s go onto the actual implementation.<\/p>\n<h2>The implementation proce<\/h2>\n<p>On a new servers \u2014 whether that\u2019s a Raspberry Pi or an affect servers like Digital sea \u2014 you\u2019ll should install Ruby, Bundler, and Git:<\/p>\n<p>sudo apt-get posting sudo apt-get improve curl -L see.rvm.io | bash -s secure &#8211;ruby sudo apt-get install bundler sudo apt-get apply git<\/p>\n<p>Then make another index to suit your robot, navigate around, and down load the records from Bitbucket because of the following commands:<\/p>\n<p>mkdir spiders cd bots git clone :\/\/[email secure]\/benjbrandall\/telegram-bot.git<\/p>\n<p>Make sure to exchange the URL above (benjbran\u2026) utilizing the Address of the bot\u2019s repository on Bitbucket. You\u2019ll find the whole clone demand through Bitbucket, which means you won\u2019t should do that bit by hand.<\/p>\n<p>Up coming, kind package to set up the jewel dependencies, following ruby bot.rb to begin the robot working permanently.<\/p>\n<p>Note: if you\u2019re acceing their servers via H, you\u2019ll need certainly to operated the robot with nohup ruby bot.rb &#038; to make certain the robot doesn\u2019t stop working when the H seion was ended. Today you\u2019re liberated to shut the terminal screen, secure in information that your particular bot is gently beep booping aside inside credentials. ??<\/p>\n<p>That concludes your first stab at a Telegram bot. Along the way, your learned all about the terminal, Ruby, gems, the Telegram API, and ways to deploy a bot to a server. Questions or guide? You are able to meage me personally on Twitter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p> [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9318],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The bot you only generated is ok, it\u2019s not very interesting. - Quinta Do Silval<\/title>\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.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The bot you only generated is ok, it\u2019s not very interesting. - Quinta Do Silval\" \/>\n<meta property=\"og:description\" content=\"[&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/\" \/>\n<meta property=\"og:site_name\" content=\"Quinta Do Silval\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-31T21:30:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-31T21:45:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bravotv.com\/sites\/bravo\/files\/field_blog_image\/2016\/12\/dish-090816-tom-ariana.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/\",\"url\":\"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/\",\"name\":\"The bot you only generated is ok, it\u2019s not very interesting. - Quinta Do Silval\",\"isPartOf\":{\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/#website\"},\"datePublished\":\"2022-01-31T21:30:02+00:00\",\"dateModified\":\"2022-01-31T21:45:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/www.quintadosilval.pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The bot you only generated is ok, it\u2019s not very interesting.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/#website\",\"url\":\"https:\/\/www.quintadosilval.pt\/en\/\",\"name\":\"Quinta Do Silval\",\"description\":\"Official Page Quinta do Silval\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.quintadosilval.pt\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.quintadosilval.pt\/en\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The bot you only generated is ok, it\u2019s not very interesting. - Quinta Do Silval","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.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/","og_locale":"en_US","og_type":"article","og_title":"The bot you only generated is ok, it\u2019s not very interesting. - Quinta Do Silval","og_description":"[&hellip;]","og_url":"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/","og_site_name":"Quinta Do Silval","article_published_time":"2022-01-31T21:30:02+00:00","article_modified_time":"2022-01-31T21:45:12+00:00","og_image":[{"url":"https:\/\/www.bravotv.com\/sites\/bravo\/files\/field_blog_image\/2016\/12\/dish-090816-tom-ariana.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/","url":"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/","name":"The bot you only generated is ok, it\u2019s not very interesting. - Quinta Do Silval","isPartOf":{"@id":"https:\/\/www.quintadosilval.pt\/en\/#website"},"datePublished":"2022-01-31T21:30:02+00:00","dateModified":"2022-01-31T21:45:12+00:00","author":{"@id":"https:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852"},"breadcrumb":{"@id":"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.quintadosilval.pt\/en\/the-bot-you-only-generated-is-ok-its-not-very\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/www.quintadosilval.pt\/"},{"@type":"ListItem","position":2,"name":"The bot you only generated is ok, it\u2019s not very interesting."}]},{"@type":"WebSite","@id":"https:\/\/www.quintadosilval.pt\/en\/#website","url":"https:\/\/www.quintadosilval.pt\/en\/","name":"Quinta Do Silval","description":"Official Page Quinta do Silval","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.quintadosilval.pt\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/91082182c7332352c59ae672ed0c9852","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.quintadosilval.pt\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/13e1d3b398f1b72b1f2d7d53a6c64370?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.quintadosilval.pt\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts\/79201"}],"collection":[{"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/comments?post=79201"}],"version-history":[{"count":1,"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts\/79201\/revisions"}],"predecessor-version":[{"id":79202,"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/posts\/79201\/revisions\/79202"}],"wp:attachment":[{"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/media?parent=79201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/categories?post=79201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quintadosilval.pt\/en\/wp-json\/wp\/v2\/tags?post=79201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}