614456ed35 2025-02-22 1: //! This is telegram bot to fetch RSS/ATOM feeds and post results on public
614456ed35 2025-02-22 2: //! channels
614456ed35 2025-02-22 3:
614456ed35 2025-02-22 4: #![warn(missing_docs)]
614456ed35 2025-02-22 5:
9171c791eb 2021-11-13 6: mod command;
9171c791eb 2021-11-13 7: mod core;
0340541002 2025-04-24 8: mod sql;
9171c791eb 2021-11-13 9:
9171c791eb 2021-11-13 10: use anyhow::Result;
9171c791eb 2021-11-13 11:
1c444d34ff 2024-08-28 12: #[async_std::main]
1c444d34ff 2024-08-28 13: async fn main() -> Result<()> {
28da2e2a00 2022-03-12 14: let settings = config::Config::builder()
28da2e2a00 2022-03-12 15: .add_source(config::File::with_name("rsstg"))
28da2e2a00 2022-03-12 16: .build()?;
28da2e2a00 2022-03-12 17:
0340541002 2025-04-24 18: let mut core = core::Core::new(settings).await?;
e624ef9d66 2025-04-20 19:
e624ef9d66 2025-04-20 20: core.stream().await?;
61df933942 2020-11-18 21:
61df933942 2020-11-18 22: Ok(())
61df933942 2020-11-18 23: }