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?
November 22, 2008, 01:02:55 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Modified Privgroup (Guild bot)
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Modified Privgroup (Guild bot)  (Read 1109 times)
0 Members and 1 Guest are viewing this topic.
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Modified Privgroup (Guild bot)
« on: October 19, 2006, 07:58:01 PM »

Designed for guildbot guest chat prinicipally:

- based on Bebot standard privgroup.php.
- all commands (kick/invite) work in GC.
- bot is more verbose in GC/privategroup (says who was invited and by who, who was kicked and by who).
- sanity checks added (can't kick someone that isn't in guest chat, can't invite someone that is already in guest chat etc).
- pgroup online list now stored in database (pgroup table).

http://www.jjones.co.uk/files/privgroup.php
Logged
Naturalistic
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 221


Re: Modified Privgroup (Guild bot)
« Reply #1 on: October 20, 2006, 12:25:36 AM »

Added in to notify when someone joins or leaves the privategroup. Sends to pgroup and guild chat.

Nice and simple module though Smiley Would be good for others to learn from.
« Last Edit: October 20, 2006, 12:29:39 AM by Naturalistic » Logged

220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Modified Privgroup (Guild bot)
« Reply #2 on: February 11, 2007, 05:29:06 PM »

- cosmetic fixes to prevent returns being quoted wrongly to privategroup.

http://www.jjones.co.uk/files/privgroup.php

Remember if you don't use the modified !online module, you can add code to announce joins and departs like so (as the functions exist already in the module, you just need to add the notification line and not a whole new function):

Code:
    function pgjoin($name)
    {
$this -> bot -> send_gc($name ." has joined the guest channel");
    }

    function pgleave($name)
    {
$this -> bot -> send_gc($name ." has left the guest channel");
    }

-jj-
Logged
Csavarkulcs
Freshman
*
Offline Offline

Gender: Male
Posts: 9


Re: Modified Privgroup (Guild bot)
« Reply #3 on: February 17, 2007, 11:31:29 AM »

how can i open the guest (privgroup) channel to anyone?
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Modified Privgroup (Guild bot)
« Reply #4 on: February 17, 2007, 05:21:17 PM »

You can either !invite (one-time only) him, or make him !guest. Guests can invite themselves, iirc. Just have to send the bot a tell with !join.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Csavarkulcs
Freshman
*
Offline Offline

Gender: Male
Posts: 9


Re: Modified Privgroup (Guild bot)
« Reply #5 on: February 17, 2007, 06:01:11 PM »

Quote from: pusikas on February 17, 2007, 05:21:17 PM
You can either !invite (one-time only) him, or make him !guest. Guests can invite themselves, iirc. Just have to send the bot a tell with !join.
well, that is my problem. i don't want to invite or make him/her guest, i'd like to open the guest channel to the public....
Logged
Csavarkulcs
Freshman
*
Offline Offline

Gender: Male
Posts: 9


Re: Modified Privgroup (Guild bot)
« Reply #6 on: February 18, 2007, 07:22:03 AM »

problem solved.
in bot php around line 313:

if ($this -> is_member($user) or ($this -> guildbot))

i know this is maybe a big hole in the means of security, but i wanted an open bot, now i got it.
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Modified Privgroup (Guild bot)
« Reply #7 on: February 18, 2007, 07:56:20 AM »

We had something like that for our org in the past. Just used two bots. One for most of the org business and a raidchannel, another one for a public guestchannel.Shutting down that public guestchat was just switching off the bot. I really like BeBot's !relay command, but using two bots has some undeniable advantages. Smiley
Dunno what the second bot was... ign I think, but not sure. Something where you could switch off security easily.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Csavarkulcs
Freshman
*
Offline Offline

Gender: Male
Posts: 9


Re: Modified Privgroup (Guild bot)
« Reply #8 on: February 18, 2007, 09:46:20 AM »

Not a bad idea, but since i have to pay for bot hosting....
Currently we have ign bots, but it's annoyingly unstable. I don't know why, maybe our extra charachers (like áéűúőóüö) make it crash, maybe not. Still, we aren't a big org and we stay out from pvp (bs excl) and towers too (got a site atm, but w/o fight), so not a big deal if anyone can do !online for example...
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Modified Privgroup (Guild bot)
« Reply #9 on: February 18, 2007, 06:20:52 PM »

Dunno how your hosting works, but on my little crappy linux server, I can run like 5 bebots in parallel without trouble. and that is a 300MHz machine...
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Csavarkulcs
Freshman
*
Offline Offline

Gender: Male
Posts: 9


Re: Modified Privgroup (Guild bot)
« Reply #10 on: February 19, 2007, 03:14:43 AM »

I pay a fixed amount after each bot i want to be hosted. But this is a little offtopic now....
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Modified Privgroup (Guild bot)
« Reply #11 on: February 19, 2007, 05:14:26 AM »

Uhm, yeah. Offtopic, but I understand now.  Grin
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Modified Privgroup (Guild bot)
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 13
Total: 14
xlDanek

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.474 seconds with 29 queries. (Pretty URLs adds 0.033s, 4q)
Loading...