From fd9b56f67182af9cb0967312d23437a67147578a Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 3 Oct 2024 23:57:41 -0700 Subject: add SETUP.md --- README.md | 2 +- SETUP.md | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 SETUP.md diff --git a/README.md b/README.md index 6046ea9..48a2f66 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # DiscordToXIV (WORK IN PROGRESS) A Dalamud Plugin that allows you to view Discord messages in chat with the help of BetterDiscord -WARNING: This is a 3rd party plugin that technically violates both Discord and FFXIV's Terms of Service \ No newline at end of file +For setup instructions please take a look at `SETUP.md` diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 0000000..4d80a13 --- /dev/null +++ b/SETUP.md @@ -0,0 +1,74 @@ +# DiscordToXIV - Help + +Welcome. This mini-guide will help you get started with DiscordToXIV. + +--- + +## 1. Set up BetterDiscord + +This plugin requires a Discord client with BetterDiscord so that Dalamud can communicate with it. Follow the instructions on their website, it'll patch into your existing Discord client. + +[BetterDiscord Website](https://betterdiscord.app/) + +--- + +## 2. Download and install the BetterDiscord plugin + +Install the BDFireToWebsocket plugin. This is required so Dalamud knows when you get a new message. Download the .js file from the link below and put it in your BetterDiscord plugins folder. You can access this in your BetterDiscord client by going to Settings -> Plugins -> Open Plugin Folder. + +![image.png](https://i.postimg.cc/Zqkjqx6z/image.png) +![image.png](https://i.postimg.cc/xdSyQTS0/image.png) +[![image.png](https://i.postimg.cc/xC1mjXpS/image.png)](https://postimg.cc/1gbXJ3ZW) +[BDFireToWebsocket Plugin](https://github.com/pinapelz/BDFireToWebsocket/blob/7b2752d529cf3c6b5115c200aeb7b6f684ce807b/BDFireToWebsocket.plugin.js) + + + +--- + +## 3. Configure BDFireToWebsocket Plugin + +Click on the settings icon for the BDFireToWebsocket plugin in BetterDiscord in the plugins menu. + +- For Websocket address, you can leave it as the default unless you know what you're doing. +- **Channel IDs** controls which messages are sent to Dalamud. I suggest leaving this empty and then filtering which channels you want from the Dalamud plugin instead. +- Make sure to add your own **User ID** so that messages you send get filtered out! (Otherwise, you'll see your own messages in-game). You can get your User ID by right-clicking on your name anywhere in Discord and clicking 'Copy ID'. + +[![image.png](https://i.postimg.cc/qq96GjJk/image.png)](https://postimg.cc/zHFfzwHM) + + +--- + +## 4. Configure DiscordToXIV Plugin + +Head back into the game and run `/pdiscordtoxiv config`. This will open the plugin settings window where you can configure the plugin to your liking. + +- You'll need to set **nicknames** for each chat channel so their names don't show up as a bunch of numbers. +- You can get the channel ID by right-clicking on any server channel or even DM channel and clicking 'Copy Channel ID'. + Ex. `#general-ffxiv -> 12345564323454`. + +[![image.png](https://i.postimg.cc/6QY7P9Wb/image.png)](https://postimg.cc/wtRTyYsD) + + +(Optional) You can also set up a **Discord Auth Token** if you want to send messages from the game to Discord. I won't get into how to get this token since it's slightly more risky, but you can find guides online. If you do set it up, I'll have instructions on how to use it later down. + + +--- + +## 5. Good to GO! + +Almost done now! Run `/pdiscordtoxiv`. You should see a message in chat letting you know that the server is running. + +Head back into your BetterDiscord plugins and click the settings icon for BDToFireWebsocket again. Click 'Reconnect to Websocket Server'. + +You should now see a message in-game letting you know that the connection is successful! + +--- + +## (Optional) 6. Sending Discord messages + +If you set up the Discord Auth Token, you can now send messages from the game to Discord. + +1. First, you'll need to **focus** on a chat channel by typing `/pdtxset `. You must use the numerical channel ID here, not a nickname. +2. Then you can send messages by typing `/pdtxsend `. This will send the message to the focused channel. + +My suggestion for using this is to set up different **macros** to focus on different channels. This will make it easier to send messages to different channels without having to type the channel ID each time. -- cgit v1.2.3