ethkat / tibia-ts3-teamspeakbot

:robot: Connect Tibia API with TeamSpeak 3.x Client for information purposes
21 stars 12 forks source link

Error executing command on bot #27

Closed alexsandrejr closed 4 years ago

alexsandrejr commented 4 years ago

When running the command on ts3! addFriend $ {enemyName} the following error appears in the terminal:

TypeError: Cannot read property 'info' of undefined at info (/root/tibia-ts3-teamspeakbot/src/api/crone/lists.js:158:41) at Array.forEach () at forEach (/root/tibia-ts3-teamspeakbot/src/api/crone/lists.js:158:30) at tryCatch (/root/tibia-ts3-teamspeakbot/node_modules/regenerator-runtime/runtime.js:45:40) at Generator.invoke [as _invoke] (/root/tibia-ts3-teamspeakbot/node_modules/regenerator-runtime/runtime.js:271:22) at Generator.prototype.(anonymous function) [as next] (/root/tibia-ts3-teamspeakbot/node_modules/regenerator-runtime/runtime.js:97:21) at asyncGeneratorStep (/root/tibia-ts3-teamspeakbot/src/api/crone/lists.js:36:103) at _next (/root/tibia-ts3-teamspeakbot/src/api/crone/lists.js:38:194) at

alexsandrejr commented 4 years ago

And one more thing! Bot doesn't have the following nickname in teamspeak3: https://prnt.sc/qh8uq4

Ethaan commented 4 years ago

Did you setup the config correctly?

alexsandrejr commented 4 years ago

the problem i am having now is that the tibia website rejects my connection. I also have another problem where the bot when executing the setup creates the rooms automatically but does not give the permissions to the server admin.

alexsandrejr commented 4 years ago

do you have any tips to solve these problems?

gudwal commented 4 years ago

@Ethaan I believe it would be better to obtain statistics directly from tibiadata.com instead of obtaining them from tibia.com why many blocks are being generated with cloudflare.

alexsandrejr commented 4 years ago

excelent idea

Ethaan commented 4 years ago

hmm interesting, i didn't know tibiadata exists

Ethaan commented 4 years ago

@alexsandrejr wanna help me changing from tibia-API to tibiadata?

Ethaan commented 4 years ago

Lets continue conversation here https://github.com/ethkat/tibia-ts3-teamspeakbot/issues/30