cody
cody
Explore posts from servers
SIASapphire - Imagine a framework
Created by cody on 7/11/2024 in #sapphire-support
Assigning ID hints outside of builders
Is it possible to assign id hints outside of builders? Currently it's impossible to juggle id hints between the dev bot and the main bot and I was wondering if there's a way to do this outside of the builder, maybe before the client is initialized
7 replies
RRailway
Created by cody on 7/9/2024 in #✋|help
Ghost deploy
No description
33 replies
SIASapphire - Imagine a framework
Created by cody on 7/7/2024 in #sapphire-support
Slash commands failing to register
I deleted my dist folder because I wanted to 'refresh' the compiled code, and right after I noticed that only 2 of my commands are registering now, them being escalation-manager and shortcut-manager. I don't get what went wrong since it was working fine earlier but maybe someone can shine some light into this?
11 replies
SIASapphire - Imagine a framework
Created by cody on 7/6/2024 in #sapphire-support
Chat input command IDs
I have a function that needs to get the id of a chat input command to process some logic, and I was wondering how I could get the id? Obviously it's stored in container.stores.get('commands') but I don't know where to go from there.
7 replies
SIASapphire - Imagine a framework
Created by cody on 7/4/2024 in #sapphire-support
Interaction create and custom commands
I have a system with shortcuts (basically a command that punishes a user with a defined reason and duration, e.g something like ,spam <user>) and I'm trying to port them to my sapphire bot, however, I'm unsure if adding an interaction create event for chat input commands would mess with sapphire's handlers. My guess is that It won't if it can't find a command that matches the name of a global command but I'd still like to make sure. Can anyone confirm this?
19 replies
SIASapphire - Imagine a framework
Created by cody on 7/3/2024 in #sapphire-support
Errors and their listeners
In my commands when I want to throw an error I just use throw '<message>' and then send an embed with that error using the MessageCommandError event listener. This works fine however It also logs to my console, which is really annoying me. Is there a way to disable this?
10 replies
RRailway
Created by cody on 6/24/2024 in #✋|help
Errors with Dockerfile
I'm trying to go back to compiled typescript code to reduce bun's memory usage. I've constructed my dockerfile and everything works fine up until the point it has to actually run the code. Could someone that has knowledge on docker assist me, as I'm a complete idiot in this.
26 replies
RRailway
Created by cody on 6/20/2024 in #✋|help
Encountered a random restart after using V2 runtime for a while
No description
95 replies
RRailway
Created by cody on 5/23/2024 in #✋|help
Database errors happening randomly after update
I updated some parts of my code, and now, out of nowhere prisma just throws the biggest error I've ever seen. I asked my friends about it and they say that Prisma isn't at fault. It says that there's a library missing but everything works well locally. Can someone shine some light on this?
92 replies
RRailway
Created by cody on 5/20/2024 in #✋|help
Bun
Is railway compatible with bun? I'm looking to switch from nodejs to bun and want to make sure railway supports it.
26 replies
DIAdiscord.js - Imagine an app
Created by cody on 5/6/2024 in #djs-questions
Random errors after running `npm update`
No description
70 replies
RRailway
Created by cody on 5/1/2024 in #✋|help
Transferring services
Is it possible to move services to another project? I know you can recreate them but that would delete my database data and charge me egress for not using the private network.
6 replies
RRailway
Created by cody on 4/19/2024 in #✋|help
Database queries
Has the function to run database queries directly on the dashboard for mysql databases gotten removed or is it now under a different category?
27 replies
RRailway
Created by cody on 3/21/2024 in #✋|help
Files (Again)
I have a version of my bot that doesn't store data in a database but rather in a SQLite file (to make self hosting easier for people who don't like to trouble themselves with postgres). Currently it runs npx prisma db push on startup to create the file/make sure it exists, but will the file remain if the service is redeployed? I can already guess what the answer is but I just want to make sure
12 replies
RRailway
Created by cody on 3/10/2024 in #✋|help
File Creations
I have a function that checks for a file that holds specific data for every guild my bot is on. I'm implementing a function where if the file isn't found it'll be automatically created upon the guildCreate event being emitted. Does railway allow this? What I mean by allow is if the app has permission to create files in the "working directory" it runs on.
20 replies
RRailway
Created by cody on 3/4/2024 in #✋|help
Uploading files
Is it possible to manually upload files to a deployment? I have a public GitHub repository that holds my (yaml) configuration file what I wish to not be public. Is there a way to manually upload the file onto railway without it being present in the repo?
7 replies
RRailway
Created by cody on 2/20/2024 in #✋|help
Unknown errors in logs
I was viewing my logs randomly and I noticed some strange errors that don't relate much to anything my bot does. Are these errors from railway and should I be worried?
21 replies
SIASapphire - Imagine a framework
Created by cody on 2/11/2024 in #sapphire-support
Argument examples
Are there any examples for duration arguments available? I'm struggling with duration arguments for punishments and am looking for something that would accept either a "permanent" string or a duration with the type of a string, e.g 1h, 30d, 1m Iirc there was a plugin for this but I can't remember what the name is or where to find it.
10 replies
RRailway
Created by cody on 2/3/2024 in #✋|help
Error with project usage
Currently I have 2 projects, one with discord stuff and another one with some secondary stuff that I don't often touch. On my primary project I have removed all deployments as I'm trying to focus on the secondary ones currently, but I'm still getting charged. I checked my usage today and it was $1.93 while yesterday it was $1.89. Is this a UI bug of some sort or are the deployments actively running on "sleep" mode?
13 replies
RRailway
Created by cody on 2/1/2024 in #✋|help
Projects
Is it possible to move a database to another project? I'm trying to separate the bots from the databases to management easier
16 replies