Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
322fea1
BREAKING: v2 start
LumiFae Jul 6, 2025
049070e
fix: bugs that were found
LumiFae Jul 7, 2025
5aeccd0
feat: costura fody
LumiFae Jul 7, 2025
64f1508
fix: loading issues
LumiFae Jul 7, 2025
f07f714
test: add some logs
LumiFae Jul 8, 2025
391e671
ci: fix build
LumiFae Jul 8, 2025
94bdd3e
ci: fix again
LumiFae Jul 8, 2025
ec62237
fix: small issues
LumiFae Jul 8, 2025
6189dd4
fix: embed builder being weird in translation
LumiFae Jul 9, 2025
1e1c012
fix: status channel not getting/creating message
LumiFae Jul 10, 2025
f91cf28
fix: embed builder colors
LumiFae Jul 10, 2025
4f32d59
fix: use correct damage
LumiFae Jul 10, 2025
e96f61e
feat: cache damage log channel
LumiFae Jul 10, 2025
af12561
fix: translation embed builders
LumiFae Jul 10, 2025
a0564b8
feat: more translations
LumiFae Jul 10, 2025
dddd981
fix(SC): no reset on waiting for players
LumiFae Jul 11, 2025
ac66ce6
style(DL): default blue embed
LumiFae Jul 11, 2025
8274cdb
ci: automatically add dependencies
LumiFae Jul 11, 2025
e1975db
fix: spam on round restart
LumiFae Jul 11, 2025
01e2346
fix: wrong translations
LumiFae Jul 11, 2025
9a37447
feat: more player placeholders
LumiFae Jul 11, 2025
314f352
ci: remove xp system
LumiFae Jul 12, 2025
05633fb
fix: disconnect data mismatch
LumiFae Jul 12, 2025
316920c
feat(translationbuilder): trim names
LumiFae Jul 12, 2025
52c27c4
fix: passive dmg tracker
LumiFae Jul 12, 2025
528282e
feat: add temp mute command config
LumiFae Jul 12, 2025
f630943
ci: add pre-release check
LumiFae Jul 14, 2025
01eaa65
fix: index out of range exception
LumiFae Aug 1, 2025
23effb7
fix: v14.1.3 changes
LumiFae Aug 3, 2025
e418340
feat: file scoped namespaces
LumiFae Aug 15, 2025
6fca519
ci: fix exiled ref
LumiFae Aug 15, 2025
c53d751
feat: remove useless method
LumiFae Aug 16, 2025
72a76f0
fix(ban logs): no reason and invalid time
LumiFae Aug 16, 2025
6507daf
ci: fix exiled dumb renaming thing
LumiFae Aug 16, 2025
e0890f3
ci: fix again bruh
LumiFae Aug 16, 2025
da127f5
fix: no dependencies
LumiFae Aug 16, 2025
e7aae3d
feat: start on message content
LumiFae Aug 19, 2025
3e34817
feat: interaction response
LumiFae Aug 19, 2025
7b190c8
feat: log revamp
LumiFae Aug 19, 2025
3775bbd
feat: get option extension
LumiFae Aug 19, 2025
26ab4df
fix: not getting option value
LumiFae Aug 19, 2025
293a8b6
feat!: nullable
LumiFae Aug 19, 2025
1dd2381
feat: enable nullable
LumiFae Aug 19, 2025
df02f7c
fix: nullables
LumiFae Aug 19, 2025
213785d
fix: dates crashing servers
LumiFae Aug 19, 2025
9439665
fix: versioning
LumiFae Aug 20, 2025
330561f
ci: nuget package push
LumiFae Aug 20, 2025
2c4c5d6
fix: versioning (final)
LumiFae Aug 20, 2025
ffa3103
fix: autocomplete commands
LumiFae Aug 20, 2025
644c6eb
fix: translation builder player list
LumiFae Aug 20, 2025
f114bcf
fix: module updater
LumiFae Aug 20, 2025
8c03c47
feat!: translation builder optimisation
LumiFae Aug 21, 2025
1925fa0
feat: embed omitting
LumiFae Aug 21, 2025
ac40286
chore: unpublicize discord.net.rest
LumiFae Aug 21, 2025
d8d5992
chore(deps): bump labapi ver
LumiFae Aug 21, 2025
ebdf86c
fix: patch crash
LumiFae Aug 21, 2025
968936d
ci: fix packing nuget
LumiFae Aug 21, 2025
a2baba9
feat: move dependency to dependencies
LumiFae Aug 21, 2025
50eb388
fix: dep issue
LumiFae Aug 21, 2025
5eef9f4
chore: code cleanup
LumiFae Aug 21, 2025
8963300
feat: server shutdown logs
LumiFae Aug 21, 2025
c7f8888
feat: more embed options
LumiFae Aug 21, 2025
dafd353
feat: more embed options
LumiFae Aug 21, 2025
5f3b098
chore: stylecop requirements
LumiFae Aug 21, 2025
d034819
feat: remove log
LumiFae Aug 22, 2025
1444b52
feat: decont state placeholder
LumiFae Aug 22, 2025
e2c13d3
ci: setup role map
LumiFae Aug 22, 2025
8e3f1dc
ci: finalise nuget pack
LumiFae Aug 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 11 additions & 20 deletions .github/workflows/artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,30 @@ on:
- push

env:
EXILED_REFERENCES_URL: https://exslmod-team.github.io/SL-References/Dev.zip
XP_SYSTEM_URL: https://api.github.com/repos/RowpannSCP/XP/releases
EXILED_REFERENCES_URL: https://exmod-team.github.io/SL-References/Dev.zip
SL_REFERENCES: ${{ github.workspace }}/refs
EXILED_REFERENCES: ${{ github.workspace }}/refs

jobs:
build:
runs-on: windows-2022
steps:
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1.3
with:
vs-prerelease: false
msbuild-architecture: x64
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Checkout
uses: actions/checkout@v4
- name: Get Exiled References
- name: Setup Dotnet
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 9.0.x
- name: Get References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ env.EXILED_REFERENCES }} -Force
- name: Get XP System
Expand-Archive -Path References.zip -DestinationPath ${{ env.SL_REFERENCES }} -Force
- name: Rename Assembly-CSharp (because Exiled removes the normal version)
shell: pwsh
run: |
$response = Invoke-RestMethod -Uri ${{ env.XP_SYSTEM_URL }}
$asset = $response.assets | Where-Object { $_.name -eq 'XPSystem-EXILED.dll' } | Select-Object -First 1
$url = $asset.browser_download_url
Invoke-WebRequest -Uri $url -OutFile ${{ env.EXILED_REFERENCES }}/XPSystem.dll
- name: Restore packages
run: nuget restore ${{ github.workspace }}/DiscordLab.sln
run: Move-Item -Path ${{ env.SL_REFERENCES }}/Assembly-CSharp-Publicized.dll -Destination ${{ env.SL_REFERENCES }}/Assembly-CSharp.dll
- name: Build
run: msbuild.exe ${{ github.workspace }}/DiscordLab.sln /p:Configuration=Debug /p:Platform="Any CPU"
run: dotnet build -c:Release
- name: Publish Artifact
uses: actions/upload-artifact@v4
with:
Expand Down
39 changes: 33 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,38 @@ on:
types: [published]

jobs:
nuget:
if: github.event.release.prerelease == false
runs-on: windows-2022
env:
EXILED_REFERENCES_URL: https://exmod-team.github.io/SL-References/Dev.zip
SL_REFERENCES: ${{ github.workspace }}/refs
EXILED_REFERENCES: ${{ github.workspace }}/refs
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Dotnet
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 9.0.x
- name: Get References
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ env.SL_REFERENCES }} -Force
- name: Rename Assembly-CSharp (because Exiled removes the normal version)
shell: pwsh
run: Move-Item -Path ${{ env.SL_REFERENCES }}/Assembly-CSharp-Publicized.dll -Destination ${{ env.SL_REFERENCES }}/Assembly-CSharp.dll
- name: Build
run: dotnet build -c:Release ${{ github.workspace }}/DiscordLab.Bot/DiscordLab.Bot.csproj
- name: Pack
run: dotnet pack -c Release ${{ github.workspace }}/DiscordLab.Bot/DiscordLab.Bot.csproj
- name: Publish
run: dotnet nuget push ${{ github.workspace }}/DiscordLab.Bot/bin/Release/DiscordLab.Bot.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
notify:
if: github.event.release.prerelease == false
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -31,16 +62,12 @@ jobs:

