forked from nortti/tea_cah
Add API.cron, for easier bot access to the cron functionality
This commit is contained in:
parent
1081a6d092
commit
e292dc2b4c
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ class API:
|
||||||
# We need to access the internal functions of the ServerThread object in order to send lines etc.
|
# We need to access the internal functions of the ServerThread object in order to send lines etc.
|
||||||
self.serverthread_object = serverthread_object
|
self.serverthread_object = serverthread_object
|
||||||
|
|
||||||
|
# Have the cron object accessible more easily
|
||||||
|
self.cron = serverthread_object.cron_control_channel
|
||||||
|
|
||||||
def send_raw(self, line):
|
def send_raw(self, line):
|
||||||
"""Sends a raw line (will terminate it itself.)
|
"""Sends a raw line (will terminate it itself.)
|
||||||
Don't use unless you are completely sure you know what you're doing."""
|
Don't use unless you are completely sure you know what you're doing."""
|
||||||
|
|
Loading…
Reference in a new issue