-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix VALORANT chat presence, add alert for missing perms
- Loading branch information
1 parent
6300294
commit 2e2b6e1
Showing
3 changed files
with
34 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,9 +108,9 @@ private async Task OutgoingLoopAsync() | |
"<item jid='[email protected]' name='	Deceive Active!' subscription='both' puuid='41c322a1-b328-495b-a004-5ccd3e45eae8'>" + | ||
"<group priority='9999'>Deceive</group>" + | ||
"<state>online</state>" + | ||
"<id name='Deceive Active!' tagline='...'/>" + | ||
"<id name='	Deceive Active!' tagline='...'/>" + | ||
"<lol name='	Deceive Active!'/>" + | ||
"<platforms><riot name='Deceive Active' tagline='...'/></platforms>" + | ||
"<platforms><riot name='	Deceive Active' tagline='...'/></platforms>" + | ||
"</item>"); | ||
var contentBytes = Encoding.UTF8.GetBytes(content); | ||
await Incoming.WriteAsync(contentBytes, 0, contentBytes.Length); | ||
|
@@ -240,13 +240,14 @@ private async Task SendFakePlayerPresenceAsync() | |
var presenceMessage = | ||
$"<presence from='[email protected]/RC-Deceive' id='b-{randomStanzaId}'>" + | ||
"<games>" + | ||
$"<keystone><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.p>keystone</s.p></keystone>" + | ||
$"<league_of_legends><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.p>league_of_legends</s.p><p>{{"pty":true}}</p></league_of_legends>" + // No Region s.r keeps it in the main "League" category rather than "Other Servers" in every region with "Group Games & Servers" active | ||
$"<valorant><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.p>valorant</s.p><p>{valorantPresence}</p></valorant>" + | ||
$"<keystone><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.p>keystone</s.p><pty/></keystone>" + | ||
$"<league_of_legends><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.p>league_of_legends</s.p><s.c>live</s.c><p>{{"pty":true}}</p></league_of_legends>" + // No Region s.r keeps it in the main "League" category rather than "Other Servers" in every region with "Group Games & Servers" active | ||
$"<valorant><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.p>valorant</s.p><s.r>PC</s.r><p>{valorantPresence}</p><pty/></valorant>" + | ||
$"<bacon><st>chat</st><s.t>{unixTimeMilliseconds}</s.t><s.l>bacon_availability_online</s.l><s.p>bacon</s.p></bacon>" + | ||
"</games>" + | ||
"<show>chat</show>" + | ||
"<platform>riot</platform>" + | ||
"<status/>" + | ||
"</presence>"; | ||
|
||
var bytes = Encoding.UTF8.GetBytes(presenceMessage); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters