Update target framework, dependencies
This commit is contained in:
parent
41e760c308
commit
3a5b476b53
7 changed files with 10 additions and 36 deletions
|
@ -33,7 +33,7 @@ namespace Noikoio.RegexBot.Module.AutoMod.Responses
|
||||||
await target.SendMessageAsync("", embed: BuildReportEmbed(msg));
|
await target.SendMessageAsync("", embed: BuildReportEmbed(msg));
|
||||||
}
|
}
|
||||||
|
|
||||||
private EmbedBuilder BuildReportEmbed(SocketMessage msg)
|
private Embed BuildReportEmbed(SocketMessage msg)
|
||||||
{
|
{
|
||||||
string invokeLine = msg.Content;
|
string invokeLine = msg.Content;
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ namespace Noikoio.RegexBot.Module.AutoMod.Responses
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return finalem;
|
return finalem.Build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands
|
||||||
Title = "Usage",
|
Title = "Usage",
|
||||||
Description = DefaultUsageMsg
|
Description = DefaultUsageMsg
|
||||||
};
|
};
|
||||||
await target.SendMessageAsync(message ?? "", embed: usageEmbed);
|
await target.SendMessageAsync(message ?? "", embed: usageEmbed.Build());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -139,7 +139,7 @@ namespace Noikoio.RegexBot.Module.ModLogs
|
||||||
|
|
||||||
// Prepare and send out message
|
// Prepare and send out message
|
||||||
var em = CreateReportEmbed(isDelete, ucd, messageId, ch, (msgContent, editMsg), msgCreateTime, msgEditTime);
|
var em = CreateReportEmbed(isDelete, ucd, messageId, ch, (msgContent, editMsg), msgCreateTime, msgEditTime);
|
||||||
await cfg.RptTarget.SendMessageAsync("", embeds: new Embed[] { em });
|
await cfg.RptTarget.SendMessageAsync("", embeds: new Embed[] { em.Build() });
|
||||||
}
|
}
|
||||||
|
|
||||||
const int ReportCutoffLength = 500;
|
const int ReportCutoffLength = 500;
|
||||||
|
|
|
@ -178,7 +178,7 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel
|
||||||
manageChannel: PermValue.Allow,
|
manageChannel: PermValue.Allow,
|
||||||
sendMessages: PermValue.Allow,
|
sendMessages: PermValue.Allow,
|
||||||
manageMessages: PermValue.Allow,
|
manageMessages: PermValue.Allow,
|
||||||
managePermissions: PermValue.Allow));
|
manageRoles: PermValue.Allow));
|
||||||
}
|
}
|
||||||
catch (Discord.Net.HttpException ex)
|
catch (Discord.Net.HttpException ex)
|
||||||
{
|
{
|
||||||
|
@ -208,7 +208,7 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel
|
||||||
manageChannel: PermValue.Allow,
|
manageChannel: PermValue.Allow,
|
||||||
sendMessages: PermValue.Allow,
|
sendMessages: PermValue.Allow,
|
||||||
manageMessages: PermValue.Allow,
|
manageMessages: PermValue.Allow,
|
||||||
managePermissions: PermValue.Allow));
|
manageRoles: PermValue.Allow));
|
||||||
}
|
}
|
||||||
catch (Discord.Net.HttpException ex)
|
catch (Discord.Net.HttpException ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
This file is used by the publish/package process of your project. You can customize the behavior of this process
|
|
||||||
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
|
|
||||||
-->
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<PublishProtocol>FileSystem</PublishProtocol>
|
|
||||||
<Configuration>Debug</Configuration>
|
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
||||||
<PublishDir>bin\Debug\PublishOutput</PublishDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
|
@ -1,13 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
This file is used by the publish/package process of your project. You can customize the behavior of this process
|
|
||||||
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
|
|
||||||
-->
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<PropertyGroup>
|
|
||||||
<PublishProtocol>FileSystem</PublishProtocol>
|
|
||||||
<Configuration>Release</Configuration>
|
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
|
||||||
<PublishDir>bin\Release\PublishOutput</PublishDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
<RootNamespace>Noikoio.RegexBot</RootNamespace>
|
<RootNamespace>Noikoio.RegexBot</RootNamespace>
|
||||||
<Description>Highly configurable Discord moderation bot</Description>
|
<Description>Highly configurable Discord moderation bot</Description>
|
||||||
<Authors>Noikoio</Authors>
|
<Authors>Noikoio</Authors>
|
||||||
<Company />
|
<Company />
|
||||||
<Version>2.6.4</Version>
|
<Version>2.6.5</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Discord.Net" Version="1.0.2" />
|
<PackageReference Include="Discord.Net" Version="2.2.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
|
||||||
<PackageReference Include="Npgsql" Version="3.2.7" />
|
<PackageReference Include="Npgsql" Version="3.2.7" />
|
||||||
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
Loading…
Reference in a new issue