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
This commit is contained in:
Kay Faraday 2023-01-12 00:05:20 +00:00
parent 2dd46c4583
commit 4df77bd4b2
2 changed files with 22 additions and 25 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.lgfbot

42
lgfbot.py Normal file → Executable file

File diff suppressed because one or more lines are too long