Giter Site home page Giter Site logo

ai_server_agent's Introduction

AI Server Agent

子服务器AI助手,实现自然语言对子服务器进行监控和管理。如:部署释放云服务器,启停云服务器,监控游戏服务器状态,启动等。

本项目集成了kook api服务,阿里云api服务,openai服务。

WIP

key相关

阿里云 access key

kook开发者中心

openai key

首次启动流程:

检查当前是否存在名称为game-server的阿里云服务器

如果存在就上报当前服务器状态,退出启动流程

否则检查当前是否存在名称为game-template的阿里云启动模板

如果存在就使用这个模板进行新建服务器

如果不存在就提示用户新建模板,退出启动流程

检查当前是否存在名称为game-data的阿里云盘

如果不存在就提示用户创建云盘

如果存在就使用game-template模板创建新服务器

挂载game-data云盘到game-server服务器

等待服务器启动完成

监控服务开启服务器流程

检查名称为game-server的阿里云服务器是否存在

如果不存在则提示启动失败

如果存在则轮询检查服务器状态,超时时间5分钟

如果在运行中就提示服务器启动成功,提示用户当前服务器的ip和实例状态

如果在启动中就轮询到启动完成

如果停机中就轮询到已停机

如果已停机就调用启动服务器,继续轮询

监控服务器关闭服务器流程

检查名称为game-server的阿里云服务器是否存在

如果不存在则提示停止失败

如果存在则轮询检查服务器状态,超时时间5分钟

如果在运行中就停止服务器,继续轮询

如果在启动中就轮询到启动完成

如果停机中就轮询到已停机

如果已停机就提示用户已关闭服务器

监控服务检查服务器状态流程

ai_server_agent's People

Contributors

skywalkerdarren avatar

Stargazers

 avatar

Watchers

 avatar Kostas Georgiou avatar

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.