From d3f9b4ddf9ae5c273f85015c5873c9140133f58a Mon Sep 17 00:00:00 2001 From: Erik <33332790+Navy-gif@users.noreply.github.com> Date: Thu, 24 Jun 2021 22:33:51 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b07fad8..78f409e 100644 --- a/README.md +++ b/README.md @@ -33,5 +33,8 @@ Both of these can be used with `!r` and `!cr` respectively and both of them supp The bot has an `!eval` command which you can grant access to in the config file. **Creating canned/pre-written replies** -Simple as using `!cr create `. +Simple as using `!cr create `. Updating an existing entry is done by overwriting it. To delete one, use `!cr delete ` + +## TODO +`!markunread` - Marks a thread unread From 2b5bdc4df470f869beea2ca701d1c81b8d51d3be Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 29 Jun 2021 17:04:54 +0300 Subject: [PATCH 2/2] allow anon and user to swap places --- structure/commands/Modmail.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/structure/commands/Modmail.js b/structure/commands/Modmail.js index 82d700a..920a449 100644 --- a/structure/commands/Modmail.js +++ b/structure/commands/Modmail.js @@ -23,6 +23,9 @@ class Modmail extends Command { anon = true; content = content.replace(first, ''); first = second; + } else if (second.toLowerCase() === 'anon') { + anon = true; + content = content.replace(second, ''); } const user = await this.client.resolveUser(first, true);