ai icon indicating copy to clipboard operation
ai copied to clipboard

TypeError: Cannot read property 'filter' of undefined

Open cliqsocial opened this issue 4 years ago β€’ 6 comments

error message

/ai/built/modules/keyword/index.js:46
const keywordsInThisNote = tokens.filter(token => token[2] == 'ε›Ίζœ‰εθ©ž' && token[8] != null);
                                                  ^
TypeError: Cannot read property 'filter' of undefined

cliqsocial avatar Feb 04 '20 03:02 cliqsocial

Did you installed MeCab on your system && configured its path correctly?

u1-liquid avatar Feb 04 '20 06:02 u1-liquid

Did you installed MeCab on your system && configured its path correctly?

@u1-liquid MeCab not installed and config.json set to false

{
	"host": "https://example.com",
	"i": "abc123",
	"keywordEnabled": "false",
	"chartEnabled": "true",
	"reversiEnabled": "true",
	"serverMonitoring": "true",
	"mecab": "false"
}

cliqsocial avatar Feb 04 '20 06:02 cliqsocial

~~Maybe no one tried to running ai with keywordEnabled=false until today 🀯~~

u1-liquid avatar Feb 04 '20 06:02 u1-liquid

You should write config like this: "keywordEnabled": false "false" is not actually false, so it was parsed as enabled.

u1-liquid avatar Feb 04 '20 06:02 u1-liquid

Account fetched successfully: @ai ... The memory loaded successfully

Created account name @ai and the account can automatically post maze

Sending both public and private note to @ai tested @ai emoji = nothing happens tested @ai dice = nothing happens

cliqsocial avatar Feb 04 '20 07:02 cliqsocial

send 2d5 to her for test dice module. dice is not a command for it.

u1-liquid avatar Feb 04 '20 08:02 u1-liquid