This commit is contained in:
2022-06-05 18:25:30 +03:00
parent 4fbea983da
commit fd28a166f7
6 changed files with 15 additions and 20 deletions

View File

@@ -5,7 +5,6 @@ using System;
using System.Threading;
using System.Threading.Tasks;
using PluginManager;
using PluginManager.Others;
using static PluginManager.Others.Functions;
namespace DiscordBot.Discord.Core
@@ -77,17 +76,6 @@ namespace DiscordBot.Discord.Core
}
/// <summary>
/// The method that stops the bot from running
/// </summary>
/// <returns></returns>
public async Task ShutDown()
{
if (client == null) return;
await client.LogoutAsync();
await client.StopAsync();
}
private void CommonTasks()
{
if (client == null) return;

View File

@@ -6,6 +6,16 @@
<Nullable>disable</Nullable>
<ApplicationIcon />
<StartupObject />
<SignAssembly>False</SignAssembly>
<IsPublishable>True</IsPublishable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>none</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
</PropertyGroup>
<ItemGroup>

View File

@@ -50,9 +50,7 @@ namespace DiscordBot
char prefix = Console.ReadLine()[0];
if (prefix == ' ' || char.IsDigit(prefix)) continue;
Config.AddValueToVariables("prefix", prefix.ToString(), false);
break;
}