Crashed Every time when tried to run the bot

**I am trying to make a discord bot but it crashes every time **

Screenshot_2026-06-17_095335.png

Attachments

Solved

82 Replies

2 days ago

it looks like your discord bot token is missing


how your code looks like?


^ you have to pass the bot token in the env variable


what i pasted it ?


2 days ago

where'd you paste it?


here

SPOILER_Screenshot_2026-06-17_095543.png

Attachments


2 days ago

why'd you add it as a shared variable? is there a particular reason? or did you mean to add it to your bot service?



2 days ago

I'll assume you did it mistakenly

You'll want to paste those in your service variables instead:

  1. Click on your CyberNet Bot service
  2. Click on the Variables
  3. Put your variables in there

k i will try


thanks it worked

Screenshot_2026-06-17_100349.png

Attachments


2 days ago

huge!


2 days ago

glad I could help


can i keep this chat open in case it crashed again?


2 days ago

sure, I'll keep it open and close it when I go to bed, if it crashes after I go to bed then you're welcome to open a new thread


when will you go to bed?


like time


or if you went offline ?


2 days ago

around 10 hours from now probably


2 days ago

i mean it doesn't matter ultimately, even if someone closes it now you can always open another one


enough time for me


k i will work on it


2 days ago

good luck


Ahem



2 days ago

that is definitely an issue within your code somewhere, you'll want to check your server logs


i updated the the codes from "gemini-2.0-flask" to "gemini-1.5-flask-latest" but the result is same

Screenshot_2026-06-17_105710.png

Attachments


2 days ago

did you check server logs?



i did


2 days ago

any errors?



only this

Screenshot_2026-06-17_105857.png

Attachments


2 days ago

yea it looks like your google generative-ai is erroring with 404 for something, meaning there's something it cant find


2 days ago

you'll want to fix whatever's causing that


hmm i will try to update the codes


i tried changing it from Gemini to Hugging face as Railway told me but still

Screenshot_2026-06-17_110728.png

Attachments


2 days ago

Railway told you to switch from gemini to huggingface?


2 days ago

wait actually im very confused



2 days ago

earlier you showed a screenshot of python code, but in your errors I notice there's node_modules, and you're also using a bun function


2 days ago

what happened?


it whould be better to see if you join the workshop


2 days ago

Didn't you have a gemini api key already though?


come to dm


2 days ago

Don't worry that's not necessary


2 days ago

I know what happened


2 days ago

I just don't understand why


2 days ago

if you had working python code then why have railway's AI agent remake the same code in a different language for you?


2 days ago

why not just run the existing working code you had on replit on Railway?


i can't accse it

Screenshot_2026-06-17_115123.png

Attachments


2 days ago

that's the AI though, not the code


2 days ago

can you send a wider screenshot? like of your entire screen maybe?



2 days ago

Try doing this:

  1. Click on the canvas or the cybernet dashboard dropdown
  2. Click on workspace/file view

then send another screenshot


2 days ago

(note this is steps I found online, I don't use replit, so idk if this is actually how you access code on replit, so I may be wrong)


sorry the doctor came to take my blood so i went offline here is the image when i click on canvas

Screenshot_2026-06-17_122645.png

Attachments


2 days ago

and what happens when you click on the dropdown

image.png

Attachments



2 days ago

man, who knew it'd be this difficult finding the code


can i do this?

Screenshot_2026-06-17_122916.png

Attachments


2 days ago

alright well I'm clearly out of my depths here lol

my recommendation is finding the code replit has for your bot, upload it on github and use it on railway


for more help or ideas can you join workshop link in yor dm


2 days ago

I'm pretty sure limited outbound internet access only applies to limited trial plans (i could be wrong though)


hmm...


2 days ago

I can't unfortunately, I'm at my server limit, I can't join more servers


k np


I am loosing my temper

Screenshot_2026-06-17_123913.png

Screenshot_2026-06-17_123958.png


2 days ago

💀 60%-70%


2 days ago

Let me ask you this, what's your goal? Are you trying to run a completely free AI chatbot?


i am trying to make a bot that will run my youtube server and can talk to members using ai

it worked before but it crashed on Replit

Screenshot_2026-06-17_124408.png

Attachments


2 days ago

Are you trying to source your AI for free?


umm ya


i am still a kid

i got no money


2 days ago

Yea no wonder you're struggling


2 days ago

I'd recommend using openrouter then, they usually have a handful of free AI models


thanks for your but i don't want to make this su#$@ thing anymore

Screenshot_2026-06-17_124914.png

Attachments


2 days ago

💀 alright fair


what is that


2 days ago

it's a routing platform, they route your requests to AI models but take a cut of the cost in return


can i delete this post now ?


2 days ago

i got it


Status changed to Solved dev 2 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...