Skip to main content

A Python wrapper for the Nertivia API

Project description

Nertivia4PY

A Python wrapper for the Nertivia API.
Support Nertivia server : https://nertivia.net/i/nertivia4py

Install

pip install nertivia4py

Example

import nertivia4py

token = "TOKEN_HERE"
prefix = "!"

bot = nertivia4py.Bot(prefix)

@bot.event
def on_success(event):
    print("Connected!")

@bot.command(name="ping", description="Ping command.")
def ping_command(message, args):
    message.reply("Pong!")

bot.run(token)

For more examples, take a look at the examples folder in the github repo.

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

nertivia4py-1.0.8.tar.gz (12.4 kB view hashes)

Uploaded Source

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