Programmable Discord Bot | Part 1: Basic Bot | Node.JS + Discord.JS + Ohm

Опубликовано: 04 Август 2018
на канале: Goldcrest Studios
167
5

Part 1 of a series on making a user-programmable (users can create custom commands for it) Discord bot. In this series, I will walk through the steps of creating a Discord bot along with a custom language that can be interpreted by your bot.

In this episode of the series, I go over dependencies, install Discord.JS, and set up the basic command handler. Then, we test it, fix some issues (don’t want to respond to self and only want to respond to messages starting with a prefix), and go over tokens and refer you to a guide on how to get a token (see below). Other links to helpful resources, including downloads for the software used, are also below.

Creating a Discord Bot User Guide: https://github.com/reactiflux/discord...

This series will use Node.JS (programming language), NPM (package manager), Discord.JS (discord interface library), and Ohm (language parser/interpreter). You will also need a text editor (I will be using Atom) and some basic knowledge of the terminal/command line. If you don't have these programs or don't know how to install them yourself, I would check out these links:
https://nodejs.org/en/download/ (Node.JS)
https://www.npmjs.com/get-npm (NPM)
https://atom.io/ (Atom)
https://www.learnenough.com/command-l... (Command Line/Terminal Basics)

Other References:
https://lodash.com/docs/4.17.10 (Lodash documentation)
https://discord.js.org/#/ (Discord.JS)
https://github.com/harc/ohm (Ohm)
https://discordapp.com/ (Discord)
https://discordapp.com/developers/ (Discord Developers Dashboard)

I don’t want to beg for subscribers, but if you found the video useful, please share it with anyone who might be interested in it, and subscribe if you want to see more videos like this one. Also, feedback is appreciated - dislike if you hated it, like if you liked it, or leave a comment with suggestions and questions. Thanks for watching, and I’ll see you in the next video.

Disclaimer: Discord is its own company, product, and platform; I do not develop or maintain Discord, and I don't claim to represent them either.