Skip to content

Commit

Permalink
Add commands plugin page (#1018)
Browse files Browse the repository at this point in the history
Co-authored-by: Roz <[email protected]>
Co-authored-by: Qz <[email protected]>
Co-authored-by: Roz <[email protected]>
Co-authored-by: Hero Protagonist <[email protected]>
Co-authored-by: Andrii Zontov <[email protected]>
Co-authored-by: Roz <[email protected]>
Co-authored-by: Roj <[email protected]>
Co-authored-by: MasedMSD <[email protected]>
Co-authored-by: Habemuscode <[email protected]>
Co-authored-by: Nazar Anroniuk <[email protected]>
Co-authored-by: deptyped <[email protected]>
Co-authored-by: Acer <>
  • Loading branch information
12 people authored Nov 17, 2024
1 parent 1a4db2c commit cb924cc
Show file tree
Hide file tree
Showing 28 changed files with 3,840 additions and 36 deletions.
6 changes: 6 additions & 0 deletions site/docs/.vitepress/configs/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ const pluginOfficial = {
// do not add the following line to translations:
activeMatch: "^(/plugins/chat-members|/ref/chat-members/)$",
},
{
text: "Commands (commands)",
link: "/plugins/commands",
// do not add the following line to translations:
activeMatch: "^(/plugins/commands|/ref/commands/)$",
},
],
};

Expand Down
8 changes: 8 additions & 0 deletions site/docs/.vitepress/configs/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ const pluginOfficial = {
text: "Modo de parsear (parse-mode)",
link: "/es/plugins/parse-mode",
},
{
text: "Miembros del chat (chat-members)",
link: "/es/plugins/chat-members",
},
{
text: "Comandos (commands)",
link: "/es/plugins/commands",
},
],
};

Expand Down
4 changes: 4 additions & 0 deletions site/docs/.vitepress/configs/locales/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ const pluginOfficial = {
text: "Chat Members (chat-members)",
link: "/id/plugins/chat-members",
},
{
text: "Perintah (commands)",
link: "/id/plugins/commands",
},
],
};
const pluginThirdparty = {
Expand Down
4 changes: 4 additions & 0 deletions site/docs/.vitepress/configs/locales/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ const pluginOfficial = {
text: "Пользователи чата (chat-members)",
link: "/ru/plugins/chat-members",
},
{
text: "Команды (commands)",
link: "/ru/plugins/commands",
},
],
};

Expand Down
4 changes: 4 additions & 0 deletions site/docs/.vitepress/configs/locales/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ const pluginOfficial = {
text: "Учасники чату (chat-members)",
link: "/uk/plugins/chat-members",
},
{
text: "Команди (commands)",
link: "/uk/plugins/commands",
},
],
};

Expand Down
4 changes: 4 additions & 0 deletions site/docs/.vitepress/configs/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ const pluginOfficial = {
text: "聊天成员 (chat-members)",
link: "/zh/plugins/chat-members",
},
{
text: "指令 (commands)",
link: "/zh/plugins/commands",
},
],
};

Expand Down
3 changes: 2 additions & 1 deletion site/docs/.vitepress/plugins/current-versions/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"grammy_storages",
"grammy_conversations",
"grammy_autoquote",
"grammy_i18n"
"grammy_i18n",
"grammy_commands"
]
}
2 changes: 1 addition & 1 deletion site/docs/es/guide/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Para poder ejecutar el archivo `bot.js`, tienes que tener instalado [Node.js](ht

En resumen, esto es lo que tienes que hacer para Node.js:

1. Crea un archivo fuente `bot.ts` con código TypeScript, por ejemplo usando [VS Code](https://code.visualstudio.com/) (o cualquier otro editor de código).
1. Crea un archivo fuente `bot.ts` con código TypeScript, por ejemplo usando [VS Code](https://code.visualstudio.com) (o cualquier otro editor de código).
2. Compila el código ejecutando un comando en tu terminal. Esto genera un archivo llamado `bot.js`.
3. Ejecuta `bot.js` usando Node.js, de nuevo desde tu terminal.

Expand Down
2 changes: 1 addition & 1 deletion site/docs/es/hosting/heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Si se ejecuta con éxito y no imprime ningún error, nuestros archivos compilado

### Configurar el `Procfile`

Por el momento, `Heroku` tiene varios [tipos de dynos](https://devcenter.heroku.com/articles/dyno-types).
Por el momento, `Heroku` tiene varios [tipos de dynos](https://devcenter.heroku.com/articles/dynos#use-cases).
Dos de ellos son:

- **Web dynos**:
Expand Down
Loading

0 comments on commit cb924cc

Please sign in to comment.