put the CDN, how do I write the code?

Asked

Viewed 40 times

-2

I am a beginner in programming and I have this question, I put the CDN
<script src="https://unpkg.com/rivescript@latest/dist/rivescript.min.js"></script>
to install the rivescript, but now I wanted to know how do I write my code with this lib, I use another src script and put the link inside the JS? don’t know how to use!

  • 1

    Take a look at the documentation.

1 answer

0


Make that friend:

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

  • thanks! in 8 minutes I accept your answer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.