[files]
"https://raw.githubusercontent.com/TechnicJelle/DiscordReactor/refs/heads/main/discord-reactor.py" = "discord_reactor.py"
from pyscript import document
from discord_reactor import main
def run(event):
input_text = document.querySelector("#my_input")
text: str = input_text.value
if text == "" or text.isspace():
return
english = text.split(" ")
output_div = document.querySelector("#output")
output_div.innerText = main(english)
Discord Reactor
Convert a sentence into Discord emoji...
(To try another sentence, reload the page...)
Source code: https://github.com/TechnicJelle/DiscordReactor