How To Make A Covid 19 Cases Result Bot . - Wakiiteq

Sunday, August 15, 2021

How To Make A Covid 19 Cases Result Bot .

 




This article is a complete guides on how to make a covid 19 statistics bot using bot.business mobile app.

What is covid 19 live stats bot

This is a simple telegram robot that shows any country live covid 19 cases.
It shows the total number of confirmed cases and total number of death cases in your country.
Creating the covid 19 live statistics robot requires you to have a bot.business account, the bot.business app is what we'll us for making this simple robot.

To download the bot.business app you need to search it on playstore after downloading it, then create an account and follow our simple tutorial.

Warning: Selling The Code Is A Criminal Activities.

Step By Steps On How To Create A Telegram Live Stats Bot.

Step 1:

Go to telegram bot father and create a dumb robot then copy your robot api and log in to your bot.business account.

 Step2:

Click New Bot on your bot business account and click edit then input the bot api token you have gotten from bot father, then click launch bot.
You will find out that your bot is not responding to command after doing all this steps, now let's start adding those Commands and codes that would make your bot to start functioning.

Imputing Bot Command Steps

First Command You Need To Create Is Command /start

Answer: 💬 To View The Covid 19 Statistics In Your Country Please Send Your Country Name.

For Alliance Put : Covid News 🌎

Wait For Answer Should Be: On ✅

Put This In Your Keyboard: Covid News 🌎

Put The Code Bellow Inside The bjs button.

User.setProperty("country",message,"string")
HTTP.get({
  url:
    "https://covid19.mathdro.id/api/countries/"+message+"",
  success: "/result"
})

Let's Create Our Second Command.

Remembere to save the first command and bjs after Creating.



Our Second Command should be /result

Wait for answer: off

Input the bjs bellow inside the bjs button.

var result = JSON.parse(content)
var country = User.getProperty("country")
var deat = result.deaths.value
var conf = result.confirmed.value

Bot.sendMessage("*🚨COVID 19 DETAILS OF COUNTRY *"+country+"🚨\n\n*🚧 CONFIRMED --* "+conf+" people's \n\n*🚧DEATHS --* "+deat+" people's ")

Congregation Your Bot is ready to work, To view Demo click here

What is command:

Command is A simple instruction your bot response to.

What is alliance:

Alliance is an alternative command instruction your bot follow.

What is answer:

Answer is a response your bot send to it user when they click any command that has answer.

What is wait for answer:

It simply means your bot will wait for the user to send a message before your bot can respond.

Were does the statistics robot get the result from:

From https://covid19.mathdro.id, The website Api is connected to the code on this article.


No comments:

Post a Comment

Tells Us If this article is value to you