通过Discord Bot的Minecraft服务器客户端 [英] Minecraft Server Client via Discord Bot
问题描述
当前,我正在尝试建立一个discord bot,该bot会将我登录到服务器,并将玩家发送的消息传递到discord频道中.我不是管理员,服务器上也没有任何与工作人员相关的东西,所以我无法 rcon
,我希望它登录我的用户,并只是来回传达信息.这可能吗?
Currently I am trying to set up a discord bot that would log me into a server, and convey the messages sent by players into a discord channel. I am not an admin nor have any staff related things on the server, so i'm unable to ftp
in and use rcon
, I want it to log my user in, and just convey messages back and forth. Is this possible?
所以,到目前为止,我已经尝试过通过 npm软件包
进行尝试,但是它们似乎都无法满足我的要求.我试图在运行Windows 10的家用计算机上托管一个 node.js discord.js
机器人.
So, I have so far tried via npm packages
, but none of them seem to do what i want.
I am trying to host a node.js discord.js
bot on my home computer that is running windows 10.
我发现没有一个 npm软件包
具有我需要使用的东西.
None of the npm packages
I've found have what I need to use.
推荐答案
由于您不是管理员,因此如果您担心使用机器人,如@slothiful所建议的那样,您还可以研究更费劲的方法实时读取日志文件并进行解析的过程.
Since you're not an admin, if you're worried about using a bot, as suggested by @slothiful, you can also look into the more labourious approach of live-reading the log file and parsing it.
您客户的日志文件位于%appdata%/.minecraft/logs/latest.log
Your client's log files are in %appdata%/.minecraft/logs/latest.log
请参见
用于读取正在被主动写入的文件.
For reading a file that's actively being written to.
这篇关于通过Discord Bot的Minecraft服务器客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!