90 Commits

Author SHA1 Message Date
Akulij
440cdd5a2c cd.yaml: call deployment webhook
All checks were successful
Build && Deploy / go build (push) Successful in 16s
2025-05-05 20:14:04 +03:00
Akulij
f38ffda7b0 cd.yaml: do not SET GOCACHE since setup-go handles it
All checks were successful
Build && Deploy / go build (push) Successful in 19s
2025-05-05 19:59:51 +03:00
Akulij
14c1336b54 cd.yaml: fix name on build job
Some checks failed
Build && Deploy / go build (push) Failing after 1m19s
2025-05-05 19:56:56 +03:00
Akulij
b9142ac4c5 cd.yaml: fix go build command 2025-05-05 19:56:16 +03:00
Akulij
77b5c734b5 cd.yaml: build project
Some checks failed
Build && Deploy / cargo build (push) Failing after 1m38s
2025-05-05 19:50:49 +03:00
Akulij
2abb18cb49 get events for start buttons from database instead of hardcoded ones
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
2025-05-05 19:41:11 +03:00
Akulij
0949b1c812 create notifyPaid function
sends in support chat info about user that just paid
2025-05-05 19:39:08 +03:00
Akulij
22c2b63069 fix: return reservedate: callback in getDatebutton 2025-05-05 19:38:15 +03:00
Akulij
04d8e8f086 define const seatscnt for max available bookings on event 2025-05-05 19:35:24 +03:00
Akulij
b0137e83fc handle user state enternamereservation 2025-05-05 19:33:43 +03:00
Akulij
feb5a67d6a handle reservedate: callback 2025-05-05 19:32:55 +03:00
Akulij
d92e4899c8 handle paidcallback: callback 2025-05-05 19:32:23 +03:00
Akulij
8352829b92 fix WeekLabels sunday's name 2025-05-05 19:31:19 +03:00
Akulij
c78c1fe295 format hardcoded assets table 2025-05-05 19:29:43 +03:00
Akulij
81cecbaaf6 write reservation status column in gsheets 2025-05-05 19:27:53 +03:00
Akulij
065f4fffbf create bc reservation methods 2025-05-05 19:27:08 +03:00
Akulij
92dd0bbb2d add support of text formating for /start message 2025-03-29 19:35:25 +08:00
Akulij
201437d6c2 fix: double send of more_info 2025-03-29 19:35:07 +08:00
Akulij
bf1d7df88f asynchronously send event notification 2025-03-29 19:34:18 +08:00
Akulij
5923f6bf3f replace math.Floor with math.Ceil
it's better to notify user at 18:00, not 17:59
2025-03-29 19:22:57 +08:00
Akulij
ed99f4a16f go fmt 2025-03-29 19:19:47 +08:00
Akulij
8b6317b31a update main file 2025-03-29 19:19:12 +08:00
Akulij
ce608abff1 add Metadata field in BotContent table 2025-03-29 19:18:23 +08:00
Akulij
95e92dea3c create UserInfo table 2025-03-29 19:17:58 +08:00
Akulij
b6dae4b24c migrate all tables 2025-03-29 19:16:58 +08:00
Akulij
098ef11ca3 create reservation and event table 2025-03-29 19:16:00 +08:00
Akulij
0564467c59 create tasks table 2025-03-29 19:15:11 +08:00
Akulij
9f923a04fa add more required asset entries to panel 2025-03-29 19:13:17 +08:00
Akulij
319a4b0f66 add SheetID to config structure 2025-03-29 19:12:29 +08:00
Akulij
84b59379d7 export SHEETID env var used in config 2025-03-29 19:12:03 +08:00
Akulij
2134659426 add google sheets api as a dependency 2025-03-29 19:11:37 +08:00
Akulij
96af28b365 create google sheets manipulation file 2025-03-29 19:11:03 +08:00
Akulij
4c1e4180b7 ignore credentials.json 2025-03-29 19:10:44 +08:00
Akulij
b7c01addcf go fmt 2025-03-28 15:48:57 +08:00
Akulij
61214ca405 add possibilities info to asset handler 2025-03-28 15:32:12 +08:00
Akulij
14e250bfc3 move out panel logic into panel file 2025-03-27 23:11:46 +08:00
Akulij
dff3fc58ad create telegram utilities file 2025-03-27 23:11:27 +08:00
Akulij
c785e3676c add hardcoded comming dates of meetings
WHY??? it is a way to develop bot in a few days :)
2025-03-27 22:43:54 +08:00
Akulij
b94873b6a8 move out assets for admin to panel file 2025-03-27 22:43:21 +08:00
Akulij
722431e8a5 create asset map for admin panel 2025-03-27 22:35:05 +08:00
Akulij
e7b21a45b3 add /deop admin command 2025-03-27 22:34:42 +08:00
Akulij
ee254ed865 fix: non-admin weren't able to use secret command 2025-03-27 22:32:10 +08:00
Akulij
121022fb54 check if user is admin in panel callback 2025-03-27 22:24:58 +08:00
Akulij
a00b7e874b fix missing argument in admin handlers 2025-03-27 22:05:21 +08:00
Akulij
ecd55a3031 improve panel handler security
if later it will apear somewhere else that admin block
2025-03-27 22:02:14 +08:00
Akulij
59d7f07f48 map secret and panel command handlers 2025-03-27 22:01:34 +08:00
Akulij
8a937724c1 organise better message handling 2025-03-27 21:59:04 +08:00
Akulij
94894b2c88 delete message counter because messages table now exists 2025-03-27 21:24:49 +08:00
Akulij
5144cb58dc create messages table and logger 2025-03-27 21:19:41 +08:00
Akulij
38c7bef71c go fmt 2025-03-27 20:54:33 +08:00