Commit Graph

  • 10d25f1d4b do not sync to gsheets main Akulij 2025-05-05 20:19:35 +03:00
  • 440cdd5a2c cd.yaml: call deployment webhook Akulij 2025-05-05 20:14:04 +03:00
  • f38ffda7b0 cd.yaml: do not SET GOCACHE since setup-go handles it Akulij 2025-05-05 19:59:51 +03:00
  • 14c1336b54 cd.yaml: fix name on build job Akulij 2025-05-05 19:56:56 +03:00
  • b9142ac4c5 cd.yaml: fix go build command Akulij 2025-05-05 19:56:16 +03:00
  • 77b5c734b5 cd.yaml: build project Akulij 2025-05-05 19:50:49 +03:00
  • 2abb18cb49 get events for start buttons from database instead of hardcoded ones Akulij 2025-05-05 19:41:11 +03:00
  • 0949b1c812 create notifyPaid function Akulij 2025-05-05 19:39:08 +03:00
  • 22c2b63069 fix: return reservedate: callback in getDatebutton Akulij 2025-05-05 19:38:15 +03:00
  • 04d8e8f086 define const seatscnt for max available bookings on event Akulij 2025-05-05 19:35:24 +03:00
  • b0137e83fc handle user state enternamereservation Akulij 2025-05-05 19:33:43 +03:00
  • feb5a67d6a handle reservedate: callback Akulij 2025-05-05 19:32:55 +03:00
  • d92e4899c8 handle paidcallback: callback Akulij 2025-05-05 19:32:23 +03:00
  • 8352829b92 fix WeekLabels sunday's name Akulij 2025-05-05 19:30:55 +03:00
  • c78c1fe295 format hardcoded assets table Akulij 2025-05-05 19:29:43 +03:00
  • 81cecbaaf6 write reservation status column in gsheets Akulij 2025-05-05 19:27:53 +03:00
  • 065f4fffbf create bc reservation methods Akulij 2025-05-05 19:27:08 +03:00
  • 92dd0bbb2d add support of text formating for /start message Akulij 2025-03-29 19:35:25 +08:00
  • 201437d6c2 fix: double send of more_info Akulij 2025-03-29 19:35:07 +08:00
  • bf1d7df88f asynchronously send event notification Akulij 2025-03-29 19:34:18 +08:00
  • 5923f6bf3f replace math.Floor with math.Ceil Akulij 2025-03-29 19:22:57 +08:00
  • ed99f4a16f go fmt Akulij 2025-03-29 19:19:47 +08:00
  • 8b6317b31a update main file Akulij 2025-03-29 19:19:12 +08:00
  • ce608abff1 add Metadata field in BotContent table Akulij 2025-03-29 19:18:23 +08:00
  • 95e92dea3c create UserInfo table Akulij 2025-03-29 19:17:58 +08:00
  • b6dae4b24c migrate all tables Akulij 2025-03-29 19:16:58 +08:00
  • 098ef11ca3 create reservation and event table Akulij 2025-03-29 19:16:00 +08:00
  • 0564467c59 create tasks table Akulij 2025-03-29 19:15:11 +08:00
  • 9f923a04fa add more required asset entries to panel Akulij 2025-03-29 19:13:17 +08:00
  • 319a4b0f66 add SheetID to config structure Akulij 2025-03-29 19:12:29 +08:00
  • 84b59379d7 export SHEETID env var used in config Akulij 2025-03-29 19:12:03 +08:00
  • 2134659426 add google sheets api as a dependency Akulij 2025-03-29 19:11:37 +08:00
  • 96af28b365 create google sheets manipulation file Akulij 2025-03-29 19:11:03 +08:00
  • 4c1e4180b7 ignore credentials.json Akulij 2025-03-29 19:10:44 +08:00
  • b7c01addcf go fmt Akulij 2025-03-28 15:48:57 +08:00
  • 61214ca405 add possibilities info to asset handler Akulij 2025-03-28 15:32:12 +08:00
  • 14e250bfc3 move out panel logic into panel file Akulij 2025-03-27 23:11:46 +08:00
  • dff3fc58ad create telegram utilities file Akulij 2025-03-27 23:11:27 +08:00
  • c785e3676c add hardcoded comming dates of meetings Akulij 2025-03-27 22:43:37 +08:00
  • b94873b6a8 move out assets for admin to panel file Akulij 2025-03-27 22:43:21 +08:00
  • 722431e8a5 create asset map for admin panel Akulij 2025-03-27 22:34:50 +08:00
  • e7b21a45b3 add /deop admin command Akulij 2025-03-27 22:34:42 +08:00
  • ee254ed865 fix: non-admin weren't able to use secret command Akulij 2025-03-27 22:32:10 +08:00
  • 121022fb54 check if user is admin in panel callback Akulij 2025-03-27 22:24:58 +08:00
  • a00b7e874b fix missing argument in admin handlers Akulij 2025-03-27 22:05:21 +08:00
  • ecd55a3031 improve panel handler security Akulij 2025-03-27 22:02:14 +08:00
  • 59d7f07f48 map secret and panel command handlers Akulij 2025-03-27 22:01:34 +08:00
  • 8a937724c1 organise better message handling Akulij 2025-03-27 21:59:04 +08:00
  • 94894b2c88 delete message counter because messages table now exists Akulij 2025-03-27 21:24:49 +08:00
  • 5144cb58dc create messages table and logger Akulij 2025-03-27 21:19:41 +08:00
  • 38c7bef71c go fmt Akulij 2025-03-27 20:54:33 +08:00
  • 4c0d2ec3a3 move out new user declaration into db file Akulij 2025-03-27 20:53:06 +08:00
  • b770b2c5dc move out bot controller logic into separate file Akulij 2025-03-27 20:44:20 +08:00
  • c81e781247 add admin commands map to handlers Akulij 2025-03-27 20:41:41 +08:00
  • c87e4683db log message entities Akulij 2025-03-27 20:23:17 +08:00
  • ce7c1613b1 move prints from fmt to log module Akulij 2025-03-27 20:22:58 +08:00
  • 0331f3e29e make admin notification function more readable Akulij 2025-03-25 12:16:48 +08:00
  • e23c391fdf fix: delete pushing bot to server from cd.yaml Akulij 2025-03-25 12:03:32 +08:00
  • 6c836dafe3 fix: print admin id instead of its address Akulij 2025-03-25 12:01:10 +08:00
  • f2aba99ce7 rename DBMigrate function to GetDB for more convinience Akulij 2025-03-25 12:00:44 +08:00
  • 97a25308d8 fix: mode user table definition to db file Akulij 2025-03-25 11:58:02 +08:00
  • 3a449c4d0d lint: align config field types Akulij 2025-03-25 11:56:18 +08:00
  • 584c9afe74 feature: add admin error notification function Akulij 2025-03-25 11:55:43 +08:00
  • 973a85061c fix: move user table definition into db file Akulij 2025-03-25 11:54:44 +08:00
  • 7bba99c007 move out db logic into separate file Akulij 2025-03-25 11:34:19 +08:00
  • 3b329ebdd8 add missing logic that was deleted by AI in the commit before last Akulij 2025-03-25 11:32:20 +08:00
  • 94705658a1 add comment info about how to use admin password Akulij 2025-03-25 11:30:06 +08:00
  • b8a54944d9 Refactor message processing in main.go by separating logic into dedicated handler functions for messages, callback queries, and channel posts. This improves code organization and readability. Additionally, enhance user state management and command handling for better user experience. Akulij 2025-03-24 11:45:22 +08:00
  • 128ebcbf8c comment bot.Debug flag Akulij 2025-03-20 03:10:02 +07:00
  • 14afe8ff4d go fmt Akulij 2025-03-20 03:06:10 +07:00
  • ccc98b4298 move out db migtration to separate function Akulij 2025-03-20 03:05:18 +07:00
  • 17e63b59fa Use .env file in docker compose to provide token UserA 2024-09-26 11:47:29 +03:00
  • f43969f7c9 Add docker-build caching root 2024-08-16 15:14:36 +03:00
  • ea4921f3ba Fix typo akulij 2024-08-16 14:58:21 +03:00
  • 816cd36191 Add channel link button instead of direct link in message akulij 2024-08-16 14:51:42 +03:00
  • 513fd684e4 Reset user state on /start commandr local commits) akulij 2024-08-13 06:21:45 +03:00
  • 82c16a4f53 Fix: app crash if no arguments passed to /secret akulij 2024-08-13 06:21:04 +03:00
  • aa9f81eaab Do not checkout in CD workflow akulij 2024-08-13 06:14:56 +03:00
  • 0ec54e3a6e Add basic CD workflow akulij 2024-08-13 06:12:49 +03:00
  • 0b378236af Fix: answer to callback (to stop buttons blinking) akulij 2024-08-13 04:16:43 +03:00
  • a2348a714c Fix: allow to leave a ticket for admins akulij 2024-08-13 03:27:16 +03:00
  • 88980bb81c Reuse existing image instead of uploading every time new akulij 2024-08-13 03:15:59 +03:00
  • 5e23b05631 process updates using goroutines akulij 2024-08-13 01:26:08 +03:00
  • 3b7d3ed3b8 Fix to use CGO for go-sqlite3 akulij 2024-08-13 00:32:36 +03:00
  • 5553ec502d Create gitignore akulij 2024-08-13 00:23:05 +03:00
  • 104f28b3bc Add picture caching akulij 2024-08-13 00:22:28 +03:00
  • 9d8b212d06 Containerize project akulij 2024-08-13 00:02:58 +03:00
  • 8ca332a0f0 Fix channel id changing akulij 2024-08-12 22:57:01 +03:00
  • c2e3ff8e74 Create start script Akulij 2024-08-08 00:40:41 +03:00
  • f082ebadff Make app Akulij 2024-08-08 00:40:19 +03:00
  • 28b54f9cd9 implement base telegram bot (echo) Akulij 2024-05-04 20:55:52 +03:00