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
Former Dev. (senate)
*****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, BFBC2
Posts: 92
Offline Offline
WWW
Support Specialty: BFBC2 parser
« Reply #15 on: April 12, 2010, 07:11:12 AM »

Started to continue this a little bit.
Should be done in a day or two (coding done, need to test)

Code:
<configuration plugin="B3twitterclient">
  <settings name="authentication">
    <set name="twitterusername">user</set>
    <set name="twitterpassword">***************</set>
<set name="lasttweets">5</set>
  </settings>
  <settings name="commands">
<!-- 
Allows you to Tweet directly from B3
-->
    <set name="tweet-tw">100</set>
<set name="fetchtweet-ftw">100</set>
  </settings>
</configuration>
Logged


Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 40
Offline Offline
« Reply #16 on: April 12, 2010, 11:16:59 AM »

I am wondering if it would be possible to have this automatically add hashtags? Like #b3 or #bfbc2 or something. And maybe have it be configurable in the cfg.

Logged
Former Dev. (senate)
*****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, BFBC2
Posts: 92
Offline Offline
WWW
Support Specialty: BFBC2 parser
« Reply #17 on: April 12, 2010, 12:06:14 PM »

That should be an easy fix but would limit the amount of chars obviously.
Logged

Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 40
Offline Offline
« Reply #18 on: April 12, 2010, 12:45:08 PM »

That should be an easy fix but would limit the amount of chars obviously.

Yes Smiley
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 #19 on: April 12, 2010, 01:08:54 PM »

BC2 has a max message length of 100chars anyway so you're never going near the max.

What you could do would to be have a prefix config setting, and the maximum length of the message could be 150-len(prefix), where it would refuse to send a larger message.
Logged

Former Dev. (senate)
*****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, BFBC2
Posts: 92
Offline Offline
WWW
Support Specialty: BFBC2 parser
« Reply #20 on: April 12, 2010, 07:10:24 PM »

You ment like this?

IAmSpacepiG
 
[EoP] SpacepiG: testing, should add hashtags after bfbc2 tweet #BFBC2 #B3
Logged

Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 40
Offline Offline
« Reply #21 on: April 12, 2010, 07:36:20 PM »

You ment like this?

IAmSpacepiG
  
[EoP] SpacepiG: testing, should add hashtags after bfbc2 tweet #BFBC2 #B3

That is exactly what I meant. Smiley
Logged
Former Dev. (senate)
*****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD4, BFBC2
Posts: 92
Offline Offline
WWW
Support Specialty: BFBC2 parser
« Reply #22 on: April 12, 2010, 09:38:20 PM »

I will upload it tomorrow (just the hashtags)
It will add your hashtags in he count so you will have name + message + #1 + #2<=140 or fail Smiley

Here is the config:

Code:
<configuration plugin="bantweeter">
  <settings name="authentication">
    <set name="twitterusername">username</set>
    <set name="twitterpassword">*********</set>
  </settings>
  <settings name="options">
    <set name="hashtagone">#BFBC2</set>
    <set name="hashtagtwo">B3</set>
    <set name="lasttweets">5</set>
  </settings>
  <settings name="commands">
<!-- 
Allows you to Tweet directly from B3
-->
    <set name="tweet-tw">100</set>
  </settings>
</configuration>
Logged

Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Posts: 40
Offline Offline
« Reply #23 on: April 26, 2010, 12:02:21 PM »

Any updates on this spacepig?
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 77
Offline Offline
WWW
« Reply #24 on: October 13, 2010, 06:35:58 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]

can you reupload this attachment please thanks
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #25 on: June 25, 2011, 03:34:36 PM »

I have downloaded the python-twitter (python-twitter-0.8.2.tar.gz) I click on ez_setup and setup and nothing happens. Just the command line. Could you explain what to do with the extra files we need? Thanks man Cheesy

Logged

Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Posts: 26
Offline Offline
« Reply #26 on: June 27, 2011, 03:26:45 AM »

for me it has some similaries to this plugin:
http://forum.bigbrotherbot.net/plugins-by-courgette/metabans-plugin/

Its like Twitter and it shows each ban too, okay no warn or kick^^, but u can share the banlist, i love it.
Only i have to wait until B3 1.7.0, cuz i dont get it workin right.
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #27 on: June 27, 2011, 04:45:12 AM »

This is a completely different plugin. This plugin tweets the reason someone was banned, so if the game doesn't display the ban reason, the person can just go to the twitter account and see why.
metabans shares the banlists...
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Windows
Type: Owner dedicated server(s)
Posts: 26
Offline Offline
« Reply #28 on: June 28, 2011, 04:47:30 AM »

Metabans shows the ban reason too xD.
and some other infos too.
Logged
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4
Posts: 11
Offline Offline
WWW
« Reply #29 on: June 28, 2011, 12:07:53 PM »

Does someone already have a preconfigured python file they could send me? Pm me or I will send you email.

Thanks Smiley
Logged

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal