Skip to main content
Glama
exitInterface.ts439 B
import {Bot} from 'mineflayer'; /** * Closes the interface that the bot is currently inside * * @param {Bot} bot - The Mineflayer bot instance. * * @return {Promise<void>} */ export const exitInterface = async (bot: Bot): Promise<void> => { if ( bot.openedInterface && bot.currentInterface && bot.currentInterface.title === 'Chest' ) { bot.openedInterface.close(); } bot.setInterface(null, null, null); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/leo4life2/minecraft-mcp-http'

If you have feedback or need assistance with the MCP directory API, please join our Discord server