Пример #1
0
    public void Handle(TwitchChatMessage chatMessage, AfkCommandType type)
    {
        UserNew?user = DbController.GetUser(chatMessage.UserId, chatMessage.Username);

        if (user is null)
        {
            DbController.AddUser(chatMessage.UserId, chatMessage.Username, type);
        }

        string message = chatMessage.Split[1..].JoinToString(' ');