Coder Social home page Coder Social logo

tgbot-randomword's Introduction

一个简单的tgbot

使用了最简单的依赖,并且简单包装 https://github.com/mzzsfy/node-telegram-bot-wrapper

该bot实现了一些简单的功能

  • 根据自定义命令返回随机内容
  • 自定义词库内容
  • 自定义命令对应词库
  • 动态添加词库

bot支持的内容

  • 纯文本
  • 转发的消息
  • 贴图
  • 图片,视频等媒体文件

部署

首先确保有node,并且npm可用,然后执行如下代码

npm install

export TGBOT_TOKEN=你的botToken
export TGBOT_SUPER_ADMIN_ID=你的tgId
#以上2条可在config/tgbot.js手动修改,不使用环境变量

node app

tgbot-randomword's People

Contributors

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