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 = PrivamBot("your-token-here")
# Add the 'hello' command to the bot
bot.command("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.3.tar.gz
(1.9 kB
view details)
File details
Details for the file privam-1.0.3.tar.gz.
File metadata
- Download URL: privam-1.0.3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2375b7cd09a3a378cecdd408a4204002998579289de28c88f778fbddc430379b
|
|
| MD5 |
e5315a5d17d6296e540ee649c20331e5
|
|
| BLAKE2b-256 |
c9de49eacaf4a3859f1a02aee9277b435a6d44de1963fb8e225925317b613157
|