summary refs log tree commit diff
path: root/bot.ts
diff options
context:
space:
mode:
authorWlodekM <[email protected]>2025-01-24 20:05:11 +0200
committerWlodekM <[email protected]>2025-01-24 20:05:11 +0200
commit924eb96c02976fcc265b72943f783b4d7d63f76c (patch)
tree16c56d60d0df5baa07f7492a8594b97b5d81aa34 /bot.ts
parentdffbe004789b144c76e435a32a8df1d7b58d1f8c (diff)
no hardcoded username in example HEAD master
Diffstat (limited to 'bot.ts')
-rw-r--r--bot.ts2
1 files changed, 1 insertions, 1 deletions
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