Twitter Tags

PhantomBot Version: 3.0.0
OS Version: Ubuntu 18.04
Java Version: OpenJDK-1.8.0
Browser and Version (for Panel Support): Chrome 79
Stock PhantomBot: Yes

Let us know what help you need:
Hi.

I am wondering how I can modify my phantombot slightly in order to allow tags in my tweets.

Thanks,
SpaceFruit

Before trying to change that I would consider reading up if bots are even allowed to send out tags. Wouldnt be useful if ur bot gets banned shortly after that.

For information on what uses of Mentions are allowed by the TOS in automated tweets, see the Twitter Automation Rules, Section II, Sub-section B

2 Likes

Thank you for your reply.
What I want to do is definitely allowed.

So how do I go about letting the bot send tags?

The bot is filtering all mentions and tags by replacing the โ€œ@โ€ or โ€œ#โ€ with nothing. You have to edit the java code of the bot and recompile everything to change this.

Path of the file with Twitter handling: PhantomBot/TwitterAPI.java at master ยท PhantomBot/PhantomBot ยท GitHub

In this file you have to remove the following parts from the strings: .replaceAll("@", โ€œโ€).replaceAll("#", โ€œโ€)

You can try it on your own risk, Iโ€™m not responsible if you get banned by Twitter :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.