Our great sponsors
-
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.
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!
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 }
a Discord account (sign up here)