Skip to content

Commit

Permalink
chore: cleanup old code (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo authored Oct 20, 2024
1 parent acc9c94 commit cba6ab0
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 4,603 deletions.
39 changes: 0 additions & 39 deletions app/Makefile

This file was deleted.

1 change: 1 addition & 0 deletions app/bot/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/bot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ aws-sdk-dynamodb = "1.50.0"
chrono = "0.4.38"
chrono-tz = "0.10.0"
edit-distance = "2.1.3"
fastrand = "2.1.1"
lambda_runtime = "0.13.0"
openssl = { version = "0.10.68", features = ["vendored"] }
serde = "1.0.210"
Expand Down
10 changes: 9 additions & 1 deletion app/bot/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,15 @@ async fn simple_commands_handler(
}
};

bot.send_message(msg.chat.id, escape_markdown_v2(&text))
let mut message = text.clone();
if fastrand::choose_multiple(0..10, 1)[0] == 8 {
message = format!("{}\n\nContribuisci al progetto per mantenerlo attivo e sviluppare nuove funzionalità tramite una donazione: https://buymeacoffee.com/d0d0", text);
}
if fastrand::choose_multiple(0..50, 1)[0] == 8 {
message = format!("{}\n\nEsplora o contribuisci al progetto open-source per sviluppare nuove funzionalità: https://github.com/notdodo/erfiume_bot", text);
}

bot.send_message(msg.chat.id, escape_markdown_v2(&message))
.link_preview_options(LinkPreviewOptions {
is_disabled: true,
url: None,
Expand Down
18 changes: 0 additions & 18 deletions app/erfiume/__init__.py

This file was deleted.

Loading

0 comments on commit cba6ab0

Please sign in to comment.