This website works better with JavaScript.
Explore
Help
Sign In
AlbertSanchez
/
pseudbot
mirror of
https://github.com/pseudbot/pseudbot
Watch
1
Star
0
Fork
You've already forked pseudbot
0
Code
Issues
Projects
Releases
Wiki
Activity
a big-brained Twitter bot that replies to mentions with Rick and Morty quotes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34
Commits
1
Branch
0
Tags
5.9 MiB
Tree:
5cf2c77613
canonical
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '5cf2c77613'
${ noResults }
pseudbot
/
requirements.txt
5 lines
39 B
Raw
Normal View
History
Unescape
Escape
added new multimedia superpowers On startup, the code now initializes MEDIA with suitable media files found in the `media` directory that satisfy Twitter's media file requirements. The `filetype` Python module has been added as a dependency to ensure that files in `media` are what they claim to be. In the bot class I added a new _parse_mention method, broke up the pasta chain builder method, and added a new recursive _tweet_media method. The _parse_mention method had to have some `stupid_emoji` hackery thanks to the way the 🖼 emoji gets encoded in some tweets. A new fetch-media script has been added along with a new util function named `download_tweet_media` See media/README.md for more information on how to use the newly-added multimedia superpowers.
8 months ago
filetype
added new fake Discord screenshot generator Other memes: - SoyPhone Utility functions added: - Square aspect ratio cropper (square_crop) - Circle profile pic maker (circle_pfp) - PIL alpha_composite helper (alpha_comp_prep) - Text wrapping and bounding helpers - Tuple adder (tuple_add) - iPhone timestamp generator for top bar (get_iphone_time_s) Also added: - Meme abstract base class (in pseudbot/meme/abc.py) - Post styling information (in pseudbot/meme/post_styles.py)
7 months ago
Pillow
basic plumbing
8 months ago
tweepy
user_timeline dump, SOCKS support, list_actions This commit involves a lot of refactoring that should've been moved to a separate commit. Some PseudBot methods that don't need to use PseudBot attributes have been moved to the newly-created `util.py`. The real_main function and its associated paraphernalia have been moved to the also newly-created `cli.py`. All PseudBot internal methods have been prepended with an underscore (_). A new method called list_actions has been added. It generates a list of CLI-callable methods and prints each and its accompanying docstring to the terminal. SOCKS proxy support has been added to Pseudbot. The CLI now has a new `-p` flag that supports fully-qualified SOCKS proxy urls. For example: $ pseudbot run_bot -p socks5://username:password@host:port/ A user timeline dumper action named `user_timeline` has also been added to PseudBot. Here's an example of it in action: $ pseudbot user_timeline -s CheckmarkLs
8 months ago
requests[socks]