Archive > 0.4.x Custom/Unofficial Modules

BeBot all a Twitter

(1/2) > >>

Glarawyn:
And org member tossed out the suggestion of getting raid alerts on his phone via SMS. I couldn't think of a way to do it, too many different SMS gateways and what not.

A few months later it struck me while I was playing with Twitter...PHP should be able to post messages to Twitter, and Twitter can send alerts via SMS...

So I created this module. You can configure a Twitter username and password and then post to that Twitter account from in game using the tweet command.

You can also view the latest 20 tweets from the bot's account or other Twitter accounts using the twitter command.

Commands
tweet <message>: Add <message> to Twitter.com.
twitter: Display the last 20 tweets for the configured Twitter.com account.
twitter <username>: Display the last 20 tweets for <username>.

Requirements
The TwitterPHP class requires PHP5, thus this module requires PHP5.

To post to Twitter, you have to configure a twitter username/password via BeBot's settings interface.

Examples
AO Sentinels on Twitter.com.
Campalot on Twitter.com.

Download
BeBotTwitter_2.0.0.zip

Snarfblatt:
I was going to try this out but it appears that curl is not in the BeBot distribution of php or at least my version which is 5.1.4. Do you know if curl is enabled in the 5.2.3 version? or any tips on how to enable curl in windows?

Glarawyn:
Grab the full PHP distribution from http://www.php.net/downloads.php, use the zip file version. Replace the BeBot PHP with this PHP distribution...

This site has Windows binaries for cURL, I don't know if you need them.
http://curl.haxx.se/download.html

From there, search google for php5, windows, and curl and you'll find a bunch of info.

Glarawyn:
Download finished, PHP5 zip file from php.net definitly has the lib_curl.dll extension.

Snarfblatt:
Thanks started going down the full php path yesterday. I'll test things out after the servers come back up.

Navigation

[0] Message Index

[#] Next page

Go to full version