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