removed ability to change subreddit without restart (cuz broken or something)

This commit is contained in:
2025-07-08 12:30:35 +02:00
parent 1a3a981a99
commit aad562cb2d
-2
View File
@@ -64,8 +64,6 @@ class Bot:
return True
async def update_cfg(self, new_cfg: dict[str, Any]) -> bool:
self.sr = await self.r.subreddit("+".join(self.sr_list))
self.sr_list = new_cfg[CFG_DATA_RE]["subreddits"].split("+")
self.fetch_limit = new_cfg[CFG_DATA_RE]["fetch_limit"]
self.flairs = new_cfg[CFG_DATA_RE]["search_flairs"]
self.aliases = new_cfg[CFG_DATA_RE]["aliases"]