
Strings should now be passed to the plugins as unicode values in py2.7 so we have to make sure that we don't convert those into ascii by using python str instead of u'' strings.
13 lines
306 B
Python
13 lines
306 B
Python
from __future__ import unicode_literals
|
|
# don't convert to ascii in py2.7 when creating string to return
|
|
|
|
import time
|
|
crontable = []
|
|
outputs = []
|
|
|
|
crontable.append([5, "say_time"])
|
|
|
|
|
|
def say_time():
|
|
# NOTE: you must add a real channel ID for this to work
|
|
outputs.append(["D12345678", time.time()])
|