DiNitride / Discord-Music-Status

A Self-Bot program to display your music from Spotify, iTunes, Winamp, and other music players, as your "Playing" status on Discord
71 stars 19 forks source link

No config file generated after running run.py? #35

Closed aiiman closed 7 years ago

aiiman commented 7 years ago

I'm a newbie here. Discord.py and Logbook are installed via pip.

I don't know how to "run" the file, so I tried cd run.py folder location and python run.py and it shows this

File "run.py", line 68 logger.info(f"Logged in as {bot.user.name} with ID {bot.user.id}") ^ SyntaxError: invalid syntax

I also tried double clicking the file. It just immediately closes after that.

Sorry for this stupid question. ._.

aiiman commented 7 years ago

It works now. I had to comment out these from the run.py file:

Line 68 logger.info(f"Logged in as {bot.user.name} with ID {bot.user.id}")

Line 97 logger.info(f"Set Discord status to {song.encode('ascii', 'ignore').decode()}")

DiNitride commented 7 years ago

The required version of Python is 3.6, you are not running 3.6 as f strings are coming up as invalid syntax which they wouldn't on the 3.6 interpreter

On 3 Dec 2017 07:44, "aiiman" notifications@github.com wrote:

It works now. I had to comment out these from the run.py file:

Line 68 logger.info(f"Logged in as {bot.user.name} with ID {bot.user.id}")

Line 97 logger.info(f"Set Discord status to {song.encode('ascii', 'ignore').decode()}")

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/DiNitride/Discord-Music-Status/issues/35#issuecomment-348746669, or mute the thread https://github.com/notifications/unsubscribe-auth/AQznL_psyfvdVlun_ODDif-iSkAGGSapks5s8lF5gaJpZM4Qzitk .

aiiman commented 7 years ago

Oh I didn't know that. The installer installed a 32 bit version which is 3.6 and a 64 bit version which is 3.5. I used the 32 bit one and it works perfectly now. But, Snip is having issues with iTunes though. Thank you so much anyways!