1
0
mirror of https://github.com/oliverbooth/VPLink synced 2024-11-23 17:48:48 +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 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 EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -4,7 +4,7 @@ using Discord.Interactions;
using VpSharp; using VpSharp;
using VpSharp.Entities; using VpSharp.Entities;
namespace VpBridge.Commands; namespace VPLink.Commands;
/// <summary> /// <summary>
/// Represents a class which implements the <c>who</c> command. /// 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 Microsoft.Extensions.Logging;
using Serilog; using Serilog;
using Tomlyn.Extensions.Configuration; using Tomlyn.Extensions.Configuration;
using VpBridge.Services; using VPLink.Services;
using VpSharp; using VpSharp;
using X10D.Hosting.DependencyInjection; using X10D.Hosting.DependencyInjection;

View File

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

View File

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

View File

@ -1,7 +1,7 @@
using Discord; using Discord;
using VpSharp.Entities; using VpSharp.Entities;
namespace VpBridge.Services; namespace VPLink.Services;
/// <summary> /// <summary>
/// Represents a service that sends messages to the Virtual Paradise world server. /// 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;
using VpSharp.Extensions; using VpSharp.Extensions;
namespace VpBridge.Services; namespace VPLink.Services;
internal sealed class RelayService : BackgroundService internal sealed class RelayService : BackgroundService
{ {

View File

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

View File

@ -52,7 +52,7 @@
<PackageReference Include="VpSharp" Version="0.1.0-nightly.43"/> <PackageReference Include="VpSharp" Version="0.1.0-nightly.43"/>
<PackageReference Include="X10D" Version="3.3.1"/> <PackageReference Include="X10D" Version="3.3.1"/>
<PackageReference Include="X10D.Hosting" 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> </ItemGroup>
</Project> </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' version: '3.9'
services: services:
vpbridge: vplink:
container_name: VpBridge container_name: VPLink
pull_policy: build pull_policy: build
build: build:
context: . context: .
dockerfile: VpBridge/Dockerfile dockerfile: VPLink/Dockerfile
volumes: volumes:
- type: bind - type: bind
source: /var/log/vp/vp-bridge source: /var/log/vp/vplink
target: /app/logs target: /app/logs
- type: bind - type: bind
source: /etc/vp/vp-bridge source: /etc/vp/vplink
target: /app/data target: /app/data
restart: always restart: always