本文整理匯總了Python中mycroft.skills.core.MycroftSkill方法的典型用法代碼示例。如果您正苦於以下問題:Python core.MycroftSkill方法的具體用法?Python core.MycroftSkill怎麽用?Python core.MycroftSkill使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mycroft.skills.core
的用法示例。
在下文中一共展示了core.MycroftSkill方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: get_followers
# 需要導入模塊: from mycroft.skills import core [as 別名]
# 或者: from mycroft.skills.core import MycroftSkill [as 別名]
def get_followers(self):
twitter_user = self.api.get_user(self.user)
followers = twitter_user.followers_count
return followers
# The logic of each skill is contained within its own class, which inherits
# base methods from the MycroftSkill class with the syntax you can see below:
# "class ____Skill(MycroftSkill)"