dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1 | You're being logged at https://irclog.whitequark.org/cinch/
noAKA has joined #cinch
<noAKA>
Can you call a plugin from another plugin or am I not doing my flow correctly?
<noAKA>
I have 3 plugins 1 is the main which prompts a series of questions on the last question I want it to call plugin2.rb or plugin3.rb depending on the response. I don't want to have the other 2 dialogs in the main plugin if I can avoid it.
<noAKA>
I hope that makes sense
<dominikh>
why do you want these to be separate plugins? can the 2nd and 3rd plugin ever be called by the user without going through the 1st plugin?
<noAKA>
yes
<noAKA>
Its a rpg type game. I was wanting to break the various areas of the game out into sepereate plugins but the user creation screen needs to call certian plugins as part of the signup process
<dominikh>
you can use @bot.plugins to access all the plugin instances. you can use #find and match on the class to find the specific instance you care about.
<dominikh>
you can then call methods on the instance