Skip to content
View BUGJI's full-sized avatar
🐘
👴
🐘
👴

Block or report BUGJI

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
BUGJI/README.md

Fio

用代码表达言语的魅力,用代码书写山河的壮丽。

——— 一言「一言开发者中心」

import requests
import time

def receive_messages(api_url, token):
  last_id = 0
  while True:
      try:
          response = requests.get(f"{api_url}/messages?since={last_id}")
          messages = response.json().get("messages", [])
          for msg in messages:
              print(f"收到消息: {msg['sender']}: {msg['content']}")
              last_id = max(last_id, msg['id'])
          time.sleep(2)

API_URL = "http://voce.bugcode.cc/api"
receive_messages(API_URL, TOKEN)

我常常在想方设法编写这段内容,每次看着别人的简介,总是好奇真的有人想的出来在这里写什么嘛,,

🖨️ 站点详细
介绍 链接
主要站点,集成导航功能 http://bugcode.cc
镜像站点,集成导航功能 http://bugji.github.io
加入我的QQ群 http://qun.qq.com/invite?group_id=835382474
聊天服务器 http://voce.bugcode.cc

Popular repositories Loading

  1. astrbot_plugin_balance astrbot_plugin_balance Public

    通用API余额查询插件

    Python 5 2

  2. vocechat_web_wear vocechat_web_wear Public

    运行在手表浏览器(如Apple Watch)的vocechat网页客户端

    HTML 3

  3. astrbot_plugin_universal astrbot_plugin_universal Public

    万能插件

    Python 2

  4. astrbot_plugin_ql_bilibili_account_manager astrbot_plugin_ql_bilibili_account_manager Public

    对接青龙面板中Bilibili的自动化脚本

    Python 1 2

  5. Langbot_CCB Langbot_CCB Public

    Python

  6. astrbot_plugin_CCB astrbot_plugin_CCB Public

    Python