diff --git a/BetterSecondbot/WikiMake/wikimake.cs b/BetterSecondbot/WikiMake/wikimake.cs index 0f14c1f..d22f014 100644 --- a/BetterSecondbot/WikiMake/wikimake.cs +++ b/BetterSecondbot/WikiMake/wikimake.cs @@ -467,7 +467,7 @@ namespace BetterSecondBot.WikiMake io.WriteFile(target_file, sb.ToString()); mdWiki.AppendLine("***Args helper***"); mdWiki.AppendLine(" "); - mdWiki.AppendLine(mdWIkiReplys.ToString()); + mdWiki.AppendLine(mdWikiArgs.ToString()); mdWiki.AppendLine("***Replys***"); mdWiki.AppendLine(" "); mdWiki.AppendLine(mdWIkiReplys.ToString()); diff --git a/commands.md b/commands.md index a823630..56a9045 100644 --- a/commands.md +++ b/commands.md @@ -20,10 +20,10 @@ Toggles if animation requests from this avatar (used for remote poseballs) are a ***Args helper*** -- [:heavy_check_mark:] Granted perm animation -- [:heavy_check_mark:] Removed perm animation -- [:x:] avatar lookup -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| avatar | URL arg | UUID (or Firstname Lastname) | +| token | URL arg | the api access token | ***Replys*** @@ -47,9 +47,10 @@ Attempts to play a gesture ***Args helper*** -- [:heavy_check_mark:] Accepted -- [:x:] Error with gesture -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| gesture | URL arg | Inventory UUID of the gesture | +| token | URL arg | the api access token | ***Replys*** @@ -72,8 +73,9 @@ Resets the animation stack for the bot ***Args helper*** -- [:heavy_check_mark:] Accepted -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -97,9 +99,9 @@ an improved version of near me with extra details
NearMeDetails is a object ***Args helper*** -- [:heavy_check_mark:] array NearMeDetails -- [:x:] Error not in a sim -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -122,9 +124,9 @@ returns a list of all known avatars nearby ***Args helper*** -- [:heavy_check_mark:] array UUID = Name -- [:x:] Error not in a sim -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -149,8 +151,9 @@ fetchs the last 20 localchat messages ***Args helper*** -- [:heavy_check_mark:] array string -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -172,10 +175,11 @@ sends a message to localchat ***Args helper*** -- [:heavy_check_mark:] array string -- [:x:] Message empty -- [:x:] Invaild channel -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| channel | URL arg | the channel to output on (>=0) | +| message | Text | the message to send | +| token | URL arg | the api access token | ***Replys*** @@ -199,10 +203,11 @@ sends a im to the selected avatar ***Args helper*** -- [:heavy_check_mark:] ok -- [:x:] Message empty -- [:x:] avatar lookup -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| avatar | URL arg | a UUID or Firstname Lastname | +| message | Text | the message to send | +| token | URL arg | the api access token | ***Replys*** @@ -226,8 +231,9 @@ gets a full list of all chat windows ***Args helper*** -- [:heavy_check_mark:] array UUID = Name -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -249,8 +255,9 @@ gets a list of chat windows with unread messages ***Args helper*** -- [:heavy_check_mark:] array of UUID -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -272,8 +279,9 @@ gets if there are any unread im messages at all ***Args helper*** -- [:heavy_check_mark:] True|False -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -295,9 +303,10 @@ gets the chat from the selected window ***Args helper*** -- [:heavy_check_mark:] Array of text -- [:x:] Window UUID invaild -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| window | URL arg | the UUID of the chat window | +| token | URL arg | the api access token | ***Replys*** @@ -322,8 +331,10 @@ Requests a new token (Vaild for 10 mins)
to use with all other requests ***Args helper*** -- [:heavy_check_mark:] A new token with full system scope -- [:x:] Authcode not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| authcode | text | the first 10 chars of SHA1(unixtime+WebUIkey)
unixtime can be +- 30 of the bots time. | +| unixtimegiven | number | the unixtime you made this request | ***Replys*** @@ -345,7 +356,6 @@ Used to check HTTP connections ***Args helper*** -- [:heavy_check_mark:] world ***Replys*** @@ -366,9 +376,9 @@ Delays a thead by X ms
Mostly pointless but good if your doing custom comman ***Args helper*** -- [:heavy_check_mark:] ok -- [:x:] Invaild amount -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -391,8 +401,9 @@ Removes the given token from the accepted token pool ***Args helper*** -- [:heavy_check_mark:] ok -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -416,12 +427,10 @@ Updates the relay target (you can have 1 of each type)
Clear will disable th ***Args helper*** -- [:heavy_check_mark:] cleared -- [:heavy_check_mark:] set/avatar [ok] -- [:heavy_check_mark:] set/http [ok] -- [:heavy_check_mark:] set/channel [ok] -- [:x:] Not a vaild option -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| target | URL arg | Options: Channel (Any number),Avatar UUID,HTTPurl
Clear | +| token | URL arg | the api access token | ***Replys*** @@ -447,10 +456,11 @@ Makes the bot interact with the dialog [dialogid] with the button [buttontext] ***Args helper*** -- [:heavy_check_mark:] true -- [:heavy_check_mark:] false -- [:x:] bad dialog id -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| dialogid | URL arg | The ID for the dialog | +| buttontext | URL arg | The button text to push | +| token | URL arg | the api access token | ***Replys*** @@ -474,9 +484,10 @@ Should the bot track dialogs and send them to the relays setup? ***Args helper*** -- [:heavy_check_mark:] updated -- [:x:] bad status -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| status | URL arg | true or false | +| token | URL arg | the api access token | ***Replys*** @@ -501,9 +512,12 @@ Adds a discord server role to the selected member ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| roleid | URL arg | the role id we are giving | +| memberid | URL arg | who we are giving it to | +| token | URL arg | the api access token | ***Replys*** @@ -526,10 +540,12 @@ Adds the selected user to the ban list - Disallows rejoining untill they are rem ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] Why empty -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| memberid | URL arg | who we are giving it to | +| why | string | why they are being banned | +| token | URL arg | the api access token | ***Replys*** @@ -553,9 +569,11 @@ Clears messages on the server sent by the member in the last 13 days, 22hours 59 ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| memberid | URL arg | who we are giving it to | +| token | URL arg | the api access token | ***Replys*** @@ -579,9 +597,12 @@ Sends a message directly to the user [They must be in the server] ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| memberid | URL arg | who we are giving it to | +| message | Text | what we are sending | +| token | URL arg | the api access token | ***Replys*** @@ -608,9 +629,10 @@ Returns a list of members in a server ***Args helper*** -- [:heavy_check_mark:] mixed array of userid: nickname|username or userid:username -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| token | URL arg | the api access token | ***Replys*** @@ -633,10 +655,13 @@ Sends a message to the selected channel - Optional TTS usage ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] message empty -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| channelid | URL arg | the channel id to apply this action to | +| tts | URL arg | shoud tts be enabled true or false | +| message | Text | what we are sending | +| token | URL arg | the api access token | ***Replys*** @@ -660,9 +685,12 @@ Sends a message to the selected channel - Optional TTS usage ***Args helper*** -- [:heavy_check_mark:] mixed array of userid: nickname|username or userid:username -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| memberid | URL arg | who we are giving it to | +| mode | URL arg | should we mute them "true" or unmute "false" | +| token | URL arg | the api access token | ***Replys*** @@ -686,9 +714,12 @@ returns a collection of settings for the given role ***Args helper*** -- [:heavy_check_mark:] KeyPair of status: KeyPair[] item = value -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| memberid | URL arg | who we are giving it to | +| mode | URL arg | should we mute them "true" or unmute "false" | +| token | URL arg | the api access token | ***Replys*** @@ -714,9 +745,12 @@ Updates perm flags for the selected role ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| roleid | URL arg | who we are giving it to | +| flagscsv | Text | what we are setting | +| token | URL arg | the api access token | ***Replys*** @@ -742,9 +776,11 @@ Updates perm flags for the selected role ***Args helper*** -- [:heavy_check_mark:] KeyPair of statusmessage=roleid or 0 -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| role | URL arg | the name of the role we are creating | +| token | URL arg | the api access token | ***Replys*** @@ -768,9 +804,10 @@ Returns a list of roles and their ids in collection ***Args helper*** -- [:heavy_check_mark:] KeyPair of status: KeyPair of roleid: rolename -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| token | URL arg | the api access token | ***Replys*** @@ -794,9 +831,10 @@ Remove a role from a server ***Args helper*** -- [:heavy_check_mark:] true|false -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| token | URL arg | the api access token | ***Replys*** @@ -819,9 +857,10 @@ Returns a list of text channels in a server ***Args helper*** -- [:heavy_check_mark:] array of channelid: name -- [:x:] Discord client not ready -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| serverid | URL arg | the server id to apply this action to | +| token | URL arg | the api access token | ***Replys*** @@ -846,10 +885,12 @@ Sends the message to the current sim ***Args helper*** -- [:heavy_check_mark:] restarting -- [:x:] Not an estate manager here -- [:x:] canceled -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| delay | URL arg | How long to delay the restart for (30 to 240 secs) - defaults to 240 if out of bounds +set to 0 if your canceling! | +| mode | URL arg | true to start a restart, false to cancel | +| token | URL arg | the api access token | ***Replys*** @@ -873,10 +914,10 @@ Sends the message to the current sim ***Args helper*** -- [:heavy_check_mark:] ok -- [:x:] Not an estate manager here -- [:x:] Message empty -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| message | Text | What the message is | +| token | URL arg | the api access token | ***Replys*** @@ -900,9 +941,10 @@ Fetchs the regions map tile ***Args helper*** -- [:heavy_check_mark:] Texture UUID -- [:x:] Unable to find region -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| regionname | URL arg | the name of the region we are fetching | +| token | URL arg | the api access token | ***Replys*** @@ -925,9 +967,9 @@ Reclaims ownership of the current parcel ***Args helper*** -- [:heavy_check_mark:] ok -- [:x:] Not an estate manager here -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -950,9 +992,9 @@ Reclaims ownership of the current parcel ***Args helper*** -- [:heavy_check_mark:] ok -- [:x:] Not an estate manager here -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -975,8 +1017,9 @@ Requests the estate banlist ***Args helper*** -- [:heavy_check_mark:] ban list json -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| token | URL arg | the api access token | ***Replys*** @@ -998,12 +1041,12 @@ Attempts to add/remove the avatar to/from the Estate banlist ***Args helper*** -- [:heavy_check_mark:] Unban request accepted -- [:heavy_check_mark:] Ban request accepted -- [:x:] Unable to find avatar UUID -- [:x:] Unable to process global value please use true or false -- [:x:] Not an estate manager on region {REGIONNAME} -- [:x:] Token not accepted +|Name|Type|Hint| +| ------ | ------- | ---------------------------- | +| avatar | URL arg | the uuid avatar you wish to ban | +| mode | URL arg | What action would you like to take
Defaults to remove if not given "add" | +| global | URL arg | if true this the ban/unban will be applyed to all estates the bot has access to | +| token | URL arg | the api access token | ***Replys*** @@ -1031,8 +1074,9 @@ Gets the friendslist
Formated as follows
friendreplyobject