Ristellise / Lynette-Bishop

A Twitter to discord Webhook discord bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lynette Bishop

[Picture Art: @chameleonman3]

A "Simple" twitter to discord webhook bot:

Features:

  • Outer Link Expansion
  • Mobile "compatible" embeds
    • Custom Fantia link expansion
    • Twitter Cards Expansion

Extending Outer Link Expansion

  1. Create a new class, inheriting from AsyncResolver
  2. add resolver domains to SITES in TwitterResolver
  3. Test [You can run MiyafujiYoshika.py directly, be sure to fill the keys and webhook url.]
  4. Profit.

Running

  1. Fill in KEYS from twitter, you may use AuthTools to get your own access_token and access_token_secret.
  2. Install required dependencies from requirements.txt
  3. Place your discord bot key.
  4. Run the bot
  5. Add hooks. there are commands for that
  6. Add twitter users.

Commands

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's twitter.
  • 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 as stalk, however, a list of twitter names is allowed.

!ly2 help

  • Returns all the help available to the user.

Development

  • Feel free to PR.
  • Main development will revolve on my needs. If you want X feature, you might need to wait.

FAQ

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.

Thanks

  • 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.

License

  • MIT License for the code other than the one relating to AuthTools.
    For that folder, I'm not too sure about the license.

About

A Twitter to discord Webhook discord bot

License:MIT License


Languages

Language:Python 100.0%