Crashed Every time when tried to run the bot
Anonymous
FREEOP

2 months ago

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

Screenshot_2026-06-17_095335.png

Attachments

Solved

82 Replies

2 months ago

it looks like your discord bot token is missing


2 months ago

how your code looks like?


2 months ago

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


Anonymous
FREEOP

2 months ago

what i pasted it ?


2 months ago

where'd you paste it?


Anonymous
FREEOP

2 months ago

here

SPOILER_Screenshot_2026-06-17_095543.png

Attachments


2 months 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?


Anonymous
FREEOP

2 months ago

Screenshot_2026-06-11_165037.png

Attachments


2 months 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

Anonymous
FREEOP

2 months ago

k i will try


Anonymous
FREEOP

2 months ago

thanks it worked

Screenshot_2026-06-17_100349.png

Attachments


2 months ago

huge!


2 months ago

glad I could help


Anonymous
FREEOP

2 months ago

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


2 months 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


Anonymous
FREEOP

2 months ago

when will you go to bed?


Anonymous
FREEOP

2 months ago

like time


Anonymous
FREEOP

2 months ago

or if you went offline ?


2 months ago

around 10 hours from now probably


2 months ago

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


Anonymous
FREEOP

2 months ago

enough time for me


Anonymous
FREEOP

2 months ago

k i will work on it


2 months ago

good luck


Anonymous
FREEOP

2 months ago

Ahem


Anonymous
FREEOP

2 months ago

Screenshot_2026-06-17_103449.png

Attachments


2 months ago

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


Anonymous
FREEOP

2 months ago

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 months ago

did you check server logs?


Anonymous
FREEOP

2 months ago

yes


Anonymous
FREEOP

2 months ago

i did


2 months ago

any errors?


Anonymous
FREEOP

2 months ago

Screenshot_2026-06-17_105828.png

Attachments


Anonymous
FREEOP

2 months ago

only this

Screenshot_2026-06-17_105857.png

Attachments


2 months ago

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


2 months ago

you'll want to fix whatever's causing that


Anonymous
FREEOP

2 months ago

hmm i will try to update the codes


Anonymous
FREEOP

2 months ago

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

Screenshot_2026-06-17_110728.png

Attachments


2 months ago

Railway told you to switch from gemini to huggingface?


2 months ago

wait actually im very confused


Anonymous
FREEOP

2 months ago

Screenshot_2026-06-17_114633.png

Attachments


2 months 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 months ago

what happened?


Anonymous
FREEOP

2 months ago

it whould be better to see if you join the workshop


2 months ago

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


Anonymous
FREEOP

2 months ago

come to dm


2 months ago

Don't worry that's not necessary


2 months ago

I know what happened


2 months ago

I just don't understand why


2 months 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 months ago

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


Anonymous
FREEOP

2 months ago

i can't accse it

Screenshot_2026-06-17_115123.png

Attachments


2 months ago

that's the AI though, not the code


2 months ago

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


Anonymous
FREEOP

2 months ago

Screenshot_2026-06-17_115326.png

Attachments


2 months 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 months 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)


Anonymous
FREEOP

2 months ago

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 months ago

and what happens when you click on the dropdown

image.png

Attachments


Anonymous
FREEOP

2 months ago

Screenshot_2026-06-17_122815.png

Attachments


2 months ago

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


Anonymous
FREEOP

2 months ago

can i do this?

Screenshot_2026-06-17_122916.png

Attachments


2 months 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


Anonymous
FREEOP

2 months ago

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


2 months ago

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


Anonymous
FREEOP

2 months ago

hmm...


2 months ago

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


Anonymous
FREEOP

2 months ago

k np


Anonymous
FREEOP

2 months ago

I am loosing my temper

Screenshot_2026-06-17_123913.png

Screenshot_2026-06-17_123958.png


2 months ago

💀 60%-70%


2 months ago

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


Anonymous
FREEOP

2 months ago

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 months ago

Are you trying to source your AI for free?


Anonymous
FREEOP

2 months ago

umm ya


Anonymous
FREEOP

2 months ago

i am still a kid

i got no money


2 months ago

Yea no wonder you're struggling


2 months ago

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


Anonymous
FREEOP

2 months ago

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

Screenshot_2026-06-17_124914.png

Attachments


2 months ago

💀 alright fair


Anonymous
FREEOP

2 months ago

what is that


2 months ago

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


Anonymous
FREEOP

2 months ago

can i delete this post now ?


2 months ago

i got it


Status changed to Solved dev 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...