Skip to content
zhywyt edited this page Dec 27, 2025 · 4 revisions

Welcome to the BeetleRunBackEnd wiki!

You can find the docker-compose file of koishi and napcat at those pages.

QQ robot

The blog at:How to use koishi build a qq robot.

napcat

http://:6099

token:1266b8fbe9ed

path at :/home/beetlerun/napcat powered by docker-compose

start

cd /home/beetlerun/napcat
docker-compose up -d

restart

cd /home/beetlerun/napcat
docker-compose restart

update

cd /home/beetlerun/napcat
update_app.sh

I do write a crontab work to auto update this service at every 3 A.M. which means you can not except this guys until the service crashed.

log

docker logs napcat

koishi

http://:5140

path at :/home/beetlerun/koishi powered by docker-compose

start/restart as the same as napcat.

log

At first, you need the id of container. You can get the id with docker ps | grep koishi. The output just like:

49104d5a515d   koishijs/koishi:latest          "/entrypoint.sh yarn…"   2 hours ago   Up 2 hours      0.0.0.0:5140->5140/tcp, [::]:5140->5140/tcp                                                                                             koishi

The first row is the id of koishi container. You just need the front of the id, like 49104. And then catch the log by:

docker logs 49104

tips

What's more, this service without updating.

BeetleRunBackEnd

http://:8000

path at :/home/beetlerun/BeetleRunBackEnd powered by python

start

systemctl start beetleRunBk.service

restart

systemctl restart beetleRunBk.service

log

journalctl -u beetleRunBk.service | less

You can input G to move to the end of the file, input gg to the front of the file. And use j go down, use k move up, use Ctrl-F down page, use Ctrl-B up page.

network

There is a proxy for this compute by zhywyt. If this proxy is useless one day, you need config a new proxy for this two things:

  • system proxy : without systemc proxy, you can not update apt package.
  • docker proxy : without docker proxy, you can not update napcat docker iamge.

system proxy

Config this guy at the file:~/.bashrc, you can find the row like those:

m_proxy="http://<ip>:<port>"
exprot http_proxy=$m_proxy
exprot https_proxy=$m_proxy
exprot ftp_proxy=$m_proxy
exprot no_proxy="localhost"

You need to change the value of m_proxy. After changed this file, you should update you config by run code:source ~/.bashrc.

docker proxy

I create a script to fast change the proxy of docker which site at /home/beetlerun/docker_proxy.sh. You can use it like: Warnning! This command will restart all of your docker service. Be carful!

bash docker_proxy.sh http://<ip>:<port>

Tips: you can find the docker_proxy.sh file at page docker proxy.

Clone this wiki locally