Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bmgalego committed Dec 20, 2024
1 parent 24e7eed commit 95d48a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 0 additions & 7 deletions packages/client-telegram/src/messageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,6 @@ export class MessageManager {
elizaLogger.info(`Bot mentioned`);
return true;
}
// if text does not contain trigger phrase, do not respond
if (
"text" in message &&
!message.text?.toLowerCase().includes(this.triggerPhrase)
) {
return false;
}

// Respond to private chats
if (message.chat.type === "private") {
Expand Down
5 changes: 3 additions & 2 deletions packages/plugin-solana/src/actions/transfer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
getAssociatedTokenAddressSync,
createTransferInstruction,
createAssociatedTokenAccountInstruction,
} from "@solana/spl-token";
import { elizaLogger, settings } from "@ai16z/eliza";

Expand Down Expand Up @@ -143,6 +144,8 @@ export default {
true
);

if (!senderKeypair) return false;

const connection = new Connection(settings.RPC_URL!);

const mintPubkey = new PublicKey(content.tokenAddress);
Expand Down Expand Up @@ -176,8 +179,6 @@ export default {
const recipientATAInfo =
await connection.getAccountInfo(recipientATA);
if (!recipientATAInfo) {
const { createAssociatedTokenAccountInstruction } =
await import("@solana/spl-token");
instructions.push(
createAssociatedTokenAccountInstruction(
senderKeypair.publicKey,
Expand Down

0 comments on commit 95d48a3

Please sign in to comment.