Browse Source

Only save usage when not in debug

main
fluffy 5 months ago
parent
commit
7f16fe5e4b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      beatbot.py

+ 2
- 2
beatbot.py View File

@@ -99,8 +99,6 @@ def bot():

# remember that we used it already
seen_vids.add(yt_id)
with open('seen-vids.dat', 'wb') as seen:
pickle.dump(seen_vids, seen)

LOGGER.info(text)

@@ -110,6 +108,8 @@ def bot():
api_base_url='https://botsin.space')
mdon.status_post(text)

with open('seen-vids.dat', 'wb') as seen:
pickle.dump(seen_vids, seen)

if __name__ == '__main__':
try:


Loading…
Cancel
Save