Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const axios = require('axios');
- const styleMap = {
- "Circled": "Circled",
- "Circled (neg)": "Circled (neg)",
- "Fullwidth": "Fullwidth",
- "Math bold": "Math bold",
- "Math bold Fraktur": "Math bold Fraktur",
- "Math bold italic": "Math bold italic",
- "Math bold script": "Math bold script",
- "Math double-struck": "Math double-struck",
- "Math monospace": "Math monospace",
- "Math sans": "Math sans",
- "Math sans bold": "Math sans bold",
- "Math sans bold italic": "Math sans bold italic",
- "Math sans italic": "Math sans italic",
- "Parenthesized": "Parenthesized",
- "Regional Indicator": "Regional Indicator",
- "Squared": "Squared",
- "Squared (neg)": "Squared (neg)",
- "Tag": "Tag",
- "A-cute": "A-cute",
- "CJK+Thai": "CJK+Thai",
- "Curvy 1": "Curvy 1",
- "Curvy 2": "Curvy 2",
- "Curvy 3": "Curvy 3",
- "Faux Cyrillic": "Faux Cyrillic",
- "Faux Ethiopic": "Faux Ethiopic",
- "Math Fraktur": "Math Fraktur",
- "Rock Dots": "Rock Dots",
- "Small Caps": "Small Caps",
- "Stroked": "Stroked",
- "Subscript": "Subscript",
- "Superscript": "Superscript",
- "Inverted": "Inverted",
- "Inverted Reversed": "Inverted Reversed",
- "Reversed": "Reversed",
- "Reversed Reversed": "Reversed Reversed"
- };
- module.exports = {
- config: {
- name: "style",
- version: "1.0",
- author: "Samir ล",
- shortDescription: "Style text",
- longDescription: "Style text with various fonts and characters.",
- category: "Utility",
- guide: {
- en: `{pn} [text | style number
- {
- "1": "โฝโ",
- "2": "๐ ๐ ",
- "3": "๏ผจ๏ฝ",
- "4": "๐๐ข",
- "5": "๐ณ๐",
- "6": "๐ฏ๐",
- "7": "๐๐ฒ",
- "8": "โ๐",
- "9": "๐ท๐",
- "10": "๐ง๐",
- "11": "๐๐ถ",
- "12": "๐๐",
- "13": "๐๐ช",
- "14": "โฃโค",
- "15": "๐ญ๐ฎ",
- "16": "๐ท๐ธ",
- "17": "๐ ท๐ ธ",
- "18": "",
- "19": "Hรญ",
- "20": "ใ๏พ",
- "21": "ษฆูฑ",
- "22": "ะฝฮน",
- "23": "ัเน",
- "24": "ะั",
- "25": "แแ",
- "26": "โ๐ฆ",
- "27": "แธฆรฏ",
- "28": "สษช",
- "29": "ฤฆษจ",
- "30": "โแตข",
- "31": "แดดโฑ",
- "32": "ษฅฤฑ",
- "34": "ฤฑษฅ",
- "35": "Hi",
- "36": "iH"
- }`
- }
- },
- onStart: async function ({ message, args }) {
- try {
- const [text, styleIndex] = args.join(" ").split("|").map(item => item.trim());
- const styleName = Object.values(styleMap)[parseInt(styleIndex) - 1];
- if (!styleName || !text) {
- message.reply("Please provide valid text and style number.");
- return;
- }
- const response = await axios.get(`https://apis-samir.onrender.com/api/stylize?text=${encodeURIComponent(text)}`);
- if (!response.data[styleName]) {
- message.reply("Style not found.");
- return;
- }
- message.reply(response.data[styleName]);
- } catch (error) {
- console.error("Error styling text:", error.message);
- message.reply("Failed to style text.");
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement