43 Commits

Author SHA1 Message Date
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
akulij
513fd684e4 Reset user state on /start commandr local commits) 2024-08-13 06:21:45 +03:00
akulij
82c16a4f53 Fix: app crash if no arguments passed to /secret 2024-08-13 06:21:04 +03:00
akulij
aa9f81eaab Do not checkout in CD workflow 2024-08-13 06:14:56 +03:00
akulij
0ec54e3a6e Add basic CD workflow 2024-08-13 06:12:49 +03:00
akulij
0b378236af Fix: answer to callback (to stop buttons blinking) 2024-08-13 04:16:43 +03:00
akulij
a2348a714c Fix: allow to leave a ticket for admins 2024-08-13 03:27:16 +03:00
akulij
88980bb81c Reuse existing image instead of uploading every time new 2024-08-13 03:15:59 +03:00
akulij
5e23b05631 process updates using goroutines 2024-08-13 01:26:08 +03:00
akulij
3b7d3ed3b8 Fix to use CGO for go-sqlite3 2024-08-13 00:32:36 +03:00
akulij
5553ec502d Create gitignore 2024-08-13 00:23:05 +03:00
akulij
104f28b3bc Add picture caching 2024-08-13 00:22:28 +03:00
akulij
9d8b212d06 Containerize project 2024-08-13 00:02:58 +03:00
akulij
8ca332a0f0 Fix channel id changing 2024-08-12 22:57:01 +03:00
Akulij
c2e3ff8e74 Create start script 2024-08-08 00:40:41 +03:00
Akulij
f082ebadff Make app 2024-08-08 00:40:19 +03:00
Akulij
28b54f9cd9 implement base telegram bot (echo) 2024-05-04 20:55:52 +03:00