Skip to main content

No project description provided

Project description

Privam

privam is a Pypi package that provides a simple way to create and interact with a bot for the Privam service (https://privam.top/).

Installation

You can install privam using pip:

pip install privam

Usage

import privam

def hello_command(message):
    sender = message["sender"]
    print(message)
    bot.send(sender, "Hello, {}!".format(sender))

# Create a new PrivamBot instance with your token
bot = privam.PrivamBot("your-token-here")

# Add the 'hello' command to the bot
bot.add("hello", hello_command)

# Start the bot
bot.socket.wait()

Contributing

Contributions are welcome! Please join vnti.top discord server if you have any suggestions or improvements.

License

This package is open source and available under the MIT License.

Remember to replace "your-token-here" with an actual token in the usage example.

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

privam-1.0.5.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file privam-1.0.5.tar.gz.

File metadata

  • Download URL: privam-1.0.5.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for privam-1.0.5.tar.gz
Algorithm Hash digest
SHA256 c743260f5aa9dc40f65c5e66bb80f60dc96def083759ce85fa23492ecee2a6cb
MD5 e5fd5e1154b75ababa2296543bdc5bc6
BLAKE2b-256 a67f7370868839d5c3f3b08063541443bacd694361617fbf90be64af1d05a2d2

See more details on using hashes here.

Supported by

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