MrPowerScripts / reddit-karma-farming-bot

"Is karma really that important to you? Damn bro, you need a life" - YouTube Comment
https://mrpowerscripts.com
MIT License
297 stars 120 forks source link

Update config_gen.py #190

Closed sesseor closed 2 years ago

sesseor commented 2 years ago

fix to #189 #188 #186

digitalftl commented 2 years ago

I've tried this update on Ubuntu 20.4 it works.

MrPowerScripts commented 2 years ago

I think it would be good to know why the config parser package causes this issue. What is the difference between the config file generated using configparser, or by generating the lines manually?

sesseor commented 2 years ago

I think it would be good to know why the config parser package causes this issue. What is the difference between the config file generated using configparser, or by generating the lines manually?

i think that the [REDDIT_AUTH] is causing the the problem cuz when i removed it manually the bot imported the environment variable with out a problem and i couldn't make the configparser generate the .env file with out the header [REDDIT_AUTH]

MrPowerScripts commented 2 years ago

I don't remember why I used configparser. But it doesn't seem like it's used anywhere else in the app. so it's probably safe to remove for now if it gets this working.