collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Bebot 0.3.x Development [release 0.3.5]  (Read 40027 times)

0 Members and 5 Guests are viewing this topic.

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #90 on: April 13, 2006, 01:50:43 am »
Found reason why my 0.2.2 bebot won't log tower attacks if attacker belongs to org... Checked 0.3.2, found strange, but 100% not working regex too.

Patch for 0.2.2:
Code: [Select]
--- TowerAttack.php.orig     Thu Jun  2 16:38:47 2005
+++ TowerAttack.php      Thu Apr 13 03:11:57 2006
@@ -165,7 +165,7 @@
       $attack = false;
       $victory = false;

-      if (preg_match("/The (clan|neutral|omni) organization (.+) just entered a state of war!  (.+) attacked the (clan|neutral|omni) organization (.+)'s tower in (.+) at location \(([0-9]+), ([0-9]+)\)/i", $msg, $info))
+      if (preg_match("/The (clan|neutral|omni) organization (.+) just entered a state of war! (.+) attacked the (clan|neutral|omni) organization (.+)'s tower in (.+) at location \(([0-9]+),([0-9]+)\)./i", $msg, $info))
       {
         $off_guild = $info[2];
         $off_side = $info[1];


This is regex from 0.3.2. I'm not regex pro, but (Clan|Neutral|Omni) mustn't be capitalised, there is "," between coords and "." after.
Code: [Select]
if (preg_match("/(.+) \((Clan|Neutral|Omni), (.+)\) attacked (.+) \((Clan|Neutral|Omni)\) at (.+), ([0-9]+)x([0-9]+)/i", $msg, $info))
This is tower attack message I used for reference:
Code: [Select]
[All Towers] The clan organization NemX just entered a state of war! Kyodaai attacked the omni organization Core's tower in Belial Forest at location (1954,387).
« Last Edit: April 13, 2006, 01:52:43 am by kuznechik »
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #91 on: April 13, 2006, 06:11:31 pm »
That was fixed for 0.2.x versions here kuznechik: http://bebot.link/index.php/topic,203.msg991.html#msg991
Basically just added some ucfirst(strtolower()) functions.

Also somewere around here was a rewritten TowerAttack.php by Crazied that I use now. :)

Found it: >> http://bebot.link/index.php/topic,243.0.html
« Last Edit: April 13, 2006, 06:14:23 pm by Xenixa »
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline KingJ

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #92 on: April 21, 2006, 09:12:35 pm »
Hmm, just upgraded to 0.32, everything seems to work fine except for the fact that the bot does not respond to commands in the org channel, only through tells.

Is there a way to fix this?

MatHack

  • Guest
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #93 on: April 22, 2006, 12:49:19 am »
/tell yourbotname !commands

if ! is your prefix.

Offline KingJ

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #94 on: April 22, 2006, 10:03:21 am »
Ah, I see now. Now to figure out what G, M, SA, A and RL mean...

Edit: Set all of the to G (For Guild?) and it seems to be working fine. Thanks! (Love the new online screen  :D)
« Last Edit: April 22, 2006, 10:07:18 am by KingJ »

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #95 on: April 22, 2006, 02:12:40 pm »
As far as I understood myself, G = Guest, M= Member, A= Admin, SA = Super Admin

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #96 on: April 22, 2006, 05:59:13 pm »
Right.

Guest means everyone.
Member is everyone that has is_member() != 0.
Admin/SA means the groups.

If you add another group, it can be used for command rights too.

One note - if you are allowed to execute a command due to membership in one group, you can execute it.

Offline Feanaro

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #97 on: May 06, 2006, 06:16:43 pm »
is SVN still down?
$cd /pub
$more beer

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #98 on: May 08, 2006, 06:15:52 pm »
SVN still down. I never got time to work on it while in the US.

Planning to get it back up this week once i get a list of piled up issues taken care of.
BeBot Founder and Fixer Kingpin

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bebot 0.3.x Development [release 0.3.2]
« Reply #99 on: May 13, 2006, 04:23:28 pm »
SVN back up at new location.

Browsable interface: http://svn.shadow-realm.org/
SVN checkouts: http://svn.shadow-realm.org/svn/BeBot
BeBot Founder and Fixer Kingpin

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bebot 0.3.x Development [release 0.3.3]
« Reply #100 on: May 18, 2006, 09:56:36 pm »
Release 0.3.3. See first post.

This is a security release that addresses a directory traversal issue in the help module.
The issue was discovered by Somebotty @ irc.funcom.com and brought to my intention on May 18th.
In the course of the evning the vulnerability was properly identified, tested, and a fix applied and then tested.
While this may sound serious (and all directory traversal bugs are) it is mitigated by two factors.
- It is only possible to access .txt files trough the HELP function
- On Unix systems it is further mitigated by the user input being lowercased. As Unix systems are case sensitive this makes it even harder to exploit.
There are no known ways to exploit this issue due to the mitigating factors, but non the less we are releasing a version with this bug fixed.
BeBot Founder and Fixer Kingpin

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.3]
« Reply #101 on: May 23, 2006, 01:13:39 pm »
Hi Khalem,

SVN #103, does also also include the updates by Xenixa here: http://bebot.link/index.php/topic,210.0.html ?

Cheers,

-jj-

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bebot 0.3.x Development [release 0.3.3]
« Reply #102 on: May 23, 2006, 03:20:00 pm »
Just commited that to r108 along with a bugfix.
BeBot Founder and Fixer Kingpin

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bebot 0.3.x Development [release 0.3.3]
« Reply #103 on: May 25, 2006, 01:13:18 pm »
Be sure to keep an close eye on deleted and moved files right now if you are playing with the SVN versions as there are a lot of changes going on.
BeBot Founder and Fixer Kingpin

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Bebot 0.3.x Development [release 0.3.3]
« Reply #104 on: May 25, 2006, 04:21:51 pm »
Bleh, and now I'm almost done with a get_/define_tablename implementation based on 0.3.2, only got to test for syntactical correctness by doing a few more drystarts of the bot.

Hope you can include that fairly easy still.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 241
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal