ForgeIndia is a Hinglish-powered extension for ForgeScript that lets you code in a mix of Hindi and English, just like how you talk IRL.
With this extension, you can use Hinglish keywords as aliases for ForgeScript functions β making coding more natural and fun for Indian developers.
π¦ Installation
Since forge.india isnβt on npm yet, install it directly from GitHub:
npm install https://github.com/user-lezi/ForgeIndiaβ‘ Initializing the Extension
Import ForgeIndia and add it as an extension in your ForgeClient:
const { ForgeIndia, ForgeIndiaTranslation } = require("forge.india");
const { ForgeClient } = require("@tryforge/forgescript");
const client = new ForgeClient({
intents: ["Guilds", "MessageContent", "GuildMessages"],
events: ["ready", "messageCreate"],
mobile: true,
useInviteSystem: true,
prefixes: ["!", "<@$botID>"],
extensions: [
new ForgeIndia({
debug: true, // β
Enable Debug logs
translation: ForgeIndiaTranslation.Hinglish, // β
Currently supports Hinglish
exclude: ["$ping", "$uptime"], // β
Skip translations if you want originals
}),
],
});
client.login("bot token");π Command Examples
π Reaction Command
module.exports = {
name: "up",
type: "messageCreate",
code: `$!msgReactionAddKaro[$chnlID;$msgID;π]`
};π¬ Say Command
module.exports = {
name: "say",
type: "messageCreate",
code: `$typingChaluKaro[$channelKaID]
$messageBhej[$channelKaID;$message]`
};π Configuration Options
export enum ForgeIndiaTranslation {
Hinglish = "hinglish"
}
export interface IForgeIndiaOptions {
debug: boolean; // Enable debug logs
translation: ForgeIndiaTranslation; // Choose translation set
exclude: `$${string}`[]; // Functions to exclude from translation
}π Common Function Aliases
Here are some popular ForgeScript functions and their Hinglish aliases:
| ForgeScript (English) | Hinglish Alias |
|---|---|
$sendMessage |
$messageBhej |
$deleteMessage |
$msgHatado |
$isBot |
$kyaBotHai |
$reply |
$jawabDo |
$channelID |
$channelKaID |
$userID |
$userKaID |
$userAvatar |
$userKiPhoto |
$startTyping |
$typingChaluKaro |
$addReactions |
$msgReactionAddKaro |
π Start building your bot in apni bhasha today with ForgeIndia!