I put the CDN, how do I write the code?

-2

I'm a beginner in programming and I have this doubt, I put the CDN
<script src="https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script>
toinstall rivescript , but now I was wondering how do I write my code with this lib, I use another src script and I put the link inside from JS? I do not know how to use it!

    
asked by anonymous 13.12.2018 / 22:06

1 answer

0

Make friends:

<script type="text/javascript" src="https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script><scripttype="text/javascript">
  var bot = new RiveScript();
  
  console.log(bot);
  
  // aqui faz alguma coisa com esse plugin...
  
</script>
    
13.12.2018 / 22:12