BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: Sheeth on February 25, 2012, 06:47:15 pm

Title: Calling 2 modules from 1 command
Post by: Sheeth on February 25, 2012, 06:47:15 pm
Is there a way to call 2 modules with 1 ! command?
I tried changing them both to run off the same trigger but it looks like there is error checking built into the bot to prevent this.

I thought adding a comalias might do the trick, but it just used the new module.

an example of what I want to do is if someone types !timeraa, I want that information to feed to the !aamon module as well. and vice versa.

Short of consolidating both modules into 1, I can not figure out how to do this.

Any suggestions?
Title: Re: Calling 2 modules from 1 command
Post by: Khalem on February 26, 2012, 11:24:56 pm
You are likely looking for this: http://bebot.link/coding-and-development-discussion/how-to-call-method-in-other-module

You cannot register the same command for several modules, however you can call modules functions from another module.
SimplePortal 2.3.7 © 2008-2025, SimplePortal