Giter Site home page Giter Site logo

lilian's Introduction

lilian's People

Contributors

astridlol avatar honkling avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

honkling h077y

lilian's Issues

Fix undefined

image
This function somehow works perfectly in context menus, but not the slash command.

Link pronouns not showing correctly.

As you can see below, Lilian does not support links in fields.

Image1

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.

Image2

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.