|
c5f4b66d25
|
Add a dockerfile and statically link everything
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 12:27:15 +05:30 |
|
|
fbda01b355
|
Add a nice README
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 11:52:47 +05:30 |
|
|
278a256d64
|
Add some comments
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 11:45:19 +05:30 |
|
|
a8bde2f198
|
License under AGPL
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 11:36:32 +05:30 |
|
|
eb7f3b76c6
|
Beautify the message sent
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 11:30:18 +05:30 |
|
|
e8efd87f71
|
Modify the functions to reflect the change in schema
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 09:50:07 +05:30 |
|
|
2dea576b58
|
Add a handler to cleanup old data
Also realign functions
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 09:44:57 +05:30 |
|
|
a87f37f689
|
Use Env variables for database
This will enable us to use postgres/sqlite without any code changes
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 09:36:04 +05:30 |
|
|
869820bc19
|
Add support for albums
This was hard
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-11 08:26:59 +05:30 |
|
|
b27f910362
|
Lock admin actions behind a env variable
ADMIN_ID is comma-separated values of the user-ids of admins who will have access to /ban
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-10 23:30:15 +05:30 |
|
|
5bf33a49ea
|
Introduce Rate-Limiting
Ratelimits a user for 30mins if they send more than 20 requests in a minute, also a schema change
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-10 23:24:48 +05:30 |
|
|
04f6bc054b
|
Drop stray file
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 23:20:55 +05:30 |
|
|
ba91151766
|
Add a check for non-existent hash
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 23:18:48 +05:30 |
|
|
9c41348338
|
Implement banning unwanted users
People might use this bot on very gore/spam this repeatedly, we can block off them
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 23:15:02 +05:30 |
|
|
d1bbc59e27
|
Handle stickers as well
Also move the deeplinks to elif
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 22:50:21 +05:30 |
|
|
5dc6903291
|
Handle deeplinks and respond from database
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 22:47:07 +05:30 |
|
|
5be6fb18ba
|
Use elif blocks instead of falling through each if
It cannot be a video and photo at the same time
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 22:26:19 +05:30 |
|
|
6c0db09773
|
Move the censoring logic to else clause
We dont ideally need this check when there is just plaintext
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 22:25:11 +05:30 |
|
|
2f859b5735
|
Perform a nice cleanup of the mess
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 22:10:27 +05:30 |
|
|
63e08ca1c6
|
Prepare for code cleanup and deeplink
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 21:11:01 +05:30 |
|
|
b92cce96b5
|
Use PascalCase instead of SNAKE_CASE
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 20:49:18 +05:30 |
|
|
373d3da86f
|
Use token from env
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 20:17:19 +05:30 |
|
|
4efe8e3428
|
Silence gcunsafe warnings
Harmless since we dont use threading
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 20:03:01 +05:30 |
|
|
c3268476bd
|
Insert the hash as well to db
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 20:00:05 +05:30 |
|
|
298431fe38
|
Insert data flowing into the db
* File hash is still broken, we will do it now
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-09 19:56:23 +05:30 |
|
|
b7b94085b3
|
Add db stuff
Just a basic ORM structure with norm
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-07 23:11:36 +05:30 |
|
|
00af7346c1
|
gitignore: Ignore the db and binary
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-07 23:11:03 +05:30 |
|
|
1221f6a5a4
|
Add a very basic hash generator
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-07 17:15:56 +05:30 |
|
|
3b1d344fb9
|
Root Commit
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
|
2022-04-07 16:21:02 +05:30 |
|