Here is a quick and dirty opensim region module that uses the Twitterizer library to access the Twitter API.
For each visitor that enters a region, the module posts a Twitter update with the visitor’s name. Each visitor is only recorded once in a one hour period to avoid the spam that could result from avatars logging in repeatedly or flying back and forth across borders.
Visitors can also post comments or suggestions to the Twitter page by chatting on channel 15.
Here is a quick opensim region module that lets you do a couple basic tasks using the Twitterizer library to access the Twitter API.
For each visitor that enters a region, the module posts a Twitter update with the visitor’s name. Each visitor is only recorded once in a one hour period to avoid the spam that could result from avatars logging in repeatedly or flying back and forth across borders.
Visitors can also post comments or suggestions to the Twitter page by chatting on channel 15. This could be misused for griefing so there is a limit on the number of comments that can be posted in a 24 hour period.
I could see this module being useful in an orientation or help-desk type region where the owners would like to be able to personally greet as many visitors as possible without having to keep a viewer logged in all the time. A dedicated twitter account would be set up for the region, and by following that twitter account a region owner (or a team) could keep tabs on what is happening in the region and log in when visitors arrive. It could also be useful for a special-interest region like mine. I have a very small target audience, so the visitors are few and far between but most are likely people I want to meet.
I could have done this with emails instead of a twitter feed (I wrote that module too) but I like the openness of this system. Visitors are free to view the comments left by others – perhaps even stimulating an ongoing dialogue. And it seems a little less “big brother” to make visitor tracking public. Though if you prefer, you can change the settings of the twitter feed to only allow specific people to view. (Added 9/19/09) It probably isn’t something you’d want to follow, but you can see the twitter page for my region here.
Anyway, here is the code if anyone wants to use/modify it. You’ll need to download the Twitterizer.framework.dll and place it in your opensim/bin folder. Comments and suggestions are appreciated (here on the blog or on channel 15 of Fern Seed Info in ScienceSim!).
(Removed the code 11/22/09 – it is available on GitHub with a less ambiguous license than it had here)