randerthe / twitterbotcovidstatus Goto Github PK
View Code? Open in Web Editor NEWBot que informa o status atual de COVID na cidade informada.
Bot que informa o status atual de COVID na cidade informada.
Conforme o twitt a seguir: https://twitter.com/marcosbaesse/status/1316506402928709634?s=20
O bot não consegue responder à pergunta realizada.
No console da aplicação é lançado o seguinte erro:
@BOTCovidStatus #CovidNaMinhaCidade Rio de Janeiro
TypeError: Cannot read property 'confirmed' of undefined
at findCasesByCity (C:\marcosbaesse\github\TwitterBotCovidStatus\bot.js:22:55)
at Parser.<anonymous> (C:\marcosbaesse\github\TwitterBotCovidStatus\bot.js:45:22)
at Parser.emit (events.js:315:20)
at Parser.receive (C:\marcosbaesse\github\TwitterBotCovidStatus\node_modules\twitter\lib\parser.js:58:16)
at IncomingMessage.<anonymous> (C:\marcosbaesse\github\TwitterBotCovidStatus\node_modules\twitter\lib\twitter.js:284:14)
at IncomingMessage.emit (events.js:327:22)
at addChunk (_stream_readable.js:297:12)
at readableAddChunk (_stream_readable.js:273:9)
at IncomingMessage.Readable.push (_stream_readable.js:214:10)
at HTTPParser.parserOnBody (_http_common.js:129:24) {
source: {
created_at: 'Wed Oct 14 22:29:20 +0000 2020',
id: 1316506402928709600,
id_str: '1316506402928709634',
text: '@BOTCovidStatus #CovidNaMinhaCidade Rio de Janeiro',
display_text_range: [ 16, 50 ],
source: '<a href="https://mobile.twitter.com" rel="nofollow">Twitter Web App</a>',
truncated: false,
in_reply_to_status_id: 1316506302231838700,
in_reply_to_status_id_str: '1316506302231838725',
in_reply_to_user_id: 1277303145270595600,
in_reply_to_user_id_str: '1277303145270595589',
in_reply_to_screen_name: 'BOTCovidStatus',
user: {...
},
geo: null,
coordinates: null,
place: null,
contributors: null,
is_quote_status: false,
quote_count: 0,
reply_count: 0,
retweet_count: 0,
favorite_count: 0,
entities: {
hashtags: [Array],
urls: [],
user_mentions: [Array],
symbols: []
},
favorited: false,
retweeted: false,
filter_level: 'low',
lang: 'pt',
timestamp_ms: '1602714560621'
}
}
Melhorar ou adicionar os seguintes arquivos:
Listas que podem ajudar a configurar esses arquivos:
Falta adicionar um link para o perfil do bot no twitter.
É interessante ter o link na descrição do projeto e no readme
Identifiquei os seguintes problemas no package.json
do projeto:
npm audit fix
no projetoA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.