The Discord API is a set of tools that enables developers to build bots or extend the functionality of their app using data and services exposed by Discord. In other words, the Discord API provides a programmable interface for developers to interact with Discord. REST is one of the ways your applications can interaction with the Discord API.
With Discord's REST API, it's possible for developers to fetch users' data, like their names and profile photos, by making HTTP calls to a specific endpoint. The developer can then use the data in an external app or in a Discord application.
Here, we've used one of the unpopular food API on the internet, Spoonacular API. This spectacular API allows us to understand the relationships between ingredients, recipes, nutrition, allergens, and more.
Integrating some of the HTTP calls from this API into our Discord server, Food-ex allows you to perform a variety of commands including searching through thousands of recipes using advanced filtering and ranking to provide the response to your query along with a specific ID.
This ID is further used to access recipe information, nutritional value, tastiness or even cost approximation of the recipe. This bot also fetches some random recipe, joke or food trivia on specific command.
The following screenshot consists of the slash commands that are available in our Discord Bot.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update your local repository.
We've deployed the final version of this bot on replit, and you can visit - https://replit.com/@JasleenKaur28/Food-ex?v=.
Also to join our server, Foodie-fi, kindly join using the invite link - https://discord.gg/2t5THKP7
Note - As we're currently lacking the costs, the version of Discord bot uploaded on Replit will deactivate after one hour of activity, kindly run the file before running to the server. We apologize for the inconvenience.
function support() {
console.log("Hit a ⭐");
console.log("Connect with me on jasleen080104@gmail.com");
}