create-gramstax 0.2.0 → 0.2.1
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/dist/src/templates/package.json +1 -1
- package/dist/src/templates/src/pages/general-error-input-notfound.ts +1 -5
- package/dist/src/templates/src/pages/general-error.ts +1 -11
- package/dist/src/templates/src/pages/help.ts +1 -13
- package/dist/src/templates/src/pages/start.ts +12 -15
- package/dist/src/templates/src/pages/username-notfound.ts +1 -5
- package/package.json +1 -1
|
@@ -14,13 +14,9 @@ export class GeneralErrorInputNotFoundPage extends PageBase {
|
|
|
14
14
|
|
|
15
15
|
public static template = /*jsx*/ `
|
|
16
16
|
<base>
|
|
17
|
-
<
|
|
18
|
-
<keyboard lang="en" type="inline">.. Home</keyboard>
|
|
19
|
-
<keyboard lang="it" type="inline">.. Casa</keyboard>
|
|
20
|
-
<keyboard lang="id" type="inline">.. Beranda</keyboard>
|
|
17
|
+
<import src="start" base="ikb-home" />
|
|
21
18
|
|
|
22
19
|
<message><b>❌ Not Found</b></message>
|
|
23
|
-
<message lang="en"><b>❌ Not Found</b></message>
|
|
24
20
|
<message lang="it"><b>❌ Non Trovato</b></message>
|
|
25
21
|
<message lang="id"><b>❌ Tidak Ditemukan</b></message>
|
|
26
22
|
</base>
|
|
@@ -23,10 +23,7 @@ export class GeneralErrorPage extends PageBase {
|
|
|
23
23
|
|
|
24
24
|
public static template = /*jsx*/ `
|
|
25
25
|
<base>
|
|
26
|
-
<
|
|
27
|
-
<keyboard lang="en" type="inline">.. Home</keyboard>
|
|
28
|
-
<keyboard lang="es" type="inline">.. Inicio</keyboard>
|
|
29
|
-
<keyboard lang="id" type="inline">.. Beranda</keyboard>
|
|
26
|
+
<import src="start" base="ikb-home" />
|
|
30
27
|
|
|
31
28
|
<message>
|
|
32
29
|
<b>❌ Error</b>
|
|
@@ -35,13 +32,6 @@ export class GeneralErrorPage extends PageBase {
|
|
|
35
32
|
Please try again later.
|
|
36
33
|
</message>
|
|
37
34
|
|
|
38
|
-
<message lang="en">
|
|
39
|
-
<b>❌ Error</b>
|
|
40
|
-
|
|
41
|
-
An unexpected error occurred.
|
|
42
|
-
Please try again later.
|
|
43
|
-
</message>
|
|
44
|
-
|
|
45
35
|
<message lang="it">
|
|
46
36
|
<b>❌ Errore</b>
|
|
47
37
|
|
|
@@ -21,27 +21,15 @@ export class HelpPage extends PageBase {
|
|
|
21
21
|
await this.internal(true)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
public async text() {
|
|
25
|
-
await this.internal(false)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
24
|
public async textCommand() {
|
|
29
25
|
await this.internal(false)
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
public async textCommandPayload() {
|
|
33
|
-
await this.internal(false)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
28
|
public static template = /*jsx*/ `
|
|
37
29
|
<base>
|
|
38
|
-
<
|
|
39
|
-
<keyboard lang="en" type="inline">.. Back</keyboard>
|
|
40
|
-
<keyboard lang="it" type="inline">.. Ritorno</keyboard>
|
|
41
|
-
<keyboard lang="id" type="inline">.. Kembali</keyboard>
|
|
30
|
+
<import src="start" base="ikb-back" />
|
|
42
31
|
|
|
43
32
|
<message><b>Help message</b></message>
|
|
44
|
-
<message lang="en"><b>Help message</b></message>
|
|
45
33
|
<message lang="it"><b>Ordina aiuto</b></message>
|
|
46
34
|
<message lang="id"><b>Pesan bantuan</b></message>
|
|
47
35
|
</base>
|
|
@@ -22,22 +22,25 @@ export class StartPage extends PageBase {
|
|
|
22
22
|
await this.internal(true)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
public async text() {
|
|
26
|
-
await this.internal(false)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
25
|
public async textCommand() {
|
|
30
26
|
await this.internal(false)
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
public async textCommandPayload() {
|
|
34
|
-
await this.internal(false)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
29
|
public static template = /*jsx*/ `
|
|
30
|
+
<base id="ikb-home">
|
|
31
|
+
<keyboard type="inline">.. Home</keyboard>
|
|
32
|
+
<keyboard lang="it" type="inline">.. Casa</keyboard>
|
|
33
|
+
<keyboard lang="id" type="inline">.. Beranda</keyboard>
|
|
34
|
+
</base>
|
|
35
|
+
|
|
36
|
+
<base id="ikb-back">
|
|
37
|
+
<keyboard type="inline">.. Back</keyboard>
|
|
38
|
+
<keyboard lang="it" type="inline">.. Ritorno</keyboard>
|
|
39
|
+
<keyboard lang="id" type="inline">.. Kembali</keyboard>
|
|
40
|
+
</base>
|
|
41
|
+
|
|
38
42
|
<base>
|
|
39
43
|
<keyboard type="inline">❓ Help</keyboard>
|
|
40
|
-
<keyboard lang="en" type="inline">❓ Help</keyboard>
|
|
41
44
|
<keyboard lang="it" type="inline">❓ Aiuto</keyboard>
|
|
42
45
|
<keyboard lang="id" type="inline">❓ Bantuan</keyboard>
|
|
43
46
|
|
|
@@ -47,12 +50,6 @@ export class StartPage extends PageBase {
|
|
|
47
50
|
<b>❓ Help</b> - View help
|
|
48
51
|
</message>
|
|
49
52
|
|
|
50
|
-
<message lang="en">
|
|
51
|
-
<b>Welcome to the bot {{userName}}</b>
|
|
52
|
-
|
|
53
|
-
<b>❓ Help</b> - View help
|
|
54
|
-
</message>
|
|
55
|
-
|
|
56
53
|
<message lang="it">
|
|
57
54
|
<b>Benvenuto nel Bot di {{userName}}</b>
|
|
58
55
|
|
|
@@ -19,13 +19,9 @@ export class UserNameNotFoundPage extends PageBase {
|
|
|
19
19
|
|
|
20
20
|
public static template = /*jsx*/ `
|
|
21
21
|
<base>
|
|
22
|
-
<
|
|
23
|
-
<keyboard lang="en" type="inline">.. Home</keyboard>
|
|
24
|
-
<keyboard lang="es" type="inline">.. Inicio</keyboard>
|
|
25
|
-
<keyboard lang="id" type="inline">.. Beranda</keyboard>
|
|
22
|
+
<import src="start" base="ikb-home" />
|
|
26
23
|
|
|
27
24
|
<message>Please set the username first before using the bot.</message>
|
|
28
|
-
<message lang="en">Please set the username first before using the bot.</message>
|
|
29
25
|
<message lang="it">Prima di utilizzare il bot, imposta prima il nome utente.</message>
|
|
30
26
|
<message lang="id">Tolong set username dulu sebelum memakai bot</message>
|
|
31
27
|
</base>
|