molenzwiebel / Deceive

🎩 Appear offline for League of Legends, VALORANT, and Legends of Runeterra.
GNU General Public License v3.0
1.19k stars 179 forks source link

Show the status in game #153

Open scarrrr316 opened 2 years ago

scarrrr316 commented 2 years ago

show the current status of the game e.g. deceive active! (offline) at friend list ↓ image so dont need to right click deceive to check the status

aPinat commented 2 years ago

You can DM the Deceive 'friend' with status and it will reply with the currently selected status.

scarrrr316 commented 2 years ago

You can DM the Deceive 'friend' with status and it will reply with the currently selected status.

but its not straightforward enough

Indeedornot commented 2 years ago

I do believe such a feature would come in handy. I am curious as to what would take to implement it. I've looked around in the code and from what I can see the chat is inserted into requested by Riot friend list. That does not seem to update itself other than upon a restart - similiar to what is needed to see a new nickname of a person that has changed their name. The only thing I was able to modify was the name registered at the start in the outgoing loop

            content = content.Insert(
              content.IndexOf(roster, StringComparison.Ordinal) + roster.Length,
              $"<item jid='41c322a1-b328-495b-a004-5ccd3e45eae8@eu1.pvp.net' name='&#9;{Status}!' subscription='both' puuid='41c322a1-b328-495b-a004-5ccd3e45eae8'>"
              + "<group priority='9999'>Deceive</group>"
              + $"<id name='&#9;{Status}!' tagline=''/><lol name='&#9;{Status}!'/>"
              + "</item>"

Worked some more and found some way that this could be achieved - through requesting a friend list again in outgoing loop with adding get query. For now i do not have yet a working example however it seems very plausable to work should it be deemed valuable to be added by devs