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

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

Author Topic: Modified Privgroup (Guild bot)  (Read 6180 times)

0 Members and 1 Guest are viewing this topic.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Modified Privgroup (Guild bot)
« on: October 20, 2006, 02:58:01 am »
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

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #1 on: October 20, 2006, 07: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 :) Would be good for others to learn from.
« Last Edit: October 20, 2006, 07:29:39 am by Naturalistic »
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #2 on: February 11, 2007, 11: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: [Select]
    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-

Offline Csavarkulcs

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #3 on: February 17, 2007, 05:31:29 pm »
how can i open the guest (privgroup) channel to anyone?

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #4 on: February 17, 2007, 11: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.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Csavarkulcs

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #5 on: February 18, 2007, 12:01:11 am »
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....

Offline Csavarkulcs

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #6 on: February 18, 2007, 01:22:03 pm »
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.

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #7 on: February 18, 2007, 01:56:20 pm »
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. :)
Dunno what the second bot was... ign I think, but not sure. Something where you could switch off security easily.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Csavarkulcs

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #8 on: February 18, 2007, 03:46:20 pm »
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...

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #9 on: February 19, 2007, 12:20:52 am »
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...
Luuv  Bot-Keeper of Vengeance ^^*

Offline Csavarkulcs

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #10 on: February 19, 2007, 09:14:43 am »
I pay a fixed amount after each bot i want to be hosted. But this is a little offtopic now....

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Modified Privgroup (Guild bot)
« Reply #11 on: February 19, 2007, 11:14:26 am »
Uhm, yeah. Offtopic, but I understand now.  ;D
Luuv  Bot-Keeper of Vengeance ^^*

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 670
  • 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