L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 12:45:08 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Feedback and Suggestions > Topic: Bannfunction on a public raidbot
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Bannfunction on a public raidbot  (Read 343 times)
0 Members and 1 Guest are viewing this topic.
Solerna
Rookie
**
Offline Offline

Gender: Male
Posts: 21



Bannfunction on a public raidbot
« on: November 10, 2005, 09:40:30 PM »

Had the plan to run a public raidbot and has found most funcitons I wanted  availible. However there is a little thing that I have yet to find. And that is a ban function. Is there any way to keep someone out of bot when when runing a public raidbot that does not require membership. Or will I have to try and write something?

Last resort would be to require ppl to be members of the bot, but that is not something I want.
Logged
Zacix
Rookie
**
Offline Offline

Posts: 72


Bannfunction on a public raidbot
« Reply #1 on: November 11, 2005, 04:34:56 AM »

I don't have anything written for BeBot specifically, but with think this module I've written for RINGBot should work pretty nice. The !ban and !unban command needs a hack in main.php to work though. main.php should be in the repository too if you want to see how it's implemented, just have a search for "is_banned". !setlimit sets the maximum number of players allowed in the bot...I'm not 100% what you are looking for, just hope this is helpful Wink

edit: I see that it won't work out-of-the-box at all now...I have a function that gets all members online in Bot.php which is needed. Anyway, minor modifications should make it work
Logged

Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Bannfunction on a public raidbot
« Reply #2 on: November 11, 2005, 09:17:30 AM »

This is the module I use for chat invites, it includes a banlist.
In addition to this I have added the is_banned function to Bot.php, and added a if(is_banned($name) return false; at the beginning of is_members().

I haven't removed the use of my get_tablename and get_setting functions.
You can use the following code to solve that though (add in Bot.php):
Code:
       /*
        Returns a selected setting:
        */
        function get_setting($set)
        {
                $res = $this -> db -> select("SELECT * FROM settings"
                        . " WHERE setting = '" . $set . "'");

                if (!empty($res))
                        return $res[0][1];
                else
                        return "";
        }

        function get_tablename($table)
        {
                return $table;
        }
Logged
Solerna
Rookie
**
Offline Offline

Gender: Male
Posts: 21



Bannfunction on a public raidbot
« Reply #3 on: November 11, 2005, 12:33:24 PM »

Thanks =) Got it up and running.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Feedback and Suggestions > Topic: Bannfunction on a public raidbot
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Alreadythere
[Today at 11:42:32 AM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11143
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 15
Total: 18
egrath
Temar

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.429 seconds with 28 queries. (Pretty URLs adds 0.025s, 4q)
Loading...