We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbe33fd commit f3cb6cbCopy full SHA for f3cb6cb
1 file changed
src/ps/handlers/autores.ts
@@ -1,5 +1,12 @@
1
+import { prefix } from '@/config/ps';
2
+import { toId } from '@/tools';
3
+
4
import type { PSMessage } from '@/types/ps';
5
6
export function autoResHandler(message: PSMessage) {
7
if (!message.author.userid || !message.target) return;
8
+ if (toId(message.content) === message.parent.status.userid && message.content.endsWith('?'))
9
+ message.author.send(
10
+ `Hi, I'm ${message.parent.status.username}! I'm a bot by PartMan. Please try \`\`${prefix}help\`\` for more info!`
11
+ );
12
}
0 commit comments