66 Commits

Author SHA1 Message Date
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
Akulij
4c0d2ec3a3 move out new user declaration into db file 2025-03-27 20:53:06 +08:00
Akulij
b770b2c5dc move out bot controller logic into separate file 2025-03-27 20:44:20 +08:00
Akulij
c81e781247 add admin commands map to handlers 2025-03-27 20:41:41 +08:00
Akulij
c87e4683db log message entities 2025-03-27 20:23:17 +08:00
Akulij
ce7c1613b1 move prints from fmt to log module 2025-03-27 20:22:58 +08:00
Akulij
0331f3e29e make admin notification function more readable
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2025-03-25 12:16:48 +08:00
Akulij
e23c391fdf fix: delete pushing bot to server from cd.yaml
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
2025-03-25 12:03:32 +08:00
Akulij
6c836dafe3 fix: print admin id instead of its address
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
2025-03-25 12:01:10 +08:00
Akulij
f2aba99ce7 rename DBMigrate function to GetDB for more convinience 2025-03-25 12:00:44 +08:00
Akulij
97a25308d8 fix: mode user table definition to db file 2025-03-25 11:58:02 +08:00
Akulij
3a449c4d0d lint: align config field types 2025-03-25 11:56:18 +08:00
Akulij
584c9afe74 feature: add admin error notification function 2025-03-25 11:55:43 +08:00
Akulij
973a85061c fix: move user table definition into db file 2025-03-25 11:54:44 +08:00
Akulij
7bba99c007 move out db logic into separate file 2025-03-25 11:34:19 +08:00
Akulij
3b329ebdd8 add missing logic that was deleted by AI in the commit before last 2025-03-25 11:32:20 +08:00
Akulij
94705658a1 add comment info about how to use admin password 2025-03-25 11:30:06 +08:00
Akulij
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. 2025-03-24 11:45:22 +08:00
Akulij
128ebcbf8c comment bot.Debug flag 2025-03-20 03:10:02 +07:00
Akulij
14afe8ff4d go fmt 2025-03-20 03:06:10 +07:00
Akulij
ccc98b4298 move out db migtration to separate function 2025-03-20 03:05:18 +07:00
UserA
17e63b59fa Use .env file in docker compose to provide token
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
2024-09-26 11:47:29 +03:00
root
f43969f7c9 Add docker-build caching 2024-08-16 15:14:36 +03:00
akulij
ea4921f3ba Fix typo 2024-08-16 14:58:21 +03:00
akulij
816cd36191 Add channel link button instead of direct link in message 2024-08-16 14:51:42 +03:00