Avatar

ktodaz

Hacking on things
Joined June 8, 2023
Public vals
5
ktodaz avatar
gpt3Example
@ktodaz
Script
Forked from isfeng/gpt3Example
ktodaz avatar
setIsCurrentlyRunning
@ktodaz
Script
An interactive, runnable TypeScript val by ktodaz
ktodaz avatar
getGPTResponse
@ktodaz
Script
Get a response from GPT for the player.
ktodaz avatar
getTopPlayersByScore
@ktodaz
Script
Welcome ESPT, this is the function that sorts and scores every player. This function will remain public so if things ever change you can see updates
ktodaz avatar
sendDiscordMessage
@ktodaz
Script
Send Chunked Discord Message This function is used to send a message to a Discord webhook. If the message exceeds the maximum character limit (2000 characters), it will be divided into chunks and sent as multiple messages. Parameters message (string): The message to be sent to the Discord webhook. Return Value This function does not return any value. Example Usage: const message = "This is a long message that needs to be sent to Discord. It may exceed the character limit, so it will be divided into smaller chunks."; await @ktodaz.sendDiscordMessage(message); In the above example, the sendDiscordMessage function is used to send the message to the Discord webhook. If the message exceeds 2000 characters, it will be split into smaller chunks and sent as separate messages. Required Secrets: Ensure you have added the secret for discord_webhook in your val.town secrets settings (Profile -> Secrets)
Next