From 924eb96c02976fcc265b72943f783b4d7d63f76c Mon Sep 17 00:00:00 2001 From: WlodekM Date: Fri, 24 Jan 2025 20:05:11 +0200 Subject: no hardcoded username in example --- bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot.ts') diff --git a/bot.ts b/bot.ts index eed58db..2271cd5 100644 --- a/bot.ts +++ b/bot.ts @@ -19,7 +19,7 @@ interface Post { ml.on('post', ({p: post, _id}: Post) => { console.log(post) - if (!post.startsWith(`@wlod-bot`)) return; + if (!post.startsWith(`@${username}`)) return; ml.sendMessage({ message: 'hello', replyTo: _id -- cgit 1.4.1-2-gfad0