From e292dc2b4cf7c45491246411df3716463b62a5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Tue, 2 Jan 2018 18:33:04 +0200 Subject: [PATCH] Add API.cron, for easier bot access to the cron functionality --- ircbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ircbot.py b/ircbot.py index 398138b..0bcb61f 100644 --- a/ircbot.py +++ b/ircbot.py @@ -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."""