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!

Pages: [1] 2   Go Down
  Print  
Author Topic: BanTweeter  (Read 6873 times) Bookmark and Share
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« on: March 07, 2009, 06:20:20 AM »

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 09, 2009, 03:33:40 PM by Bakes » Logged


Newbie
*
Posts: 7
Offline Offline
« Reply #1 on: August 03, 2009, 03:50:54 PM »

Doesn't work for me. I installed the dependencies.

Error:
Code:
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'
Logged
B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #2 on: August 28, 2009, 02:01:40 AM »

sorry, there were loads of bugs with this. I'm hoping to write a new version that doesn't need dependencies.
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 180
Offline Offline
WWW
« Reply #3 on: October 12, 2009, 04:16:18 AM »

is it possible to make this login to a phpbb forum and post?
Logged

Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #4 on: March 31, 2010, 11:32:51 AM »

You ever think about just having the ability to tweet from game?
Logged

B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #5 on: March 31, 2010, 01: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  Grin
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: March 31, 2010, 03:18:53 PM »

twitter addict spotted !  Grin
Logged

B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #7 on: April 01, 2010, 12: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 Wink
Logged

Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #8 on: April 02, 2010, 09:49:09 AM »

Ha.

 Grin

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.
Logged

B3 Contrib/Support
*
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 1225
Offline Offline
Support Specialty: B3-Core, CoD/BFBC2 parsers, FTP-functionality, Plugin development
« Reply #9 on: April 03, 2010, 07:13:04 AM »

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.
Logged

Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #10 on: April 03, 2010, 10:39:00 AM »

I got past my first error...

From
Code:
class TwitterBanPlugin(b3.plugin.Plugin):

To
Code:
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...
Logged

Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #11 on: April 09, 2010, 02:52:08 PM »

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:
<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 09, 2010, 03:06:43 PM by soggyoreo » Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: April 09, 2010, 03:04:03 PM »

Nice move soggyoreo :thumbup:
Logged

Full Member
***
OS: Windows
Type: Renting Server with B3
Gameservers: COD2
Posts: 127
Offline Offline
WWW
« Reply #13 on: April 09, 2010, 03:10:20 PM »

 Grin

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.


Logged

B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #14 on: April 09, 2010, 11:31:08 PM »

NICE  Grin
Logged
Tags:
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal