Discord Bot Error Replit

i cant add a .env file

Welcome there,

It appears the error in the console is due to the expression on line 19 ending in a plus sign (+). Also, it appears you have a logical issue with scoping, because line 19 is in the global scope, but trying to access data in the get_quote function scope.

EDIT: About .env files, in Replit, they are exactly the same as environment variables, or SECRETS. That is, adding a SECRET to the SECRETS tab in Replit is the same as adding a variable to a .env file. The Replit docs help describe the specific process.

For future posts, working off of a screenshot is quite difficult. Would you mind sharing a link to your project code?

Hope this helps

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.