mirror of
https://github.com/RussellChamp/tilde-projects.git
synced 2026-10-28 00:22:34 +00:00
Fix a bunch of bot code and checkin systemd files
This commit is contained in:
1 parent
6770c70068
commit
2a2ed1e064
26 files changed
+222
-137
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
|
||||
import collections
|
||||
import glob
|
||||
@@ -30,7 +30,7 @@ def find_stories(limit=999, shuffle=False):
|
||||
files = random.sample(files, max(1, min(limit, len(files))))
|
||||
else:
|
||||
files = files[:limit]
|
||||
return map(munge_story, files)
|
||||
return list(map(munge_story, files))
|
||||
|
||||
|
||||
# Count the number of replacable words in the story
|
||||
|
||||
Reference in new issue
Block a user