1
0
mirror of https://github.com/oliverbooth/VPLink synced 2024-11-23 15:28:46 +00:00

refactor!: rename to VPLink

This commit is contained in:
Oliver Booth 2023-08-26 12:50:06 +01:00
parent 90684abe85
commit 69edcfe3f5
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
13 changed files with 37 additions and 37 deletions

View File

@ -1,3 +1,3 @@
# VpBridge
# VPLink
VpBridge is a simple bot for both Discord and Virtual Paradise which bridges chat messages from a designated Discord channel, to a world in Virtual Paradise.
VPLink is a simple bot for both Discord and Virtual Paradise which bridges chat messages from a designated Discord channel, to a world in Virtual Paradise.

View File

@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VpBridge", "VpBridge\VpBridge.csproj", "{CD488A1E-0232-4EB5-A381-38A42B267B11}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VPLink", "VPLink\VPLink.csproj", "{CD488A1E-0232-4EB5-A381-38A42B267B11}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -4,7 +4,7 @@ using Discord.Interactions;
using VpSharp;
using VpSharp.Entities;
namespace VpBridge.Commands;
namespace VPLink.Commands;
/// <summary>
/// Represents a class which implements the <c>who</c> command.

20
VPLink/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["VPLink/VPLink.csproj", "VpBridge/"]
RUN dotnet restore "VPLink/VPLink.csproj"
COPY . .
WORKDIR "/src/VpBridge"
RUN dotnet build "VPLink.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "VPLink.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "VPLink.dll"]

View File

@ -6,7 +6,7 @@ using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Serilog;
using Tomlyn.Extensions.Configuration;
using VpBridge.Services;
using VPLink.Services;
using VpSharp;
using X10D.Hosting.DependencyInjection;

View File

@ -8,11 +8,11 @@ using Discord.WebSocket;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using VpBridge.Commands;
using VPLink.Commands;
using VpSharp;
using VpSharp.Entities;
namespace VpBridge.Services;
namespace VPLink.Services;
/// <inheritdoc cref="IDiscordService" />
internal sealed partial class DiscordService : BackgroundService, IDiscordService

View File

@ -1,7 +1,7 @@
using Discord;
using VpSharp.Entities;
namespace VpBridge.Services;
namespace VPLink.Services;
/// <summary>
/// Represents a service that sends messages to the Discord channel.

View File

@ -1,7 +1,7 @@
using Discord;
using VpSharp.Entities;
namespace VpBridge.Services;
namespace VPLink.Services;
/// <summary>
/// Represents a service that sends messages to the Virtual Paradise world server.

View File

@ -5,7 +5,7 @@ using Microsoft.Extensions.Logging;
using VpSharp;
using VpSharp.Extensions;
namespace VpBridge.Services;
namespace VPLink.Services;
internal sealed class RelayService : BackgroundService
{

View File

@ -8,7 +8,7 @@ using VpSharp;
using VpSharp.Entities;
using Color = System.Drawing.Color;
namespace VpBridge.Services;
namespace VPLink.Services;
/// <inheritdoc cref="IVirtualParadiseService" />
internal sealed class VirtualParadiseService : BackgroundService, IVirtualParadiseService

View File

@ -52,7 +52,7 @@
<PackageReference Include="VpSharp" Version="0.1.0-nightly.43"/>
<PackageReference Include="X10D" Version="3.3.1"/>
<PackageReference Include="X10D.Hosting" Version="3.3.1"/>
<PackageReference Include="ZString" Version="2.5.0" />
<PackageReference Include="ZString" Version="2.5.0"/>
</ItemGroup>
</Project>

View File

@ -1,20 +0,0 @@
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["VpBridge/VpBridge.csproj", "VpBridge/"]
RUN dotnet restore "VpBridge/VpBridge.csproj"
COPY . .
WORKDIR "/src/VpBridge"
RUN dotnet build "VpBridge.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "VpBridge.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "VpBridge.dll"]

View File

@ -1,16 +1,16 @@
version: '3.9'
services:
vpbridge:
container_name: VpBridge
vplink:
container_name: VPLink
pull_policy: build
build:
context: .
dockerfile: VpBridge/Dockerfile
dockerfile: VPLink/Dockerfile
volumes:
- type: bind
source: /var/log/vp/vp-bridge
source: /var/log/vp/vplink
target: /app/logs
- type: bind
source: /etc/vp/vp-bridge
source: /etc/vp/vplink
target: /app/data
restart: always