added napiszar, using MsEntitiFramework, addreactionrole command working just with link
This commit is contained in:
parent
1695770f9f
commit
d508bffac1
9 changed files with 318 additions and 94 deletions
25
commands/napiszar.cs
Normal file
25
commands/napiszar.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using DSharpPlus.CommandsNext;
|
||||
using DSharpPlus.CommandsNext.Attributes;
|
||||
using System.Threading.Tasks;
|
||||
using T3k3rg0.Helpers;
|
||||
|
||||
namespace T3k3rg0.Commands
|
||||
{
|
||||
public class Napiszar : BaseCommandModule
|
||||
{
|
||||
[Command("napiszar")]
|
||||
[Description("Elküld egy napiszart.")]
|
||||
public async Task GetNapiszar(CommandContext ctx)
|
||||
{
|
||||
if (NapiszarService.HasUsedToday(ctx.User.Id))
|
||||
{
|
||||
await ctx.RespondAsync("Ma már megkaptad a szarodat");
|
||||
return;
|
||||
}
|
||||
|
||||
string napiszar = NapiszarService.GetRandomSzar();
|
||||
NapiszarService.LogUsage(ctx.User.Id);
|
||||
await ctx.RespondAsync(napiszar);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue