create-message-kit 1.1.10-beta.2 → 1.1.10-beta.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
KEY= # the private key of the wallet
|
2
|
-
|
2
|
+
OPENAI_API_KEY= # sk-proj-...
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { XMTPContext, getUserInfo } from "@xmtp/message-kit";
|
1
|
+
import { XMTPContext } from "@xmtp/message-kit";
|
3
2
|
|
4
3
|
import type { skillAction } from "@xmtp/message-kit";
|
5
4
|
|
@@ -24,6 +23,5 @@ export async function handleTip(context: XMTPContext) {
|
|
24
23
|
},
|
25
24
|
},
|
26
25
|
} = context;
|
27
|
-
|
28
|
-
await context.sendPay(1, "USDC", address);
|
26
|
+
await context.sendPayment(1, "USDC", address);
|
29
27
|
}
|
@@ -18,6 +18,7 @@ export const frameUrl = "https://ens.steer.fun/";
|
|
18
18
|
export const ensUrl = "https://app.ens.domains/";
|
19
19
|
export const txpayUrl = "https://txpay.vercel.app";
|
20
20
|
|
21
|
+
// [!region skills]
|
21
22
|
export const skills = [
|
22
23
|
{
|
23
24
|
name: "Ens Domain Bot",
|
@@ -34,7 +35,9 @@ export const skills = [
|
|
34
35
|
],
|
35
36
|
},
|
36
37
|
];
|
38
|
+
// [!endregion skills]
|
37
39
|
|
40
|
+
// [!region run]
|
38
41
|
run(
|
39
42
|
async (context: XMTPContext) => {
|
40
43
|
const {
|
@@ -53,3 +56,5 @@ run(
|
|
53
56
|
},
|
54
57
|
{ skills },
|
55
58
|
);
|
59
|
+
|
60
|
+
// [!endregion run]
|
@@ -1,2 +1,2 @@
|
|
1
1
|
KEY= # the private key of the agent wallet
|
2
|
-
|
2
|
+
OPENAI_API_KEY= # the API key for OpenAI
|
@@ -1,2 +1,2 @@
|
|
1
1
|
KEY= # the private key of the agent wallet
|
2
|
-
|
2
|
+
OPENAI_API_KEY= # openai api key
|