rubika 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/package.json +1 -1
- package/src/index.ts +2 -1
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<h1 style="color:#fff;">› rubika
|
|
2
|
+
<h1 style="color:#fff;">› rubika Framework</h1>
|
|
3
3
|
<p><b>فریمورک قدرتمند و پرسرعت جاوااسکریپت برای رباتهای روبیکا</b></p>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
## › معرفی rubika
|
|
8
|
+
## › معرفی rubika
|
|
9
9
|
|
|
10
|
-
**rubika
|
|
10
|
+
**rubika** یک فریمورک سبک، مدرن و کاملاً **غیرهمزمان** برای توسعه رباتهای روبیکا است.
|
|
11
11
|
با معماری **Filter-Base** و **Type-Safe**، شما میتوانید:
|
|
12
12
|
|
|
13
13
|
- رباتهایی سریع و کمحجم بسازید
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
## › نصب و شروع سریع
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
bun add rubika
|
|
22
|
+
bun add rubika
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## › نمونه کد ساده
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
const { Bot, Filters } = require("rubika
|
|
28
|
+
const { Bot, Filters } = require("rubika");
|
|
29
29
|
|
|
30
|
-
const bot = new Bot("rubika
|
|
30
|
+
const bot = new Bot("rubika");
|
|
31
31
|
|
|
32
32
|
bot.command("/start", async (ctx, bot) => {
|
|
33
33
|
await bot.sendMessage(ctx.chat_id, "🤖 ربات استارت شد");
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -2,7 +2,8 @@ import Bot from "./bot";
|
|
|
2
2
|
import Utils from "./utils";
|
|
3
3
|
import Filters from "./filters";
|
|
4
4
|
import type * as Enums from "./types/enums";
|
|
5
|
+
import { Update, InlineMessage } from "./types/interfaces";
|
|
5
6
|
|
|
6
7
|
export default Bot;
|
|
7
8
|
export { Bot, Filters, Utils };
|
|
8
|
-
export type { Enums };
|
|
9
|
+
export type { Enums, Update, InlineMessage };
|