https://github.com/programminglaboratorys/nin0lib
python nin0chat API wrapper
https://github.com/programminglaboratorys/nin0lib
api nin0chat python websocket
Last synced: 2 months ago
JSON representation
python nin0chat API wrapper
- Host: GitHub
- URL: https://github.com/programminglaboratorys/nin0lib
- Owner: programminglaboratorys
- License: other
- Created: 2024-10-16T16:29:23.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T06:19:23.000Z (7 months ago)
- Last Synced: 2025-02-08T17:44:35.658Z (4 months ago)
- Topics: api, nin0chat, python, websocket
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
# commandkit
easy tool to parse string to commands and an easy tool to create commandlines
# nin0lib
create nin0chat bots with python!
simple and easy to setup library for https://chat.nin0.dev/## install
```cmd
pip install .
```## example
```py
from nin0lib.bot import Bot, Contextbot = Bot(prefix="c.")
@bot.event
async def on_ready():
print("logged in as", bot.username) # logged in as coolBot@bot.command(aliases=["hi", "hello", "hola"])
async def hello(ctx: Context):
await ctx.send(f"Hello, I'm {bot.username}!")@bot.command()
async def sum(ctx: Context, n1: int, n2: int):
await ctx.send(f"The sum of {n1} and {n2} is {n1+n2}")bot.run("token")
```> [!NOTE]
> replace token with your bot token!check the docs at [nin0.docs](https://github.com/programminglaboratorys/nin0lib/blob/main/nin0lib.docs/README.md)