def __init__(self, sparcli):
self.sparcli = sparcli
self.urbanSite = 'https://api.urbandictionary.com/v0/define?term={}'
self.wolfClient = None
self.nounlist = []
# Set up Wolfram
if wolframalphaImported == True:
try:
tokens = getTokens()
secret = tokens['WolframAlpha']['Secret']
self.wolfClient = Client(secret)
except KeyError:
pass
# Set up noun list
self.nounlist = []
self.session = ClientSession(loop=sparcli.loop)
评论列表
文章目录