![code on time javascript rule code on time javascript rule](https://d1.awsstatic.com/products/WAF/product-page-diagram_APIv2-AWS-WAF_How-it-Works-2x.1cafa052deabb5ca8500ce9565209f0f97725482.png)
What this does is it gets the Discord library we installed a bit ago and creates a new client. Go back into the server.js file add add these first few lines after all the current code. Then Copy the token from the developer portal and paste it right after the equal sign and no semicolons! Now that your link is ready, press Enter! I’d recommend checking Administrator so you can have access to all features, but if you want to just use some features then just click the ones you want. You can find one back in the bot section and scroll down. Then Replace PERMISSIONS with the permissions integer. Replace CLIENT_ID with the client id from your bot! Go back to “General Information” and click the copy button and paste that into the link. Now that you’ve made a new test server, it’s time to invite the bot! You’ll have to make a link yourself, heres a template:
CODE ON TIME JAVASCRIPT RULE HOW TO
If you don’t know how to get into the discord app in your browser just click the “Open” button on the discord website! The conversational implementation of server-side business rule is very complex due to asynchronous execution of client and server code.
![code on time javascript rule code on time javascript rule](https://www.freecodecamp.org/news/content/images/2020/12/fcc-bg-image-2.png)
Now that our bot is created, we can invite it! We’ll create a test server to test some stuff! Open discord in your browser or start up the discord app if you haven’t already, make a new server by clicking that plus button. JavaScript code is executed in the browser and offers a luxury of having a conversation with the user. You can see your bot already has a discord tag, at this point you can add an icon by clicking on that discord icon! Now that the bot is set up, keep this open as you will need two important things that you’ll need to invite the bot and to start it up in the code! Section II – Invite the bot to a test server Speaking of that, let’s create the bot! In the section on the left, click the Bot button! Now click the newly made “Add Bot” button! This’ll turn your application into a bot! You’ll see a lot of buttons! Once you’ve created it you’ll be brung to a whole new page! Note the app icon won’t actually show on the bot.