Commit Graph

  • 3761cc6fa8 add atribute allow clippy::unwrap_used in tests, since it's what tests should do Akulij 2025-04-28 21:07:45 +03:00
  • 091c0a436e ignore macos's file Akulij 2025-04-28 20:23:43 +03:00
  • 982b6c8ff0 set clippy rule unwrap used as warning Akulij 2025-04-28 20:23:00 +03:00
  • 329ead4f6e add thiserror as a dependency Akulij 2025-04-28 20:22:41 +03:00
  • 8b371ebb2f clippy: fix warnings in db/tests.rs Akulij 2025-04-28 18:34:25 +03:00
  • adfd019166 add clippy lint rule Akulij 2025-04-28 18:07:34 +03:00
  • 2aff289a96 clippy: fix warnings Akulij 2025-04-28 17:47:31 +03:00
  • 03e42c9108 fix bug: editing text kept previous media in message Akulij 2025-04-28 00:06:22 +03:00
  • a905325a52 update user in db from telegram user info Akulij 2025-04-27 23:55:45 +03:00
  • 4bf7c214b9 create update_user method on User struct Akulij 2025-04-27 23:55:24 +03:00
  • 345ea66f8e fix cargo warnings Akulij 2025-04-27 23:04:58 +03:00
  • 82045a39a9 create BotController Akulij 2025-04-27 23:01:40 +03:00
  • b318e3ec8e use DB::init function instead of manual connection and migration Akulij 2025-04-27 21:04:34 +03:00
  • 09f7e76d96 create DB::init function Akulij 2025-04-27 21:02:05 +03:00
  • 29acb02a97 fix message of becoming an admin Akulij 2025-04-26 19:56:33 +03:00
  • 403e06f542 call db migration on init Akulij 2025-04-26 00:28:47 +03:00
  • a765dce328 use MongodbStorage Akulij 2025-04-26 00:28:19 +03:00
  • 7fe3a76052 create MongodbStorage Akulij 2025-04-26 00:26:59 +03:00
  • 4d2d344ea2 fix: update is_admin only on insert (in upsert query) Akulij 2025-04-26 00:25:59 +03:00
  • 0a64b25044 fix: used wrong collection in get_literal Akulij 2025-04-26 00:25:32 +03:00
  • 41ac1d7cea create db migration function Akulij 2025-04-26 00:21:41 +03:00
  • 08167143aa migrate db to mongodb from diesel(postgres) Akulij 2025-04-25 22:44:37 +03:00
  • e4007095ab add mongodb and bson(flag chrono-0_4) as a dependency Akulij 2025-04-25 21:06:40 +03:00
  • e2d2cebed8 cargo fmt Akulij 2025-04-25 21:05:54 +03:00
  • a940ef5e83 move towards generefication of DB implementation Akulij 2025-04-22 22:51:54 +03:00
  • b6ae5170a4 add support for media group in user configurable messages Akulij 2025-04-21 22:45:30 +03:00
  • 0bc97a9f58 fix: in drop_media_except handle case when group is null Akulij 2025-04-21 22:04:17 +03:00
  • bdb5f10d34 add test for drop_media_except Akulij 2025-04-21 22:03:59 +03:00
  • 138a15ec67 improve test_is_media_group_exists Akulij 2025-04-21 22:03:35 +03:00
  • a2f135ccda feature: add support for video in user configurable messages Akulij 2025-04-21 20:23:09 +03:00
  • 5492beec41 add support for photo in message Akulij 2025-04-18 14:51:22 +03:00
  • 0950ccb150 create db.is_media_group_exists Akulij 2025-04-18 13:52:45 +03:00
  • 539b5ee48b update db tests Akulij 2025-04-18 13:32:38 +03:00
  • 92c4f803eb add support for media_group Akulij 2025-04-18 13:32:21 +03:00
  • 8e3f1496ae move db.rs to db/mod.rs for better file structure Akulij 2025-04-18 13:22:59 +03:00
  • 687aae2475 make media_group_id column optional Akulij 2025-04-18 13:21:02 +03:00
  • e56b7284df fix: use unwrap instead of is_ok in tests to get error messages Akulij 2025-04-18 13:16:41 +03:00
  • 95cc880b4f add media_group_id column to media table Akulij 2025-04-18 13:13:30 +03:00
  • ffb2b8b7fe fix warnings of unused dependencies Akulij 2025-04-18 12:56:54 +03:00
  • 342db81f5b init bacon Akulij 2025-04-18 12:56:30 +03:00
  • f362ff1fda create db tests Akulij 2025-04-10 21:53:41 +09:00
  • cc351a0a9b fix: use str instead of string in add_media method Akulij 2025-04-10 21:53:15 +09:00
  • e46ba0dbbf fix: wrong fileid type Akulij 2025-04-10 21:16:54 +09:00
  • 827a5022d1 implement db functions to manipulate media table Akulij 2025-04-10 21:15:42 +09:00
  • ed211f2d72 create table media Akulij 2025-04-10 21:11:14 +09:00
  • 412a54d647 cargo fmt Akulij 2025-04-10 20:55:32 +09:00
  • 1006fbe5c1 fix: request first_name in user creation db function Akulij 2025-04-10 20:46:23 +09:00
  • a9919a9307 handle edit command in any case Akulij 2025-04-10 20:12:15 +09:00
  • 4a37792c0c change edit_msg_handler logic for more extensibility Akulij 2025-04-10 20:06:52 +09:00
  • 2bac30e711 create callback_handler Akulij 2025-04-10 19:27:31 +09:00
  • a58fca01f9 fix: ask only for chat_id instead of whole message in answer_message in case of generalization Akulij 2025-04-10 02:34:41 +09:00
  • 089ef3218c move out message answer into function Akulij 2025-04-10 02:17:45 +09:00
  • cca87da403 cargo fmt Akulij 2025-04-08 01:13:49 +09:00
  • 98be2b0f7d display event buttons Akulij 2025-04-08 01:12:35 +09:00
  • e9a44a221d add test events on init Akulij 2025-04-08 01:11:45 +09:00
  • 2bad5d79c7 cargo add chrono_tz Akulij 2025-04-08 00:47:13 +09:00
  • f7ced4b780 use timezoned timestamp in event date Akulij 2025-04-08 00:42:21 +09:00
  • f619b1d375 enable diesel's chrono feature Akulij 2025-04-08 00:41:46 +09:00
  • 15813901d8 regenerate models Akulij 2025-04-08 00:02:31 +09:00
  • 1d3ec66b11 fix: import table schemas in models generation Akulij 2025-04-08 00:02:09 +09:00
  • 9ac297cf5a fix: make all reservation fields required Akulij 2025-04-08 00:00:01 +09:00
  • dda5fd5a93 fix: wrong user_id field type in reservations table Akulij 2025-04-07 23:59:12 +09:00
  • 3656c1be6d rename make gen-models task into models Akulij 2025-04-07 23:55:38 +09:00
  • fc8f98c2fa cargo add chrono Akulij 2025-04-07 23:32:38 +09:00
  • 4ea77e0444 Merge branch 'master' of https://git.akulij.ru/akulij/gongbotrs akulij 2025-04-07 14:28:38 +00:00
  • 93974c2c37 generate Cargo.nix akulij 2025-04-07 14:28:23 +00:00
  • 7102dcb1be create nix shell file akulij 2025-04-07 14:27:56 +00:00
  • baa7298106 delete flake files akulij 2025-04-07 14:27:38 +00:00
  • c8a2f41fd1 ignore result folder akulij 2025-04-07 14:27:16 +00:00
  • 07a10fae0e create reservatoin status getter that returns enum Akulij 2025-04-07 23:24:18 +09:00
  • 21081c3206 regenerate models.rs Akulij 2025-04-07 23:16:44 +09:00
  • e4051479d4 stringify reservation table status field Akulij 2025-04-07 23:13:52 +09:00
  • d93992a3d1 Merge branch 'master' of https://git.akulij.ru/akulij/gongbotrs Akulij 2025-04-07 22:46:15 +09:00
  • 87d1f8ac1a add diesel_derive_enum Akulij 2025-04-07 22:45:59 +09:00
  • 6e0a21f569 create event and reservation table Akulij 2025-04-07 22:36:12 +09:00
  • 18d7ae9ce7 extend user table Akulij 2025-04-07 22:35:57 +09:00
  • 90379aa218 extend users table Akulij 2025-04-07 22:07:00 +09:00
  • 67a8b94a69 fix migrations path to be relative to project akulij 2025-04-07 10:30:34 +00:00
  • 7e678fc2f3 add nix flake to build using nix Akulij 2025-04-07 17:07:15 +09:00
  • 8e3ebc936c cargo fmt Akulij 2025-04-06 17:58:29 +09:00
  • d74e691009 implement bot message editing feature Akulij 2025-04-06 17:58:05 +09:00
  • b2a27e3330 delete comments of code :/ Akulij 2025-04-03 23:16:28 +09:00
  • 66cf414350 create get/set literal function Akulij 2025-04-03 23:15:42 +09:00
  • 3f2ee083cd fix: make literals field value not optional Akulij 2025-04-03 23:00:26 +09:00
  • c977500ee4 rustfmt Akulij 2025-04-03 22:51:32 +09:00
  • f5deffc3b3 create table literals Akulij 2025-04-03 22:48:30 +09:00
  • f992a99bd4 create db functions to get/set messages Akulij 2025-04-03 22:43:49 +09:00
  • c93d2f1ee8 create messages table Akulij 2025-04-03 22:14:38 +09:00
  • 7777aadf6a create edit msg handler Akulij 2025-04-03 22:06:58 +09:00
  • d7d67536ce remove unused import Akulij 2025-04-03 05:05:15 +09:00
  • d886a2459f move out command handler to separate function Akulij 2025-04-03 05:03:04 +09:00
  • 5cadb2bd76 rustfmt Akulij 2025-04-03 04:57:46 +09:00
  • 30117624c4 move out secret command to admin file Akulij 2025-04-03 04:56:08 +09:00
  • 9e95935ddc move out admin commands to admin file Akulij 2025-04-03 04:53:16 +09:00
  • 87601f172a create deop command Akulij 2025-04-03 04:47:43 +09:00
  • e2e42c8676 rename make_admin function into set_admin with flag Akulij 2025-04-03 04:37:44 +09:00
  • cc6d13136a test pin message feature Akulij 2025-04-03 04:33:47 +09:00
  • b858b802fd add secret command handler Akulij 2025-04-03 04:33:02 +09:00
  • bdb7022fef disable unused features Akulij 2025-04-03 03:24:57 +09:00
  • 66ac460d80 use async db connection Akulij 2025-04-03 03:24:00 +09:00