create-message-kit 1.1.7-beta.33 → 1.1.7-beta.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-message-kit",
3
- "version": "1.1.7-beta.33",
3
+ "version": "1.1.7-beta.34",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,6 +10,7 @@ export async function handler(context: HandlerContext) {
10
10
 
11
11
  if (skill === "pay") {
12
12
  const { amount: amountSend, token: tokenSend, username } = params; // [!code hl] // [!code focus]
13
+ console.log("username", username);
13
14
  let senderInfo = await getUserInfo(username);
14
15
  if (!amountSend || !tokenSend || !senderInfo) {
15
16
  context.reply(
@@ -22,7 +23,7 @@ export async function handler(context: HandlerContext) {
22
23
  };
23
24
  }
24
25
 
25
- let sendUrl = `${baseUrl}/?transaction_type=send&amount=${amountSend}&token=${tokenSend}&receiver=${senderInfo.address}`;
26
+ let sendUrl = `${baseUrl}/?&amount=${amountSend}&token=${tokenSend}&receiver=${senderInfo.address}`;
26
27
  await context.send(`${sendUrl}`);
27
28
  }
28
29
  }
@@ -14,11 +14,22 @@ export async function agent_prompt(userInfo: UserInfo) {
14
14
  PROMPT_SKILLS_AND_EXAMPLES(skills, "@bot");
15
15
 
16
16
  let fineTunedPrompt = `
17
- ## Example response
18
- 1. If user wants to play a game, use the skill 'game' and specify the game type.
19
- Hey! Sure let's do that.\n/game wordle
20
- 1. If user wants to pay, use the skill 'pay' and if not specified default to 1 USDC.
21
- Hey! Sure let's do that.\n/pay 1 USDC vitalik.eth
17
+ ## Example response
18
+
19
+ 1. If user wants to play a game, use the skill 'game' and specify the game type.
20
+ Hey! Sure let's do that.\n/game wordle
21
+
22
+ 2. When user wants to pay a specific token:
23
+ I'll help you pay 1 USDC to 0x123...\n/pay 1 {TOKE}} 0x123456789...
24
+ *This will return a url to pay
25
+
26
+ 3. If the user wants to pay a eth domain:
27
+ I'll help you pay 1 USDC to vitalik.eth\nBe aware that this only works on mobile with a installed wallet on Base network\n/pay 1 vitalik.eth
28
+ *This will return a url to pay
29
+
30
+ 4. If the user wants to pay a username:
31
+ I'll help you pay 1 USDC to @fabri\nBe aware that this only works on mobile with a installed wallet on Base network\n/pay 1 @fabri
32
+ *This will return a url to pay
22
33
  `;
23
34
 
24
35
  systemPrompt += fineTunedPrompt;