kysu1313 / Quick-GPU-Bot

Definitely not my custom made web scraper bot for buying an RTX 3080. Nope definitely not that.
13 stars 1 forks source link

Import Error secret_messenger #8

Open mrkrmr opened 3 years ago

mrkrmr commented 3 years ago

I'm new to python and coding in general so excuse me if this is obvious.... I can't get bestbuy.py to start because of this:

D:\Document\GitHub\3080Plx\bots>bestbuy.py Traceback (most recent call last): File "D:\Document\GitHub\3080Plx\bots\bestbuy.py", line 20, in from . import secret_messenger as msg ImportError: attempted relative import with no known parent package

What am I doing wrong?

kysu1313 commented 3 years ago

Hey, sorry. The file it is looking for is secret_messenter.py which is what I named the file on my local machine that contains my Twilio api keys. To get it working do the following: 1) in the bestbuy.py file change the line "from . import secret_messenger as msg" to "from . import messenger.py as msg" 2) Now, if you want text messages when the bot gets a hit, you can go to https://www.twilio.com/try-twilio signup for a free account and get the api key 3) put the account SID and Auth token into messenger.py as well as your phone number.

My bad I was working on it a little while ago and forgot to change a few things back. If I have time this weekend i'll update the project.