https://github.com/aweirddev/alined
Better LINE Bot SDK. Challenge me.
https://github.com/aweirddev/alined
Last synced: about 1 year ago
JSON representation
Better LINE Bot SDK. Challenge me.
- Host: GitHub
- URL: https://github.com/aweirddev/alined
- Owner: AWeirdDev
- License: mit
- Created: 2024-05-16T08:46:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T07:03:58.000Z (about 2 years ago)
- Last Synced: 2025-01-24T12:32:28.750Z (over 1 year ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# alined
LINE Bot SDK for Python, but enhanced and strongly-typed.
```python
from alined import Client
# Make sure to add LINE_CHANNEL_SECRET and-
# LINE_CHANNEL_ACCESS_TOKEN to the env
client = Client()
# Typed decorator of @client.event()
@client.text_message
async def on_message(ctx):
await ctx.send("No thanks. Maybe hello world?")
```
Start the app:
```haskell
$ uvicorn main:client.app --host=0.0.0.0 --port=8080
```
...or in code:
```python
client.run(host="0.0.0.0", port=8080)
```