$roleMap = @{
"DiscordLab.Bot" = "1326565513392033844"
"DiscordLab.AdvancedLogging" = "1326565584334225469"
"DiscordLab.BotStatus" = "1326565625249660990"
"DiscordLab.ConnectionLogs" = "1326565678601212016"
"DiscordLab.DeathLogs" = "1326565793856622628"
"DiscordLab.Moderation" = "1326565888962596966"
"DiscordLab.ModerationLogs" = "1326565923242639492"
"DiscordLab.SCPSwap" = "1326565946915295365"
"DiscordLab.Moderation" = "1326565923242639492"
"DiscordLab.StatusChannel" = "1326565978125107211"
"DiscordLab.XPSystem" = "1326566015861260298"
"DiscordLab.AdminLogs" = "1327362549368361000"
"DiscordLab.Administration" = "1327362549368361000"
"DiscordLab.RoundLogs" = "1327631517769531453"
}

Expand Down
45 changes: 36 additions & 9 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,11 +1,38 @@
<Project>
<PropertyGroup>
<SharedBinPath>$(MSBuildThisFileDirectory)bin\</SharedBinPath>
</PropertyGroup>

<Target Name="CopyToSharedBin" AfterTargets="Build">
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll"
DestinationFolder="$(SharedBinPath)"
SkipUnchangedFiles="true" />
</Target>
<PropertyGroup>
<GenerateAssemblyInformationVersionAttribute>false</GenerateAssemblyInformationVersionAttribute>
<SharedBinPath>$(MSBuildThisFileDirectory)bin\</SharedBinPath>
</PropertyGroup>

<Target Name="CopyToSharedBin" AfterTargets="Build" Condition="$(AssemblyName) != 'DiscordLab.Dependency'">
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll"
DestinationFolder="$(SharedBinPath)"
SkipUnchangedFiles="true"/>
</Target>

<Target Name="CopyToDependencies" AfterTargets="Build" Condition="$(AssemblyName) == 'DiscordLab.Dependency'">
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll"
DestinationFolder="$(SharedBinPath)\dependencies"
SkipUnchangedFiles="true"/>
</Target>

<ItemGroup>
<Reference Include="Assembly-CSharp" HintPath="$(SL_REFERENCES)\Assembly-CSharp.dll" Private="false" Publicize="true"/>
<Reference Include="CommandSystem.Core" HintPath="$(SL_REFERENCES)\CommandSystem.Core.dll" Private="false"/>
<Reference Include="Mirror" HintPath="$(SL_REFERENCES)\Mirror.dll" Private="false" Publicize="true"/>
<Reference Include="UnityEngine" HintPath="$(SL_REFERENCES)\UnityEngine.dll" Private="false"/>
<Reference Include="UnityEngine.CoreModule" HintPath="$(SL_REFERENCES)\UnityEngine.CoreModule.dll" Private="false"/>
<Reference Include="UnityEngine.PhysicsModule" HintPath="$(SL_REFERENCES)\UnityEngine.PhysicsModule.dll" Private="false"/>
<Reference Include="NorthwoodLib" HintPath="$(SL_REFERENCES)\NorthwoodLib.dll" Private="false"/>
<Reference Include="mscorlib" HintPath="$(SL_REFERENCES)\mscorlib.dll"/>
</ItemGroup>

<ItemGroup Condition="$(AssemblyName) != 'DiscordLab.Dependency'">
<ProjectReference Include="$(MSBuildThisFileDirectory)DiscordLab.Dependency\DiscordLab.Dependency.csproj" Private="false" PrivateAssets="none" IncludeAssets="all"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Northwood.LabAPI" Version="1.1.1"/>
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.2" PrivateAssets="all" ExcludeAssets="runtime" ReferenceOutputAssembly="false" Private="true"/>
</ItemGroup>
</Project>
30 changes: 0 additions & 30 deletions DiscordLab.AdminLogs/Config.cs

This file was deleted.

46 changes: 0 additions & 46 deletions DiscordLab.AdminLogs/DiscordLab.AdminLogs.csproj

This file was deleted.

12 changes: 0 additions & 12 deletions DiscordLab.AdminLogs/FodyWeavers.xml

This file was deleted.

Loading