F.R.I.D.A.Y
the next generation artificial intelligence bot after Jarvis. in this vision, some improvements were made:
- More robust;
- Connect to uranus;
- Mission support, I can add missions to Friday;
- Learnable, Friday supports learning new things with mental;
- More..
Friday based on uranuspy.
You can register a robot account on http://g.manaai.cn, then you can use the bot user name and password to connect uranuspy:
from uranuspy.im.models import ChatMessage, ContactChat, User
from uranuspy.im.client import ChatClient
client = ChatClient("bot", "xxx")
def hanlde_txt_msg(
msg: ChatMessage, contact: ContactChat, myself: User, client: ChatClient
):
"""
Main logic to process the received message
"""
print(f"Received chat message: {msg} {myself}")
talk_to = msg.fromId
from_talk = msg.text
print(myself.user_nick_name, from_talk, msg.text)
if from_talk != None:
if contact.isGroup:
if f"@{myself.user_nick_name}" in from_talk:
return "我在呢~", myself
else:
return "测试消息,这是echo测试", myself
@client.on_txt_msg
def on_txt_msg(
msg: ChatMessage, contact: ContactChat, myself: User, client: ChatClient
):
return hanlde_txt_msg(msg, contact, myself, client)
if __name__ == "__main__":
client.run_forever()
Updates
- 2021.11.14: Add new Siren client support, it now can be connected with Siren client;
Requirements
For ubuntu setup simply:
pip install -r requirements.txt
If on windows, for some package might not easy to install, like PyAduio, it can be installed via pipwin:
pip install pipwin
pipwin install pyaudio
Metadata
Release files for uranuspy 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| uranuspy-0.0.7.tar.gz | 29.9 kB | Without provenance | Details for uranuspy-0.0.7.tar.gz |
Release files / uranuspy-0.0.7.tar.gz
| Download URL | uranuspy-0.0.7.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7b05721cd80c58e6bbfd81a759ad133ff31753034c27da3b4f47a1987826c01
|
|
BLAKE2b-256 checksum How to use checksums |
26d6bb66315d74614db42580ac3e569b43f82905da8c93b8198da2febfc13e31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.14
|
Security for uranuspy 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.