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.
@@ -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
- ];