Skip to main content

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


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 details)

Uploaded Source

Built Distribution

nertivia-0.2.8-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file nertivia-0.2.8.tar.gz.

File metadata

  • Download URL: nertivia-0.2.8.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for nertivia-0.2.8.tar.gz
Algorithm Hash digest
SHA256 11b8366c81cd725432942897e448779535ba3ad55e95c25269f80ee89b8d8139
MD5 41177a09d0a494d5d6f3073e8b45885a
BLAKE2b-256 a0dbb62e6b2c922c9dbe7de68c1d775c4c09330035624c1ab5be4ea2bce603ef

See more details on using hashes here.

File details

Details for the file nertivia-0.2.8-py3-none-any.whl.

File metadata

  • Download URL: nertivia-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for nertivia-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 dc1990de12b82e6aaea2ca762f66b7b961e8013811907249f59d342270f50c6e
MD5 ecca6616a73d413c66c945d7bf76470e
BLAKE2b-256 0c1fcd4b6e0cdd2a9e444f8778266e4da8a2a44367ee52d2c04102b0939440c4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page