added minecraft ip command for ValourSMP

This commit is contained in:
2026-03-04 01:42:55 +00:00
parent 6941e1ca92
commit fed1aaa91b

View File

@@ -145,7 +145,9 @@ client.MessageService.MessageReceived += async (message) =>
- `s/joincode - Sends a link to a github that you can use to make your bot join your planet.` - `s/joincode - Sends a link to a github that you can use to make your bot join your planet.`
- `s/cmds - Shows this list` - `s/cmds - Shows this list`
- `s/usercount - Shows the user count of Valour` - `s/usercount - Shows the user count of Valour`
- `s/devcentral - Sends the invite link to the Dev Central Planet`"); - `s/devcentral - Sends the invite link to the Dev Central Planet`
- `s/mc - Sends ValourSMP IP`
");
}; };
if (Utils.ContainsAny(content, $"{prefix}usercount")) if (Utils.ContainsAny(content, $"{prefix}usercount"))
@@ -160,6 +162,11 @@ client.MessageService.MessageReceived += async (message) =>
await Utils.SendReplyAsync(channelCache, channelId, @$"{pingMember} you can join the Dev Central (ID: 42439954653511681) planet here: https://app.valour.gg/I/k2tz9c4i"); await Utils.SendReplyAsync(channelCache, channelId, @$"{pingMember} you can join the Dev Central (ID: 42439954653511681) planet here: https://app.valour.gg/I/k2tz9c4i");
} }
if (Utils.ContainsAny(content, $"{prefix}mc"))
{
await Utils.SendReplyAsync(channelCache, channelId, @$"{pingMember} you can join the ValourSMP Minecraft Server by using this ip: valour.sxsc.xyz");
}
if (Utils.ContainsAny(content, $"{prefix}invite")) if (Utils.ContainsAny(content, $"{prefix}invite"))
{ {
if(message.AuthorUserId != ownerId) return; if(message.AuthorUserId != ownerId) return;