Separate run into a load and run function, to allow for the use of utility methods. #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat-separate-run-load"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Previously, the
runmethod both connected to the mastodon instance, initialized Mastodon.py and started listening on streams (from which it would never return).This MR moves initializing Mastodon.py and connecting to the mastodon instance into a separate
loadmethod, that makes Mastobot usable as a library for interacting with Mastodon, without listening for events.This example would previously have been impossible. This MR also adds the
postmethod to the Bot, allowing developers to post stand-alone statuses to Mastodon (instead of only as reply as was previously the case).requested review from @emacsen
assigned to @CSDUMMI
added 4 commits
main7aba53e6- Merge branch 'main' into 'feat-separate-run-load'Compare with previous version
added 1 commit
Compare with previous version
added 1 commit
b69a62b4- Wrap returned Status from .post into a status to remove exposure to the underlying dictsCompare with previous version
mentioned in commit
8ef2f37f67