Compare commits

...

3 Commits

Author SHA1 Message Date
Kay Faraday 99969f0503 refactor word lists to separate files
this lets us see diffs of the ljfbot.py file in the forgejo web UI
2023-01-12 06:13:13 +00:00
Wardyn 96e2b28e4e Merge pull request 'various minor improvements' (#1) from KayFaraday/ljfbot:trunk into trunk
Reviewed-on: Wardyn/lgfbot#1
2023-01-12 01:21:05 +00:00
Kay Faraday 4df77bd4b2 various minor improvements
- use random.choice() instead of random.randrange() and checking for each number
- use proper `not` operator instead of `== False`
- use format strings instead of manually concatenating the components of the post
- use getpass.getpass() instead of input() for entering the user's password
- make the script executable using a shebang and chmod +x
- gitignore .lgfbot/
- use sets instead of lists for static containment checks
2023-01-12 00:12:01 +00:00
4 changed files with 2415 additions and 27 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.lgfbot

1347
adjectives.txt Normal file

File diff suppressed because it is too large Load Diff

50
lgfbot.py Normal file → Executable file

File diff suppressed because one or more lines are too long

1040
verbs.txt Normal file

File diff suppressed because it is too large Load Diff