forked from hkc/mastoposter
Changed folder name +TODO
This commit is contained in:
parent
99e982786c
commit
a8b413a632
|
@ -0,0 +1,6 @@
|
||||||
|
[integrations,core] Add database support so remote messages are stored and can be used to reply to them
|
||||||
|
[integrations,discord] Add Discord functionality
|
||||||
|
[core] Somehow find a way to get your user ID by token
|
||||||
|
[core] Maybe get rid of `main.list` field and create one automatically on a startup?
|
||||||
|
[integrations] Add support for shellscript integration
|
||||||
|
[integrations,telegram] Add formatting option
|
|
@ -2,11 +2,11 @@
|
||||||
from asyncio import run
|
from asyncio import run
|
||||||
from configparser import ConfigParser
|
from configparser import ConfigParser
|
||||||
|
|
||||||
from mastoreposter.integrations.telegram import TelegramIntegration
|
from mastoposter.integrations.telegram import TelegramIntegration
|
||||||
from mastoreposter.sources import websocket_source
|
from mastoposter.sources import websocket_source
|
||||||
from typing import AsyncGenerator, Callable, List
|
from typing import AsyncGenerator, Callable, List
|
||||||
from mastoreposter.integrations.base import BaseIntegration
|
from mastoposter.integrations.base import BaseIntegration
|
||||||
from mastoreposter.types import Status
|
from mastoposter.types import Status
|
||||||
|
|
||||||
|
|
||||||
async def listen(
|
async def listen(
|
|
@ -1,6 +1,6 @@
|
||||||
from abc import ABC, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
from mastoreposter.types import Status
|
from mastoposter.types import Status
|
||||||
|
|
||||||
|
|
||||||
class BaseIntegration(ABC):
|
class BaseIntegration(ABC):
|
|
@ -3,8 +3,8 @@ from html import escape
|
||||||
from typing import Any, List, Mapping, Optional, Union
|
from typing import Any, List, Mapping, Optional, Union
|
||||||
from bs4 import BeautifulSoup, Tag, PageElement
|
from bs4 import BeautifulSoup, Tag, PageElement
|
||||||
from httpx import AsyncClient
|
from httpx import AsyncClient
|
||||||
from mastoreposter.integrations.base import BaseIntegration
|
from mastoposter.integrations.base import BaseIntegration
|
||||||
from mastoreposter.types import Attachment, Status
|
from mastoposter.types import Attachment, Status
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
|
@ -3,7 +3,7 @@ from typing import AsyncGenerator
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
|
|
||||||
|
|
||||||
from mastoreposter.types import Status
|
from mastoposter.types import Status
|
||||||
|
|
||||||
|
|
||||||
async def websocket_source(url: str, **params) -> AsyncGenerator[Status, None]:
|
async def websocket_source(url: str, **params) -> AsyncGenerator[Status, None]:
|
Loading…
Reference in New Issue