create-message-kit 1.1.9 → 1.1.10-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +12 -36
- package/package.json +2 -2
- package/templates/agent/.yarnrc.yml +4 -0
- package/templates/agent/package.json +20 -0
- package/templates/agent/src/handlers/check.ts +42 -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 +29 -0
- package/templates/agent/src/index.ts +55 -55
- package/templates/agent/src/prompt.ts +52 -0
- package/templates/gated/.env.example +3 -0
- package/templates/gated/.yarnrc.yml +4 -0
- package/templates/gated/package.json +23 -0
- package/templates/gated/src/index.ts +64 -0
- package/templates/gated/src/lib/gated.ts +51 -0
- package/templates/gated/src/lib/nft.ts +37 -0
- package/templates/gated/src/skills.ts +24 -0
- package/templates/gpt/.yarnrc.yml +4 -0
- package/templates/gpt/package.json +20 -0
- package/templates/gpt/src/index.ts +8 -29
- package/templates/gpt/src/prompt.ts +8 -18
- package/templates/group/.yarnrc.yml +4 -0
- package/templates/group/package.json +20 -0
- package/templates/group/src/{handler → handlers}/game.ts +19 -3
- package/templates/group/src/{handler → handlers}/helpers.ts +22 -3
- package/templates/group/src/handlers/payment.ts +51 -0
- package/templates/group/src/handlers/tipping.ts +60 -0
- package/templates/group/src/index.ts +34 -21
- package/templates/group/src/prompt.ts +21 -16
- package/templates/agent/src/handler.ts +0 -174
- package/templates/agent/src/skills.ts +0 -88
- package/templates/ens-agent-pro/.env.example +0 -2
- package/templates/ens-agent-pro/src/index.ts +0 -90
- package/templates/ens-agent-pro/src/prompt.ts +0 -19
- package/templates/ens-agent-pro/src/skills.ts +0 -233
- 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
|
-
examples: ["/tip @vitalik 10 usdc"],
|
16
|
-
description: "Tip users in a specified token.",
|
17
|
-
handler: tipping,
|
18
|
-
params: {
|
19
|
-
username: {
|
20
|
-
default: "",
|
21
|
-
plural: true,
|
22
|
-
type: "username",
|
23
|
-
},
|
24
|
-
amount: {
|
25
|
-
default: 10,
|
26
|
-
type: "number",
|
27
|
-
},
|
28
|
-
token: {
|
29
|
-
default: "usdc",
|
30
|
-
type: "string",
|
31
|
-
values: ["eth", "dai", "usdc", "degen"],
|
32
|
-
},
|
33
|
-
},
|
34
|
-
},
|
35
|
-
{
|
36
|
-
skill: "/pay [amount] [token] [username]",
|
37
|
-
examples: ["/pay 10 usdc vitalik.eth", "/pay 1 @alix"],
|
38
|
-
description:
|
39
|
-
"Send a specified amount of a cryptocurrency to a destination address.",
|
40
|
-
handler: payment,
|
41
|
-
params: {
|
42
|
-
amount: {
|
43
|
-
default: 10,
|
44
|
-
type: "number",
|
45
|
-
},
|
46
|
-
token: {
|
47
|
-
default: "usdc",
|
48
|
-
type: "string",
|
49
|
-
values: ["eth", "dai", "usdc", "degen"], // Accepted tokens
|
50
|
-
},
|
51
|
-
username: {
|
52
|
-
default: "",
|
53
|
-
type: "username",
|
54
|
-
},
|
55
|
-
},
|
56
|
-
},
|
57
|
-
{
|
58
|
-
skill: "/game [game]",
|
59
|
-
handler: games,
|
60
|
-
description: "Play a game.",
|
61
|
-
examples: ["/game wordle", "/game slot", "/game help"],
|
62
|
-
params: {
|
63
|
-
game: {
|
64
|
-
default: "",
|
65
|
-
type: "string",
|
66
|
-
values: ["wordle", "slot", "help"],
|
67
|
-
},
|
68
|
-
},
|
69
|
-
},
|
70
|
-
{
|
71
|
-
skill: "/help",
|
72
|
-
examples: ["/help"],
|
73
|
-
handler: help,
|
74
|
-
description: "Get help with the bot.",
|
75
|
-
params: {},
|
76
|
-
},
|
77
|
-
{
|
78
|
-
skill: "/id",
|
79
|
-
adminOnly: true,
|
80
|
-
examples: ["/id"],
|
81
|
-
handler: help,
|
82
|
-
description: "Get the group ID.",
|
83
|
-
params: {},
|
84
|
-
},
|
85
|
-
],
|
86
|
-
},
|
87
|
-
];
|