I'm creating a trivia bot and I have sorted out all the commands like !start to start the game once the bot is in the channel.. but how do I make it start as soon as it enters the channel as i turn on the eggdrop??
When it enters it should run the procedure (triviastart) exactly as !start entered in the channel does.
It is possible to run a script as such as the bot is sterted, as soon as it connects to a server and on many other events. But running a script when the bot joins the channel, is not currently a supported event in eggdrop (allthough, it should).
If the script where to be run during any of other events mentioned above, then output to the server may either be lost, return a error, or cause eggdrop to barf.
What I am about to say, come from one of my most hated areas of eggdrop, so some1 else will need to get there fingers out.
It is possible to get around this problem with a raw bind. Using a raw bind, to detact the return replies of commands sent to the server, just after eggdrop joined a channel, should allow you to detect the point where you want to run your script.