예제 #1
0
        public virtual async Task AttachToAsync(IBot bot)
        {
            if (!bot.ContainsService(this))
            {
                await bot.AttachAsync(this).ConfigureAwait(false);

                return;
            }

            Bot        = bot;
            IsAttached = true;

            await StartAsync( ).ConfigureAwait(false);
        }