98 Commits

Author SHA1 Message Date
f7ef7f1b64 Separate mutators for article title/desc 2024-06-25 10:22:35 +01:00
bdc32ac5fa simplified + added mutators 2024-06-19 00:37:58 +01:00
745fda9bbe Mutators 2024-06-18 00:25:14 +01:00
f5766e0390 optimising existing code 2024-06-13 23:13:29 +01:00
59062b68a1 description as author was a bad idea 2024-06-13 08:41:05 +01:00
f9bf15758a articles now set author as source description
oppose to the source name
2024-06-13 00:00:29 +01:00
327fa2b215 implement whitelist filters 2024-06-13 00:00:07 +01:00
43ee2992ff reverse articles list so they are in chronological order 2024-06-12 15:36:23 +01:00
a219c75804 track blocked items 2024-06-11 23:56:03 +01:00
84e72adcd3 fix syntax error, missing comma 2024-06-11 20:48:30 +01:00
8febeae74b use external api host 2024-06-11 20:48:06 +01:00
0df89072d6 filter api and external host- 2024-06-11 20:47:48 +01:00
b97e671c8b filters 2024-06-11 20:47:16 +01:00
864f299d9b debug for stream handler 2024-06-11 01:00:29 +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
7e9e60b782 update requirements 2024-03-13 17:24:14 +00:00
0b74be871b use dataclass slots 2024-02-26 22:22:14 +00:00
58eb43a1bf Mute discord logger to INFO level
debug logs from discord.py library are too frequent and long
2024-02-26 22:22:00 +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