Skip to content

Commit ddebb39

Browse files
committed
Anti NFT Spam Bot - alias /forget to /remove
1 parent 7ac2cb0 commit ddebb39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

anti_nft_spam_bot/src/handlers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ pub async fn handle_command(
308308
"/mark_aggregator <URL> - Insert or update an entry for a URL as a link aggregator. ",
309309
"A link aggregator is considered to be not spam itself, but URLs below it will be automatically checked.\n\n",
310310

311-
"/remove <URL> - Remove an URL from the database.\n\n",
311+
"/remove <URL> (or /forget) - Remove an URL entry from the database. Does not check on-review links.\n\n",
312312

313313
"/review - Initiate a review keyboard.\n\n",
314314

@@ -334,7 +334,7 @@ pub async fn handle_command(
334334
| "/mark_aggregator" => {
335335
handle_command_mark(bot, message, database, sender_name_with_id, command).await
336336
}
337-
"/remove" => handle_command_remove(bot, message, database, sender_name_with_id).await,
337+
"/remove" | "/forget" => handle_command_remove(bot, message, database, sender_name_with_id).await,
338338
"/review" => handle_command_review(bot, message, database).await,
339339
"/info" => handle_command_info(bot, message, database).await,
340340
// NOTE: When adding new commands, also add them to `generate_bot_commands` function below.

0 commit comments

Comments
 (0)