Python API Wrapper for Nertivia to make bots
Project description
Nertivia.py
This is the official Python API Wrapper for the Nertiva chat platform.
Support Server: https://nertivia.net/i/npy
Installation
You can install nertivia.py
with pip using
pip install nertivia.py
or pip3 install nertivia.py
once completed make sure you import it to your Python file with import nertivia
.
Example Bot
import nertivia
token = ""
client = nertivia.Bot(debug=False) # Change to True to enable viewing of events, information
@client.event
async def on_ready():
print("Logged in as", client.user.username)
@client.event
async def on_quit():
print("I'm disconnected!")
@client.event
async def on_status_change(data):
print(data)
@client.event
async def on_message(message):
if message.content.startswith("!ping"):
await message.channel.send("pong")
client.login(token)
Planned changes to Nertivia.py
- Add support for commands for better organisation
- Sub folder for events and commands
- Write docs for Nertivia.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nertivia-0.2.8.tar.gz
(35.5 kB
view hashes)
Built Distribution
nertivia-0.2.8-py3-none-any.whl
(46.1 kB
view hashes)