plugins package¶
Submodules¶
plugins.Camera module¶
-
class
plugins.Camera.
Plugin
(con)[源代码]¶ 基类:
robot.sdk.AbstractPlugin.AbstractPlugin
-
SLUG
= 'camera'¶
-
plugins.CleanCache module¶
-
class
plugins.CleanCache.
Plugin
(con)[源代码]¶ 基类:
robot.sdk.AbstractPlugin.AbstractPlugin
-
SLUG
= 'cleancache'¶
-
plugins.Echo module¶
plugins.Email module¶
-
class
plugins.Email.
Plugin
(con)[源代码]¶ 基类:
robot.sdk.AbstractPlugin.AbstractPlugin
-
SLUG
= 'email'¶
-
fetchUnreadEmails
(since=None, markRead=False, limit=None)[源代码]¶ Fetches a list of unread email objects from a user’s email inbox.
Arguments: since – if provided, no emails before this date will be returned markRead – if True, marks all returned emails as read in target inbox
Returns: A list of unread email objects.
-
getMostRecentDate
(emails)[源代码]¶ Returns the most recent date of any email in the list provided.
Arguments: emails – a list of emails to check
Returns: Date of the most recent email.
-
getSender
(msg)[源代码]¶ Returns the best-guess sender of an email.
Arguments: msg – the email whose sender is desired
Returns: Sender of the sender.
-
plugins.Geek module¶
-
class
plugins.Geek.
Plugin
(con)[源代码]¶ 基类:
robot.sdk.AbstractPlugin.AbstractPlugin
-
IS_IMMERSIVE
= True¶
-
isValid
(text, parsed)[源代码]¶ 是否适合由该插件处理
参数: query – 用户的指令字符串 parsed – 用户指令经过 NLU 解析后的结果
返回: True: 适合由该插件处理 False: 不适合由该插件处理
-
plugins.LocalPlayer module¶
-
class
plugins.LocalPlayer.
Plugin
(con)[源代码]¶ 基类:
robot.sdk.AbstractPlugin.AbstractPlugin
-
IS_IMMERSIVE
= True¶
-
isValid
(text, parsed)[源代码]¶ 是否适合由该插件处理
参数: query – 用户的指令字符串 parsed – 用户指令经过 NLU 解析后的结果
返回: True: 适合由该插件处理 False: 不适合由该插件处理
-