create-message-kit 1.1.8 → 1.1.9-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +32 -12
- package/package.json +2 -2
- package/templates/agent/src/handlers/check.ts +43 -0
- package/templates/agent/src/handlers/cool.ts +52 -0
- package/templates/agent/src/handlers/info.ts +65 -0
- package/templates/agent/src/handlers/register.ts +40 -0
- package/templates/agent/src/handlers/renew.ts +52 -0
- package/templates/agent/src/handlers/reset.ts +19 -0
- package/templates/agent/src/handlers/tip.ts +42 -0
- package/templates/agent/src/index.ts +46 -27
- package/templates/agent/src/prompt.ts +49 -66
- package/templates/gpt/.env.example +2 -0
- package/templates/gpt/src/index.ts +18 -0
- package/templates/gpt/src/prompt.ts +10 -0
- package/templates/group/src/{handler → handlers}/game.ts +19 -3
- package/templates/group/src/{handler → handlers}/helpers.ts +23 -4
- package/templates/group/src/handlers/payment.ts +51 -0
- package/templates/group/src/handlers/tipping.ts +61 -0
- package/templates/group/src/index.ts +29 -27
- package/templates/group/src/prompt.ts +24 -36
- package/templates/agent/src/handler/ens.ts +0 -175
- package/templates/agent/src/skills.ts +0 -107
- package/templates/gm/.env.example +0 -1
- package/templates/gm/src/index.ts +0 -5
- package/templates/group/src/handler/payment.ts +0 -29
- package/templates/group/src/handler/tipping.ts +0 -40
- package/templates/group/src/skills.ts +0 -87
@@ -1,87 +0,0 @@
|
|
1
|
-
import { handler as tipping } from "./handler/tipping.js";
|
2
|
-
import { handler as payment } from "./handler/payment.js";
|
3
|
-
import { handler as games } from "./handler/game.js";
|
4
|
-
import { handler as help } from "./handler/helpers.js";
|
5
|
-
import type { SkillGroup } from "@xmtp/message-kit";
|
6
|
-
|
7
|
-
export const skills: SkillGroup[] = [
|
8
|
-
{
|
9
|
-
name: "Group bot",
|
10
|
-
tag: "@bot",
|
11
|
-
description: "Group agent for tipping and transactions.",
|
12
|
-
skills: [
|
13
|
-
{
|
14
|
-
skill: "/tip [usernames] [amount] [token]",
|
15
|
-
triggers: ["/tip"],
|
16
|
-
examples: ["/tip @vitalik 10 usdc"],
|
17
|
-
description: "Tip users in a specified token.",
|
18
|
-
handler: tipping,
|
19
|
-
params: {
|
20
|
-
username: {
|
21
|
-
default: "",
|
22
|
-
plural: true,
|
23
|
-
type: "username",
|
24
|
-
},
|
25
|
-
amount: {
|
26
|
-
default: 10,
|
27
|
-
type: "number",
|
28
|
-
},
|
29
|
-
},
|
30
|
-
},
|
31
|
-
{
|
32
|
-
skill: "/pay [amount] [token] [username]",
|
33
|
-
triggers: ["/pay"],
|
34
|
-
examples: ["/pay 10 vitalik.eth"],
|
35
|
-
description:
|
36
|
-
"Send a specified amount of a cryptocurrency to a destination address.",
|
37
|
-
handler: payment,
|
38
|
-
params: {
|
39
|
-
amount: {
|
40
|
-
default: 10,
|
41
|
-
type: "number",
|
42
|
-
},
|
43
|
-
token: {
|
44
|
-
default: "usdc",
|
45
|
-
type: "string",
|
46
|
-
values: ["eth", "dai", "usdc", "degen"], // Accepted tokens
|
47
|
-
},
|
48
|
-
username: {
|
49
|
-
default: "",
|
50
|
-
type: "username",
|
51
|
-
},
|
52
|
-
},
|
53
|
-
},
|
54
|
-
{
|
55
|
-
skill: "/game [game]",
|
56
|
-
triggers: ["/game", "🔎", "🔍"],
|
57
|
-
handler: games,
|
58
|
-
description: "Play a game.",
|
59
|
-
examples: ["/game wordle", "/game slot", "/game help"],
|
60
|
-
params: {
|
61
|
-
game: {
|
62
|
-
default: "",
|
63
|
-
type: "string",
|
64
|
-
values: ["wordle", "slot", "help"],
|
65
|
-
},
|
66
|
-
},
|
67
|
-
},
|
68
|
-
{
|
69
|
-
skill: "/help",
|
70
|
-
triggers: ["/help"],
|
71
|
-
examples: ["/help"],
|
72
|
-
handler: help,
|
73
|
-
description: "Get help with the bot.",
|
74
|
-
params: {},
|
75
|
-
},
|
76
|
-
{
|
77
|
-
skill: "/id",
|
78
|
-
adminOnly: true,
|
79
|
-
examples: ["/id"],
|
80
|
-
handler: help,
|
81
|
-
triggers: ["/id"],
|
82
|
-
description: "Get the group ID.",
|
83
|
-
params: {},
|
84
|
-
},
|
85
|
-
],
|
86
|
-
},
|
87
|
-
];
|