From 0d775e8cbc31c64fe76cc8c8dd2773406e19711f Mon Sep 17 00:00:00 2001 From: EntranceJew Date: Tue, 15 Apr 2025 10:28:08 -0500 Subject: [PATCH 1/4] Create chats.active.mdx it's what it do yugi --- docs/scripting/trust_scripts/chats.active.mdx | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 docs/scripting/trust_scripts/chats.active.mdx diff --git a/docs/scripting/trust_scripts/chats.active.mdx b/docs/scripting/trust_scripts/chats.active.mdx new file mode 100644 index 00000000..0ccafc39 --- /dev/null +++ b/docs/scripting/trust_scripts/chats.active.mdx @@ -0,0 +1,62 @@ +--- +title: chats.active +description: "Gets the usernames of recent tells the caller was involved in." +--- + +((chats.active)) returns the 5 most recent users the caller sent and received via ((chats.tell)). + +### Security level + +MIDSEC + +## Syntax + +### CLI + +``` +chats.active +``` + +### Script + +``` +#ms.chats.active() +``` + +### Parameters + +No known parameters. + +### Return + +Returns an object. + +#### CLI + +``` +>>chats.active +--Sent-- + +trust +example_user + +--Received-- + +example_user +boo7_str4p +``` + +#### Script + +``` +{"sent":[{"user":"trust"},{"user":"example_user"}],"received":[{"user":"example_user"},{"user":"boo7_str4p"}]} +``` + +## Example + +```js +function(context, args) +{ + return #ms.chats.active() +} +``` From 7d96fe0c1e2f5e22c888265609cf8f589ded388c Mon Sep 17 00:00:00 2001 From: EntranceJew Date: Tue, 15 Apr 2025 16:12:56 -0500 Subject: [PATCH 2/4] Update docs/scripting/trust_scripts/chats.active.mdx Co-authored-by: matr1x <53655672+matr1x-hackmud@users.noreply.github.com> --- docs/scripting/trust_scripts/chats.active.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripting/trust_scripts/chats.active.mdx b/docs/scripting/trust_scripts/chats.active.mdx index 0ccafc39..54a04134 100644 --- a/docs/scripting/trust_scripts/chats.active.mdx +++ b/docs/scripting/trust_scripts/chats.active.mdx @@ -49,7 +49,7 @@ boo7_str4p #### Script ``` -{"sent":[{"user":"trust"},{"user":"example_user"}],"received":[{"user":"example_user"},{"user":"boo7_str4p"}]} +{"sent":[{"user":"trust"},{"channel":"0000"},{"user":"example_user"}],"received":[{"user":"example_user"},{"user":"boo7_str4p"}]} ``` ## Example From eb63a890c3603ea0479c2f6919628410b8732a61 Mon Sep 17 00:00:00 2001 From: EntranceJew Date: Tue, 15 Apr 2025 16:13:15 -0500 Subject: [PATCH 3/4] Update docs/scripting/trust_scripts/chats.active.mdx Co-authored-by: matr1x <53655672+matr1x-hackmud@users.noreply.github.com> --- docs/scripting/trust_scripts/chats.active.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/scripting/trust_scripts/chats.active.mdx b/docs/scripting/trust_scripts/chats.active.mdx index 54a04134..8f534914 100644 --- a/docs/scripting/trust_scripts/chats.active.mdx +++ b/docs/scripting/trust_scripts/chats.active.mdx @@ -3,7 +3,7 @@ title: chats.active description: "Gets the usernames of recent tells the caller was involved in." --- -((chats.active)) returns the 5 most recent users the caller sent and received via ((chats.tell)). +((chats.active)) returns the 5 most recent users the caller sent and received via [[chats.tell:((chats.tell))]], as well as the 5 most recent channels where messages have been sent via [[chats.send:((chats.send))]]. ### Security level From e15222344b18f671667dba73baaa76ceee86b209 Mon Sep 17 00:00:00 2001 From: EntranceJew Date: Tue, 15 Apr 2025 16:13:22 -0500 Subject: [PATCH 4/4] Update docs/scripting/trust_scripts/chats.active.mdx Co-authored-by: matr1x <53655672+matr1x-hackmud@users.noreply.github.com> --- docs/scripting/trust_scripts/chats.active.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/scripting/trust_scripts/chats.active.mdx b/docs/scripting/trust_scripts/chats.active.mdx index 8f534914..6bdbe775 100644 --- a/docs/scripting/trust_scripts/chats.active.mdx +++ b/docs/scripting/trust_scripts/chats.active.mdx @@ -38,6 +38,7 @@ Returns an object. --Sent-- trust +0000 example_user --Received--