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: !help  (Read 2952 times)

0 Members and 1 Guest are viewing this topic.

Offline vertek

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
!help
« on: September 14, 2007, 03:25:23 am »
I'm curious.. I'm wanting to make !help viable from gc, though I cannot find any resources on how to make that change..

could someone shed some light on this pls?

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: !help
« Reply #1 on: September 14, 2007, 03:43:01 am »
This is a remnance from my laziness when revamping and testing the module. To add responses from gc change the lines of core/BotHelp.php from

Code: [Select]
$bothelp_core = new BotHelp_Core($bot);


$commands["tell"]["help"] = &$bothelp_core;

$bot -> help = &$bothelp_core;

to read
Code: [Select]
$bothelp_core = new BotHelp_Core($bot);


$commands["tell"]["help"] = &$bothelp_core;
$commands["gc"]["help"] = &$bothelp_core;
$commands["pgmsg"]["help"] = &$bothelp_core;

$bot -> help = &$bothelp_core;

That should enable help in gc and pgmsg. However it will always reply in tells to the person executing the command. To change this you'll need to change the code in the functions "gc" and "pgmsg" further down. They should be identical to the function "tell" except for $this -> bot -> send_tell( should read $this->bot->send_gc( and $this->bot->send_pgmsg( respectively

Edit: However I think it prudent that !help only replies in tells as the output of the command depends on the access level of the person issuing the command.
« Last Edit: September 14, 2007, 03:47:52 am by Blueeagle »
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: !help
« Reply #2 on: September 14, 2007, 03:44:45 am »
Also be sure to modify the access control settings for GC and PGMSG.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: !help
« Reply #3 on: September 14, 2007, 03:54:08 am »
Added support for GC and PGMSG to the SVN.

Replies are still sendt in tells.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: !help
« Reply #4 on: September 14, 2007, 04:23:31 am »
I cannot find any resources on how to make that change..

The best resource to look into would probably be modules/_ExampleModule.php but if you're new to coding I can understand how that would be all greek. :)
The only problem that can't be solved by adding another wrapper is having too many wrappers.

 

* 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: 291
  • 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