agermanidis / SnapchatBot

[deprecated] Python library for building bots that live on Snapchat
MIT License
518 stars 105 forks source link

Error when using capturebot #31

Closed N07070 closed 9 years ago

N07070 commented 9 years ago

Hello, thanks for the last update !

However, I am now having this issue.

Traceback (most recent call last):
  File "examples/capturebot.py", line 16, in <module>
    bot.listen(timeout=60)
  File "build/bdist.linux-x86_64/egg/snapchat_bots/bot.py", line 65, in listen
  File "examples/capturebot.py", line 6, in on_snap
    snap.save()
  File "build/bdist.linux-x86_64/egg/snapchat_bots/snap.py", line 52, in save
NameError: global name 'filename' is not defined

Possible fix: declare filename = default_filename_for_snap(snap)

Thanks !

N07070 commented 9 years ago

fixed ! :smile:

Thanks !