Adding RaffleDB
This commit is contained in:
parent
da4cf6417b
commit
73b3c25c6f
@ -8,6 +8,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="DiceRoller" Version="4.1.0" />
|
<PackageReference Include="DiceRoller" Version="4.1.0" />
|
||||||
<PackageReference Include="Discord.Net" Version="2.2.0" />
|
<PackageReference Include="Discord.Net" Version="2.2.0" />
|
||||||
|
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.0.3" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.0" />
|
||||||
<PackageReference Include="NLog" Version="4.7.2" />
|
<PackageReference Include="NLog" Version="4.7.2" />
|
||||||
|
|||||||
BIN
ChaosBot/ChaosBotSQL.db
Normal file
BIN
ChaosBot/ChaosBotSQL.db
Normal file
Binary file not shown.
13
ChaosBot/Controllers/Database.cs
Normal file
13
ChaosBot/Controllers/Database.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
namespace ChaosBot.Controllers
|
||||||
|
{
|
||||||
|
public class Database
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public class Raffle
|
||||||
|
{
|
||||||
|
private int _id;
|
||||||
|
private ulong userId;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -139,8 +139,8 @@ namespace ChaosBot.Discord.Modules
|
|||||||
|
|
||||||
private void ClearRaffle(StringBuilder sb, bool noOutput = false)
|
private void ClearRaffle(StringBuilder sb, bool noOutput = false)
|
||||||
{
|
{
|
||||||
_currentPot = new Dictionary<ulong, int>();
|
_currentPot.Clear();
|
||||||
|
|
||||||
if (noOutput) return;
|
if (noOutput) return;
|
||||||
|
|
||||||
sb.AppendLine($"{Context.User.Mention} has cleared all rafflepoints");
|
sb.AppendLine($"{Context.User.Mention} has cleared all rafflepoints");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user