A Discord bot that frequently scrape stock market news.
These command must be prefix with command
characters:
ping
: ping botregister
: register a channel for notificationunregister
: unregister a channelrun
: start scrape & notify loopstop
: stop loopsave
: scrape & save news to database; use this to intialize bot after restarting serviceis-running
check whether the bot is runningload-config
load new config files
command
: command to invoke the bot; ex:>mna-ping
token
: bot tokenrequest
: request when scraping webpagetimer_interval
: how often we scrape
Contains a dictionary of configuration for publishers (newspaper).
- [key]
Publishers
: list of publishers for scraping domain
: url domain of newspaperurl
: url of scraping webpagetable
: name of table in databasearticles_path
: css path to list of news articlestitle_path
: css path fromarticles_path
to title of articleslink_path
: css path fromarticles_path
to href of articleslink_with_domain
: (boolean)true
if the link has domain url in it; iffalse
, the bot will append the domain before saving to database
Mergers n' Acquisition:
- SeekingAlpha
- FT
- BusinessWire
- Reuters
- TheStreet
-
NewsNow - MarketWatch
-
BizJournals
Short:
- Citron Research
- Hindenburg Research
- Muddy Water Research
- Spruce Point Research
- White Diamond Research
- JCapital Research
- Shadowfall
- Create directories: build, config, database
- Run:
npm install
- Run:
npm run tsc
- Create config files: (examples in template directory)
bot_config.json
publisher_config.json
- Create
.service
file (example in template directory) - Run service
Emoji | Meaning |
---|---|
🎉 | Initial Commit |
🚀 | Release |
⏪ | Revert Changes |
🐛 | Bugfix |
📦 | Dependency |
⛔ | Deprecation |
📖 | Documentation |
✨ | Features |
🚧 | In-Progress |
⚡ | Performance |
♻️ | Refactoring |
🔒 | Security |
🧪 | Tests |
📝 | Typos |
💄 | UI / Cosmetic |
🔖 | Version |