Will
Will
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Will on 4/12/2025 in #djs-questions
How to test a bot that manages dozens of users in a voice channel?
I am working on a discord bot that manages dozens of active users in a servers voice channels. I can easily test with 2-3 users by logging in on several of my own devices, but I am worried that once I hit dozens of users I may run into some rate limiting issues or other bugs and I would love to find these before I start running in production. The bot sets up an event then moves users around once the event starts, so it'd be pretty embarrassing if something breaks after people arrive for the event. I tried to set up a bunch of bots and then log them in a loop, but there must be some limitation from Discord because it only lets me log in one bot at a time from my laptop. Does anyone have any advice on how I can test this locally?
9 replies
TTCTheo's Typesafe Cult
Created by Will on 1/10/2024 in #questions
Expo Module Development Issue on WSL2
I am trying to develop a react native app with expo while I am on WSL2. I added --tunnel to my can run start and android npm scripts, and everything works as expected (start shows QR code which I can connect using my android phone via Expo Go app, and android will run in my emulator in Android Studio) This works great, until I try to develop a module as well. I used npx create-expo-module my-module (tutorial/expo docs: https://docs.expo.dev/modules/get-started/#creating-a-new-module-with-an-example-project) and tried to spin up the default code without any changes: 1. npm run build in main directory 2. npm run android (with --tunnel added) in the example directory But I keep getting the error: - Unable to load script. Make sure you're either running Metro (run 'npx react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release' I've done a bunch of googling + troubleshooting + reading through Docs but can't find the issue. I can't find a tutorial which also uses WSL2 for developing expo modules so I am assuming the issue comes from that.
4 replies
TTCTheo's Typesafe Cult
Created by Will on 5/20/2023 in #questions
background tasks in t3 stack?
is there a recommended way to run background tasks with the t3 stack? I am putting some objects in s3 buckets and returning the response to the user, but Iwant the s3 event to trigger some processing which then will update my db. Do I need to spin up a separate lambda that connects to my database via prisma, or is there a built-in solution?
4 replies