Download: https://nodejs.org/en/
Expand description for more.
===
ELI5 BACKGROUND INFORMATION
===
What is the internet and how do we communicate?
http://www.submarinecablemap.com/#/su...
https://en.wikipedia.org/wiki/Hyperte...
-servers send http to each other
-EXAMPLE: Go to Discord's website
What is an API?
https://en.wikipedia.org/wiki/Applica...
-application programming interface: how you talk to a program
-EXAMPLE: Discord's servers listen for specific HTTP messages
What is Discord's API for Bots?
https://discordapp.com/developers/doc...
-details how to send messages to Discord servers
===Thanks, Discord devs!!
What open-source libraries can I use to access Discord's API?
https://discordapi.com/unofficial/com...
-software devs volunteered their time to make these libraries
-you pick your language
-I'll use discord.js
===Thanks, internet and software devs all over!!
What is the Client-Server Model?
https://en.wikipedia.org/wiki/Client%...
https://www.techopedia.com/definition...
-server distributes work to clients
-EXAMPLE: Discord servers send my computer chat messages and my computer runs the bot
What is Node?
https://nodejs.org/en/
https://en.wikipedia.org/wiki/Node.js
-Javascript runtime environment
-open a terminal
##node --version
===Thank you, Node devs!
What is NPM?
https://www.npmjs.com/
-Node Package Manager
##npm --version
===Thank you, npm!
Big Picture
-client program on our end
-Discord servers listen
===
Actually coding the bot
===
Discord's end
https://discordapp.com/developers/app...
-need to make sure that Discord is listening
-we'll make an app with a bot user
Our end
https://github.com/hydrabolt/discord.js
-we'll make a simple server using discord.js
-make a directory
-open a terminal
##cd ..
##cd folder
##dir (windows)
##ls (linux, mac)
##npm init
##npm install --save discord.js
-make "index.js" file
-copy example code
-copy token from app
##node index.js
Add a bot to your server
https://discordapp.com/developers/doc...
https://discordapp.com/api/oauth2/aut...
-App client ID
===
EXTRA EXTRA READ ALL ABOUT IT
===
Javascript Tutorial:
http://www.w3schools.com/js/default.asp
https://developer.mozilla.org/en-US/d...
(Definitely do this!!)
Callback functions explanation:
http://javascriptissexy.com/understan...
(For after the tutorial)
Deploy bot to internet:
https://devcenter.heroku.com/articles...
(Use a (free) internet server to host your bot)
Discord.js documentation:
https://discord.js.org/#/docs/main/st...
(What else can you do with a discord bot?)
Give your bot permissions:
https://discordapp.com/developers/doc...
(Admin privileges, etc.)
Give your robot persistent memory:
http://blog.capterra.com/free-databas...
https://www.npmjs.com/package/redis
Organizing Node Projects:
https://blog.risingstack.com/node-her...
(Blog post about organizing files so everything's not in index.js)
npm Package List:
https://www.npmjs.com/
(Search for a package, then type
npm install --save PACKAGENAME
and then add to index.js at the top)
A nicely made bot:
https://github.com/Gravebot/Gravebot/...
Other bots:
https://www.carbonitex.net/Discord/bots
On this page of the site you can watch the video online Discord Bot Making Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Sarruby Tarruby 26 January 2017, share the link with friends and acquaintances, this video has already been watched 4,879 times on youtube and it was liked by 69 viewers. Enjoy your viewing!