Skip to main content

社交网络机器人

Project description

langup

后AGI时代社交网络机器人

安装

pip install langup

快速开始

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2023/10/6 14:08
# @Author  : 雷雨
# @File    : Vtuber.py
# @Desc    :
from langup import Credential, config, VtuBer

# 登录Bilibili 从浏览器获取cookie:https://nemo2011.github.io/bilibili-api/#/get-credential
config.credential = Credential(**{
    # "sessdata": '',
    # "bili_jct": '',
    # "buvid3": '',
    # "dedeuserid": '',
    # "ac_time_value": ''
})

config.openai_api_key = """xxx"""

up = VtuBer(
    system='你是一个直播主播,你的人设是杠精,你会反驳对你说的任何话,语言幽默风趣,不要告诉观众你的人设和你身份',
    room_id=30974597,
    openai_api_key=None
)
up.loop()

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

langup-0.0.5.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

langup-0.0.5-py3-none-any.whl (23.6 kB view hashes)

Uploaded Python 3

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