Cobblemon Spawn Notification Discord Integration

模组

· 作者 nekooooooooo

一个简单的外挂/扩展模组,用于连接 tmetcalfe89 的 Cobblemon 生成通知模组和各种 Discord 集成模组

0 本站下载 0 关注 更新于 9 个月前
一键开服(送7天)

Cobblemon 刷怪通知 Discord 集成

Cobblemon Spawn Notification Discord Integration 是 tmetcalfe89 所开发的原版 Cobblemon Spawn Notification Mod 的附加组件/扩展,为多种 Discord 集成模组添加了 Discord 集成支持。

DCIntegration 示例:游戏内

DCIntegration 示例:Discord

目前支持的 Discord 集成模组

*仅限 1.21.1

如何启用

适用于 0.3 及以上版本

现在无需在 spawn_notification.json 中进行任何更改。默认情况下它即可正常工作,但如果您希望它尊重 spawn_notification.json 中的 announceCrossDimensions 设置,请参阅配置部分。

适用于 0.2 及以下版本

目前,仅当 spawn_notification.json 中 announceCrossDimensions 设置为 true 时,该模组才能工作,因为我认为这样最为合理。

要启用它:

  1. 打开 config/ 文件夹内的 spawn_notification.json。
  2. 将 "announceCrossDimensions" 设置为 true。

适用于所有版本且使用 MC2Discord 的情况

  1. 打开 config/ 文件夹内的 mc2discord.toml。
  2. 将 "cobblemon_spawn_notification_discord" 添加到 subscriptions = [...] 部分。

例如:

[Channels]
 [[Channels.Channel]]
  id = 0
  subscriptions = ["info", "chat", "command", "cobblemon_spawn_notification_discord"]
  mode = "WEBHOOK"

配置

本模组的配置文件位于:
config/csn-discord-integration.json

  • bypassCrossDimension
    如果设置为 true,这将忽略 spawn_notification.json 中的 announceCrossDimension 设置,始终向 Discord 广播公告。
    如果设置为 false,它将遵循 announceCrossDimension 中的设置。
    注意: 将此设置为 false 将实质上禁用该模组,除非 announceCrossDimension 也设置为 true。
    默认值: true ⚠ 目前在 0.4 版本中不起作用

  • botName
    设置 Webhook 的显示名称。
    默认值: "Cobblemon Spawn Notification"

  • botAvatarUrl
    设置 Webhook 的头像图片 URL。

命令

  • /csn-discord reload:重新加载配置

依赖项

Cobblemon

Cobblemon Spawn Notification

以下受支持的 Discord 集成模组之一:

致谢

本模组基于 tmetcalfe89 开发的 Cobblemon Spawn Notification 模组。完全归功于他们提供了基础实现。此外,本模组利用了各种 Discord 集成 API 和功能,包括但不限于;ErdbeerbaerLP、DenisD3D、Xujiayao、RiriFa。感谢这些开发者为使此功能成为可能所做的工作。

特别感谢 tmetcalfe89 对本模组的宝贵意见,并允许我使用该模组原始名称作为本模组的名称。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源