aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-10-01 22:08:49 -0700
committerFuwn <[email protected]>2022-10-01 22:08:49 -0700
commit499a458ce152f37f0404516fad84314c55456b8c (patch)
tree92d68fff0bee92b7bf04e95eecd417c5835b4295 /src/modules
parentdocs(README.md): text to markdown (diff)
downloadlocus-499a458ce152f37f0404516fad84314c55456b8c.tar.xz
locus-499a458ce152f37f0404516fad84314c55456b8c.zip
feat(static): telegram groups page
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/static.rs5
-rw-r--r--src/modules/stocks.rs14
2 files changed, 13 insertions, 6 deletions
diff --git a/src/modules/static.rs b/src/modules/static.rs
index 47b7494..b829b44 100644
--- a/src/modules/static.rs
+++ b/src/modules/static.rs
@@ -56,5 +56,10 @@ pub fn module(router: &mut windmark::Router) {
"Information and resources for The Tor Project",
"tor"
),
+ (
+ "/stocks/telegram",
+ "Stock Market Related Telegram Groups",
+ "stocks_telegram"
+ )
);
}
diff --git a/src/modules/stocks.rs b/src/modules/stocks.rs
index 8de72c6..51fcc48 100644
--- a/src/modules/stocks.rs
+++ b/src/modules/stocks.rs
@@ -111,9 +111,10 @@ pub fn module(router: &mut windmark::Router) {
Box::new(|context| {
success!(
format!(
- "# Referrals\n\n=> /stocks Home\n=> /cryptocurrency Cryptocurrency \
- Dashboard\n=> /stocks/search?action=go Search!\n\nWant to start \
- investing? Support me by using one of my referral links!\n\n{}",
+ "# Referrals\n\n=> /stocks Dashboard\n=> /cryptocurrency \
+ Cryptocurrency Dashboard\n=> /stocks/telegram Telegram Groups\n=> \
+ /stocks/search Search\n\nWant to start investing? \
+ Support me by using one of my referral links!\n\n{}",
REFERRALS
.iter()
.map(|r| {
@@ -134,7 +135,7 @@ pub fn module(router: &mut windmark::Router) {
Box::new(|context| {
success!(
format!(
- "# The Stock Market\n\n=> /stocks/search Symbol Search\n=> /stocks/referrals Referrals\n=> /cryptocurrency Cryptocurrency Dashboard\n\n## Popular \
+ "# The Stock Market\n\n=> /stocks/search Symbol Search\n=> /stocks/referrals Referrals\n=> /cryptocurrency Cryptocurrency Dashboard\n=> /stocks/telegram Telegram Groups\n\n## Popular \
Symbols\n\n### AAPL\n\n{}\n\n### TSLA\n\n{}\n\n## Credits\n\nFinancial data provided by\n\n=> https://finnhub.io/ Finnhub",
symbol_to_string("AAPL"),
symbol_to_string("TSLA")
@@ -156,8 +157,9 @@ pub fn module(router: &mut windmark::Router) {
}
let mut response = format!(
- "# {}\n\n=> /stocks Home\n=> /cryptocurrency Cryptocurrency \
- Dashboard\n=> /stocks/search?action=go Search!",
+ "# {}\n\n=> /stocks Dashboard\n=> /cryptocurrency Cryptocurrency \
+ Dashboard\n=> /stocks/telegram Telegram Groups\n=> \
+ /stocks/search Search",
symbol
);