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: How to change listen channel for commands  (Read 2638 times)

0 Members and 1 Guest are viewing this topic.

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
How to change listen channel for commands
« on: June 13, 2007, 02:14:05 pm »
hey all :)

How do I make the bot listen to commands in a diffrent channel?
it seems that the !say command only will listen to a tell.
i did try to add a "$commands["gc"]["say"] = &$say;"

but it did not work :/

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: How to change listen channel for commands
« Reply #1 on: June 13, 2007, 02:27:49 pm »
If you meet the access level for !say (default is ADMIN) adding the line should work, the handler covers all channels.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: How to change listen channel for commands
« Reply #2 on: June 13, 2007, 02:44:02 pm »
I was using Say to test the string filter stuff. I never really finished it up. I suppose I should do that... :)

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: How to change listen channel for commands
« Reply #3 on: June 13, 2007, 02:45:16 pm »
Ok.But it still only give a tell :/

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: How to change listen channel for commands
« Reply #4 on: June 13, 2007, 09:00:38 pm »
Had a typo in the method Say.php used to determine output channels. SVN version works now. Download: http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Say.php?view=co
« Last Edit: June 15, 2007, 12:43:41 am by Glarawyn »

Offline lazarus

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: How to change listen channel for commands
« Reply #5 on: June 15, 2007, 12:26:58 am »
Ah yes. it work like a charm now :) good work :)

 

* 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