Add API.cron, for easier bot access to the cron functionality

This commit is contained in:
Juhani Krekelä 2018-01-02 18:33:04 +02:00
parent 1081a6d092
commit e292dc2b4c
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ class API:
# We need to access the internal functions of the ServerThread object in order to send lines etc.
self.serverthread_object = serverthread_object
# Have the cron object accessible more easily
self.cron = serverthread_object.cron_control_channel
def send_raw(self, line):
"""Sends a raw line (will terminate it itself.)
Don't use unless you are completely sure you know what you're doing."""