Compare commits

...

2 Commits

Author SHA1 Message Date
Kay Faraday fbdce09230 elf → lef, remove oauth nonsense 2023-01-12 00:19:04 +00:00
Kay Faraday 39e8137279 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:09:25 +00:00
4 changed files with 27 additions and 40 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.json

4
config.example.json Normal file
View File

@ -0,0 +1,4 @@
{
access_token: "...",
site: "https://freak.university",
}

60
lgfbot.py → ljfbot.py Normal file → Executable file

File diff suppressed because one or more lines are too long

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
mastodon.py ~= 1.8
json5 ~= 0.9.11