coronabot.js

1.2.0 • Public • Published

coronabot.js

By: LordAlex2015

Contact via Discord => ArviX#8443

NPM

Donate me on Patreon! ( https://www.patreon.com/lordalex2015 )

Description:

Display Covid-19 info's

Dependencies

  • discord.js (V12/latest)
  • unirest

Docs

https://coronabotjs.arvix.tk/

Code

Langs:

  • fr
  • en

Info's in regions

  • World
  • Africa
  • Asia
  • USA
  • Europe
  • Country
const coronaInfo = require('coronabot.js'),
prefix  = '!',
args = message.content.slice(prefix.length).trim().split(/ +/g),
lang = 'en' //You can choose fr
args.shift() //To delete the command
//For country's
    if(message.content.startsWith(`${prefix}countryInfo`)) {
        coronaInfo.countryInfo(message,args,lang)
    }
//For forced Country's
    if(message.content === `${prefix}franceInfo`) {
        coronaInfo.forcedCountryInfo(message,'France',lang)
        //You can replace France by an another Country
    }
//For World, It's the same for : Asia/Europe/USA/Africa
    if(message.content === `${prefix}worldInfo`) {
        coronaInfo.worldInfo(message,lang)
    }
//For Sympthoms of COVID-19, It's the same for: overview/prevention
    if(message.content === `${prefix}sympthoms`) {
       coronaInfo.sympthoms(message,lang)
    }

Copyright 2020 © LordAlex2015

Package Sidebar

Install

npm i coronabot.js

Weekly Downloads

21

Version

1.2.0

License

MIT

Unpacked Size

30.7 kB

Total Files

16

Last publish

Collaborators

  • lordalex2015