diff --git a/BetterSecondbot/WikiMake/wikimake.cs b/BetterSecondbot/WikiMake/wikimake.cs index 02330cc..87aeb30 100644 --- a/BetterSecondbot/WikiMake/wikimake.cs +++ b/BetterSecondbot/WikiMake/wikimake.cs @@ -454,12 +454,14 @@ namespace BetterSecondBot.WikiMake sb.Replace("[[RETURNROOT]]", "../"); mdWiki.AppendLine("[[URLENDPOINT]]/[[WORKSPACE]]/[[COMMAND]]/[[URLADDON]]"); + mdWiki.AppendLine(" "); mdWiki.AppendLine("Method: [[APIMETHOD]]"); + mdWiki.AppendLine(" "); mdWiki.AppendLine("OR"); mdWiki.AppendLine(CommandExample.ToString()); - mdWiki.AppendLine("OR"); + mdWiki.AppendLine(" "); mdWiki.AppendLine("[[HELP]]"); - + mdWiki.AppendLine(" "); string target_file = "" + area + "" + workspace + "" + c + ".html"; io.WriteFile(target_file, sb.ToString()); mdWiki.AppendLine("***Args helper***"); diff --git a/commands.md b/commands.md index 9964197..b0404d3 100644 --- a/commands.md +++ b/commands.md @@ -3,11 +3,14 @@ ### AddToAllowAnimations http://localhost:8080/animation/AddToAllowAnimations/{avatar}/{token} + Method: Get + OR AddToAllowAnimations|||{avatar} -OR + Toggles if animation requests from this avatar (used for remote poseballs) are accepted + ***Args helper*** - [:heavy_check_mark:] Granted perm animation @@ -26,11 +29,14 @@ Toggles if animation requests from this avatar (used for remote poseballs) are a ### PlayGesture http://localhost:8080/animation/PlayGesture/{gesture}/{token} + Method: Get + OR PlayGesture|||{gesture} -OR + Attempts to play a gesture + ***Args helper*** - [:heavy_check_mark:] Accepted @@ -47,11 +53,14 @@ Attempts to play a gesture ### ResetAnimations http://localhost:8080/animation/ResetAnimations/{token} + Method: Get + OR ResetAnimations -OR + Resets the animation stack for the bot + ***Args helper*** - [:heavy_check_mark:] Accepted @@ -68,11 +77,14 @@ Resets the animation stack for the bot ### NearmeWithDetails http://localhost:8080/avatars/NearmeWithDetails/{token} + Method: Get + OR NearmeWithDetails -OR + an improved version of near me with extra details
NearMeDetails is a object formated as follows
+ ***Args helper*** - [:heavy_check_mark:] array NearMeDetails @@ -89,11 +101,14 @@ an improved version of near me with extra details
NearMeDetails is a object ### Nearme http://localhost:8080/avatars/Nearme/{token} + Method: Get + OR Nearme -OR + returns a list of all known avatars nearby + ***Args helper*** - [:heavy_check_mark:] array UUID = Name @@ -112,11 +127,14 @@ returns a list of all known avatars nearby ### LocalChatHistory http://localhost:8080/chat/LocalChatHistory/{token} + Method: Get + OR LocalChatHistory -OR + fetchs the last 20 localchat messages + ***Args helper*** - [:heavy_check_mark:] array string @@ -131,11 +149,14 @@ fetchs the last 20 localchat messages ### Say http://localhost:8080/chat/Say/{channel}/{token} + Method: Post + OR Say|||{channel}~#~{message} -OR + sends a message to localchat + ***Args helper*** - [:heavy_check_mark:] array string @@ -154,11 +175,14 @@ sends a message to localchat ### IM http://localhost:8080/chat/IM/{avatar}/{token} + Method: Post + OR IM|||{avatar}~#~{message} -OR + sends a im to the selected avatar + ***Args helper*** - [:heavy_check_mark:] ok @@ -177,11 +201,14 @@ sends a im to the selected avatar ### chatwindows http://localhost:8080/chat/chatwindows/{token} + Method: Get + OR chatwindows -OR + gets a full list of all chat windows + ***Args helper*** - [:heavy_check_mark:] array UUID = Name @@ -196,11 +223,14 @@ gets a full list of all chat windows ### listwithunread http://localhost:8080/chat/listwithunread/{token} + Method: Get + OR listwithunread -OR + gets a list of chat windows with unread messages + ***Args helper*** - [:heavy_check_mark:] array of UUID @@ -215,11 +245,14 @@ gets a list of chat windows with unread messages ### haveunreadims http://localhost:8080/chat/haveunreadims/{token} + Method: Get + OR haveunreadims -OR + gets if there are any unread im messages at all + ***Args helper*** - [:heavy_check_mark:] True|False @@ -234,11 +267,14 @@ gets if there are any unread im messages at all ### getimchat http://localhost:8080/chat/getimchat/{window}/{token} + Method: Get + OR getimchat|||{window} -OR + gets the chat from the selected window + ***Args helper*** - [:heavy_check_mark:] Array of text @@ -257,11 +293,14 @@ gets the chat from the selected window ### GetToken http://localhost:8080/core/GetToken/ + Method: Post + OR GetToken|||{authcode}~#~{unixtimegiven} -OR + 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 @@ -276,11 +315,14 @@ Requests a new token (Vaild for 10 mins)
to use with all other requests ### Hello http://localhost:8080/core/Hello/ + Method: Get + OR Hello -OR + Used to check HTTP connections + ***Args helper*** - [:heavy_check_mark:] world @@ -293,11 +335,14 @@ Used to check HTTP connections ### Delay http://localhost:8080/core/Delay/{token} + Method: Get + OR Delay -OR + Delays a thead by X ms
Mostly pointless but good if your doing custom commands + ***Args helper*** - [:heavy_check_mark:] ok @@ -314,11 +359,14 @@ Delays a thead by X ms
Mostly pointless but good if your doing custom comman ### LogoutUI http://localhost:8080/core/LogoutUI/{token} + Method: Get + OR LogoutUI -OR + Removes the given token from the accepted token pool + ***Args helper*** - [:heavy_check_mark:] ok @@ -335,11 +383,14 @@ Removes the given token from the accepted token pool ### DialogRelay http://localhost:8080/dialogs/DialogRelay/{target}/{token} + Method: Get + OR DialogRelay|||{target} -OR + Updates the relay target (you can have 1 of each type)
Clear will disable them all + ***Args helper*** - [:heavy_check_mark:] cleared @@ -362,11 +413,14 @@ Updates the relay target (you can have 1 of each type)
Clear will disable th ### DialogResponce http://localhost:8080/dialogs/DialogResponce/{dialogid}/{buttontext}/{token} + Method: Get + OR DialogResponce|||{dialogid}~#~{buttontext} -OR + Makes the bot interact with the dialog [dialogid] with the button [buttontext] + ***Args helper*** - [:heavy_check_mark:] true @@ -385,11 +439,14 @@ Makes the bot interact with the dialog [dialogid] with the button [buttontext] ### DialogTrack http://localhost:8080/dialogs/DialogTrack/{status}/{token} + Method: Get + OR DialogTrack|||{status} -OR + Should the bot track dialogs and send them to the relays setup? + ***Args helper*** - [:heavy_check_mark:] updated @@ -408,11 +465,14 @@ Should the bot track dialogs and send them to the relays setup? ### Discord_AddRole http://localhost:8080/discord/Discord_AddRole/{serverid}/{roleid}/{memberid}/{token} + Method: Get + OR Discord_AddRole|||{serverid}~#~{roleid}~#~{memberid} -OR + Adds a discord server role to the selected member + ***Args helper*** - [:heavy_check_mark:] true|false @@ -429,11 +489,14 @@ Adds a discord server role to the selected member ### Discord_BanMember http://localhost:8080/discord/Discord_BanMember/{serverid}/{memberid}/{token} + Method: Post + OR Discord_BanMember|||{serverid}~#~{memberid}~#~{why} -OR + Adds the selected user to the ban list - Disallows rejoining untill they are removed from the list + ***Args helper*** - [:heavy_check_mark:] true|false @@ -452,11 +515,14 @@ Adds the selected user to the ban list - Disallows rejoining untill they are rem ### Discord_BulkClear_Messages http://localhost:8080/discord/Discord_BulkClear_Messages/{serverid}/{memberid}/{token} + Method: Get + OR Discord_BulkClear_Messages|||{serverid}~#~{memberid} -OR + Clears messages on the server sent by the member in the last 13 days, 22hours 59mins + ***Args helper*** - [:heavy_check_mark:] true|false @@ -473,12 +539,15 @@ Clears messages on the server sent by the member in the last 13 days, 22hours 59 ### Discord_Dm_Member http://localhost:8080/discord/Discord_Dm_Member/{serverid}/{memberid}/{token} + Method: Post + OR Discord_Dm_Member|||{serverid}~#~{memberid}~#~{message} -OR + Sends a message directly to the user [They must be in the server] This command requires the SERVER MEMBERS INTENT found in discord app dev + ***Args helper*** - [:heavy_check_mark:] true|false @@ -495,15 +564,18 @@ Sends a message directly to the user [They must be in the server] ### Discord_MembersList http://localhost:8080/discord/Discord_MembersList/{serverid}/{token} + Method: Get + OR Discord_MembersList|||{serverid} -OR + Returns a list of members in a server collection is userid: username if the user has set a nickname: userid: nickname|username This command requires Discord full client mode enabled and connected !!!! This command also requires: Privileged Gateway Intents / SERVER MEMBERS INTENT set to true on the discord bot api area !!! + ***Args helper*** - [:heavy_check_mark:] mixed array of userid: nickname|username or userid:username @@ -520,11 +592,14 @@ Returns a list of members in a server ### Discord_MessageChannel http://localhost:8080/discord/Discord_MessageChannel/{serverid}/{channelid}/{tts}/{token} + Method: Post + OR Discord_MessageChannel|||{serverid}~#~{channelid}~#~{tts}~#~{message} -OR + Sends a message to the selected channel - Optional TTS usage + ***Args helper*** - [:heavy_check_mark:] true|false @@ -543,11 +618,14 @@ Sends a message to the selected channel - Optional TTS usage ### Discord_MuteMember http://localhost:8080/discord/Discord_MuteMember/{serverid}/{memberid}/{mode}/{token} + Method: Get + OR Discord_MuteMember|||{serverid}~#~{memberid}~#~{mode} -OR + Sends a message to the selected channel - Optional TTS usage + ***Args helper*** - [:heavy_check_mark:] mixed array of userid: nickname|username or userid:username @@ -564,12 +642,15 @@ Sends a message to the selected channel - Optional TTS usage ### Discord_Role_GetSettings http://localhost:8080/discord/Discord_Role_GetSettings/{serverid}/{memberid}/{mode}/{token} + Method: Get + OR Discord_Role_GetSettings|||{serverid}~#~{memberid}~#~{mode} -OR + returns a collection of settings for the given role This command requires Discord full client mode enabled and connected + ***Args helper*** - [:heavy_check_mark:] KeyPair of status: KeyPair[] item = value @@ -586,14 +667,17 @@ returns a collection of settings for the given role ### Discord_Role_UpdatePerms http://localhost:8080/discord/Discord_Role_UpdatePerms/{serverid}/{roleid}/{token} + Method: Post + OR Discord_Role_UpdatePerms|||{serverid}~#~{roleid}~#~{flagscsv} -OR + Updates perm flags for the selected role example CSV format: Speak=True,SendMessages=False for a full list of perms see output of Discord_Role_GetSettings This command requires Discord full client mode enabled and connected + ***Args helper*** - [:heavy_check_mark:] true|false @@ -610,14 +694,17 @@ Updates perm flags for the selected role ### Discord_RoleCreate http://localhost:8080/discord/Discord_RoleCreate/{serverid}/{role}/{token} + Method: Get + OR Discord_RoleCreate|||{serverid}~#~{role} -OR + Updates perm flags for the selected role example CSV format: Speak=True,SendMessages=False for a full list of perms see output of Discord_Role_GetSettings This command requires Discord full client mode enabled and connected + ***Args helper*** - [:heavy_check_mark:] KeyPair of statusmessage=roleid or 0 @@ -634,12 +721,15 @@ Updates perm flags for the selected role ### Discord_RoleList http://localhost:8080/discord/Discord_RoleList/{serverid}/{token} + Method: Get + OR Discord_RoleList|||{serverid} -OR + Returns a list of roles and their ids in collection This command requires Discord full client mode enabled and connected + ***Args helper*** - [:heavy_check_mark:] KeyPair of status: KeyPair of roleid: rolename @@ -656,12 +746,15 @@ Returns a list of roles and their ids in collection ### Discord_RoleRemove http://localhost:8080/discord/Discord_RoleRemove/{serverid}/{token} + Method: Get + OR Discord_RoleRemove|||{serverid} -OR + Remove a role from a server This command requires Discord full client mode enabled and connected + ***Args helper*** - [:heavy_check_mark:] true|false @@ -678,11 +771,14 @@ Remove a role from a server ### Discord_TextChannels_List http://localhost:8080/discord/Discord_TextChannels_List/{serverid}/{token} + Method: Get + OR Discord_TextChannels_List|||{serverid} -OR + Returns a list of text channels in a server + ***Args helper*** - [:heavy_check_mark:] array of channelid: name @@ -701,11 +797,14 @@ Returns a list of text channels in a server ### SimRestart http://localhost:8080/estate/SimRestart/{delay}/{mode}/{token} + Method: Get + OR SimRestart|||{delay}~#~{mode} -OR + Sends the message to the current sim + ***Args helper*** - [:heavy_check_mark:] restarting @@ -724,11 +823,14 @@ Sends the message to the current sim ### SimMessage http://localhost:8080/estate/SimMessage/{token} + Method: Post + OR SimMessage|||{message} -OR + Sends the message to the current sim + ***Args helper*** - [:heavy_check_mark:] ok @@ -747,11 +849,14 @@ Sends the message to the current sim ### GetSimTexture http://localhost:8080/estate/GetSimTexture/{regionname}/{token} + Method: Get + OR GetSimTexture|||{regionname} -OR + Fetchs the regions map tile + ***Args helper*** - [:heavy_check_mark:] Texture UUID @@ -768,11 +873,14 @@ Fetchs the regions map tile ### EstateParcelReclaim http://localhost:8080/estate/EstateParcelReclaim/{token} + Method: Get + OR EstateParcelReclaim -OR + Reclaims ownership of the current parcel + ***Args helper*** - [:heavy_check_mark:] ok @@ -789,11 +897,14 @@ Reclaims ownership of the current parcel ### GetSimGlobalPos http://localhost:8080/estate/GetSimGlobalPos/{token} + Method: Get + OR GetSimGlobalPos -OR + Reclaims ownership of the current parcel + ***Args helper*** - [:heavy_check_mark:] ok @@ -810,11 +921,14 @@ Reclaims ownership of the current parcel ### GetEstateBanList http://localhost:8080/estate/GetEstateBanList/{token} + Method: Get + OR GetEstateBanList -OR + Requests the estate banlist + ***Args helper*** - [:heavy_check_mark:] ban list json @@ -829,11 +943,14 @@ Requests the estate banlist ### UpdateEstateBanlist http://localhost:8080/estate/UpdateEstateBanlist/{avatar}/{mode}/{global}/{token} + Method: Get + OR UpdateEstateBanlist|||{avatar}~#~{mode}~#~{global} -OR + Attempts to add/remove the avatar to/from the Estate banlist + ***Args helper*** - [:heavy_check_mark:] Unban request accepted @@ -858,11 +975,14 @@ Attempts to add/remove the avatar to/from the Estate banlist ### Friendslist http://localhost:8080/friends/Friendslist/{token} + Method: Get + OR Friendslist -OR + Gets the friendslist
Formated as follows
friendreplyobject
+ ***Args helper*** - [:heavy_check_mark:] array UUID = friendreplyobject @@ -877,12 +997,15 @@ Gets the friendslist
Formated as follows
friendreplyobject