πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ
πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ
DDeno
Created by πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ on 6/28/2024 in #help
Event Loop for a bot
Supposing I had a function in a script for a bot that gives me all the tweets a user has posted on X.com (sharkey, actually, but lets just say x), how would I make some kind of an event listener on a server that listens for mentions of the bot's account? I was thinking about making an infinite loop but that seems wildly inefficient.
5 replies
DDeno
Created by πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ on 6/27/2024 in #help
HTTPS imports in browser breaking stuff.
No description
41 replies
DDeno
Created by πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ on 6/26/2024 in #help
Advice on building on running a React app.
No description
15 replies
DDeno
Created by πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ on 6/17/2024 in #help
Trouble with serving HTMl on localhost
Hi, so I'm building a framework for SSR and I'm struggling with the following: When I clone my repo and run my example app with deno run --allow-net example.ts, and I open up any pages on localhost:8080/page{0-4}, I see a blank white screen. I have narrowed down the problem to lines 48-75 in the file linked below. Where am I going wrong? I tried a simple console.log from within the handler closure to no avail. What am I missing here? Link to the file: https://github.com/angeldollface/mina/blob/main/src/server.ts
10 replies
DDeno
Created by πŸŽ€π”Έβ„•π”Ύπ”Όπ•ƒ π”»π•†π•ƒπ•ƒπ”½π”Έβ„‚π”ΌπŸŽ€πŸ‡΅πŸ‡Έ on 5/18/2024 in #help
Custom body
I checked out the example for writing a simple HTTP server to only serve text at this link. How would I write a handler function that accepts a string parameter for the body content? Am I being stupid here?
15 replies