thankyou
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: Openbanter 1.0b  (Read 25429 times)

Offline intrebulon

  • Full Member
  • ***
  • Posts: 84
    • Knight Of Fury Clan
Re: Openbanter 0.3
« Reply #15 on: November 02, 2008, 08:26:07 PM »
yeah dead...

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #16 on: November 02, 2008, 08:49:28 PM »
sorry! I haven't checked the link, you should try my repository.
Ok, it's fixed now

Offline intrebulon

  • Full Member
  • ***
  • Posts: 84
    • Knight Of Fury Clan
Re: Openbanter 0.3
« Reply #17 on: November 03, 2008, 10:53:29 PM »
heh, i already went and did some manual editing (as per a snippet you posted somewhere else) to admin.py

no biggie, thanks for the fix though!

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #18 on: November 03, 2008, 10:59:28 PM »
I would recommend you used my plugin, as A) It makes me feel good, and B) It's easier to add new phrases, and easier to update (when 0.4 arrives, which it will, soon, it will add a whole raft of new features (pretty much everything is configurable)) but you just have to copy past most of your configuration into the new plugin.

Offline Bong-Master

  • Newbie
  • *
  • Posts: 2
Re: Openbanter 0.3
« Reply #19 on: November 08, 2008, 05:52:53 PM »
i get this error each time i use ns gj & so on.

Invalid parameters, you must supply a player name 

Any clues ??

Many thanks

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #20 on: November 08, 2008, 07:55:02 PM »
you have to do:
!ns bakes
or !ns bong
or even !ns bon

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #21 on: November 17, 2008, 11:08:13 PM »
Ok, just so you know, development is currently slow on openbanter.
0.4 is nearly finished!
I just need to fix a few errors.
Unfortunately, I don't have a server at the moment.
This means there will be loads of bugs!
I will therefore be posting it as a beta, and would like anyone who has the courage to install it to report back which parts work and which don't.

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #22 on: November 17, 2008, 11:20:49 PM »
Ooooh yes lol, thats what I was doing!

Basically, I went on holiday to NY a few weeks ago, the night before I left I got openbanter sooo close to 0.4 release, and by the time I got back I had no idea what I was doing.
The features I still have to implement
change name of bot: 2 server where I have seen this: FF and Hades. It will be config configurable, a var gets what the bot name is (default is b3, obviously)
max level for warnings: If you don't want admins to be warned when they !gj themselves, this is a way to do it!
Change the syntax from:
User says: [openbanterphrase] Bakes where phrase is: Good Job
to User [openbantephrase] Bakes where phrase is: is suprised at the viciousness of your noobtoob,

Sooo, it might take a little longer than planned. I seem to remember some problems with the max level for warnings.
It might take quite a while, since i need someone to give me access to their server so i can dev.
Anyone want to do that?

Offline Daxer

  • Jr. Member
  • **
  • Posts: 41
    • ClanGT.ORG
Re: Openbanter 0.3
« Reply #23 on: December 11, 2008, 11:40:11 AM »
Bakes .. is it possible for me to add phrases such as:

!gg = good game
!gs = good shot (same as !ns - but a 10 year old habit to type gs rather than ns)

I added these in teh correct syntax to the openbanter.xml but they are not recognized in game ... i assume the commands need to be compiled?

Dax


Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #24 on: December 11, 2008, 12:11:50 PM »
in an old version I had commands you could modify easily, there was loads of sample code.
the lines you need to edit/add are: (just add extra lines at the bottom of the group)
Code: [Select]
  _min_level_ns = None
-------------------------------------------------------------------------------------------
    try:
        self._min_level_ns = self.config.getint('settings', 'min_level_ns')
    except:
      self._min_level_ns = 2
      self.debug('Using default value (%s) for min_level', self._min_level_ns)
------------------------------------------------------------------------------------------
    self.debug("loading phrases...")
    self._nsphrases = []
    for node in self.config.get('nsphrase'):
      if node is not None or node.text.strip() != '':
        self.debug("appending '%s'" % node.text)
        self._nsphrases.append(node.text.strip())
    self.debug("%s phrase(s) loaded" % len(self._nsphrases))
------------------------------------------------------------------------------------------
    if len(self._nsphrases) < 1:
      self.error("No phrase loaded for niceshot. Can't start")
      return
------------------------------------------------------------------------------------------
    self._adminPlugin.registerCommand(self, 'niceshot', self._min_level_ns, self.cmd_niceshot, 'ns')
------------------------------------------------------------------------------------------
  def cmd_niceshot(self, data, client=None, cmd=None):
    """\
    <player> - Tell a player they took a nice shot
    """
    if client is None:
        self.debug('client is None')
        return False

    if data is None:
        client.message('^7Invalid parameters, you must supply a player name')
        return False

    if data == 'b3':
        self._adminPlugin.warnClient(client, 'Do not suggest that b3 took a nice shot!', None, False, '', 1)
        return False
   
    m = self._adminPlugin.parseUserCmd(data)
    if not m:
        client.message('^7Invalid parameters, you must supply a player name')
        return False
    else:
        sclient = self._adminPlugin.findClientPrompt(m[0], client)
        if sclient is None:
            self.debug('sclient is None')
            return False
           
        if sclient.cid == client.cid:
            self._adminPlugin.warnClient(client, 'Do not abuse openbanter!', None, False, '', 1)
            return False

        self.console.say('%s says: ^7%s %s^7!' % (client.exactName, random.choice(self._nsphrases), sclient.exactName))


I'll hopefully be adding something that automatically loads every command in the config, but I have little idea how to do this, and no server, so its gunna be hard!

Offline leonpadi

  • Full Member
  • ***
  • Posts: 53
Re: Openbanter 0.3
« Reply #25 on: March 08, 2009, 11:03:51 AM »
Bump!
Any news from that time ? :)

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #26 on: March 08, 2009, 11:30:10 AM »
There will be, I'm rewriting the whole code from scratch for version 1.0, to make it as simple as possible
But yeah, I haven't worked on it for a while.
If I can think of a time, a release will be in 2.5 weeks, when I go on holiday.

Offline leonpadi

  • Full Member
  • ***
  • Posts: 53
Re: Openbanter 0.3
« Reply #27 on: March 08, 2009, 11:31:24 AM »
ok ok meanwhile i'll try the version you mention on your 1st post ;)

Offline Viper

  • Jr. Member
  • **
  • Posts: 35
Re: Openbanter 0.3
« Reply #28 on: March 16, 2009, 07:56:23 AM »
Typo found :-)

Hello, in the openbanter.xml, you misspell better - beter.  Just thought you might want to know!  I fixed it already in my version.

Regards,

Josh

Offline Bakes

  • B3 Contrib/Support
  • Hero Member
  • *
  • Posts: 1226
Re: Openbanter 0.3
« Reply #29 on: March 16, 2009, 03:12:14 PM »
Thanks for finding the bug;
I'll be sure to change it for the next version!

 


Rate this page +1 at Google Search

anything