ModMail -> Modmail

master
Dragory 2020-05-25 23:56:48 +03:00
parent 77e13626af
commit d1f939cbc8
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
3 changed files with 24 additions and 24 deletions

View File

@ -1,12 +1,12 @@
# 🤖 Commands # 🤖 Commands
## Table of contents ## Table of contents
* [Inside a ModMail thread](#inside-a-modmail-thread) * [Inside a Modmail thread](#inside-a-modmail-thread)
* [Anywhere on the inbox server](#anywhere-on-the-inbox-server) * [Anywhere on the inbox server](#anywhere-on-the-inbox-server)
* [Snippets (canned messages)](#snippets-canned-messages) * [Snippets (canned messages)](#snippets-canned-messages)
## Inside a ModMail thread ## Inside a Modmail thread
These commands can only be used inside a ModMail thread's channel on the inbox server. These commands can only be used inside a Modmail thread's channel on the inbox server.
### `!reply <text>` / `!r <text>` ### `!reply <text>` / `!r <text>`
Send a reply to the user. Send a reply to the user.
@ -18,13 +18,13 @@ To reply automatically without using `!reply`, [enable `alwaysReply` in bot sett
### `!anonreply <text>` / `!ar <text>` ### `!anonreply <text>` / `!ar <text>`
Send an anonymous reply to the user. Anonymous replies only show the moderator's role in the reply. Send an anonymous reply to the user. Anonymous replies only show the moderator's role in the reply.
**Example:** `!ar Please only use ModMail for serious messages` **Example:** `!ar Please only use Modmail for serious messages`
### `!close` ### `!close`
Close the ModMail thread. Close the Modmail thread.
### `!close <time>` ### `!close <time>`
Close the ModMail thread after a timer. Sending a message to the user or receiving a message from the user will cancel scheduled closing. Close the Modmail thread after a timer. Sending a message to the user or receiving a message from the user will cancel scheduled closing.
**Example:** `!close 15m` **Example:** `!close 15m`
@ -32,21 +32,21 @@ Close the ModMail thread after a timer. Sending a message to the user or receivi
Cancel a timed close. Cancel a timed close.
### `!logs` ### `!logs`
List previous ModMail logs with the user. List previous Modmail logs with the user.
### `!block` ### `!block`
Block the user from using ModMail. Block the user from using Modmail.
### `!block <time>` ### `!block <time>`
Block the user from using ModMail for a specified time. Block the user from using Modmail for a specified time.
**Example:** `!block 7d` **Example:** `!block 7d`
### `!unblock` ### `!unblock`
Unblock the user, allowing them to use ModMail again. Unblock the user, allowing them to use Modmail again.
### `!move <category>` ### `!move <category>`
Move the ModMail thread to a different category. Move the Modmail thread to a different category.
Requires `allowMove` to be enabled in the bot's settings. Requires `allowMove` to be enabled in the bot's settings.
### `!suspend` ### `!suspend`
@ -63,43 +63,43 @@ Pings you when the thread gets a new reply.
Cancel the ping set by `!alert`. Cancel the ping set by `!alert`.
### `!loglink` ### `!loglink`
Get a link to the open ModMail thread's log. Get a link to the open Modmail thread's log.
### `!loglink -s` ### `!loglink -s`
Get a link to the open ModMail thread's log, only showing messages to/from the user (ignores mod chatter within the thread). Get a link to the open Modmail thread's log, only showing messages to/from the user (ignores mod chatter within the thread).
### `!loglink -v` ### `!loglink -v`
Get a link to the open ModMail thread's log, showing extra details about channel and message IDs between the bot and the user. Get a link to the open Modmail thread's log, showing extra details about channel and message IDs between the bot and the user.
This is mainly useful when reporting messages to Discord's Trust & Safety team. This is mainly useful when reporting messages to Discord's Trust & Safety team.
### `!id` ### `!id`
Prints the user's ID. Prints the user's ID.
## Anywhere on the inbox server ## Anywhere on the inbox server
These commands can be used anywhere on the inbox server, even outside ModMail threads. These commands can be used anywhere on the inbox server, even outside Modmail threads.
### `!newthread <userID>` ### `!newthread <userID>`
Open a ModMail thread with a user. Open a Modmail thread with a user.
**Example:** `!newthread 106391128718245888` **Example:** `!newthread 106391128718245888`
### `!logs <userID>` ### `!logs <userID>`
List previous ModMail logs with the specified user. List previous Modmail logs with the specified user.
**Example:** `!logs 106391128718245888` **Example:** `!logs 106391128718245888`
### `!block <userID>` ### `!block <userID>`
Block the specified user from ModMail. Block the specified user from Modmail.
**Example:** `!block 106391128718245888` **Example:** `!block 106391128718245888`
### `!block <userID> <time>` ### `!block <userID> <time>`
Block the specified user from ModMail for a specified time. Block the specified user from Modmail for a specified time.
**Example:** `!block 106391128718245888 7d` **Example:** `!block 106391128718245888 7d`
### `!unblock <userID>` ### `!unblock <userID>`
Unblock the specified user, allowing them to use ModMail again. Unblock the specified user, allowing them to use Modmail again.
**Example:** `!unblock 106391128718245888` **Example:** `!unblock 106391128718245888`
@ -109,7 +109,7 @@ Check if the specified user is blocked.
**Example:** `!is_blocked 106391128718245888` **Example:** `!is_blocked 106391128718245888`
### `!version` ### `!version`
Show the ModMail bot's version. Show the Modmail bot's version.
## Snippets (canned messages) ## Snippets (canned messages)
See the [📋 Snippets](snippets.md) page for more information! See the [📋 Snippets](snippets.md) page for more information!

View File

@ -1,5 +1,5 @@
# 📋 Snippets # 📋 Snippets
Snippets, sometimes also called "canned messages" or "tags", are commonly used messages you can send in ModMail threads with just 1 command. Snippets, sometimes also called "canned messages" or "tags", are commonly used messages you can send in Modmail threads with just 1 command.
![Snippets example](snippets.gif) ![Snippets example](snippets.gif)
@ -21,7 +21,7 @@ To create a snippet called "hi" with the text "Hello, how can we help you?", use
## Using snippets ## Using snippets
### `!!shortcut` / `!!!shortcut` ### `!!shortcut` / `!!!shortcut`
Inside a ModMail thread, use `!!shortcut` to send a snippet to the user, replacing `shortcut` with the snippet's name. Inside a Modmail thread, use `!!shortcut` to send a snippet to the user, replacing `shortcut` with the snippet's name.
To send a snippet anonymously, use `!!!shortcut`. To send a snippet anonymously, use `!!!shortcut`.

View File

@ -73,7 +73,7 @@ async function serveLogs(req, res, pathParts, query) {
}); });
const openedAt = moment(thread.created_at).format('YYYY-MM-DD HH:mm:ss'); const openedAt = moment(thread.created_at).format('YYYY-MM-DD HH:mm:ss');
const header = `# ModMail thread with ${thread.user_name} (${thread.user_id}) started at ${openedAt}. All times are in UTC+0.`; const header = `# Modmail thread with ${thread.user_name} (${thread.user_id}) started at ${openedAt}. All times are in UTC+0.`;
const fullResponse = header + '\n\n' + lines.join('\n'); const fullResponse = header + '\n\n' + lines.join('\n');