Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
/ coolq-bot-js Public archive

a chatbot based on CoolQ HTTP plugin and Javascript

License

Notifications You must be signed in to change notification settings

iamNCJ/coolq-bot-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QQ Chatbot - based on CoolQ HTTP plugin and JavaScript

No Longer Working!!! Due to changes in policy, all QQ robots are banned now, and so does CoolQ, which is the dependency of this repo. Hence, this repo can no longer work.

Functions

  • super repeater
  • command
    • add keyword response
      • when bot hears about keyword he will respond the response
    • del keyword response
      • delete the corresponding response
    • save
      • save current data into data.json
      • will be run automatically every 5 minutes
    • bullshit theme
    • soup, love, etc.
  • Python Interpreter
    • Using PyJS backend
    • forbids loop in case of infinite loop

Deploy

  • Set post_url in HTTP Plugin
git clone https://github.com/iamNCJ/coolq-bot-js.git
cd coolq-bot-js/bot/
npm install
npm start

Using Docker

Set post_url in HTTP Plugin

git clone https://github.com/iamNCJ/coolq-bot-js.git
cd coolq-bot-js/
docker build -t bot .
docker run -d -p 8080:8080 bot

You can attach volumes or bind disks into the container so that you can have your data stored outside the container or extract it

Also, it's better to tune your container's time zone to make logs more readable

Reference

https://koishi.js.org/

https://github.com/yzyzsun/PyJS

https://github.com/suulnnka/BullshitGenerator

https://shadiao.app/

About

a chatbot based on CoolQ HTTP plugin and Javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published