Twitter bot for promoting community

A member suggested me having a Twitter bot sharing new topics. Had someone done this?

4 Likes

Use dlvr.it and it’ll share new topics and replies.

4 Likes

Does divlrt.it works with discourse out of the box?

You could also look at using Zapier for this. There is a prebuild Zapier template for publishing Discourse posts to Twitter. If you would like finer control of what posts get published, you can create your own Zap. For details see:

7 Likes

Zapier unfortunately doesn’t support @mentions, although Twitter’s guidelines allows them in specific use cases, and it doesn’t yet support the new thumbnails feature in Core.

So, I’m writing my own in Python using:



Testing & debugging is ongoing at a bootstrapping Discourse (not very active).
I’d be happy for testing volunteers.

2 Likes

All the showstoppers are fixed to my knowledge, so

From the README:

Intended to run as a daemon on the host running Discourse, the bot polls Discourse’s latest topics (latest.json) then tweets new topics matching your criteria to your registered Twitter feed (see Customizations, below).

Next change, restrict tweeting to topics posted only by a specified list of Discourse users.

1 Like

The bot was refactored, a tweet queue added, and the git head reset (due to some site-specific bits that were left in). If you pulled from this repo, wipe it & pull again (keeping your settings.ini file).

In order to use a Discourse thumbnail as a Tweet media inclusion, when the bot finds a new topic it waits for a TOPIC_REFRESH_INTERVAL then refreshes the newest topic in its queue before tweeting it.

2 Likes