@@ -21,6 +21,18 @@ const regex = emojiRegex();
2121const commandPrefix = process . env . COMMAND_PREFIX || "!" ;
2222const commandPrefixLess = process . env . COMMAND_PREFIX_LESS === "true" ;
2323const debug = process . env . DEBUG === "true" ;
24+ const mentionResponses = [
25+ "👀 Did someone just say my name?" ,
26+ "Bruh, why me again? 😂" ,
27+ "Oh no… not me 😭" ,
28+ "You called? Or just summoning me like Voldemort?" ,
29+ "Here I am, what’s the emergency? 🚨" ,
30+ "Why always me tho 🤔" ,
31+ "Plot twist: I was just about to mention YOU." ,
32+ "Careful… mention me three times and I appear 👻" ,
33+ "My ears were burning 🔥" ,
34+ "Did you just @ me for vibes, or do I owe you money? 💸" ,
35+ ] ;
2436
2537export default async function ( msg : Message , type : string ) {
2638 // ignore message if it is older than 10 seconds
@@ -113,7 +125,21 @@ export default async function (msg: Message, type: string) {
113125 ? messageBody . slice ( commandPrefix . length ) . trim ( )
114126 : messageBody ;
115127 const handler = commands [ key . toLowerCase ( ) ] ;
116- if ( ! handler ) return ;
128+
129+ // no match command
130+ // so check if the message mentioned the bot name
131+ // and return funny messages HAHAHAHA
132+ if ( ! handler ) {
133+ if (
134+ msg . mentionedIds &&
135+ msg . mentionedIds . length > 0 &&
136+ msg . mentionedIds . includes ( client . info . wid . _serialized )
137+ )
138+ await msg . reply (
139+ mentionResponses [ Math . random ( ) * mentionResponses . length ] ,
140+ ) ;
141+ return ;
142+ }
117143
118144 /*
119145 * Block users from running commands.
0 commit comments