Skip to content

Commit e2dea3b

Browse files
authored
feat(prs): ✨ add Discord integration (#89)
* docs: 🔖 advance local version to 1.5.0 * feat(discord): ✨ add Discord integration (#83) * docs: 🔖 advance local version to 1.5.0 (#81) * feat(discord): ✨ set Discord button to PR server invite * feat(discord): ✨ add client-side Discord Rich Text Integration announce game, player location, and elapsed time playing * docs: 🔖 advance local version to 1.5.0 (#81) (#84) * docs: 🔖 advance local version to 1.5.0 (#81) (#86) * docs(readme): ✏️ fix typo in UI Configuration * docs: 📝 credit Dalem
1 parent 421369a commit e2dea3b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

PRS.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Procedural Realms Script (PRS) by Stack
1+
-- Procedural Realms Script (PRS) by Stack and Dalem
22

33
local version = "1.5.0"
44

@@ -13,5 +13,13 @@ registerAnonymousEventHandler("gmcp.Char.player", function()
1313
PRSstats.stats()
1414
end, true)
1515

16-
-- Announce PR on Discord
16+
-- set Discord button to PR invite
17+
setDiscordGameUrl("https://discord.gg/rRFEjc6vV9", "Procedural Realms")
18+
19+
-- Discord Rich Text Integration
20+
setDiscordApplicationID("947477099596378142")
1721
setDiscordGame("Procedural Realms")
22+
local currentarea = getRoomArea(getPlayerRoom())
23+
local areaname = getAreaTableSwap()[currentarea]
24+
setDiscordDetail(areaname)
25+
setDiscordElapsedStartTime(os.time(os.date("*t")))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ You can also clone the entire project directly with this command: `git clone git
148148

149149
There are two fully configurable UI elements that are currently included in PRS by default: the EMCO (Communications Tabs and Map) and the Vitals (character Stat guages) windows. The UI windows are docked on the right of mudlet's main display upon connection to the game server. The windows may be resized by dragging their borders, moved by click/dragging their window title/headings, as well as undocked or closed by clicking on their respective upper-right pop-out or close icons.
150150

151-
1. **Enable GMCP**: You must enable GMCP options on the game server. To determine if GMCP in enabled on the server, log into the game and issue the following command: `config gmcp`. Displayed under the "Terminal" column are the "gmcp" and "gmcpseenrooms" options. If they are not corrently set to "on", you may enable them by issuing the `gmcp` and `gmcpseenroom` commands.
151+
1. **Enable GMCP**: You must enable GMCP options on the game server. To determine if GMCP in enabled on the server, log into the game and issue the following command: `config gmcp`. Displayed under the "Terminal" column are the "gmcp" and "gmcpseenrooms" options. If they are not currently set to "on", you may enable them by issuing the `gmcp` and `gmcpseenroom` commands.
152152
3. **Resize Windows**: On initial usage, you will typically need to resize the windows both horizontally and vertically to reveal their contents fully. Note that the window configurations are preserved but not restored until connection to the game server has been established. You can optionally drag, re-arrange, pop out, and otherwise move the windows to your liking,
153153

154154
### Command Line Interface

0 commit comments

Comments
 (0)