Esempio n. 1
0
        public async Task Help()
        {
            var user    = Context.User as SocketGuildUser;
            var message = Context.Message;
            await message.DeleteAsync();

            await _actions.SendHelpMessageAsync(user);
        }
Esempio n. 2
0
        private async Task OnUserJoined(SocketGuildUser u)
        {
            if (u.IsBot)
            {
                return;
            }

            if (_data.GetUserById(u.Id.ToString()) == null)
            {
                var user = new UserModel(u.Id.ToString(), u.Username);
                _data.AddOrUpdateUser(user);
            }

            await _actions.SendMessageToChannelAsync(_quotes.GetGreetingMessage(u.Mention),
                                                     Constants.GREETING_CHANNEL);

            await _actions.SendHelpMessageAsync(u);
        }