From 871237af4e2e8fbd23460128f8e3f06ca941784f Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 5 Feb 2017 09:09:18 +0100 Subject: [PATCH] $slot cooldown reduced to 2 seconds. .v+t roles now have no permissions --- .../Modules/Administration/Commands/VoicePlusTextCommands.cs | 2 +- src/NadekoBot/Modules/Gambling/Commands/Slots.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs index d0c905bb..392b4e88 100644 --- a/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/VoicePlusTextCommands.cs @@ -108,7 +108,7 @@ namespace NadekoBot.Modules.Administration var roleName = GetRoleName(afterVch); IRole roleToAdd = guild.Roles.FirstOrDefault(x => x.Name == roleName); if (roleToAdd == null) - roleToAdd = await guild.CreateRoleAsync(roleName).ConfigureAwait(false); + roleToAdd = await guild.CreateRoleAsync(roleName, GuildPermissions.None).ConfigureAwait(false); ITextChannel textChannel = guild.TextChannels .Where(t => t.Name == GetChannelName(afterVch.Name).ToLowerInvariant()) diff --git a/src/NadekoBot/Modules/Gambling/Commands/Slots.cs b/src/NadekoBot/Modules/Gambling/Commands/Slots.cs index 445d6c48..989d3789 100644 --- a/src/NadekoBot/Modules/Gambling/Commands/Slots.cs +++ b/src/NadekoBot/Modules/Gambling/Commands/Slots.cs @@ -262,7 +262,7 @@ namespace NadekoBot.Modules.Gambling { var t = Task.Run(async () => { - await Task.Delay(3000); + await Task.Delay(2000); runningUsers.Remove(Context.User.Id); }); }