Dischat
一款将 Minecraft 聊天与 Discord 频道连接的模组。
该模组还包含各种可从 Discord 使用的命令。
设置方法:
- 在服务器上安装模组并启动服务器
- 找到配置文件
- 将你的机器人令牌(bot token)复制粘贴到标有
#botToken= 的行中
- 复制你希望链接的 Discord 服务器 ID 和频道 ID,并将它们粘贴到配置文件中对应的行里
- 要在 Discord 中获取 ID,请启用开发者模式
- 重启服务器,一切即可正常运行
注意:
你需要已经在目标服务器中拥有一个 Discord 机器人才能使其正常工作。
Discord 机器人需要启用 MESSAGE_CONTENT 和 GUILD_MEMBERS 意图!
命令
可在 Discord 中使用的命令:
- /help ------- 列出所有 Discord 命令
- /list ------- 列出所有在线玩家
- /team ------- 列出服务器上的队伍或列出某队伍中的玩家
- /version ---- 显示模组和 Minecraft 的版本
管理员命令(用于 Discord)
- /tp -------- 传送一名玩家
- /pos ------- 获取一名玩家的位置
- /kickMC ---- 踢出一名玩家
- /gamemode -- 更改一名玩家的游戏模式
- /whitelist - 管理白名单中的用户
这些命令不使用 Discord 斜杠命令系统,而是在交换聊天消息的同一频道中运行
可在 Minecraft 中使用的命令(需要 OP 等级 3/管理员权限)
/dischat reload ------- 重新加载 Discord 机器人
/dischat auth --------- 授权一名 Discord 用户在 Discord 上使用管理员命令(提供其 Discord ID)
/dischat unAuth ------- 移除已授权的 Discord 用户
/dischat status ------- 更改机器人的当前状态
Dischat
A minecraft mod that connects minecraft chat with a discord channel.
This mod also includes various commands that can be used from discord.
how to set up:
- Install the mod on you server and start the server
- Find the config file
- Copy and paste you bot token into the line that says
#botToken=
- Copy the ID of the discord server and the channel that you want to link to and paset them in the corresponding line in the config file
- To obtain ID's on discord enable developer mode
- Restart your server and all should work
note:
You need to allready have a discord bot in the target server for this to work.
Discord bots requires the MESSAGE_CONTENT and GUILD_MEMBERS intents!
Commands
Commands that can be used in discord:
- /help ------- List all commands for discord
- /list ------- List all player that are online
- /team ------- List teams on the server or list players on a team
- /version ---- Display the version of the mod and minecraft
moderator commands for discord
- /tp -------- Teleport a player
- /pos ------- Get the position of a player
- /kickMC ---- Kick a player
- /gamemode -- Change the game mode of a player
- /whitelist - Manage who is on the whitelist
Theese do not use the discord slash command system and instead are run in the same channel where chat messages are exchaned
commands that can be used in minecraft (requires op level 3/ADMIN)
/dischat reload ------- reload the discord bot
/dischat auth --------- authorize a discord user to use moderator commands on discord(provide their disocrd id)
/dischat unAuth ------- remove an authorized discord user
/dischat status ------- change the current status of the bot
评论 0
登录后参与评分
还没有评论,来抢沙发吧