2
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 58288 times)

Offline spacepig

  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 99
    • Empire of Pigs
Re: BanTweeter
« Reply #15 on: April 12, 2010, 05:11:12 PM »
Started to continue this a little bit.
Should be done in a day or two (coding done, need to test)

Code: [Select]
<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>

Offline Skajaquada

  • Jr. Member
  • **
  • Posts: 40
Re: BanTweeter
« Reply #16 on: April 12, 2010, 09:16:59 PM »
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.


Offline spacepig

  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 99
    • Empire of Pigs
Re: BanTweeter
« Reply #17 on: April 12, 2010, 10:06:14 PM »
That should be an easy fix but would limit the amount of chars obviously.

Offline Skajaquada

  • Jr. Member
  • **
  • Posts: 40
Re: BanTweeter
« Reply #18 on: April 12, 2010, 10:45:08 PM »
That should be an easy fix but would limit the amount of chars obviously.

Yes :)

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: BanTweeter
« Reply #19 on: April 12, 2010, 11: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.

Offline spacepig

  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 99
    • Empire of Pigs
Re: BanTweeter
« Reply #20 on: April 13, 2010, 05:10:24 AM »
You ment like this?

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

Offline Skajaquada

  • Jr. Member
  • **
  • Posts: 40
Re: BanTweeter
« Reply #21 on: April 13, 2010, 05:36:20 AM »
You ment like this?

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

That is exactly what I meant. :)

Offline spacepig

  • Former Dev. (senate)
  • Full Member
  • *****
  • Posts: 99
    • Empire of Pigs
Re: BanTweeter
« Reply #22 on: April 13, 2010, 07:38:20 AM »
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 :)

Here is the config:

Code: [Select]
<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>

Offline Skajaquada

  • Jr. Member
  • **
  • Posts: 40
Re: BanTweeter
« Reply #23 on: April 26, 2010, 10:02:21 PM »
Any updates on this spacepig?

Offline seanbarr1988

  • Full Member
  • ***
  • Posts: 82
    • NitroServers
Re: BanTweeter
« Reply #24 on: October 14, 2010, 04:35:58 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]

can you reupload this attachment please thanks

Offline Hester708

  • Jr. Member
  • **
  • Posts: 11
    • JFLgaming
Re: BanTweeter
« Reply #25 on: June 26, 2011, 01:34:36 AM »
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 :D


Offline Kid Cudi

  • Jr. Member
  • **
  • Posts: 27
Re: BanTweeter
« Reply #26 on: June 27, 2011, 01:26:45 PM »
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.

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: BanTweeter
« Reply #27 on: June 27, 2011, 02:45:12 PM »
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...
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Kid Cudi

  • Jr. Member
  • **
  • Posts: 27
Re: BanTweeter
« Reply #28 on: June 28, 2011, 02:47:30 PM »
Metabans shows the ban reason too xD.
and some other infos too.

Offline Hester708

  • Jr. Member
  • **
  • Posts: 11
    • JFLgaming
Re: BanTweeter
« Reply #29 on: June 28, 2011, 10:07:53 PM »
Does someone already have a preconfigured python file they could send me? Pm me or I will send you email.

Thanks :)

 


Rate this page +1 at Google Search