Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit e5697f2

Browse files
author
zill
committed
feat(master): Add sample wrangler config
1 parent e3f0116 commit e5697f2

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/models/command.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const Cmd = {
220220
"backupText": {
221221
"prevId": "manage",
222222
"id": "backupText",
223-
"title": "تهیه نسخه پشتیبان",
223+
"title": "تنظیمات بکاپ",
224224
"icon": `🚨`,
225225
textIcon() {
226226
return `${this.icon} ${this.title}`
@@ -230,8 +230,7 @@ const Cmd = {
230230
"body": `🚨
231231
232232
برای تهیه بکاپ، طبق الگوی زیر مشخصات سرور رو ثبت کنید:
233-
serverUrl: ${"آدرس سرور".replaceAll(" ", "_")}
234-
doPerHour: ${"هر چند ساعت؟".replaceAll(" ", "_")}
233+
serverUrl: ${"آدرس سرور".replaceAll(" ", "_")}
235234
chatId: ${"آیدی کانال/گروه/شخص".replaceAll(" ", "_")}
236235
`,
237236
"successText": ``,

wrangler-sample.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name = "v2-xbot"
2+
compatibility_date = "2023-01-01"
3+
node_compat = true
4+
vars = { env = "staging", enableLog = "false", botToken = "YOUR_BOT_TOKEN", adminId = "YOUR_ADMIN_ID", tlgSupport = "@YOUR_SUUPORT_ID" }
5+
kv_namespaces = [
6+
{ binding = "db", id = "YOUR_KV_ID" },
7+
]
8+
[triggers]
9+
crons = ["0 */1 * * *"] # Auto-Backup cron job
10+

0 commit comments

Comments
 (0)