Git Product home page Git Product logo

Comments (2)

gmt2001 avatar gmt2001 commented on May 30, 2024

Due to the rules around mentions from a bot, we intentionally block this to prevent misuse

You can read the rules here in Section II.B.2

The rules are, basically:

  1. The user must very clearly and explicitly opt-in to it via Tweet or Twitter DM, and indicate that your bot specifically is authorized to do so, or you must make it very clear in a Tweet or your profile that a mention, reply, like, or retweet will trigger it (if using automated triggers). Note that follows are not valid for this purpose
  2. You must tell the user how to opt-out, and it must be very easy and straightforward to do so. You must honor the opt-out in a reasonably fast time. If using automated triggers based on Tweets or DM's, this could be as simple as not triggering it
  3. Only 1 mention is allowed per bot post
  4. If the bot is triggered by a reply, it must use a reply (no standalone tweets triggered by a reply)

If you think you can follow the rules and want to go ahead with this anyway, you would have to make a custom build of the bot

The relevant lines to modify are

Status status = twitter.updateStatus(statusString.replaceAll("@", "").replaceAll("#", ""));

and

StatusUpdate statusUpdate = new StatusUpdate(statusString.replaceAll("@", "").replaceAll("#", ""));

WARNING: By making this modification you relieve PhantomBot and all of it's developers, contributors, users, etc from all liability for any consequences that may result from failure to abide by, and keep up-to-date with, Twitter's policies. You acknowledge that, should Twitter determine that you are not abiding by their policies, you may be banned, including permanently, from Twitter. You also acknowledge and accept that Twitter has the right to change these policies at any time without notification. No support is provided by PhantomBot once this modification is made

from phantombot.

botflakes avatar botflakes commented on May 30, 2024

Ah didn't thought about that. Thanks for your answer! Have great weekend

from phantombot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.