Giter VIP home page Giter VIP logo

qiandaobot-rs's Introduction

签到 Bot

签到 Bot 提供了向某些烧鸡签到的方法。你可以创建一个频道用于存储消息,本 Bot 会监听频道并对用户发起的 /qiandao 命令进行回复。本 Bot 灵感来自于大烧鸡 乌班 所创造的基于 Python 的纯小亦签到 Bot。

这是本人第一个 Rust 项目,如有不足之处,还请多多指教。

使用方法

  1. 创建一个 Bot,获取其 Token。
  2. 创建一个频道,将 Bot 添加到频道中,并将其设置为管理员。
  3. 获取频道的 ID。
  4. 设置环境变量
  5. 运行程序
环境变量(标记 * 为必须) 用途 示例
CHANNEL_ID* 监听的频道 ID -1001910581529
DATABASE_URL* 数据库 URL,支持 Postgres 和 Sqlite postgresql://qiandaobot:qiandaobot@localhost:5432/qiandaobot
TELOXIDE_TOKEN* Telegram Bot Token
RUST_LOG Log Level info

编译

make build # 编译全部 
make build-qiandaobot # 编译签到 Bot 本体

qiandaobot-rs's People

Contributors

ah-dark avatar dependabot[bot] avatar

Stargazers

酷丁 avatar

Watchers

 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.