housekeeping: more cleanup of stale code and files. cleaned up TODO (and updated it)

This commit is contained in:
cottongin 2025-02-25 05:27:12 -08:00
parent bf4550ef53
commit 39fd70cba5
Signed by: cottongin
GPG Key ID: A0BD18428A296890
3 changed files with 24 additions and 38 deletions

38
TODO.md
View File

@ -1,16 +1,26 @@
## TODO ## TODO 🚧
- Better, more clear, logging - ⭐️ Better, more clear, logging
- Add a help command - Notification system for stream admin (and bot admin)
- Add commands to control the stream connection from IRC - Send notification if unexpected change in metadata
- Also to start/stop the service entirely - Loss of network/stream
- Add a version command - Live notifications (alt. for PodPing ish)
- Add a list of commands to the README - Implement `quiet mode`
- ⭐️ Add whitelist feature
- Add commands:
- To check the status of the bot
- To check the status of the stream
- To check the status of the IRC connection
- Version command
- Enable joining multiple channels with a single bot instance - Enable joining multiple channels with a single bot instance
- Add a command to force the bot to reconnect to the stream
- Add a command to check the status of the bot ## Complete! 🎉
- Add a command to check the status of the stream
- Add a command to check the status of the IRC connection - ✅ Move this to a TODO.md file 😊
- Add a command to check the status of the bot - 🟢 Added commands:
- Add a command to check the status of the stream - ✅ Add `quiet mode` relevant commands
- Move this to a TODO.md file :) - ✅ Add a help command
- ✅ To control the stream connection from IRC
- ✅ To start/stop the service entirely
- ✅ To quiet/unquiet the metadata announcing
- ✅ Add a list of commands to the README

View File

@ -1,12 +0,0 @@
#!/usr/bin/env python3
import asyncio
from main import run_multiple_bots
CONFIG_FILES = [
'config_station1.yaml',
'config_station2.yaml',
'config_station3.yaml'
]
if __name__ == "__main__":
asyncio.run(run_multiple_bots(CONFIG_FILES))

12
main.py
View File

@ -11,7 +11,6 @@ import argparse
import yaml import yaml
from pathlib import Path from pathlib import Path
from typing import List, Optional from typing import List, Optional
import sys
import inspect import inspect
import socket import socket
import tempfile import tempfile
@ -59,17 +58,6 @@ def silent_client_init(self, *args, bot_name: str = None, config: dict = None, *
original_init = Client.__init__ original_init = Client.__init__
Client.__init__ = silent_client_init Client.__init__ = silent_client_init
import asyncio
import aiohttp
import time
import argparse
import yaml
from pathlib import Path
from typing import List, Optional
import sys
import inspect
import socket
import tempfile
class RestartManager: class RestartManager:
"""Manages restart requests for the bot. """Manages restart requests for the bot.