Пример #1
0
            public async Task StartEvent(CurrencyEvent e, int arg = -1)
            {
                switch (e)
                {
                case CurrencyEvent.Reaction:
                    await ReactionEvent(Context, arg).ConfigureAwait(false);

                    break;

                case CurrencyEvent.SneakyGameStatus:
                    await SneakyGameStatusEvent(Context, arg).ConfigureAwait(false);

                    break;
                }
            }
Пример #2
0
            public async Task StartEvent(CurrencyEvent e)
            {
                var channel = (ITextChannel)Context.Channel;

                switch (e)
                {
                case CurrencyEvent.FlowerReaction:
                    await FlowerReactionEvent(Context).ConfigureAwait(false);

                    break;

                default:
                    break;
                }
            }
Пример #3
0
            public async Task StartEvent(CurrencyEvent e, int arg = -1)
            {
                var channel = (ITextChannel)Context.Channel;

                try
                {
                    switch (e)
                    {
                    case CurrencyEvent.FlowerReaction:
                        await FlowerReactionEvent(Context).ConfigureAwait(false);

                        break;

                    case CurrencyEvent.SneakyGameStatus:
                        await SneakyGameStatusEvent(Context, arg).ConfigureAwait(false);

                        break;

                    default:
                        break;
                    }
                }
                catch { }
            }
Пример #4
0
            public async Task StartEvent(CurrencyEvent e, long arg = -1)
            {
                switch (e)
                {
                case CurrencyEvent.Reaction:
                    await ReactionEvent(Context, arg).ConfigureAwait(false);

                    break;

                case CurrencyEvent.SneakyGameStatus:
                    await SneakyGameStatusEvent(Context, arg).ConfigureAwait(false);

                    break;

#if GLOBAL_NADEKO
                case CurrencyEvent.BotListUpvoters:
                    await BotListUpvoters(arg);

                    break;
#endif
                default:
                    return;
                }
            }