mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
- Removed IUnloadableService - Started removing INService (removed it from services which implement behavior interfaces) - wip - Added scrutor for better service registration - wip
23 lines
489 B
C#
23 lines
489 B
C#
using System.Threading.Tasks;
|
|
using Discord;
|
|
|
|
namespace NadekoBot.Common.ModuleBehaviors
|
|
{
|
|
/// <summary>
|
|
/// Implemented by modules which block execution before anything is executed
|
|
/// </summary>
|
|
public interface IEarlyBehavior
|
|
{
|
|
int Priority { get; }
|
|
ModuleBehaviorType BehaviorType { get; }
|
|
|
|
Task<bool> RunBehavior(IGuild guild, IUserMessage msg);
|
|
}
|
|
|
|
public enum ModuleBehaviorType
|
|
{
|
|
Blocker,
|
|
Executor,
|
|
}
|
|
}
|