DashX-API / plugins /mcstalk.js
HerzaJ's picture
Upload 36 files
7e9ddb1 verified
raw
history blame contribute delete
788 Bytes
const { mcstalk } = require('notmebotz-tools');
const handler = async (req, res) => {
try {
const { text } = req.query;
if (!text) {
return res.status(400).json({
success: false,
error: 'Missing required parameter: text'
});
}
const result = await mcstalk(text);
res.json({
author: "Herza",
success: true,
data: result.data
});
} catch (error) {
res.status(500).json({
success: false,
error: error.message
});
}
};
module.exports = {
name: 'Minecraft Stalk',
description: 'Stalk someone Minecraft account with username',
type: 'GET',
routes: ['api/stalk/minecraft'],
tags: ['stalk', 'tools', 'misc'],
parameters: ['text', 'key'],
enabled: true,
main: ['Stalk'],
handler
}