Hey Guys. I am trying to call function to show points in news module. This is what I am using:
in News.php
$this->register_module("points");
$points = $this->bot->core("points")->show_points($name);
$inside .= "You have ($points) points.";
Here is an error log from console:
Crocksbot [ERROR] [News] Undefined function show_points(Crocks)!
According to error log it seems like the news.php is still trying to find the function inside the news.php module instead of points.php as its been called.
Have I done anything wrong please?
Thanks in advance for help.