Skip to content

Commit

Permalink
chore: prepare release 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nwesterhausen committed Jun 12, 2024
1 parent 3fd9f31 commit 178cbb2
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Metadata/DiscordConnector-Nexus.readme
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DISCORD CONNECTOR - 2.2.2
DISCORD CONNECTOR - 2.3.0
Connect your Valheim server to a Discord Webhook. Works for both dedicated and client-hosted servers. (Visit the github repo for a how-to guide.)

:: REQUIREMENTS ::
Expand Down
19 changes: 8 additions & 11 deletions Metadata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,17 @@ See the [current roadmap](https://github.com/nwesterhausen/valheim-discordconnec

## Abridged Changelog

### Version 2.2.2
### Version 2.3.0

Features

- add `%JOIN_CODE%` variable which will show the join code if crossplay is enabled
- add `%NUM_PLAYERS%` variable which will show the number of online players
- support up to 16 additional webhooks (adds a new config file, `discordconnector-extraWebhooks.cfg`)
- support restricting/allowing Discord mentions in messages (`@here` and `@everyone` are disabled by default -- possibly a breaking change)
- custom variables are now evaluated again for any embedded variables in the message
- added new configuration values to allow specifying a custom username and avatar for each webhook (to override the Discord webhook settings)
- added a configuration value that sets a default username for all webhooks (if not overridden)

Fixes

- updated the documentation to reflect how `%WORLD_NAME%`, `%PUBLIC_IP%`, and `%DAY_NUMBER%` can be
in any messages and be replaced.

Note: At server startup, some variables may not be available. They all should be available when server
is launched, but the join code may take a bit longer to display -- more testing is needed to know exactly
how much extra time it needs on average. If it is consistently unavailable, please file an issue and we
can come up with either a delayed startup message or another event that fires when the code becomes not
empty or changes.
- no longer relies on the `ZNet.GetPublicIP()` method and instead gets the public IP on its own at server start.
- `%NUM_PLAYERS%` proactively subtracts 1 if the event is a player leaving
2 changes: 1 addition & 1 deletion Metadata/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "DiscordConnector",
"version_number": "2.2.2",
"version_number": "2.3.0",
"website_url": "https://discord-connector.valheim.games.nwest.one/",
"description": "Connects your Valheim server to a Discord webhook. Works for both dedicated and client-hosted servers.",
"dependencies": [
Expand Down
8 changes: 1 addition & 7 deletions Metadata/thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ schemaVersion = "0.0.1"
[package]
namespace = "nwesterhausen"
name = "DiscordConnector"
versionNumber = "2.2.2"
versionNumber = "2.3.0"
description = "Connects your Valheim server to a Discord webhook. Works for both dedicated and client-hosted servers."
websiteUrl = "https://discord-connector.valheim.games.nwest.one/"
containsNsfwContent = false
Expand All @@ -24,9 +24,3 @@ target = "./"
[publish]
repository = "https://thunderstore.io"
communities = ["valheim"]
categories = [
"hildirs-request-update",
"utility",
"server-side",
"ashlands-update",
]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![CodeQL](https://github.com/nwesterhausen/valheim-discordconnector/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/nwesterhausen/valheim-discordconnector/actions/workflows/codeql-analysis.yml)
[![Build](https://github.com/nwesterhausen/valheim-discordconnector/actions/workflows/dotnet.yml/badge.svg)](https://github.com/nwesterhausen/valheim-discordconnector/actions/workflows/dotnet.yml)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/nwesterhausen/valheim-discordconnector?label=Github%20Release&style=flat&labelColor=%2332393F)](https://github.com/nwesterhausen/valheim-discordconnector/releases/latest)
[![Thunderstore.io](https://img.shields.io/badge/Thunderstore.io-2.2.2-%23375a7f?style=flat&labelColor=%2332393F)](https://valheim.thunderstore.io/package/nwesterhausen/DiscordConnector/)
[![Thunderstore.io](https://img.shields.io/badge/Thunderstore.io-2.3.0-%23375a7f?style=flat&labelColor=%2332393F)](https://valheim.thunderstore.io/package/nwesterhausen/DiscordConnector/)
[![NexusMods](https://img.shields.io/badge/NexusMods-2.1.14-%23D98F40?style=flat&labelColor=%2332393F)](https://www.nexusmods.com/valheim/mods/1551/)
![Built against Valheim version](https://img.shields.io/badge/Built_against_Valheim-0.218.15-purple?style=flat&labelColor=%2332393F)

Expand Down
15 changes: 15 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

A full changelog of changes, dating all the way back to the first release.

## Version 2.3.0

Features

- support up to 16 additional webhooks (adds a new config file, `discordconnector-extraWebhooks.cfg`)
- support restricting/allowing Discord mentions in messages (`@here` and `@everyone` are disabled by default -- possibly a breaking change)
- custom variables are now evaluated again for any embedded variables in the message
- added new configuration values to allow specifying a custom username and avatar for each webhook (to override the Discord webhook settings)
- added a configuration value that sets a default username for all webhooks (if not overridden)

Fixes

- no longer relies on the `ZNet.GetPublicIP()` method and instead gets the public IP on its own at server start.
- `%NUM_PLAYERS%` proactively subtracts 1 if the event is a player leaving

## Version 2.2.2

Features
Expand Down
2 changes: 1 addition & 1 deletion src/PluginInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal static class PluginInfo
{
public const string PLUGIN_ID = "games.nwest.valheim.discordconnector";
public const string PLUGIN_NAME = "Valheim Discord Connector";
public const string PLUGIN_VERSION = "2.2.2";
public const string PLUGIN_VERSION = "2.3.0";
public const string PLUGIN_REPO_SHORT = "github: nwesterhausen/valheim-discordconnector";
public const string PLUGIN_AUTHOR = "Nicholas Westerhausen";
public const string SHORT_PLUGIN_ID = "discordconnector";
Expand Down

0 comments on commit 178cbb2

Please sign in to comment.