| const { sxbox } = 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 sxbox(text); |
| res.json({ |
| author: "Herza", |
| success: true, |
| data: result.data |
| }); |
|
|
| } catch (error) { |
| res.status(500).json({ |
| success: false, |
| error: error.message |
| }); |
| } |
| }; |
|
|
| module.exports = { |
| name: 'Xbox Stalk', |
| description: 'Stalk someone Xbox account with username', |
| type: 'GET', |
| routes: ['api/stalk/xbox'], |
| tags: ['stalk', 'tools', 'misc'], |
| parameters: ['text', 'key'], |
| enabled: true, |
| main: ['Stalk'], |
| handler |
| } |