ircradio/ircradio/__init__.py

9 lines
229 B
Python
Raw Normal View History

import os
from typing import List, Optional
2021-06-17 00:27:35 +01:00
import settings
2021-06-17 00:27:35 +01:00
with open(os.path.join(settings.cwd, 'data', 'agents.txt'), 'r') as f:
user_agents: Optional[List[str]] = [
l.strip() for l in f.readlines() if l.strip()]