Giter Site home page Giter Site logo

midymidytgbot's Introduction

midymidytgbot

MidyMidy社区的bot,用于在IRC频道和Telegram群之间传话。

目前做得差不多了,正在运行。放在这里,供想要写Bot的人参考。

其中依赖的CL-JSON魔改过,因为原版有bug,已提交pull request,但是这个开发者早就不理这个项目了。

如果有需求,就提ISSUE吧,若是我闲得慌,可能会做。

使用方法

  • 下载一个Steel Bank Common Lisp,(Debian: sudo apt install sbcl)
  • 开启你的Bot的消息访问权限,然后把它加到群里。
  • 观察start_example.lisp文件,创建你自己的启动配置文件
  • 在irc那一栏中填入你bot的在IRC上的名字,和要加入的IRC频道(只能填一个)
  • 在tg那一栏中,填入你Telegram Bot的ID,和bot<token>,如:bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11,以及群号(是一个负数)
  • 执行命令:sbcl --load start_example.lisp
  • 支持多个例程,需要你创建多个“bot”
  • 注意:如果Telegram群由普通群转换为超级群(似乎超级群的群号更长,像是某种掩码),群的id会变化,于是需要重新设置

TODO

  • 寻找bug。

midymidytgbot's People

Contributors

leosongwei avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.