From 261d314e83514ac518bd56fa5238a71ca7636c5b Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 31 Oct 2024 01:01:22 +0100 Subject: [PATCH] Add `/terraria` command --- .idea/runConfigurations/Run__telegram_.xml | 1 + Cargo.toml | 5 + .../2024-10-30-232449_Add fluiddruid/down.sql | 11 ++ .../2024-10-30-232449_Add fluiddruid/up.sql | 8 ++ src/instance/config.rs | 3 + src/instance/mod.rs | 2 +- src/interfaces/database/schema.rs | 6 +- src/interfaces/mod.rs | 3 + src/interfaces/tshock/mod.rs | 89 +++++++++++++ src/services/telegram/commands/mod.rs | 4 + src/services/telegram/commands/terraria.rs | 125 ++++++++++++++++++ src/services/telegram/utils/mod.rs | 2 +- 12 files changed, 254 insertions(+), 5 deletions(-) create mode 100644 migrations/2024-10-30-232449_Add fluiddruid/down.sql create mode 100644 migrations/2024-10-30-232449_Add fluiddruid/up.sql create mode 100644 src/interfaces/tshock/mod.rs create mode 100644 src/services/telegram/commands/terraria.rs diff --git a/.idea/runConfigurations/Run__telegram_.xml b/.idea/runConfigurations/Run__telegram_.xml index 2620e1e9..6bfb520c 100644 --- a/.idea/runConfigurations/Run__telegram_.xml +++ b/.idea/runConfigurations/Run__telegram_.xml @@ -1,5 +1,6 @@ +