125 Commits

Author SHA1 Message Date
0df89072d6 filter api and external host- 2024-06-11 20:47:48 +01:00
b97e671c8b filters 2024-06-11 20:47:16 +01:00
15cfd66b69 guid for tracked articles 2024-06-11 01:00:12 +01:00
3c1aebc8c7 send content to channels 2024-06-10 22:46:53 +01:00
4f4d827d3c compatability with api 2024-06-07 17:36:54 +01:00
307d341ec2 fix add & list commands for api changes 2024-03-13 17:24:43 +00:00
0b74be871b use dataclass slots 2024-02-26 22:22:14 +00:00
a9ccf0f791 Greatly improved logging
now using a config file for logging to the terminal and log file

---

Also added custom exception for a missing token.
2024-02-26 18:08:01 +00:00
9a2da70e38 added delete api call for unlink cmd 2024-02-21 23:45:57 +00:00
de1f16549c code simplification
moved format code into properties on the dataclasses.

Added pagesize as a requirement to the formatdata func.
2024-02-19 09:06:21 +00:00
60525599f2 fixed old logs not being deleted
for some reason was checking logs dir for .txt files instead of .log files during the delete function.
2024-02-18 22:30:25 +00:00
9399919b08 Removed unused and commented code 2024-02-18 21:43:28 +00:00
2c83430988 added an exception msg handler in pagination data 2024-02-18 21:41:18 +00:00
f167092510 Fixed an exc where the bot didnt have channel perms 2024-02-18 21:40:56 +00:00
805efd0a60 Merge branch 'main' of https://gitea.corbz.dev/corbz/NewsBot 2024-02-17 19:10:00 +00:00
a0921c1859 working on tasks 2024-02-17 19:09:52 +00:00
1cb599af80 Tidy human readable exception embeds 2024-02-16 00:18:43 +00:00
bec33503b5 added author to followup embed 2024-02-16 00:18:13 +00:00
4e3dc174cb working on new api changes into task 2024-02-14 00:21:09 +00:00
1e35751860 Improve the output message for linking subs 2024-02-13 11:22:48 +00:00
42fab012bc subscription links 2024-02-13 00:08:06 +00:00
59fb6f74d0 subscription relation with subscriptionchannel 2024-02-13 00:07:57 +00:00
45f519535a check if formatdata func is coroutine func 2024-02-13 00:07:38 +00:00
08ba995520 Working on new db model integration 2024-02-11 23:52:32 +00:00
ff617b2006 changed api link to use api host env var 2024-02-07 21:24:28 +00:00
edb485a56d temp code removal while making breaking changes 2024-02-07 21:23:12 +00:00
91077270f7 API host as env var 2024-02-07 21:22:45 +00:00
83a889cf61 Merge branch 'main' of https://gitea.corbz.dev/corbz/NewsBot 2024-02-07 09:25:32 +00:00
dd3b125bc8 logdir handling and double quotes over single 2024-02-07 09:22:26 +00:00
d891ca374b Better logdir handling 2024-02-07 09:22:01 +00:00
df15ad07a5 Reusable aiohttp session 2024-02-07 09:21:13 +00:00
5b8ef98eca placeholder api integration 2024-02-07 01:03:00 +00:00
343767c755 pagination emoji integration 1/? 2024-02-07 01:02:42 +00:00
fb432631d3 API code improvements + docstrings 2024-02-06 23:49:31 +00:00
9031cc90c9 fixed issue with reading boolean env var 2024-02-05 22:25:28 +00:00
a5eb297f1b fixed runtime error regarding unpacking dataset 2024-01-31 11:50:17 +00:00
c785e5eeed API token as environment variable
can be included in .env as API_TOKEN
2024-01-31 11:49:49 +00:00
8c35f42a0e Improved pagination view
Removed double API call
added pagesize to API call
added calc_dataitem_index method for properly calculating the index of each data item, given the current page.
2024-01-30 19:29:42 +00:00
f2e10e6584 Merge branch 'main' of https://gitea.corbz.dev/corbz/NewsBot 2024-01-30 13:54:38 +00:00
32df589ed2 API Integration 2024-01-30 13:53:04 +00:00
93fe4ebfce Pagination View 2024-01-30 13:51:54 +00:00
a3850a2646 API Interactions 2024-01-30 13:51:32 +00:00
d8e6e5ba06 development activity status
indicates when the bot is in development mode
2024-01-30 13:51:13 +00:00
1d8ad24569 Merge branch 'main' of https://gitea.corbz.dev/corbz/NewsBot 2023-12-27 09:45:28 +00:00
8421e956a7 Write unittests 2023-12-27 09:44:07 +00:00
b837c54b3f tasks now trigger on set interval
interval is every 10 minutes per day, exactly as the final digit of the minute is 0
2023-12-26 23:46:54 +00:00
e8d13ae26b Created Followup and move functions to feeds.py 2023-12-24 23:01:48 +00:00
94b7972a38 incomplete commit, used to work on other machine 2023-12-24 16:40:04 +00:00
e95edf08df command perms 2023-12-21 18:27:30 +00:00
5b8be819e3 Linked feed channels to sent articles 2023-12-21 11:00:02 +00:00