Code Monkey home page Code Monkey logo

skypeai's Introduction

SkypeAi简介

SkypeAi能在大陆无需魔法(VPN)即可访问微软NewBing服务。国内可直接访问,基本兼容微软NewBing所有功能。无需使用VPN即可接入NewBing到微信或者QQ等聊天软件,实现聊天机器人功能!

安装

git clone https://github.com/Miagz/SkypeAi.git

python3 -m pip install -r requirements.txt

需求

  • python3.8+
  • 用于newBing测试资格
  • 仅需微软账号密码即可使用

如何使用

SkypeAi拥有Web api模式以及终端命令行模式

在config.yaml输入微软账号和密码

Web api模式

web API模式 默认端口为7777

python3 Index.py --web

设置api端口

python Index.py --web -p 7777

终端命令行模式

启动命令行模式

python3 Index.py --shell

命令行快捷启动

echo "alias ai(设置的快捷方式名)='python3 your_file_path/Index.py --shell'" >> ~/.bashrc(zsh shell下写入到 ~/.zshrc)

终端命令行模式-功能

  • 会话模式| 会话模式分别为平衡模式创造模式精确模式 默认情况下为平衡模式,输入1、2、3分别切换至平衡模式创造模式精确模式,也可以直接输入需要的模式进行切换 Alt text

  • 会话列表| 输入会话列表 or session list可查看skype会话列表(只能查看前十行)

  • 创建新会话| 输入创建会话 or new session可创建新会话

  • 切换会话| 输入切换会话 or use 会话名可切换会话

  • 删除会话 | 输入删除会话 or delete session可删除会话

  • 退出会话 | 输入quit or by or exit可退出会话

Demo

Alt text

二次开发

1、使用SkypeAi 的web api模式,接入NewBing到微信或者QQ等聊天软件,实现聊天机器人功能 Alt text 2、直接copy SkypeAi文件和skpy文件夹(skpy库我稍微修改了一下)到自己项目中接入NewBing,进行二次开发。

skypeai's People

Contributors

miagz avatar

Stargazers

hirak0 avatar  avatar  avatar  avatar  avatar  avatar agtian avatar  avatar swordtalk avatar loobug avatar

Watchers

 avatar

skypeai's Issues

AttributeError: 'NoneType' object has no attribute 'text'

平衡模式~ >早上好
Traceback (most recent call last):
File "E:\code\skyAI\Index.py", line 24, in
skype.Skype_shell()
File "E:\code\skyAI\SkShell.py", line 46, in Skype_shell
ai.get_message()
File "E:\code\skyAI\SkypeAi.py", line 48, in get_message
oktext = soup.find("bing-response").text.strip().replace("blush","").replace("smile","").replace("wink","").replace("grin","").replace("感谢您使用必应搜索引擎。","").replace("我是必应,","").replace("感谢您继续使用必应搜索引擎。","").replace("•
Bing: ","").replace("这是Bing。","")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'text'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.