[Picture Art: @chameleonman3]
A "Simple" twitter to discord webhook bot:
- Outer Link Expansion
- Mobile "compatible" embeds
- Custom Fantia link expansion
- Twitter Cards Expansion
- Create a new class, inheriting from
AsyncResolver
- add resolver domains to
SITES
inTwitterResolver
- Test [You can run
MiyafujiYoshika.py
directly, be sure to fill the keys and webhook url.] - Profit.
- Fill in
KEYS
from twitter, you may useAuthTools
to get your ownaccess_token
andaccess_token_secret
. - Install required dependencies from requirements.txt
- Place your discord bot key.
- Run the bot
- Add hooks. there are commands for that
- Add twitter users.
All Commands are bounded to the creator of the said discord bot. There are no plans to have an allowlist for users.
!ly2 stalk <twitter_username> <webhook_token> [nsfw=False]
twitter_username
: Required. Twitter Screen Name. so like@twitter
but without the@
. so it'stwitter.
webhook_token
: Required. The Short webhook name.nsfw
: Optional. Default is false, to mark the user's images as not NSFW. Not throughly tested.
!ly2 unstalk [twitter_username...]
twitter_username
: Required. Same asstalk
, however, a list of twitter names is allowed.
!ly2 help
- Returns all the help available to the user.
- Feel free to PR.
- Main development will revolve on my needs. If you want X feature, you might need to wait.
Q: On the topic of black/white/allow/deny lists...
A: I wished you didn't bring it up. Anyway, deal with it. It's the same deal with master/slave branches. It feels stupid.
AuthTools
I recall I took it from somewhere on github, but I can't seem to find it anymore.
If someone knows where the github link has gone to, please let me know in an issue.
- MIT License for the code other than the one relating to
AuthTools
.
For that folder, I'm not too sure about the license.