mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Gambling moved to a separate project. Project builds
This commit is contained in:
9
src/NadekoBot/Medusa/Adapters/ContextAdapterFactory.cs
Normal file
9
src/NadekoBot/Medusa/Adapters/ContextAdapterFactory.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Nadeko.Snake;
|
||||
|
||||
internal class ContextAdapterFactory
|
||||
{
|
||||
public static AnyContext CreateNew(ICommandContext context, IMedusaStrings strings, IServiceProvider services)
|
||||
=> context.Guild is null
|
||||
? new DmContextAdapter(context, strings, services)
|
||||
: new GuildContextAdapter(context, strings, services);
|
||||
}
|
Reference in New Issue
Block a user