Build a Discord Bot 👾

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • DiscordBotWorkshop

    Build a Discord Bot workshop for Starhacks Hackathon 2022

  • i set this repository up so that anyone can fork or clone it and add their own tokens and capabilities for their own bot easily, so if you don't want to start from scratch, fork this repo!

  • discord.js

    A powerful JavaScript library for interacting with the Discord API

  • if (message.content.startsWith(`${prefix}name`)){ message.reply(`Your name is ${message.author.username}`); // sends reply in channel to author return; } else if (message.content.startsWith(`${prefix}greeting`)){ message.channel.send("Hello world!"); // sends general message to channel return; } else if (message.content.startsWith(`${prefix}secret`)){ message.author.send("Shhh! This is a secret message for you"); // sends direct message to author return; } else if (message.content.startsWith(`${prefix}quote`)){ const quoteEmbed = new MessageEmbed().setColor("ORANGE").setTitle(`Quote for ${message.author.username}`).setURL("https://discord.js.org/#/docs/discord.js/stable/class/Client").setDescription("To be, or not to be. That is the question.") message.channel.send({embeds: [quoteEmbed]}); // sends embedded message to channel return; } else { message.channel.send("You need to enter a valid command!"); // if invalid command, send this error message to the channel }

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • customdiscordrpc

    Customizable Discord Rich Presence Client for Windows.

  • a Discord account (sign up here)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts