Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: BanTweeter  (Read 59750 times)

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
BanTweeter
« on: March 07, 2009, 03:20:20 PM »
Description:

Any kicks, tempbans, or permbans are automatically written to a twitter page, as they would appear in the console.
For example, please check my test twitter, to see what it would appear like. Since twitter can be accessed extremely easily, from phones, vista sidebar etc, this can be extremely useful in checking admins. This does not write bans that were written with the player number (@1337), because a)the standard event doesn't report these and b)because this is meant to help admins live.

Installation
Unfortunately, since Twitter is not supported by Python as default, extra libraries are necessary.
It needs:
python-twitter
which also requires:
simplejson

Conditions of Use:
You may not use this plugin for ANY illegal activity, this includes: running on cracked servers, illegal messages.

Changelog :
1.0b: Should be stable, if it is, this will be re-released as 1.0 in 1 week. Posts Ban, Tempban and Kick messages to twitter.

Download : v1.0b
« Last Edit: March 10, 2009, 12:33:40 AM by Bakes »

Offline DasBaum

  • Newbie
  • *
  • Posts: 7
Re: BanTweeter
« Reply #1 on: August 04, 2009, 01:50:54 AM »
Doesn't work for me. I installed the dependencies.

Error:
Code: [Select]
090804 01:45:15	BOT    	Loading Plugin #14 twitterban [/home/cod2servers/bbb/b3/extplugins/conf/twitterban.xml]
090804 01:45:15 INFO Could not find built in plugin twitterban, trying external plugin directories.
No module named twitterban
090804 01:45:15 CRITICAL Error loading plugin: 'module' object has no attribute 'TwitterbanPlugin'
Traceback (most recent call last):
  File "/home/cod2servers/bbb/b3/parser.py", line 382, in loadPlugins
    self._plugins[p] = getattr(pluginModule, '%sPlugin' % p.title())(self, conf)
AttributeError: 'module' object has no attribute 'TwitterbanPlugin'

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: BanTweeter
« Reply #2 on: August 28, 2009, 12:01:40 PM »
sorry, there were loads of bugs with this. I'm hoping to write a new version that doesn't need dependencies.

Offline Spoon

  • Sr. Member
  • ****
  • Posts: 255
    • EHD Gaming
Re: BanTweeter
« Reply #3 on: October 12, 2009, 02:16:18 PM »
is it possible to make this login to a phpbb forum and post?

Offline soggyoreo

  • Full Member
  • ***
  • Posts: 127
    • The Firm
Re: BanTweeter
« Reply #4 on: March 31, 2010, 09:32:51 PM »
You ever think about just having the ability to tweet from game?

Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: BanTweeter
« Reply #5 on: March 31, 2010, 11:54:34 PM »
You ever think about just having the ability to tweet from game?

That might be tooo much twittering for one person to handle  ;D

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: BanTweeter
« Reply #6 on: April 01, 2010, 01:18:53 AM »
twitter addict spotted !  ;D

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: BanTweeter
« Reply #7 on: April 01, 2010, 10:51:14 AM »
You ever think about just having the ability to tweet from game?

No, since I'm in the camp of improving the ingame experience ;)

Offline soggyoreo

  • Full Member
  • ***
  • Posts: 127
    • The Firm
Re: BanTweeter
« Reply #8 on: April 02, 2010, 07:49:09 PM »
Ha.

 ;D

I guess it would be nice to Tweet other things rather than just bans and give access to a Twitter account to people without actually giving them the Twitter password.

Like...

!tweet SoggyOreo just finished a 21 Kill streak on the server! Woah!
!tweet Just gained 10 public players in the past 5min, server is heating up!
!tweet Great job on the scrim =AOS= guys, had a bunch of fun. Pictures will be on Xfire shortly...

I'm not suggesting this be a replacement for a Twitter client for things like..

!tweet I need a sandwich

With this, you could append the player name that sent the tweet.

Quote
}|TF|{ SoggyOreo: Just gained 10 public players in the past 5min, server is heating up!

Thats cool though, was just a suggestion. Ill probably try to build something like this once I can get the sever admin to install the dependencies.

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: BanTweeter
« Reply #9 on: April 03, 2010, 05:13:04 PM »
You have a point there. My concern would be spam, and also that it requires a few external dependencies which would make it harder to install on our growing minority of exe b3 users.

Offline soggyoreo

  • Full Member
  • ***
  • Posts: 127
    • The Firm
Re: BanTweeter
« Reply #10 on: April 03, 2010, 08:39:00 PM »
I got past my first error...

From
Code: [Select]
class TwitterBanPlugin(b3.plugin.Plugin):

To
Code: [Select]
class TwitterbanPlugin(b3.plugin.Plugin):


Now Im fighting w/ twitter.py where its trying to get the login info from the box to create a cache directory...

Offline soggyoreo

  • Full Member
  • ***
  • Posts: 127
    • The Firm
Re: BanTweeter
« Reply #11 on: April 10, 2010, 12:52:08 AM »
Can you try this one?

Ive removed the need for dependency and added a !tweet command. Might need some cleaning up and debugging cause I haven't really tested it well, but i know it works for Tweets.

http://www.twitter.com/thefirmb3

*Edit

Code: [Select]
<configuration plugin="twitterban">
  <settings name="authentication">
    <set name="twitterusername">user</set>
    <set name="twitterpassword">***************</set>
  </settings>
  <settings name="commands">
<!-- 
Allows you to Tweet directly from B3
-->
    <set name="tweet-tw">80</set>
  </settings>
</configuration>

Forgot to give my config...i think its a tad diff.

[attachment deleted by maintenance - older than 60 days]
« Last Edit: April 10, 2010, 01:06:43 AM by soggyoreo »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: BanTweeter
« Reply #12 on: April 10, 2010, 01:04:03 AM »
Nice move soggyoreo :thumbup:

Offline soggyoreo

  • Full Member
  • ***
  • Posts: 127
    • The Firm
Re: BanTweeter
« Reply #13 on: April 10, 2010, 01:10:20 AM »
 ;D

Im not smart enough to know how to add events for streaks and stuff or I would. Hopefully there are no major bugs with this.



Offline ryry46d9

  • B3 Contrib/Support
  • Sr. Member
  • *
  • Posts: 337
    • Pb| clan
Re: BanTweeter
« Reply #14 on: April 10, 2010, 09:31:08 AM »
NICE  ;D

 


Rate this page +1 at Google Search