diff --git a/docs/.vuepress/public/images/guide/Discord_Add_Bot.png b/docs/.vuepress/public/images/guide/Discord_Add_Bot.png new file mode 100644 index 00000000..b823b8c2 Binary files /dev/null and b/docs/.vuepress/public/images/guide/Discord_Add_Bot.png differ diff --git a/docs/.vuepress/public/images/guide/Discord_Create_Application.png b/docs/.vuepress/public/images/guide/Discord_Create_Application.png new file mode 100644 index 00000000..a660b782 Binary files /dev/null and b/docs/.vuepress/public/images/guide/Discord_Create_Application.png differ diff --git a/docs/.vuepress/public/images/guide/Discord_Permissions.png b/docs/.vuepress/public/images/guide/Discord_Permissions.png new file mode 100644 index 00000000..e8ae9016 Binary files /dev/null and b/docs/.vuepress/public/images/guide/Discord_Permissions.png differ diff --git a/docs/.vuepress/public/images/guide/Discord_Privileged_Intents.png b/docs/.vuepress/public/images/guide/Discord_Privileged_Intents.png new file mode 100644 index 00000000..47f0514b Binary files /dev/null and b/docs/.vuepress/public/images/guide/Discord_Privileged_Intents.png differ diff --git a/docs/.vuepress/public/images/guide/Discord_Reset_Token.png b/docs/.vuepress/public/images/guide/Discord_Reset_Token.png new file mode 100644 index 00000000..a6f11bb5 Binary files /dev/null and b/docs/.vuepress/public/images/guide/Discord_Reset_Token.png differ diff --git a/docs/.vuepress/public/redirect.html b/docs/.vuepress/public/redirect.html index 0161f350..93747930 100644 --- a/docs/.vuepress/public/redirect.html +++ b/docs/.vuepress/public/redirect.html @@ -1,133 +1,171 @@ -
- - -- Your sign-in code is - -
-- Copy and paste the code to your client. Keep it secret! -
-- The following error was occurred: -
-
- - Click here to sign-in again. If the error keep showing up, save the error message and ask for help. -
-- Click here to sign-in. -
-+ Your sign-in code is + +
++ Copy and paste the code to your client. Keep it secret! +
Tip
@@ -90,7 +91,6 @@ redirectFrom: - **Default:** `true` - #### `Trigger_By_Words` - **Description:** @@ -103,7 +103,6 @@ redirectFrom: - **Default:** `false` - #### `Trigger_By_Rain` - **Description:** @@ -116,7 +115,6 @@ redirectFrom: - **Default:** `false` - #### `Trigger_By_Thunderstorm` - **Description:** @@ -129,7 +127,6 @@ redirectFrom: - **Default:** `false` - #### `Log_To_File` - **Description:** @@ -142,7 +139,6 @@ redirectFrom: - **Default:** `false` - #### `Log_File` - **Description:** @@ -153,7 +149,6 @@ redirectFrom: - **Default:** `"alerts-log.txt"` - #### `Matches` - **Description:** @@ -168,7 +163,6 @@ redirectFrom: Matches = [ "Yourname", " whispers ", "-> me", "admin", ".com", ] ``` - #### `Excludes` - **Description:** @@ -205,7 +199,6 @@ redirectFrom: - **Default:** `false` - #### `Delay` - **Description:** @@ -220,7 +213,6 @@ redirectFrom: - **Default:** `{ min = 60.0, max = 60.0 }` - #### `Command` - **Description:** @@ -231,7 +223,6 @@ redirectFrom: - **Default:** `/ping` - #### `Use_Sneak` - **Description:** @@ -242,7 +233,6 @@ redirectFrom: - **Default:** `false` - #### `Use_Terrain_Handling`Tip
@@ -263,7 +253,6 @@ redirectFrom: - **Default:** `false` - #### `Walk_Range` - **Description:** @@ -274,7 +263,6 @@ redirectFrom: - **Default:** `5` - #### `Walk_Retries`Tip
@@ -317,7 +305,6 @@ redirectFrom: - **Default:** `false` - #### `Mode` - **Description:** @@ -336,7 +323,6 @@ redirectFrom: - **Default:** `single` - #### `Priority` - **Description:** @@ -350,7 +336,6 @@ redirectFrom: - **Default:** `distance` - #### `Cooldown_Time` - **Description:** @@ -369,7 +354,6 @@ redirectFrom: - **Default:** `{ Custom = false, value = 1.0 }` - #### `Interaction` - **Description:** @@ -392,7 +376,6 @@ redirectFrom: - **Default:** `Attack` - #### `Attack_Hostile` - **Description:** @@ -405,7 +388,6 @@ redirectFrom: - **Default:** `true` - #### `Attack_Passive` - **Description:** @@ -418,7 +400,6 @@ redirectFrom: - **Default:** `false` - #### `List_Mode` - **Description:** @@ -431,7 +412,6 @@ redirectFrom: - **Default:** `whitelist` - #### `Entites_List` - **Description:** @@ -482,7 +462,6 @@ redirectFrom: **Section:** **`ChatBot.AutoCraft`** - #### `Enabled` - **Description:** @@ -495,7 +474,6 @@ redirectFrom: - **Default:** `false` - #### `CraftingTable` - **Description:** @@ -518,7 +496,6 @@ redirectFrom: CraftingTable = { X = 123.0, Y = 65.0, Z = 456.0 } ``` - #### `OnFailure` - **Description:** @@ -533,7 +510,6 @@ redirectFrom: - **Default:** `abort` - ### Defining a recipeTip
@@ -554,7 +530,7 @@ redirectFrom: - `Type` - **Avaliable values:** `player` and `table` + **Available values:** `player` and `table` - `Result` @@ -657,7 +633,6 @@ redirectFrom: **Section:** **`ChatBot.AutoDig`** - #### `Enabled` - **Description:** @@ -670,7 +645,6 @@ redirectFrom: - **Default:** `false` - #### `Mode` - **Description:** @@ -695,7 +669,6 @@ redirectFrom: - **Default:** `lookat` - #### `Locations` - **Description:** @@ -721,7 +694,6 @@ redirectFrom: ] ``` - #### `Location_Order` - **Description:** @@ -742,7 +714,6 @@ redirectFrom: - **Default:** `distance` - #### `Auto_Start_Delay` - **Description:** @@ -755,7 +726,6 @@ redirectFrom: - **Default:** `3.0` - #### `Dig_Timeout` - **Description:** @@ -766,7 +736,6 @@ redirectFrom: - **Default:** `60.0` - #### `Log_Block_Dig` - **Description:** @@ -779,7 +748,6 @@ redirectFrom: - **Default:** `true` - #### `List_Type` - **Description:** @@ -792,7 +760,6 @@ redirectFrom: - **Default:** `whitelist` - #### `Blocks` - **Description:** @@ -837,7 +804,6 @@ redirectFrom: - **Default:** `false` - #### `Mode` - **Description:** @@ -864,7 +830,6 @@ redirectFrom: - **Default:** `include` - #### `Items`Tip
@@ -914,7 +879,6 @@ redirectFrom: - **Default:** `false` - #### `Threshold` - **Description:** @@ -966,7 +930,6 @@ redirectFrom: **Section:** **`ChatBot.AutoFishing`** - #### `Enabled` - **Description:** @@ -979,7 +942,6 @@ redirectFrom: - **Default:** `false` - #### `Antidespawn` - **Description:** @@ -992,7 +954,6 @@ redirectFrom: - **Default:** `false` - #### `Mainhand` - **Description:** @@ -1008,7 +969,6 @@ redirectFrom: - **Default:** `true` - #### `Auto_Start` - **Description:** @@ -1021,7 +981,6 @@ redirectFrom: - **Default:** `true` - #### `Cast_Delay` - **Description:** @@ -1032,7 +991,6 @@ redirectFrom: - **Default:** `0.4` - #### `Fishing_Delay` - **Description:** @@ -1045,7 +1003,6 @@ redirectFrom: - **Default:** `3.0` - #### `Fishing_Timeout` - **Description:** @@ -1056,7 +1013,6 @@ redirectFrom: - **Default:** `300.0` - #### `Durability_Limit` - **Description:** @@ -1069,7 +1025,6 @@ redirectFrom: - **Default:** `2` - #### `Auto_Rod_Switch` - **Description:** @@ -1082,7 +1037,6 @@ redirectFrom: - **Default:** `true` - #### `Stationary_Threshold` - **Description:** @@ -1099,7 +1053,6 @@ redirectFrom: - **Default:** `0.001` - #### `Hook_Threshold` - **Description:** @@ -1114,7 +1067,6 @@ redirectFrom: - **Default:** `0.2` - #### `Log_Fish_Bobber` - **Description:** @@ -1129,7 +1081,6 @@ redirectFrom: - **Default:** `false` - #### `Enable_Move` - **Description:** @@ -1144,12 +1095,11 @@ redirectFrom: - **Default:** `false` - ### Adding a position/movement Each position/movement is added as a new `[[ChatBot.AutoFishing.Movements]]` subsection of `[ChatBot.AutoFishing]`. - **Avaliable settings/options:** + **Available settings/options:** - `XYZ` @@ -1185,7 +1135,6 @@ redirectFrom: facing = { yaw = 12.34, pitch = -23.45 } ``` - #### Full example ```toml @@ -1219,7 +1168,6 @@ redirectFrom: - **Default:** `false` - #### `Delay` - **Description:** @@ -1236,7 +1184,6 @@ redirectFrom: - **Default:** `{ min = 3.0, max = 3.0 }` - #### `Retries`Tip
@@ -1253,7 +1200,6 @@ redirectFrom: - **Default:** `-1` - #### `Ignore_Kick_Message` - **Description:** @@ -1264,7 +1210,6 @@ redirectFrom: - **Default:** `false` - #### `Kick_Messages` - **Description:** @@ -1311,7 +1256,6 @@ redirectFrom: - **Default:** `false` - #### `Matches_File`Tip
@@ -1332,7 +1276,6 @@ redirectFrom: - **Default:** `matches.ini` - #### `Match_Colors`Tip
@@ -1373,7 +1316,6 @@ redirectFrom: - **Default:** `false` - #### `Add_DateTime` - **Description:** @@ -1384,7 +1326,6 @@ redirectFrom: - **Default:** `true` - #### `Log_File` - **Description:** @@ -1393,7 +1334,6 @@ redirectFrom: - **Default:** `chatlog-%username%-%serverip%.txt` - #### `Filter` - **Description:** @@ -1424,6 +1364,275 @@ redirectFrom: - **Default:** `messages` +## Discord Bridge + +- **Description:** + + This Chat Bot allows you to send and receive messages and MCC commands via a Discord channel. + +- **Setup:** + + In order for this to work you must create a Discord bot on the [Discord Developers portal](https://discord.com/developers/applications/). + + First go to [Discord Developers portal](https://discord.com/developers/applications/), click on **New Application**, fill out the name of your bot and confirm the terms of service and click **Create**. + +  + + Copy the **Application ID** and save it somewhere. + + Click on the **Bot** tab in the left menu. + + Click on **Add Bot** + +  + + Click on the **Reset Token** button and copy the generated token, then paste it in the `Token` field in the MCC configuration. + + Enable `Message Content Intent`, `Server Members Intent` and `Presence Intent`. + +  +  + +Warning
+ + **Token is what gives you access to the Bot, do not share it with anyone and keep it safe!** + +Warning
+ + **You must Enable `Message Content Intent`, `Server Members Intent` and `Presence Intent` for the bot to work!** + +Tip
+ + **You need to have [Terrain And Movements](configuration.md#terrainandmovements) and [Inventory Handling](configuration.md#inventoryhandling) enabled in order for this bot to work.** + +Warning
+ + **This a newly added bot, it is not perfect and was only tested in 1.19.2, there are some minor issues with it and you should treat it as an experimental bot.** + +Tip
@@ -1539,7 +1744,6 @@ redirectFrom: - **Default:** `hangman-en.txt` - **Example**: [`words-en.txt`](https://github.com/MCCTeam/Minecraft-Console-Client/blob/master/MinecraftClient/config/hangman-en.txt) - #### `FileWords_FR`Tip
@@ -1610,7 +1814,6 @@ redirectFrom: **Section:** **`ChatBot.Mailer`** - #### `Enabled` - **Description:** @@ -1623,7 +1826,6 @@ redirectFrom: - **Default:** `false` - #### `DatabaseFile` - **Description:** @@ -1634,7 +1836,6 @@ redirectFrom: - **Default:** `MailerDatabase.ini` - #### `IgnoreListFile` - **Description:** @@ -1645,7 +1846,6 @@ redirectFrom: - **Default:** `MailerIgnoreList.ini` - #### `PublicInteractions` - **Description:** @@ -1658,7 +1858,6 @@ redirectFrom: - **Default:** `false` - #### `MaxMailsPerPlayer` - **Description:** @@ -1669,7 +1868,6 @@ redirectFrom: - **Default:** `10` - #### `MaxDatabaseSize` - **Description:** @@ -1680,7 +1878,6 @@ redirectFrom: - **Default:** `10000` (10 MB) - #### `MailRetentionDays` - **Description:** @@ -1695,17 +1892,11 @@ redirectFrom: - **Description:** - This Chat Bot allows you to render items maps into `.jpg` images. + This Chat Bot allows you to render items maps in the console, to `.bmp` images and to relay them to Discord using the [Discord Bridge](#discord-bridge) Chat Bot. This is useful for solving captchas on servers which require it, or saving the map art into an image. - The maps are **rendered** into `Rendered_Maps` folder. - -Warning
- - **This bot has only been tested on Windows 10, it may not work on Linux or Mac OS due to .NET BitMap API. We're looking forward to swap the underlaying Bitmap API dependency with a library.** - -Tip
+ This setting specifies if the Map Chat Bot should render the map in the console. - **The bigger the size, the less is the quality.** + It is recommended to use something like Power Shell for the best map quality (at least for Windows users). -Tip
+ - **Type:** `boolean` - **For upscaling your maps you could use (getting a bit better quality): https://deepai.org/machine-learning-model/torch-srgan** + - **Default:** `true` + + #### `Save_To_File` + +Warning
+ + **If you want the Discord relay feature, you must enable this setting!**Warning
@@ -1790,7 +1974,6 @@ redirectFrom: - **Default:** `false` - #### `Delete_All_On_Unload` - **Description:** @@ -1803,7 +1986,6 @@ redirectFrom: - **Default:** `true` - #### `Notify_On_First_Update` - **Description:** @@ -1816,6 +1998,80 @@ redirectFrom: - **Default:** `false` + #### `Rasize_Rendered_Image` + +Tip
+ + **The bigger the size, the less is the quality.** + +Tip
+ + **For upscaling your maps you could use (getting a bit better quality): https://deepai.org/machine-learning-model/torch-srgan** + +Tip
+ + **Might be a bit slow on less powerful systems when rendering a lot of maps. Lower down the resolution if you have any performance issues. If your system is not that powerful and can't handle it, use external tools for upscaling and resizing.** + +Warning
+ + **The [Discord Bridge](#discord-bridge) Chat Bot must be enabled and configured!** + +Warning
+ + **You need to enable `Save_To_File` in order for this to work.** + +Tip
+ + **Sometimes when the client connects, the [Discord Bridge](#discord-bridge) will be loaded a tiny bit after. Rendered map images are queued up and sent in order as soon as the [Discord Bridge](#discord-bridge) is ready and connected.** + +Tip
@@ -2007,7 +2257,7 @@ redirectFrom:Tip
+ +**You need to have [Terrain And Movements](configuration.md#terrainandmovements) enabled in order for this to work.** + +Tip
+ + **You need to have [Inventory Handling](configuration.md#inventoryhandling) enabled in order for this to work.** + +