Giter VIP home page Giter VIP logo

goedge's Introduction

Goedge Telegram Bot

GoEdge 是一个开源的 CDN 集群管理套件:https://github.com/TeaOSLab/EdgeAdmin

这是一个适用 GoEdge API 的 Telegram Bot,它可以用于查询数据,和一些简单管理。

开发进度

  • /start 关于这个 Bot
  • /goedge GoEdge 的简要资讯
  • /d15 15 天流量统计图
  • /h24 24 小时流量统计图
  • /node_cpu 集群节点 CPU 占用统计图
  • /node_memory 集群节点记忆体占用统计图
  • /node_load 集群节点负载统计图
  • /nodelist 列出所有节点

Start

1. 配置 GoEdge API

请阅读官方 Docs 启用 HTTP API: https://goedge.cn/docs/API/Settings.md

2. 创建 GoEdge AccessKey / AccessKeyId

  • 创建新系统用户(可选)
  • 创建 API AccessKey

image

3. 配置 config.json

  • 重新命名 config.example.jsonconfig.json
{
    "bot_token": "123456:abcdefgabcdefg",   // Telegram Bot Token
    "host": "http://goedge.test.com:8080",  // HTTP API
    "auth": {
        "type": "admin",      // 毋需修改
        "accessKeyId": "",    // 上面申請的 accessKeyId
        "accessKey": ""       // 上面申請的 accessKey
    }
}

4. Run

python3 main.py

goedge's People

Contributors

arsfy avatar

Forkers

yangmain

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.