@@ -69,7 +69,7 @@ async def _do_warn(update, context, user_id, name, reason, chat_id):
6969async def warn (update : Update , context : ContextTypes .DEFAULT_TYPE ):
7070 target = await extract_user (update )
7171 if not target :
72- await update .effective_message .reply_text ( " Usage: /warn < reply|@user|id> [reason]" )
72+ await update .effective_message .reply_html ( "🔍 <b> Usage:</b> <code> /warn < reply|@user|id> [reason]</code> " )
7373 return
7474
7575 user_id , name = target
@@ -150,7 +150,7 @@ async def warns(update: Update, context: ContextTypes.DEFAULT_TYPE):
150150async def resetwarns (update : Update , context : ContextTypes .DEFAULT_TYPE ):
151151 target = await extract_user (update )
152152 if not target :
153- await update .effective_message .reply_text ( " Usage: /resetwarns < reply|@user|id>" )
153+ await update .effective_message .reply_html ( "🔍 <b> Usage:</b> <code> /resetwarns < reply|@user|id></code >" )
154154 return
155155
156156 user_id , name = target
@@ -169,7 +169,7 @@ async def resetwarns(update: Update, context: ContextTypes.DEFAULT_TYPE):
169169async def unwarn (update : Update , context : ContextTypes .DEFAULT_TYPE ):
170170 target = await extract_user (update )
171171 if not target :
172- await update .effective_message .reply_text ( " Usage: /unwarn < reply|@user|id>" )
172+ await update .effective_message .reply_html ( "🔍 <b> Usage:</b> <code> /unwarn < reply|@user|id></code >" )
173173 return
174174
175175 user_id , name = target
@@ -193,10 +193,10 @@ async def warnlimit(update: Update, context: ContextTypes.DEFAULT_TYPE):
193193
194194 if len (args ) < 2 :
195195 settings = await Repository .get_or_create_settings (chat_id )
196- await update .effective_message .reply_text (
197- f"📋 Current warn limit: { settings .warn_limit } \n "
198- f"Action on limit: { settings .warn_action } \n \n "
199- f"Usage: /warnlimit < number>"
196+ await update .effective_message .reply_html (
197+ f"📋 <b> Current warn limit:</b> { settings .warn_limit } \n "
198+ f"<b> Action on limit:</b> { settings .warn_action . capitalize () } \n \n "
199+ f"🔍 <b> Usage:</b> <code> /warnlimit < number></code >"
200200 )
201201 return
202202
@@ -226,11 +226,11 @@ async def strongwarn(update: Update, context: ContextTypes.DEFAULT_TYPE):
226226
227227 if len (args ) < 2 :
228228 current = "🔨 Ban" if settings .warn_action == "ban" else "👢 Kick"
229- await update .effective_message .reply_text (
230- f"📋 Current action on warn limit: { current } \n \n "
231- f"Usage:\n "
232- f" /strongwarn on — ban on limit\n "
233- f" /strongwarn off — kick on limit"
229+ await update .effective_message .reply_html (
230+ f"📋 <b> Current action on warn limit:</b> { current } \n \n "
231+ f"🔍 <b> Usage:</b> \n "
232+ f" <code> /strongwarn on</code> — ban on limit\n "
233+ f" <code> /strongwarn off</code> — kick on limit"
234234 )
235235 return
236236
@@ -254,9 +254,9 @@ async def addwarn(update: Update, context: ContextTypes.DEFAULT_TYPE):
254254 args = update .effective_message .text .split (None , 1 )
255255
256256 if len (args ) < 2 :
257- await update .effective_message .reply_text (
258- ' Usage: /addwarn < keyword> < reason>\n '
259- 'Use quotes for multi-word keywords: /addwarn "bad word" reason here'
257+ await update .effective_message .reply_html (
258+ "🔍 <b> Usage:</b> <code> /addwarn < keyword> < reason></code >\n "
259+ "<b>Example:</b> <code> /addwarn \ " bad word\" Don't say that!</code>"
260260 )
261261 return
262262
@@ -286,7 +286,7 @@ async def rmwarn(update: Update, context: ContextTypes.DEFAULT_TYPE):
286286 args = update .effective_message .text .split (None , 1 )
287287
288288 if len (args ) < 2 :
289- await update .effective_message .reply_text ( " Usage: /nowarn < keyword>" )
289+ await update .effective_message .reply_html ( "🔍 <b> Usage:</b> <code> /nowarn < keyword></code >" )
290290 return
291291
292292 keyword = args [1 ].strip ().lower ()
0 commit comments