astridlol / lilian Goto Github PK
View Code? Open in Web Editor NEWBrings pronouns.page into Discord.
Home Page: https://bit.ly/3I3IWnN
Brings pronouns.page into Discord.
Home Page: https://bit.ly/3I3IWnN
After linking my pronouns page, it cannot find me. I tried both mentioning myself, and using my ID. But it can't find me.
As you can see below, Lilian does not support links in fields.
I assume you can see why it's happening, because Lilian is using the raw data given from the API which is a link.
I spent a few days coming up with a solution, but not only will it take a lot of API requests which may end in being ratelimited, but I wrote this in a language that is not similar to TS and may be difficult to read.
This is what my bot is doing:
If the input is a link, it uses the /api/pronouns/{pronoun}
endpoint and inputs everything except https://en.pronouns.page/
in the {pronoun}
field. It then saves pronoun_subject
and pronoun_object
.
It then saves the link.
If the input is not a link, it then checks if it begins with :
. If yes, it uses the /api/pronouns/{pronoun}
and searches for the input including the :
. It then saves pronoun_subject
and possessive_determiner
.
It then saves the link, replacing every space with %20
.
If it's none of these, it just uses /api/pronouns/{pronoun}
with the input as the {pronoun}
, and saves the pronoun_subject
and pronoun_object
.
It then saves the link.
It then combines everything together to make [{pronoun1}/{pronoun2}]({link})
with the pronouns in order of which was saved first.
The nameself pronoun has to be displayed differently to the other two options, otherwise it would show Name/Name
instead of Name/Name's
Again, I know this is probably not a good fix due to ratelimiting; However this is a possible idea that I spent a while coming up with and working on to offer up a working idea.
If you do want to try to read the code, I can send it to you, but it's using a very simplified programming language for a mobile app (Bot Designer For Discord)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.